diff --git a/.gitattributes b/.gitattributes
old mode 100755
new mode 100644
diff --git a/README.md b/README.md
index edacfb928..44ceb36e6 100755
--- a/README.md
+++ b/README.md
@@ -56,6 +56,16 @@ TF_REATTACH_PROVIDERS=... terraform apply
+
+
+
+
+
+
+
+
+
+
Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.
Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
diff --git a/USAGE.md b/USAGE.md
old mode 100755
new mode 100644
diff --git a/airbyte.yaml b/airbyte.yaml
index ba26f4a2c..e09dba5fc 100644
--- a/airbyte.yaml
+++ b/airbyte.yaml
@@ -51281,7 +51281,7 @@ components:
type: "object"
title: "SSH Tunnel Method"
description: "Whether to initiate an SSH tunnel before connecting to the\
- \ database, and if so, which kind of authentication to use."
+ \ database, and iftatus so, which kind of authentication to use."
oneOf:
- title: "No Tunnel"
required:
diff --git a/docs/data-sources/destination_aws_datalake.md b/docs/data-sources/destination_aws_datalake.md
index a74e088b9..9b5d59bbf 100644
--- a/docs/data-sources/destination_aws_datalake.md
+++ b/docs/data-sources/destination_aws_datalake.md
@@ -40,7 +40,6 @@ Read-Only:
- `bucket_name` (String) The name of the S3 bucket. Read more here.
- `bucket_prefix` (String) S3 prefix
- `credentials` (Attributes) Choose How to Authenticate to AWS. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `destination_type` (String) must be one of ["aws-datalake"]
- `format` (Attributes) Format of the data output. (see [below for nested schema](#nestedatt--configuration--format))
- `glue_catalog_float_as_decimal` (Boolean) Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source.
- `lakeformation_database_default_tag_key` (String) Add a default tag key to databases created by this destination
@@ -67,8 +66,6 @@ Read-Only:
Read-Only:
-- `credentials_title` (String) must be one of ["IAM Role"]
-Name of the credentials
- `role_arn` (String) Will assume this role to write data to s3
@@ -79,8 +76,6 @@ Read-Only:
- `aws_access_key_id` (String) AWS User Access Key Id
- `aws_secret_access_key` (String) Secret Access Key
-- `credentials_title` (String) must be one of ["IAM User"]
-Name of the credentials
@@ -88,8 +83,6 @@ Name of the credentials
Read-Only:
-- `credentials_title` (String) must be one of ["IAM Role"]
-Name of the credentials
- `role_arn` (String) Will assume this role to write data to s3
@@ -100,8 +93,6 @@ Read-Only:
- `aws_access_key_id` (String) AWS User Access Key Id
- `aws_secret_access_key` (String) Secret Access Key
-- `credentials_title` (String) must be one of ["IAM User"]
-Name of the credentials
diff --git a/docs/data-sources/destination_azure_blob_storage.md b/docs/data-sources/destination_azure_blob_storage.md
index 78b4dddf5..a64c50246 100644
--- a/docs/data-sources/destination_azure_blob_storage.md
+++ b/docs/data-sources/destination_azure_blob_storage.md
@@ -42,7 +42,6 @@ Read-Only:
- `azure_blob_storage_endpoint_domain_name` (String) This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- `azure_blob_storage_output_buffer_size` (Number) The amount of megabytes to buffer for the output stream to Azure. This will impact memory footprint on workers, but may need adjustment for performance and appropriate block size in Azure.
- `azure_blob_storage_spill_size` (Number) The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable
-- `destination_type` (String) must be one of ["azure-blob-storage"]
- `format` (Attributes) Output data format (see [below for nested schema](#nestedatt--configuration--format))
@@ -62,16 +61,11 @@ Read-Only:
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
-- `format_type` (String) must be one of ["CSV"]
### Nested Schema for `configuration.format.destination_azure_blob_storage_output_format_json_lines_newline_delimited_json`
-Read-Only:
-
-- `format_type` (String) must be one of ["JSONL"]
-
### Nested Schema for `configuration.format.destination_azure_blob_storage_update_output_format_csv_comma_separated_values`
@@ -80,14 +74,9 @@ Read-Only:
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
-- `format_type` (String) must be one of ["CSV"]
### Nested Schema for `configuration.format.destination_azure_blob_storage_update_output_format_json_lines_newline_delimited_json`
-Read-Only:
-
-- `format_type` (String) must be one of ["JSONL"]
-
diff --git a/docs/data-sources/destination_bigquery.md b/docs/data-sources/destination_bigquery.md
index 74596f1dd..0f4f7ed8b 100644
--- a/docs/data-sources/destination_bigquery.md
+++ b/docs/data-sources/destination_bigquery.md
@@ -41,7 +41,6 @@ Read-Only:
- `dataset_id` (String) The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
- `dataset_location` (String) must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]
The location of the dataset. Warning: Changes made after creation will not be applied. Read more here.
-- `destination_type` (String) must be one of ["bigquery"]
- `loading_method` (Attributes) Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here. (see [below for nested schema](#nestedatt--configuration--loading_method))
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset. Read more here.
- `raw_data_dataset` (String) The dataset to write raw tables into
@@ -69,21 +68,19 @@ Read-Only:
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written.
- `keep_files_in_gcs_bucket` (String) must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]
This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
-- `method` (String) must be one of ["GCS Staging"]
-### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_gcs_staging.method`
+### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_gcs_staging.keep_files_in_gcs_bucket`
Read-Only:
-- `destination_bigquery_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_loading_method_gcs_staging--method--destination_bigquery_loading_method_gcs_staging_credential_hmac_key))
+- `destination_bigquery_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_loading_method_gcs_staging--keep_files_in_gcs_bucket--destination_bigquery_loading_method_gcs_staging_credential_hmac_key))
-
-### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_gcs_staging.method.destination_bigquery_loading_method_gcs_staging_credential_hmac_key`
+
+### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_gcs_staging.keep_files_in_gcs_bucket.destination_bigquery_loading_method_gcs_staging_credential_hmac_key`
Read-Only:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -93,10 +90,6 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_standard_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging`
@@ -109,21 +102,19 @@ Read-Only:
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written.
- `keep_files_in_gcs_bucket` (String) must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]
This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
-- `method` (String) must be one of ["GCS Staging"]
-### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging.method`
+### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging.keep_files_in_gcs_bucket`
Read-Only:
-- `destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_update_loading_method_gcs_staging--method--destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key))
+- `destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_update_loading_method_gcs_staging--keep_files_in_gcs_bucket--destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key))
-
-### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging.method.destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key`
+
+### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging.keep_files_in_gcs_bucket.destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key`
Read-Only:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -133,8 +124,4 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_standard_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/data-sources/destination_bigquery_denormalized.md b/docs/data-sources/destination_bigquery_denormalized.md
index 136f7db42..3b372df31 100644
--- a/docs/data-sources/destination_bigquery_denormalized.md
+++ b/docs/data-sources/destination_bigquery_denormalized.md
@@ -41,7 +41,6 @@ Read-Only:
- `dataset_id` (String) The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
- `dataset_location` (String) must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]
The location of the dataset. Warning: Changes made after creation will not be applied. The default "US" value is used if not set explicitly. Read more here.
-- `destination_type` (String) must be one of ["bigquery-denormalized"]
- `loading_method` (Attributes) Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here. (see [below for nested schema](#nestedatt--configuration--loading_method))
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset. Read more here.
@@ -66,21 +65,19 @@ Read-Only:
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written. Read more here.
- `keep_files_in_gcs_bucket` (String) must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]
This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
-- `method` (String) must be one of ["GCS Staging"]
-### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_gcs_staging.method`
+### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_gcs_staging.keep_files_in_gcs_bucket`
Read-Only:
-- `destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_loading_method_gcs_staging--method--destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key))
+- `destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_loading_method_gcs_staging--keep_files_in_gcs_bucket--destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key))
-
-### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_gcs_staging.method.destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key`
+
+### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_gcs_staging.keep_files_in_gcs_bucket.destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key`
Read-Only:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -90,10 +87,6 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_standard_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging`
@@ -106,21 +99,19 @@ Read-Only:
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written. Read more here.
- `keep_files_in_gcs_bucket` (String) must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]
This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
-- `method` (String) must be one of ["GCS Staging"]
-### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging.method`
+### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging.keep_files_in_gcs_bucket`
Read-Only:
-- `destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_update_loading_method_gcs_staging--method--destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key))
+- `destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_update_loading_method_gcs_staging--keep_files_in_gcs_bucket--destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key))
-
-### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging.method.destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key`
+
+### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging.keep_files_in_gcs_bucket.destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key`
Read-Only:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -130,8 +121,4 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_standard_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/data-sources/destination_clickhouse.md b/docs/data-sources/destination_clickhouse.md
index b80d91423..336d2e24e 100644
--- a/docs/data-sources/destination_clickhouse.md
+++ b/docs/data-sources/destination_clickhouse.md
@@ -37,7 +37,6 @@ data "airbyte_destination_clickhouse" "my_destination_clickhouse" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["clickhouse"]
- `host` (String) Hostname of the database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
@@ -60,11 +59,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_ssh_tunnel_method_password_authentication`
@@ -72,8 +66,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -86,8 +78,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -95,11 +85,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_update_ssh_tunnel_method_password_authentication`
@@ -107,8 +92,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -121,8 +104,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_convex.md b/docs/data-sources/destination_convex.md
index 962b6c13b..6f207daf2 100644
--- a/docs/data-sources/destination_convex.md
+++ b/docs/data-sources/destination_convex.md
@@ -38,6 +38,5 @@ Read-Only:
- `access_key` (String) API access key used to send data to a Convex deployment.
- `deployment_url` (String) URL of the Convex deployment that is the destination
-- `destination_type` (String) must be one of ["convex"]
diff --git a/docs/data-sources/destination_cumulio.md b/docs/data-sources/destination_cumulio.md
index a9e00b846..cf592dea4 100644
--- a/docs/data-sources/destination_cumulio.md
+++ b/docs/data-sources/destination_cumulio.md
@@ -39,6 +39,5 @@ Read-Only:
- `api_host` (String) URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
- `api_key` (String) An API key generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
- `api_token` (String) The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
-- `destination_type` (String) must be one of ["cumulio"]
diff --git a/docs/data-sources/destination_databend.md b/docs/data-sources/destination_databend.md
index c7750edcb..160f5004f 100644
--- a/docs/data-sources/destination_databend.md
+++ b/docs/data-sources/destination_databend.md
@@ -37,7 +37,6 @@ data "airbyte_destination_databend" "my_destination_databend" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["databend"]
- `host` (String) Hostname of the database.
- `password` (String) Password associated with the username.
- `port` (Number) Port of the database.
diff --git a/docs/data-sources/destination_databricks.md b/docs/data-sources/destination_databricks.md
index 267cd6625..338962bf0 100644
--- a/docs/data-sources/destination_databricks.md
+++ b/docs/data-sources/destination_databricks.md
@@ -43,7 +43,6 @@ Read-Only:
- `databricks_personal_access_token` (String) Databricks Personal Access Token for making authenticated requests.
- `databricks_port` (String) Databricks Cluster Port.
- `databricks_server_hostname` (String) Databricks Cluster Server Hostname.
-- `destination_type` (String) must be one of ["databricks"]
- `enable_schema_evolution` (Boolean) Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.
- `purge_staging_data` (Boolean) Default to 'true'. Switch it to 'false' for debugging purpose.
- `schema` (String) The default schema tables are written. If not specified otherwise, the "default" will be used.
@@ -65,7 +64,6 @@ Read-Only:
Read-Only:
-- `data_source_type` (String) must be one of ["S3_STORAGE"]
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `s3_access_key_id` (String) The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
- `s3_bucket_name` (String) The name of the S3 bucket to use for intermittent staging of the data.
@@ -84,23 +82,17 @@ Read-Only:
- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container.
- `azure_blob_storage_endpoint_domain_name` (String) This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- `azure_blob_storage_sas_token` (String) Shared access signature (SAS) token to grant limited access to objects in your storage account.
-- `data_source_type` (String) must be one of ["AZURE_BLOB_STORAGE"]
### Nested Schema for `configuration.data_source.destination_databricks_data_source_recommended_managed_tables`
-Read-Only:
-
-- `data_source_type` (String) must be one of ["MANAGED_TABLES_STORAGE"]
-
### Nested Schema for `configuration.data_source.destination_databricks_update_data_source_amazon_s3`
Read-Only:
-- `data_source_type` (String) must be one of ["S3_STORAGE"]
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `s3_access_key_id` (String) The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
- `s3_bucket_name` (String) The name of the S3 bucket to use for intermittent staging of the data.
@@ -119,14 +111,9 @@ Read-Only:
- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container.
- `azure_blob_storage_endpoint_domain_name` (String) This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- `azure_blob_storage_sas_token` (String) Shared access signature (SAS) token to grant limited access to objects in your storage account.
-- `data_source_type` (String) must be one of ["AZURE_BLOB_STORAGE"]
### Nested Schema for `configuration.data_source.destination_databricks_update_data_source_recommended_managed_tables`
-Read-Only:
-
-- `data_source_type` (String) must be one of ["MANAGED_TABLES_STORAGE"]
-
diff --git a/docs/data-sources/destination_dev_null.md b/docs/data-sources/destination_dev_null.md
index 63a8e6009..15c27cefa 100644
--- a/docs/data-sources/destination_dev_null.md
+++ b/docs/data-sources/destination_dev_null.md
@@ -36,7 +36,6 @@ data "airbyte_destination_dev_null" "my_destination_devnull" {
Read-Only:
-- `destination_type` (String) must be one of ["dev-null"]
- `test_destination` (Attributes) The type of destination to be used (see [below for nested schema](#nestedatt--configuration--test_destination))
@@ -50,16 +49,8 @@ Read-Only:
### Nested Schema for `configuration.test_destination.destination_dev_null_test_destination_silent`
-Read-Only:
-
-- `test_destination_type` (String) must be one of ["SILENT"]
-
### Nested Schema for `configuration.test_destination.destination_dev_null_update_test_destination_silent`
-Read-Only:
-
-- `test_destination_type` (String) must be one of ["SILENT"]
-
diff --git a/docs/data-sources/destination_dynamodb.md b/docs/data-sources/destination_dynamodb.md
index ca158c7d8..429039283 100644
--- a/docs/data-sources/destination_dynamodb.md
+++ b/docs/data-sources/destination_dynamodb.md
@@ -37,7 +37,6 @@ data "airbyte_destination_dynamodb" "my_destination_dynamodb" {
Read-Only:
- `access_key_id` (String) The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.
-- `destination_type` (String) must be one of ["dynamodb"]
- `dynamodb_endpoint` (String) This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).
- `dynamodb_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
The region of the DynamoDB.
diff --git a/docs/data-sources/destination_elasticsearch.md b/docs/data-sources/destination_elasticsearch.md
index a3aa42c53..b87625a3e 100644
--- a/docs/data-sources/destination_elasticsearch.md
+++ b/docs/data-sources/destination_elasticsearch.md
@@ -38,7 +38,6 @@ Read-Only:
- `authentication_method` (Attributes) The type of authentication to be used (see [below for nested schema](#nestedatt--configuration--authentication_method))
- `ca_certificate` (String) CA certificate
-- `destination_type` (String) must be one of ["elasticsearch"]
- `endpoint` (String) The full url of the Elasticsearch server
- `upsert` (Boolean) If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys.
@@ -59,7 +58,6 @@ Read-Only:
- `api_key_id` (String) The Key ID to used when accessing an enterprise Elasticsearch instance.
- `api_key_secret` (String) The secret associated with the API Key ID.
-- `method` (String) must be one of ["secret"]
@@ -67,7 +65,6 @@ Read-Only:
Read-Only:
-- `method` (String) must be one of ["basic"]
- `password` (String) Basic auth password to access a secure Elasticsearch server
- `username` (String) Basic auth username to access a secure Elasticsearch server
@@ -79,7 +76,6 @@ Read-Only:
- `api_key_id` (String) The Key ID to used when accessing an enterprise Elasticsearch instance.
- `api_key_secret` (String) The secret associated with the API Key ID.
-- `method` (String) must be one of ["secret"]
@@ -87,7 +83,6 @@ Read-Only:
Read-Only:
-- `method` (String) must be one of ["basic"]
- `password` (String) Basic auth password to access a secure Elasticsearch server
- `username` (String) Basic auth username to access a secure Elasticsearch server
diff --git a/docs/data-sources/destination_firebolt.md b/docs/data-sources/destination_firebolt.md
index 9860c7478..f3bd1f0cb 100644
--- a/docs/data-sources/destination_firebolt.md
+++ b/docs/data-sources/destination_firebolt.md
@@ -38,7 +38,6 @@ Read-Only:
- `account` (String) Firebolt account to login.
- `database` (String) The database to connect to.
-- `destination_type` (String) must be one of ["firebolt"]
- `engine` (String) Engine name or url to connect to.
- `host` (String) The host name of your Firebolt database.
- `loading_method` (Attributes) Loading method used to select the way data will be uploaded to Firebolt (see [below for nested schema](#nestedatt--configuration--loading_method))
@@ -62,7 +61,6 @@ Read-Only:
- `aws_key_id` (String) AWS access key granting read and write access to S3.
- `aws_key_secret` (String) Corresponding secret part of the AWS Key
-- `method` (String) must be one of ["S3"]
- `s3_bucket` (String) The name of the S3 bucket.
- `s3_region` (String) Region name of the S3 bucket.
@@ -70,10 +68,6 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_firebolt_loading_method_sql_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["SQL"]
-
### Nested Schema for `configuration.loading_method.destination_firebolt_update_loading_method_external_table_via_s3`
@@ -82,7 +76,6 @@ Read-Only:
- `aws_key_id` (String) AWS access key granting read and write access to S3.
- `aws_key_secret` (String) Corresponding secret part of the AWS Key
-- `method` (String) must be one of ["S3"]
- `s3_bucket` (String) The name of the S3 bucket.
- `s3_region` (String) Region name of the S3 bucket.
@@ -90,8 +83,4 @@ Read-Only:
### Nested Schema for `configuration.loading_method.destination_firebolt_update_loading_method_sql_inserts`
-Read-Only:
-
-- `method` (String) must be one of ["SQL"]
-
diff --git a/docs/data-sources/destination_firestore.md b/docs/data-sources/destination_firestore.md
index f2b9f50a1..344795bf0 100644
--- a/docs/data-sources/destination_firestore.md
+++ b/docs/data-sources/destination_firestore.md
@@ -37,7 +37,6 @@ data "airbyte_destination_firestore" "my_destination_firestore" {
Read-Only:
- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
-- `destination_type` (String) must be one of ["firestore"]
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset.
diff --git a/docs/data-sources/destination_gcs.md b/docs/data-sources/destination_gcs.md
index 3423670b8..286be3c4b 100644
--- a/docs/data-sources/destination_gcs.md
+++ b/docs/data-sources/destination_gcs.md
@@ -37,7 +37,6 @@ data "airbyte_destination_gcs" "my_destination_gcs" {
Read-Only:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--credential))
-- `destination_type` (String) must be one of ["gcs"]
- `format` (Attributes) Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format. (see [below for nested schema](#nestedatt--configuration--format))
- `gcs_bucket_name` (String) You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more here.
- `gcs_bucket_path` (String) GCS Bucket Path string Subdirectory under the above bucket to sync the data into.
diff --git a/docs/data-sources/destination_google_sheets.md b/docs/data-sources/destination_google_sheets.md
index 6513438a8..e00d85fdf 100644
--- a/docs/data-sources/destination_google_sheets.md
+++ b/docs/data-sources/destination_google_sheets.md
@@ -37,7 +37,6 @@ data "airbyte_destination_google_sheets" "my_destination_googlesheets" {
Read-Only:
- `credentials` (Attributes) Google API Credentials for connecting to Google Sheets and Google Drive APIs (see [below for nested schema](#nestedatt--configuration--credentials))
-- `destination_type` (String) must be one of ["google-sheets"]
- `spreadsheet_id` (String) The link to your spreadsheet. See this guide for more details.
diff --git a/docs/data-sources/destination_keen.md b/docs/data-sources/destination_keen.md
index c8d1b3efc..5f838432d 100644
--- a/docs/data-sources/destination_keen.md
+++ b/docs/data-sources/destination_keen.md
@@ -37,7 +37,6 @@ data "airbyte_destination_keen" "my_destination_keen" {
Read-Only:
- `api_key` (String) To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
-- `destination_type` (String) must be one of ["keen"]
- `infer_timestamp` (Boolean) Allow connector to guess keen.timestamp value based on the streamed data.
- `project_id` (String) To get Keen Project ID, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
diff --git a/docs/data-sources/destination_kinesis.md b/docs/data-sources/destination_kinesis.md
index 505774cb9..fb88b3c1b 100644
--- a/docs/data-sources/destination_kinesis.md
+++ b/docs/data-sources/destination_kinesis.md
@@ -38,7 +38,6 @@ Read-Only:
- `access_key` (String) Generate the AWS Access Key for current user.
- `buffer_size` (Number) Buffer size for storing kinesis records before being batch streamed.
-- `destination_type` (String) must be one of ["kinesis"]
- `endpoint` (String) AWS Kinesis endpoint.
- `private_key` (String) The AWS Private Key - a string of numbers and letters that are unique for each account, also known as a "recovery phrase".
- `region` (String) AWS region. Your account determines the Regions that are available to you.
diff --git a/docs/data-sources/destination_langchain.md b/docs/data-sources/destination_langchain.md
index d6c478c6e..99f14d668 100644
--- a/docs/data-sources/destination_langchain.md
+++ b/docs/data-sources/destination_langchain.md
@@ -36,7 +36,6 @@ data "airbyte_destination_langchain" "my_destination_langchain" {
Read-Only:
-- `destination_type` (String) must be one of ["langchain"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Indexing configuration (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -54,34 +53,24 @@ Read-Only:
### Nested Schema for `configuration.embedding.destination_langchain_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_langchain_embedding_open_ai`
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
### Nested Schema for `configuration.embedding.destination_langchain_update_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_langchain_update_embedding_open_ai`
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
@@ -105,7 +94,6 @@ Read-Only:
- `collection_name` (String) Name of the collection to use.
- `destination_path` (String) Path to the directory where chroma files will be written. The files will be placed inside that local mount.
-- `mode` (String) must be one of ["chroma_local"]
@@ -114,7 +102,6 @@ Read-Only:
Read-Only:
- `destination_path` (String) Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
-- `mode` (String) must be one of ["DocArrayHnswSearch"]
@@ -123,7 +110,6 @@ Read-Only:
Read-Only:
- `index` (String) Pinecone index to use
-- `mode` (String) must be one of ["pinecone"]
- `pinecone_environment` (String) Pinecone environment to use
- `pinecone_key` (String)
@@ -135,7 +121,6 @@ Read-Only:
- `collection_name` (String) Name of the collection to use.
- `destination_path` (String) Path to the directory where chroma files will be written. The files will be placed inside that local mount.
-- `mode` (String) must be one of ["chroma_local"]
@@ -144,7 +129,6 @@ Read-Only:
Read-Only:
- `destination_path` (String) Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
-- `mode` (String) must be one of ["DocArrayHnswSearch"]
@@ -153,7 +137,6 @@ Read-Only:
Read-Only:
- `index` (String) Pinecone index to use
-- `mode` (String) must be one of ["pinecone"]
- `pinecone_environment` (String) Pinecone environment to use
- `pinecone_key` (String)
diff --git a/docs/data-sources/destination_milvus.md b/docs/data-sources/destination_milvus.md
index 515a84e8e..71cd7eeec 100644
--- a/docs/data-sources/destination_milvus.md
+++ b/docs/data-sources/destination_milvus.md
@@ -36,7 +36,6 @@ data "airbyte_destination_milvus" "my_destination_milvus" {
Read-Only:
-- `destination_type` (String) must be one of ["milvus"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Indexing configuration (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -61,16 +60,11 @@ Read-Only:
Read-Only:
- `cohere_key` (String)
-- `mode` (String) must be one of ["cohere"]
### Nested Schema for `configuration.embedding.destination_milvus_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_milvus_embedding_from_field`
@@ -79,7 +73,6 @@ Read-Only:
- `dimensions` (Number) The number of dimensions the embedding model is generating
- `field_name` (String) Name of the field in the record that contains the embedding
-- `mode` (String) must be one of ["from_field"]
@@ -87,7 +80,6 @@ Read-Only:
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
@@ -97,16 +89,11 @@ Read-Only:
Read-Only:
- `cohere_key` (String)
-- `mode` (String) must be one of ["cohere"]
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_from_field`
@@ -115,7 +102,6 @@ Read-Only:
- `dimensions` (Number) The number of dimensions the embedding model is generating
- `field_name` (String) Name of the field in the record that contains the embedding
-- `mode` (String) must be one of ["from_field"]
@@ -123,7 +109,6 @@ Read-Only:
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
@@ -157,24 +142,18 @@ Read-Only:
Read-Only:
-- `mode` (String) must be one of ["token"]
- `token` (String) API Token for the Milvus instance
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
-Read-Only:
-
-- `mode` (String) must be one of ["no_auth"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
Read-Only:
-- `mode` (String) must be one of ["username_password"]
- `password` (String) Password for the Milvus instance
- `username` (String) Username for the Milvus instance
@@ -184,24 +163,18 @@ Read-Only:
Read-Only:
-- `mode` (String) must be one of ["token"]
- `token` (String) API Token for the Milvus instance
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
-Read-Only:
-
-- `mode` (String) must be one of ["no_auth"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
Read-Only:
-- `mode` (String) must be one of ["username_password"]
- `password` (String) Password for the Milvus instance
- `username` (String) Username for the Milvus instance
diff --git a/docs/data-sources/destination_mongodb.md b/docs/data-sources/destination_mongodb.md
index fcb6ba121..107132e5d 100644
--- a/docs/data-sources/destination_mongodb.md
+++ b/docs/data-sources/destination_mongodb.md
@@ -38,9 +38,8 @@ Read-Only:
- `auth_type` (Attributes) Authorization type. (see [below for nested schema](#nestedatt--configuration--auth_type))
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["mongodb"]
- `instance_type` (Attributes) MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. (see [below for nested schema](#nestedatt--configuration--instance_type))
-- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
+- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
### Nested Schema for `configuration.auth_type`
@@ -57,7 +56,6 @@ Read-Only:
Read-Only:
-- `authorization` (String) must be one of ["login/password"]
- `password` (String) Password associated with the username.
- `username` (String) Username to use to access the database.
@@ -65,17 +63,12 @@ Read-Only:
### Nested Schema for `configuration.auth_type.destination_mongodb_authorization_type_none`
-Read-Only:
-
-- `authorization` (String) must be one of ["none"]
-
### Nested Schema for `configuration.auth_type.destination_mongodb_update_authorization_type_login_password`
Read-Only:
-- `authorization` (String) must be one of ["login/password"]
- `password` (String) Password associated with the username.
- `username` (String) Username to use to access the database.
@@ -83,10 +76,6 @@ Read-Only:
### Nested Schema for `configuration.auth_type.destination_mongodb_update_authorization_type_none`
-Read-Only:
-
-- `authorization` (String) must be one of ["none"]
-
@@ -165,9 +154,9 @@ Read-Only:
Read-Only:
-- `destination_mongodb_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_no_tunnel))
-- `destination_mongodb_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_password_authentication))
-- `destination_mongodb_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_ssh_key_authentication))
+- `destination_mongodb_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_no_tunnel))
+- `destination_mongodb_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_password_authentication))
+- `destination_mongodb_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_ssh_key_authentication))
- `destination_mongodb_update_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_no_tunnel))
- `destination_mongodb_update_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_password_authentication))
- `destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication))
@@ -175,11 +164,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_mongodb_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mongodb_ssh_tunnel_method_password_authentication`
@@ -187,8 +171,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -201,8 +183,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -210,11 +190,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_mongodb_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mongodb_update_ssh_tunnel_method_password_authentication`
@@ -222,8 +197,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -236,8 +209,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_mssql.md b/docs/data-sources/destination_mssql.md
index 35c20caac..16978bd1d 100644
--- a/docs/data-sources/destination_mssql.md
+++ b/docs/data-sources/destination_mssql.md
@@ -37,7 +37,6 @@ data "airbyte_destination_mssql" "my_destination_mssql" {
Read-Only:
- `database` (String) The name of the MSSQL database.
-- `destination_type` (String) must be one of ["mssql"]
- `host` (String) The host name of the MSSQL database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) The password associated with this username.
@@ -60,10 +59,6 @@ Read-Only:
### Nested Schema for `configuration.ssl_method.destination_mssql_ssl_method_encrypted_trust_server_certificate`
-Read-Only:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.destination_mssql_ssl_method_encrypted_verify_certificate`
@@ -71,16 +66,11 @@ Read-Only:
Read-Only:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
### Nested Schema for `configuration.ssl_method.destination_mssql_update_ssl_method_encrypted_trust_server_certificate`
-Read-Only:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.destination_mssql_update_ssl_method_encrypted_verify_certificate`
@@ -88,7 +78,6 @@ Read-Only:
Read-Only:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
@@ -107,11 +96,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_mssql_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mssql_ssh_tunnel_method_password_authentication`
@@ -119,8 +103,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -133,8 +115,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -142,11 +122,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_mssql_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mssql_update_ssh_tunnel_method_password_authentication`
@@ -154,8 +129,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -168,8 +141,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_mysql.md b/docs/data-sources/destination_mysql.md
index 01493670c..97bdb8937 100644
--- a/docs/data-sources/destination_mysql.md
+++ b/docs/data-sources/destination_mysql.md
@@ -37,7 +37,6 @@ data "airbyte_destination_mysql" "my_destination_mysql" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["mysql"]
- `host` (String) Hostname of the database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
@@ -60,11 +59,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_mysql_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mysql_ssh_tunnel_method_password_authentication`
@@ -72,8 +66,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -86,8 +78,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -95,11 +85,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_mysql_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mysql_update_ssh_tunnel_method_password_authentication`
@@ -107,8 +92,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -121,8 +104,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_oracle.md b/docs/data-sources/destination_oracle.md
index b7287088b..ee4105448 100644
--- a/docs/data-sources/destination_oracle.md
+++ b/docs/data-sources/destination_oracle.md
@@ -36,7 +36,6 @@ data "airbyte_destination_oracle" "my_destination_oracle" {
Read-Only:
-- `destination_type` (String) must be one of ["oracle"]
- `host` (String) The hostname of the database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) The password associated with the username.
@@ -61,11 +60,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_oracle_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_oracle_ssh_tunnel_method_password_authentication`
@@ -73,8 +67,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -87,8 +79,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -96,11 +86,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_oracle_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_oracle_update_ssh_tunnel_method_password_authentication`
@@ -108,8 +93,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -122,8 +105,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_pinecone.md b/docs/data-sources/destination_pinecone.md
index a8cbc6933..e9b446adf 100644
--- a/docs/data-sources/destination_pinecone.md
+++ b/docs/data-sources/destination_pinecone.md
@@ -36,7 +36,6 @@ data "airbyte_destination_pinecone" "my_destination_pinecone" {
Read-Only:
-- `destination_type` (String) must be one of ["pinecone"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Pinecone is a popular vector store that can be used to store and retrieve embeddings. (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -59,23 +58,17 @@ Read-Only:
Read-Only:
- `cohere_key` (String)
-- `mode` (String) must be one of ["cohere"]
### Nested Schema for `configuration.embedding.destination_pinecone_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_embedding_open_ai`
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
@@ -85,23 +78,17 @@ Read-Only:
Read-Only:
- `cohere_key` (String)
-- `mode` (String) must be one of ["cohere"]
### Nested Schema for `configuration.embedding.destination_pinecone_update_embedding_fake`
-Read-Only:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_update_embedding_open_ai`
Read-Only:
-- `mode` (String) must be one of ["openai"]
- `openai_key` (String)
diff --git a/docs/data-sources/destination_postgres.md b/docs/data-sources/destination_postgres.md
index c61ff7598..2fd01a285 100644
--- a/docs/data-sources/destination_postgres.md
+++ b/docs/data-sources/destination_postgres.md
@@ -37,7 +37,6 @@ data "airbyte_destination_postgres" "my_destination_postgres" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["postgres"]
- `host` (String) Hostname of the database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
@@ -75,34 +74,18 @@ Read-Only:
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_allow`
-Read-Only:
-
-- `mode` (String) must be one of ["allow"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_disable`
-Read-Only:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_prefer`
-Read-Only:
-
-- `mode` (String) must be one of ["prefer"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_require`
-Read-Only:
-
-- `mode` (String) must be one of ["require"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_verify_ca`
@@ -111,7 +94,6 @@ Read-Only:
- `ca_certificate` (String) CA certificate
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
@@ -123,40 +105,23 @@ Read-Only:
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_allow`
-Read-Only:
-
-- `mode` (String) must be one of ["allow"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_disable`
-Read-Only:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_prefer`
-Read-Only:
-
-- `mode` (String) must be one of ["prefer"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_require`
-Read-Only:
-
-- `mode` (String) must be one of ["require"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_verify_ca`
@@ -165,7 +130,6 @@ Read-Only:
- `ca_certificate` (String) CA certificate
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
@@ -177,7 +141,6 @@ Read-Only:
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
@@ -196,11 +159,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_postgres_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_postgres_ssh_tunnel_method_password_authentication`
@@ -208,8 +166,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -222,8 +178,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -231,11 +185,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_postgres_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_postgres_update_ssh_tunnel_method_password_authentication`
@@ -243,8 +192,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -257,8 +204,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_pubsub.md b/docs/data-sources/destination_pubsub.md
index 251e0d5d8..a9af9f8eb 100644
--- a/docs/data-sources/destination_pubsub.md
+++ b/docs/data-sources/destination_pubsub.md
@@ -41,7 +41,6 @@ Read-Only:
- `batching_enabled` (Boolean) If TRUE messages will be buffered instead of sending them one by one
- `batching_request_bytes_threshold` (Number) Number of bytes before the buffer is flushed
- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key.
-- `destination_type` (String) must be one of ["pubsub"]
- `ordering_enabled` (Boolean) If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream
- `project_id` (String) The GCP project ID for the project containing the target PubSub.
- `topic_id` (String) The PubSub topic ID in the given GCP project ID.
diff --git a/docs/data-sources/destination_redis.md b/docs/data-sources/destination_redis.md
index 8dce9b1fa..3e58e86bd 100644
--- a/docs/data-sources/destination_redis.md
+++ b/docs/data-sources/destination_redis.md
@@ -38,7 +38,6 @@ Read-Only:
- `cache_type` (String) must be one of ["hash"]
Redis cache type to store data in.
-- `destination_type` (String) must be one of ["redis"]
- `host` (String) Redis host to connect to.
- `password` (String) Password associated with Redis.
- `port` (Number) Port of Redis.
@@ -61,10 +60,6 @@ Read-Only:
### Nested Schema for `configuration.ssl_mode.destination_redis_ssl_modes_disable`
-Read-Only:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_redis_ssl_modes_verify_full`
@@ -75,16 +70,11 @@ Read-Only:
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
### Nested Schema for `configuration.ssl_mode.destination_redis_update_ssl_modes_disable`
-Read-Only:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_redis_update_ssl_modes_verify_full`
@@ -95,7 +85,6 @@ Read-Only:
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
@@ -114,11 +103,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_redis_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redis_ssh_tunnel_method_password_authentication`
@@ -126,8 +110,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -140,8 +122,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -149,11 +129,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_redis_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redis_update_ssh_tunnel_method_password_authentication`
@@ -161,8 +136,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -175,8 +148,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_redshift.md b/docs/data-sources/destination_redshift.md
index b0775d232..ed8985c3a 100644
--- a/docs/data-sources/destination_redshift.md
+++ b/docs/data-sources/destination_redshift.md
@@ -37,7 +37,6 @@ data "airbyte_destination_redshift" "my_destination_redshift" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["redshift"]
- `host` (String) Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com)
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
@@ -62,11 +61,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_redshift_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redshift_ssh_tunnel_method_password_authentication`
@@ -74,8 +68,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -88,8 +80,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -97,11 +87,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_redshift_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redshift_update_ssh_tunnel_method_password_authentication`
@@ -109,8 +94,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -123,8 +106,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -149,7 +130,6 @@ Read-Only:
- `encryption` (Attributes) How to encrypt the staging data (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_update_uploading_method_s3_staging--encryption))
- `file_buffer_count` (Number) Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
-- `method` (String) must be one of ["S3 Staging"]
- `purge_staging_data` (Boolean) Whether to delete the staging files from S3 after completing the sync. See docs for details.
- `s3_bucket_name` (String) The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
@@ -170,27 +150,18 @@ Read-Only:
Read-Only:
-- `encryption_type` (String) must be one of ["aes_cbc_envelope"]
- `key_encrypting_key` (String) The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.secret_access_key.destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption`
-Read-Only:
-
-- `encryption_type` (String) must be one of ["none"]
-
### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_standard`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging`
@@ -201,7 +172,6 @@ Read-Only:
- `encryption` (Attributes) How to encrypt the staging data (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_uploading_method_s3_staging--encryption))
- `file_buffer_count` (Number) Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
-- `method` (String) must be one of ["S3 Staging"]
- `purge_staging_data` (Boolean) Whether to delete the staging files from S3 after completing the sync. See docs for details.
- `s3_bucket_name` (String) The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
@@ -222,25 +192,16 @@ Read-Only:
Read-Only:
-- `encryption_type` (String) must be one of ["aes_cbc_envelope"]
- `key_encrypting_key` (String) The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.secret_access_key.destination_redshift_uploading_method_s3_staging_encryption_no_encryption`
-Read-Only:
-
-- `encryption_type` (String) must be one of ["none"]
-
### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_standard`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/data-sources/destination_s3.md b/docs/data-sources/destination_s3.md
index 16f8d2284..b3853a9ca 100644
--- a/docs/data-sources/destination_s3.md
+++ b/docs/data-sources/destination_s3.md
@@ -37,7 +37,6 @@ data "airbyte_destination_s3" "my_destination_s3" {
Read-Only:
- `access_key_id` (String) The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
-- `destination_type` (String) must be one of ["s3"]
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `format` (Attributes) Format of the data output. See here for more details (see [below for nested schema](#nestedatt--configuration--format))
- `s3_bucket_name` (String) The name of the S3 bucket. Read more here.
diff --git a/docs/data-sources/destination_s3_glue.md b/docs/data-sources/destination_s3_glue.md
index a9268a9b1..717b20e03 100644
--- a/docs/data-sources/destination_s3_glue.md
+++ b/docs/data-sources/destination_s3_glue.md
@@ -37,7 +37,6 @@ data "airbyte_destination_s3_glue" "my_destination_s3glue" {
Read-Only:
- `access_key_id` (String) The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
-- `destination_type` (String) must be one of ["s3-glue"]
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `format` (Attributes) Format of the data output. See here for more details (see [below for nested schema](#nestedatt--configuration--format))
- `glue_database` (String) Name of the glue database for creating the tables, leave blank if no integration
diff --git a/docs/data-sources/destination_sftp_json.md b/docs/data-sources/destination_sftp_json.md
index 8cf448197..b1a425078 100644
--- a/docs/data-sources/destination_sftp_json.md
+++ b/docs/data-sources/destination_sftp_json.md
@@ -37,7 +37,6 @@ data "airbyte_destination_sftp_json" "my_destination_sftpjson" {
Read-Only:
- `destination_path` (String) Path to the directory where json files will be written.
-- `destination_type` (String) must be one of ["sftp-json"]
- `host` (String) Hostname of the SFTP server.
- `password` (String) Password associated with the username.
- `port` (Number) Port of the SFTP server.
diff --git a/docs/data-sources/destination_snowflake.md b/docs/data-sources/destination_snowflake.md
index b68969f18..093d2e10f 100644
--- a/docs/data-sources/destination_snowflake.md
+++ b/docs/data-sources/destination_snowflake.md
@@ -38,7 +38,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `database` (String) Enter the name of the database you want to sync data into
-- `destination_type` (String) must be one of ["snowflake"]
- `host` (String) Enter your Snowflake account's locator (in the format ...snowflakecomputing.com)
- `jdbc_url_params` (String) Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3
- `raw_data_schema` (String) The schema to write raw tables into
@@ -64,7 +63,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Key Pair Authentication"]
- `private_key` (String) RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.
- `private_key_password` (String) Passphrase for private key
@@ -75,7 +73,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Enter you application's Access Token
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) Enter your application's Client ID
- `client_secret` (String) Enter your application's Client secret
- `refresh_token` (String) Enter your application's Refresh Token
@@ -86,7 +83,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Username and Password"]
- `password` (String) Enter the password associated with the username.
@@ -95,7 +91,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Key Pair Authentication"]
- `private_key` (String) RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.
- `private_key_password` (String) Passphrase for private key
@@ -106,7 +101,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Enter you application's Access Token
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) Enter your application's Client ID
- `client_secret` (String) Enter your application's Client secret
- `refresh_token` (String) Enter your application's Refresh Token
@@ -117,7 +111,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Username and Password"]
- `password` (String) Enter the password associated with the username.
diff --git a/docs/data-sources/destination_timeplus.md b/docs/data-sources/destination_timeplus.md
index bcb2d32d3..b1311982f 100644
--- a/docs/data-sources/destination_timeplus.md
+++ b/docs/data-sources/destination_timeplus.md
@@ -37,7 +37,6 @@ data "airbyte_destination_timeplus" "my_destination_timeplus" {
Read-Only:
- `apikey` (String) Personal API key
-- `destination_type` (String) must be one of ["timeplus"]
- `endpoint` (String) Timeplus workspace endpoint
diff --git a/docs/data-sources/destination_typesense.md b/docs/data-sources/destination_typesense.md
index 11db436ef..2ce9e4a55 100644
--- a/docs/data-sources/destination_typesense.md
+++ b/docs/data-sources/destination_typesense.md
@@ -38,7 +38,6 @@ Read-Only:
- `api_key` (String) Typesense API Key
- `batch_size` (Number) How many documents should be imported together. Default 1000
-- `destination_type` (String) must be one of ["typesense"]
- `host` (String) Hostname of the Typesense instance without protocol.
- `port` (String) Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443
- `protocol` (String) Protocol of the Typesense instance. Ex: http or https. Default is https
diff --git a/docs/data-sources/destination_vertica.md b/docs/data-sources/destination_vertica.md
index 64ef4c6c5..01b8e1fc9 100644
--- a/docs/data-sources/destination_vertica.md
+++ b/docs/data-sources/destination_vertica.md
@@ -37,7 +37,6 @@ data "airbyte_destination_vertica" "my_destination_vertica" {
Read-Only:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["vertica"]
- `host` (String) Hostname of the database.
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
@@ -61,11 +60,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.destination_vertica_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_vertica_ssh_tunnel_method_password_authentication`
@@ -73,8 +67,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -87,8 +79,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -96,11 +86,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.destination_vertica_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_vertica_update_ssh_tunnel_method_password_authentication`
@@ -108,8 +93,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -122,8 +105,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/destination_xata.md b/docs/data-sources/destination_xata.md
index f12a84d10..f86eebc19 100644
--- a/docs/data-sources/destination_xata.md
+++ b/docs/data-sources/destination_xata.md
@@ -38,6 +38,5 @@ Read-Only:
- `api_key` (String) API Key to connect.
- `db_url` (String) URL pointing to your workspace.
-- `destination_type` (String) must be one of ["xata"]
diff --git a/docs/data-sources/source_aha.md b/docs/data-sources/source_aha.md
index a3e136563..2a9835114 100644
--- a/docs/data-sources/source_aha.md
+++ b/docs/data-sources/source_aha.md
@@ -42,7 +42,6 @@ data "airbyte_source_aha" "my_source_aha" {
Read-Only:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["aha"]
- `url` (String) URL
diff --git a/docs/data-sources/source_aircall.md b/docs/data-sources/source_aircall.md
index 92a28f479..faa92e71a 100644
--- a/docs/data-sources/source_aircall.md
+++ b/docs/data-sources/source_aircall.md
@@ -43,7 +43,6 @@ Read-Only:
- `api_id` (String) App ID found at settings https://dashboard.aircall.io/integrations/api-keys
- `api_token` (String) App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys)
-- `source_type` (String) must be one of ["aircall"]
- `start_date` (String) Date time filter for incremental filter, Specify which date to extract from.
diff --git a/docs/data-sources/source_airtable.md b/docs/data-sources/source_airtable.md
index f8f218990..2bfd5cd64 100644
--- a/docs/data-sources/source_airtable.md
+++ b/docs/data-sources/source_airtable.md
@@ -42,7 +42,6 @@ data "airbyte_source_airtable" "my_source_airtable" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["airtable"]
### Nested Schema for `configuration.credentials`
@@ -60,7 +59,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The client ID of the Airtable developer application.
- `client_secret` (String) The client secret the Airtable developer application.
- `refresh_token` (String) The key to refresh the expired access token.
@@ -73,7 +71,6 @@ Read-Only:
Read-Only:
- `api_key` (String) The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
-- `auth_method` (String) must be one of ["api_key"]
@@ -82,7 +79,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The client ID of the Airtable developer application.
- `client_secret` (String) The client secret the Airtable developer application.
- `refresh_token` (String) The key to refresh the expired access token.
@@ -95,6 +91,5 @@ Read-Only:
Read-Only:
- `api_key` (String) The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
-- `auth_method` (String) must be one of ["api_key"]
diff --git a/docs/data-sources/source_alloydb.md b/docs/data-sources/source_alloydb.md
index 05cae8890..5445309fc 100644
--- a/docs/data-sources/source_alloydb.md
+++ b/docs/data-sources/source_alloydb.md
@@ -48,7 +48,6 @@ Read-Only:
- `port` (Number) Port of the database.
- `replication_method` (Attributes) Replication method for extracting data from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
- `schemas` (List of String) The list of schemas (case sensitive) to sync from. Defaults to public.
-- `source_type` (String) must be one of ["alloydb"]
- `ssl_mode` (Attributes) SSL connection modes.
Read more in the docs. (see [below for nested schema](#nestedatt--configuration--ssl_mode))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -69,16 +68,12 @@ Read-Only:
### Nested Schema for `configuration.replication_method.source_alloydb_replication_method_logical_replication_cdc`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- `lsn_commit_behaviour` (String) must be one of ["While reading Data", "After loading Data in the destination"]
Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
-- `method` (String) must be one of ["CDC"]
- `plugin` (String) must be one of ["pgoutput"]
A logical decoding plugin installed on the PostgreSQL server.
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
@@ -89,32 +84,20 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_alloydb_replication_method_standard`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_replication_method_standard_xmin`
-Read-Only:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_logical_replication_cdc`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- `lsn_commit_behaviour` (String) must be one of ["While reading Data", "After loading Data in the destination"]
Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
-- `method` (String) must be one of ["CDC"]
- `plugin` (String) must be one of ["pgoutput"]
A logical decoding plugin installed on the PostgreSQL server.
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
@@ -125,18 +108,10 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_standard`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_standard_xmin`
-Read-Only:
-
-- `method` (String) must be one of ["Xmin"]
-
@@ -160,161 +135,113 @@ Read-Only:
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_allow`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["allow"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_disable`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["disable"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_prefer`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["prefer"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_require`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["require"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_verify_ca`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_verify_full`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_allow`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["allow"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_disable`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["disable"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_prefer`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["prefer"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_require`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["require"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_verify_ca`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_verify_full`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
@@ -333,11 +260,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_alloydb_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_alloydb_ssh_tunnel_method_password_authentication`
@@ -345,8 +267,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -359,8 +279,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -368,11 +286,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_alloydb_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_alloydb_update_ssh_tunnel_method_password_authentication`
@@ -380,8 +293,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -394,8 +305,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_amazon_ads.md b/docs/data-sources/source_amazon_ads.md
index e320fca0e..26ebc750a 100644
--- a/docs/data-sources/source_amazon_ads.md
+++ b/docs/data-sources/source_amazon_ads.md
@@ -41,7 +41,6 @@ data "airbyte_source_amazon_ads" "my_source_amazonads" {
Read-Only:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The client ID of your Amazon Ads developer application. See the docs for more information.
- `client_secret` (String) The client secret of your Amazon Ads developer application. See the docs for more information.
- `look_back_window` (Number) The amount of days to go back in time to get the updated data from Amazon Ads
@@ -51,7 +50,6 @@ Read-Only:
- `region` (String) must be one of ["NA", "EU", "FE"]
Region to pull data from (EU/NA/FE). See docs for more details.
- `report_record_types` (List of String) Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See docs for more details
-- `source_type` (String) must be one of ["amazon-ads"]
- `start_date` (String) The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format
- `state_filter` (List of String) Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely.
diff --git a/docs/data-sources/source_amazon_seller_partner.md b/docs/data-sources/source_amazon_seller_partner.md
index 282501471..f8f6d8ced 100644
--- a/docs/data-sources/source_amazon_seller_partner.md
+++ b/docs/data-sources/source_amazon_seller_partner.md
@@ -42,7 +42,6 @@ data "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" {
Read-Only:
- `advanced_stream_options` (String) Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `aws_access_key` (String) Specifies the AWS access key used as part of the credentials to authenticate the user.
- `aws_environment` (String) must be one of ["PRODUCTION", "SANDBOX"]
Select the AWS Environment.
@@ -58,6 +57,5 @@ Select the AWS Region.
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `report_options` (String) Additional information passed to reports. This varies by report type. Must be a valid json string.
- `role_arn` (String) Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).
-- `source_type` (String) must be one of ["amazon-seller-partner"]
diff --git a/docs/data-sources/source_amazon_sqs.md b/docs/data-sources/source_amazon_sqs.md
index eac98b0d0..cc068b926 100644
--- a/docs/data-sources/source_amazon_sqs.md
+++ b/docs/data-sources/source_amazon_sqs.md
@@ -50,7 +50,6 @@ Read-Only:
- `region` (String) must be one of ["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
AWS Region of the SQS Queue
- `secret_key` (String) The Secret Key of the AWS IAM Role to use for pulling messages
-- `source_type` (String) must be one of ["amazon-sqs"]
- `visibility_timeout` (Number) Modify the Visibility Timeout of the individual message from the Queue's default (seconds).
diff --git a/docs/data-sources/source_amplitude.md b/docs/data-sources/source_amplitude.md
index 0df5b2607..b1a672274 100644
--- a/docs/data-sources/source_amplitude.md
+++ b/docs/data-sources/source_amplitude.md
@@ -46,7 +46,6 @@ Read-Only:
Amplitude data region server
- `request_time_range` (Number) According to Considerations too big time range in request can cause a timeout error. In this case, set shorter time interval in hours.
- `secret_key` (String) Amplitude Secret Key. See the setup guide for more information on how to obtain this key.
-- `source_type` (String) must be one of ["amplitude"]
- `start_date` (String) UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_apify_dataset.md b/docs/data-sources/source_apify_dataset.md
index 3a3966b70..02302c520 100644
--- a/docs/data-sources/source_apify_dataset.md
+++ b/docs/data-sources/source_apify_dataset.md
@@ -43,7 +43,6 @@ Read-Only:
- `clean` (Boolean) If set to true, only clean items will be downloaded from the dataset. See description of what clean means in Apify API docs. If not sure, set clean to false.
- `dataset_id` (String) ID of the dataset you would like to load to Airbyte.
-- `source_type` (String) must be one of ["apify-dataset"]
- `token` (String) Your application's Client Secret. You can find this value on the console integrations tab after you login.
diff --git a/docs/data-sources/source_appfollow.md b/docs/data-sources/source_appfollow.md
index f6692d321..f72ec9784 100644
--- a/docs/data-sources/source_appfollow.md
+++ b/docs/data-sources/source_appfollow.md
@@ -42,6 +42,5 @@ data "airbyte_source_appfollow" "my_source_appfollow" {
Read-Only:
- `api_secret` (String) API Key provided by Appfollow
-- `source_type` (String) must be one of ["appfollow"]
diff --git a/docs/data-sources/source_asana.md b/docs/data-sources/source_asana.md
index ce10ec949..f485d3fc0 100644
--- a/docs/data-sources/source_asana.md
+++ b/docs/data-sources/source_asana.md
@@ -42,7 +42,6 @@ data "airbyte_source_asana" "my_source_asana" {
Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Github (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["asana"]
### Nested Schema for `configuration.credentials`
@@ -61,8 +60,6 @@ Read-Only:
- `client_id` (String)
- `client_secret` (String)
-- `option_title` (String) must be one of ["OAuth Credentials"]
-OAuth Credentials
- `refresh_token` (String)
@@ -71,8 +68,6 @@ OAuth Credentials
Read-Only:
-- `option_title` (String) must be one of ["PAT Credentials"]
-PAT Credentials
- `personal_access_token` (String) Asana Personal Access Token (generate yours here).
@@ -83,8 +78,6 @@ Read-Only:
- `client_id` (String)
- `client_secret` (String)
-- `option_title` (String) must be one of ["OAuth Credentials"]
-OAuth Credentials
- `refresh_token` (String)
@@ -93,8 +86,6 @@ OAuth Credentials
Read-Only:
-- `option_title` (String) must be one of ["PAT Credentials"]
-PAT Credentials
- `personal_access_token` (String) Asana Personal Access Token (generate yours here).
diff --git a/docs/data-sources/source_auth0.md b/docs/data-sources/source_auth0.md
index c7ff792a7..b75c6e04d 100644
--- a/docs/data-sources/source_auth0.md
+++ b/docs/data-sources/source_auth0.md
@@ -43,7 +43,6 @@ Read-Only:
- `base_url` (String) The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN`
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["auth0"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
-- `auth_type` (String) must be one of ["oauth2_access_token"]
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
- `audience` (String) The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
-- `auth_type` (String) must be one of ["oauth2_confidential_application"]
- `client_id` (String) Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
- `client_secret` (String) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
@@ -82,7 +79,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
-- `auth_type` (String) must be one of ["oauth2_access_token"]
@@ -91,7 +87,6 @@ Read-Only:
Read-Only:
- `audience` (String) The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
-- `auth_type` (String) must be one of ["oauth2_confidential_application"]
- `client_id` (String) Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
- `client_secret` (String) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
diff --git a/docs/data-sources/source_aws_cloudtrail.md b/docs/data-sources/source_aws_cloudtrail.md
index 6f81d4c8c..27c948558 100644
--- a/docs/data-sources/source_aws_cloudtrail.md
+++ b/docs/data-sources/source_aws_cloudtrail.md
@@ -44,7 +44,6 @@ Read-Only:
- `aws_key_id` (String) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
- `aws_region_name` (String) The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name.
- `aws_secret_key` (String) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["aws-cloudtrail"]
- `start_date` (String) The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
diff --git a/docs/data-sources/source_azure_blob_storage.md b/docs/data-sources/source_azure_blob_storage.md
index 44564f923..9090d240d 100644
--- a/docs/data-sources/source_azure_blob_storage.md
+++ b/docs/data-sources/source_azure_blob_storage.md
@@ -48,7 +48,6 @@ Read-Only:
- `azure_blob_storage_endpoint` (String) This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- `azure_blob_storage_schema_inference_limit` (Number) The Azure blob storage blobs to scan for inferring the schema, useful on large amounts of data with consistent structure
- `format` (Attributes) Input data format (see [below for nested schema](#nestedatt--configuration--format))
-- `source_type` (String) must be one of ["azure-blob-storage"]
### Nested Schema for `configuration.format`
@@ -61,16 +60,8 @@ Read-Only:
### Nested Schema for `configuration.format.source_azure_blob_storage_input_format_json_lines_newline_delimited_json`
-Read-Only:
-
-- `format_type` (String) must be one of ["JSONL"]
-
### Nested Schema for `configuration.format.source_azure_blob_storage_update_input_format_json_lines_newline_delimited_json`
-Read-Only:
-
-- `format_type` (String) must be one of ["JSONL"]
-
diff --git a/docs/data-sources/source_azure_table.md b/docs/data-sources/source_azure_table.md
index ce642ddde..ec6e10512 100644
--- a/docs/data-sources/source_azure_table.md
+++ b/docs/data-sources/source_azure_table.md
@@ -41,7 +41,6 @@ data "airbyte_source_azure_table" "my_source_azuretable" {
Read-Only:
-- `source_type` (String) must be one of ["azure-table"]
- `storage_access_key` (String) Azure Table Storage Access Key. See the docs for more information on how to obtain this key.
- `storage_account_name` (String) The name of your storage account.
- `storage_endpoint_suffix` (String) Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix
diff --git a/docs/data-sources/source_bamboo_hr.md b/docs/data-sources/source_bamboo_hr.md
index ce7015f56..cfe24386a 100644
--- a/docs/data-sources/source_bamboo_hr.md
+++ b/docs/data-sources/source_bamboo_hr.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Api key of bamboo hr
- `custom_reports_fields` (String) Comma-separated list of fields to include in custom reports.
- `custom_reports_include_default_fields` (Boolean) If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names.
-- `source_type` (String) must be one of ["bamboo-hr"]
- `subdomain` (String) Sub Domain of bamboo hr
diff --git a/docs/data-sources/source_bigcommerce.md b/docs/data-sources/source_bigcommerce.md
index 7d420141a..4c0d42096 100644
--- a/docs/data-sources/source_bigcommerce.md
+++ b/docs/data-sources/source_bigcommerce.md
@@ -42,7 +42,6 @@ data "airbyte_source_bigcommerce" "my_source_bigcommerce" {
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `source_type` (String) must be one of ["bigcommerce"]
- `start_date` (String) The date you would like to replicate data. Format: YYYY-MM-DD.
- `store_hash` (String) The hash code of the store. For https://api.bigcommerce.com/stores/HASH_CODE/v3/, The store's hash code is 'HASH_CODE'.
diff --git a/docs/data-sources/source_bigquery.md b/docs/data-sources/source_bigquery.md
index 23d78ce2d..cbb6f9f2a 100644
--- a/docs/data-sources/source_bigquery.md
+++ b/docs/data-sources/source_bigquery.md
@@ -44,6 +44,5 @@ Read-Only:
- `credentials_json` (String) The contents of your Service Account Key JSON file. See the docs for more information on how to obtain this key.
- `dataset_id` (String) The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery.
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset.
-- `source_type` (String) must be one of ["bigquery"]
diff --git a/docs/data-sources/source_bing_ads.md b/docs/data-sources/source_bing_ads.md
index fcc29989b..52a8333e8 100644
--- a/docs/data-sources/source_bing_ads.md
+++ b/docs/data-sources/source_bing_ads.md
@@ -41,14 +41,12 @@ data "airbyte_source_bing_ads" "my_source_bingads" {
Read-Only:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your Microsoft Advertising developer application.
- `client_secret` (String) The Client Secret of your Microsoft Advertising developer application.
- `developer_token` (String) Developer token associated with user. See more info in the docs.
- `lookback_window` (Number) Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
- `reports_start_date` (String) The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.
-- `source_type` (String) must be one of ["bing-ads"]
- `tenant_id` (String) The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.
diff --git a/docs/data-sources/source_braintree.md b/docs/data-sources/source_braintree.md
index 3cdae9dbd..a7b3d3e98 100644
--- a/docs/data-sources/source_braintree.md
+++ b/docs/data-sources/source_braintree.md
@@ -46,7 +46,6 @@ Environment specifies where the data will come from.
- `merchant_id` (String) The unique identifier for your entire gateway account. See the docs for more information on how to obtain this ID.
- `private_key` (String) Braintree Private Key. See the docs for more information on how to obtain this key.
- `public_key` (String) Braintree Public Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["braintree"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_braze.md b/docs/data-sources/source_braze.md
index acc47cbcf..0e68093c3 100644
--- a/docs/data-sources/source_braze.md
+++ b/docs/data-sources/source_braze.md
@@ -42,7 +42,6 @@ data "airbyte_source_braze" "my_source_braze" {
Read-Only:
- `api_key` (String) Braze REST API key
-- `source_type` (String) must be one of ["braze"]
- `start_date` (String) Rows after this date will be synced
- `url` (String) Braze REST API endpoint
diff --git a/docs/data-sources/source_chargebee.md b/docs/data-sources/source_chargebee.md
index 212dfba5d..41083a559 100644
--- a/docs/data-sources/source_chargebee.md
+++ b/docs/data-sources/source_chargebee.md
@@ -45,7 +45,6 @@ Read-Only:
Product Catalog version of your Chargebee site. Instructions on how to find your version you may find here under `API Version` section.
- `site` (String) The site prefix for your Chargebee instance.
- `site_api_key` (String) Chargebee API Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["chargebee"]
- `start_date` (String) UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_chartmogul.md b/docs/data-sources/source_chartmogul.md
index 81ddb13bf..02163b1e0 100644
--- a/docs/data-sources/source_chartmogul.md
+++ b/docs/data-sources/source_chartmogul.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Your Chartmogul API key. See the docs for info on how to obtain this.
- `interval` (String) must be one of ["day", "week", "month", "quarter"]
Some APIs such as Metrics require intervals to cluster data.
-- `source_type` (String) must be one of ["chartmogul"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated.
diff --git a/docs/data-sources/source_clickhouse.md b/docs/data-sources/source_clickhouse.md
index ae49b9271..79dc1f5cb 100644
--- a/docs/data-sources/source_clickhouse.md
+++ b/docs/data-sources/source_clickhouse.md
@@ -45,7 +45,6 @@ Read-Only:
- `host` (String) The host endpoint of the Clickhouse cluster.
- `password` (String) The password associated with this username.
- `port` (Number) The port of the database.
-- `source_type` (String) must be one of ["clickhouse"]
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
- `username` (String) The username which is used to access the database.
@@ -64,11 +63,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_clickhouse_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_clickhouse_ssh_tunnel_method_password_authentication`
@@ -76,8 +70,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -90,8 +82,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -99,11 +89,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_clickhouse_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_clickhouse_update_ssh_tunnel_method_password_authentication`
@@ -111,8 +96,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -125,8 +108,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_clickup_api.md b/docs/data-sources/source_clickup_api.md
index 9ebe039a3..9f8d3ea3d 100644
--- a/docs/data-sources/source_clickup_api.md
+++ b/docs/data-sources/source_clickup_api.md
@@ -45,7 +45,6 @@ Read-Only:
- `folder_id` (String) The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here.
- `include_closed_tasks` (Boolean) Include or exclude closed tasks. By default, they are excluded. See here.
- `list_id` (String) The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here.
-- `source_type` (String) must be one of ["clickup-api"]
- `space_id` (String) The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here.
- `team_id` (String) The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here.
diff --git a/docs/data-sources/source_clockify.md b/docs/data-sources/source_clockify.md
index 7cd00cd81..fdae7c55f 100644
--- a/docs/data-sources/source_clockify.md
+++ b/docs/data-sources/source_clockify.md
@@ -43,7 +43,6 @@ Read-Only:
- `api_key` (String) You can get your api access_key here This API is Case Sensitive.
- `api_url` (String) The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify.
-- `source_type` (String) must be one of ["clockify"]
- `workspace_id` (String) WorkSpace Id
diff --git a/docs/data-sources/source_close_com.md b/docs/data-sources/source_close_com.md
index 0da7ff227..ac7f309f7 100644
--- a/docs/data-sources/source_close_com.md
+++ b/docs/data-sources/source_close_com.md
@@ -42,7 +42,6 @@ data "airbyte_source_close_com" "my_source_closecom" {
Read-Only:
- `api_key` (String) Close.com API key (usually starts with 'api_'; find yours here).
-- `source_type` (String) must be one of ["close-com"]
- `start_date` (String) The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD.
diff --git a/docs/data-sources/source_coda.md b/docs/data-sources/source_coda.md
index 14ac64934..8491c2629 100644
--- a/docs/data-sources/source_coda.md
+++ b/docs/data-sources/source_coda.md
@@ -42,6 +42,5 @@ data "airbyte_source_coda" "my_source_coda" {
Read-Only:
- `auth_token` (String) Bearer token
-- `source_type` (String) must be one of ["coda"]
diff --git a/docs/data-sources/source_coin_api.md b/docs/data-sources/source_coin_api.md
index 85aabd87d..269ea565f 100644
--- a/docs/data-sources/source_coin_api.md
+++ b/docs/data-sources/source_coin_api.md
@@ -51,7 +51,6 @@ The environment to use. Either sandbox or production.
is 100. For numbers larger than 100, each 100 items is counted as one
request for pricing purposes. Maximum value is 100000.
- `period` (String) The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get
-- `source_type` (String) must be one of ["coin-api"]
- `start_date` (String) The start date in ISO 8601 format.
- `symbol_id` (String) The symbol ID to use. See the documentation for a list.
https://docs.coinapi.io/#list-all-symbols-get
diff --git a/docs/data-sources/source_coinmarketcap.md b/docs/data-sources/source_coinmarketcap.md
index 9427827f5..20f2f9b06 100644
--- a/docs/data-sources/source_coinmarketcap.md
+++ b/docs/data-sources/source_coinmarketcap.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Your API Key. See here. The token is case sensitive.
- `data_type` (String) must be one of ["latest", "historical"]
/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See here.
-- `source_type` (String) must be one of ["coinmarketcap"]
- `symbols` (List of String) Cryptocurrency symbols. (only used for quotes stream)
diff --git a/docs/data-sources/source_configcat.md b/docs/data-sources/source_configcat.md
index c12e0b154..dd6bbc8d7 100644
--- a/docs/data-sources/source_configcat.md
+++ b/docs/data-sources/source_configcat.md
@@ -42,7 +42,6 @@ data "airbyte_source_configcat" "my_source_configcat" {
Read-Only:
- `password` (String) Basic auth password. See here.
-- `source_type` (String) must be one of ["configcat"]
- `username` (String) Basic auth user name. See here.
diff --git a/docs/data-sources/source_confluence.md b/docs/data-sources/source_confluence.md
index 13d270644..322b95e93 100644
--- a/docs/data-sources/source_confluence.md
+++ b/docs/data-sources/source_confluence.md
@@ -44,6 +44,5 @@ Read-Only:
- `api_token` (String) Please follow the Jira confluence for generating an API token: generating an API token.
- `domain_name` (String) Your Confluence domain name
- `email` (String) Your Confluence login email
-- `source_type` (String) must be one of ["confluence"]
diff --git a/docs/data-sources/source_convex.md b/docs/data-sources/source_convex.md
index 69ae8565c..e883fb512 100644
--- a/docs/data-sources/source_convex.md
+++ b/docs/data-sources/source_convex.md
@@ -43,6 +43,5 @@ Read-Only:
- `access_key` (String) API access key used to retrieve data from Convex.
- `deployment_url` (String)
-- `source_type` (String) must be one of ["convex"]
diff --git a/docs/data-sources/source_datascope.md b/docs/data-sources/source_datascope.md
index a0c83b327..b80a05e99 100644
--- a/docs/data-sources/source_datascope.md
+++ b/docs/data-sources/source_datascope.md
@@ -42,7 +42,6 @@ data "airbyte_source_datascope" "my_source_datascope" {
Read-Only:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["datascope"]
- `start_date` (String) Start date for the data to be replicated
diff --git a/docs/data-sources/source_delighted.md b/docs/data-sources/source_delighted.md
index 8a9f5ad3b..0cebdcd2d 100644
--- a/docs/data-sources/source_delighted.md
+++ b/docs/data-sources/source_delighted.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) A Delighted API key.
- `since` (String) The date from which you'd like to replicate the data
-- `source_type` (String) must be one of ["delighted"]
diff --git a/docs/data-sources/source_dixa.md b/docs/data-sources/source_dixa.md
index 8e131050d..0565c359b 100644
--- a/docs/data-sources/source_dixa.md
+++ b/docs/data-sources/source_dixa.md
@@ -43,7 +43,6 @@ Read-Only:
- `api_token` (String) Dixa API token
- `batch_size` (Number) Number of days to batch into one request. Max 31.
-- `source_type` (String) must be one of ["dixa"]
- `start_date` (String) The connector pulls records updated from this date onwards.
diff --git a/docs/data-sources/source_dockerhub.md b/docs/data-sources/source_dockerhub.md
index 089092ff2..eea890bd8 100644
--- a/docs/data-sources/source_dockerhub.md
+++ b/docs/data-sources/source_dockerhub.md
@@ -42,6 +42,5 @@ data "airbyte_source_dockerhub" "my_source_dockerhub" {
Read-Only:
- `docker_username` (String) Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)
-- `source_type` (String) must be one of ["dockerhub"]
diff --git a/docs/data-sources/source_dremio.md b/docs/data-sources/source_dremio.md
index e4e27aab9..11ef1666f 100644
--- a/docs/data-sources/source_dremio.md
+++ b/docs/data-sources/source_dremio.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) API Key that is generated when you authenticate to Dremio API
- `base_url` (String) URL of your Dremio instance
-- `source_type` (String) must be one of ["dremio"]
diff --git a/docs/data-sources/source_dynamodb.md b/docs/data-sources/source_dynamodb.md
index fb4e21664..435786520 100644
--- a/docs/data-sources/source_dynamodb.md
+++ b/docs/data-sources/source_dynamodb.md
@@ -47,6 +47,5 @@ Read-Only:
The region of the Dynamodb database
- `reserved_attribute_names` (String) Comma separated reserved attribute names present in your tables
- `secret_access_key` (String) The corresponding secret to the access key id.
-- `source_type` (String) must be one of ["dynamodb"]
diff --git a/docs/data-sources/source_e2e_test_cloud.md b/docs/data-sources/source_e2e_test_cloud.md
index 9cda57220..63d72e3ad 100644
--- a/docs/data-sources/source_e2e_test_cloud.md
+++ b/docs/data-sources/source_e2e_test_cloud.md
@@ -45,8 +45,6 @@ Read-Only:
- `message_interval_ms` (Number) Interval between messages in ms. Min 0 ms. Max 60000 ms (1 minute).
- `mock_catalog` (Attributes) (see [below for nested schema](#nestedatt--configuration--mock_catalog))
- `seed` (Number) When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].
-- `source_type` (String) must be one of ["e2e-test-cloud"]
-- `type` (String) must be one of ["CONTINUOUS_FEED"]
### Nested Schema for `configuration.mock_catalog`
@@ -64,7 +62,6 @@ Read-Only:
Read-Only:
- `stream_schemas` (String) A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["MULTI_STREAM"]
@@ -75,7 +72,6 @@ Read-Only:
- `stream_duplication` (Number) Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
- `stream_name` (String) Name of the data stream.
- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["SINGLE_STREAM"]
@@ -84,7 +80,6 @@ Read-Only:
Read-Only:
- `stream_schemas` (String) A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["MULTI_STREAM"]
@@ -95,6 +90,5 @@ Read-Only:
- `stream_duplication` (Number) Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
- `stream_name` (String) Name of the data stream.
- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["SINGLE_STREAM"]
diff --git a/docs/data-sources/source_emailoctopus.md b/docs/data-sources/source_emailoctopus.md
index c06821419..d17d6b36b 100644
--- a/docs/data-sources/source_emailoctopus.md
+++ b/docs/data-sources/source_emailoctopus.md
@@ -42,6 +42,5 @@ data "airbyte_source_emailoctopus" "my_source_emailoctopus" {
Read-Only:
- `api_key` (String) EmailOctopus API Key. See the docs for information on how to generate this key.
-- `source_type` (String) must be one of ["emailoctopus"]
diff --git a/docs/data-sources/source_exchange_rates.md b/docs/data-sources/source_exchange_rates.md
index 5656b0341..b0ce1b98c 100644
--- a/docs/data-sources/source_exchange_rates.md
+++ b/docs/data-sources/source_exchange_rates.md
@@ -44,7 +44,6 @@ Read-Only:
- `access_key` (String) Your API Key. See here. The key is case sensitive.
- `base` (String) ISO reference currency. See here. Free plan doesn't support Source Currency Switching, default base currency is EUR
- `ignore_weekends` (Boolean) Ignore weekends? (Exchanges don't run on weekends)
-- `source_type` (String) must be one of ["exchange-rates"]
- `start_date` (String) Start getting data from that date.
diff --git a/docs/data-sources/source_facebook_marketing.md b/docs/data-sources/source_facebook_marketing.md
index 37aac5827..f34c1877d 100644
--- a/docs/data-sources/source_facebook_marketing.md
+++ b/docs/data-sources/source_facebook_marketing.md
@@ -53,7 +53,6 @@ Read-Only:
- `insights_lookback_window` (Number) The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here.
- `max_batch_size` (Number) Maximum batch size used when sending batch requests to Facebook API. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
- `page_size` (Number) Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
-- `source_type` (String) must be one of ["facebook-marketing"]
- `start_date` (String) The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/data-sources/source_facebook_pages.md b/docs/data-sources/source_facebook_pages.md
index ae7b9d1a9..ba9c78ffb 100644
--- a/docs/data-sources/source_facebook_pages.md
+++ b/docs/data-sources/source_facebook_pages.md
@@ -43,6 +43,5 @@ Read-Only:
- `access_token` (String) Facebook Page Access Token
- `page_id` (String) Page ID
-- `source_type` (String) must be one of ["facebook-pages"]
diff --git a/docs/data-sources/source_faker.md b/docs/data-sources/source_faker.md
index 6abb65858..3375027d2 100644
--- a/docs/data-sources/source_faker.md
+++ b/docs/data-sources/source_faker.md
@@ -46,6 +46,5 @@ Read-Only:
- `parallelism` (Number) How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source.
- `records_per_slice` (Number) How many fake records will be in each page (stream slice), before a state message is emitted?
- `seed` (Number) Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)
-- `source_type` (String) must be one of ["faker"]
diff --git a/docs/data-sources/source_fauna.md b/docs/data-sources/source_fauna.md
index bc859a89e..92ca4ed5d 100644
--- a/docs/data-sources/source_fauna.md
+++ b/docs/data-sources/source_fauna.md
@@ -46,7 +46,6 @@ Read-Only:
- `port` (Number) Endpoint port.
- `scheme` (String) URL scheme.
- `secret` (String) Fauna secret, used when authenticating with the database.
-- `source_type` (String) must be one of ["fauna"]
### Nested Schema for `configuration.collection`
@@ -86,10 +85,6 @@ Enabled - Enables this feature. When a document is deleted, the connector export
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Read-Only:
-
-- `deletion_mode` (String) must be one of ["ignore"]
-
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
@@ -97,16 +92,11 @@ Read-Only:
Read-Only:
- `column` (String) Name of the "deleted at" column.
-- `deletion_mode` (String) must be one of ["deleted_field"]
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Read-Only:
-
-- `deletion_mode` (String) must be one of ["ignore"]
-
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
@@ -114,6 +104,5 @@ Read-Only:
Read-Only:
- `column` (String) Name of the "deleted at" column.
-- `deletion_mode` (String) must be one of ["deleted_field"]
diff --git a/docs/data-sources/source_file_secure.md b/docs/data-sources/source_file_secure.md
index eb24b43b7..579512b50 100644
--- a/docs/data-sources/source_file_secure.md
+++ b/docs/data-sources/source_file_secure.md
@@ -46,7 +46,6 @@ Read-Only:
The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs).
- `provider` (Attributes) The storage Provider or Location of the file(s) which should be replicated. (see [below for nested schema](#nestedatt--configuration--provider))
- `reader_options` (String) This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.
-- `source_type` (String) must be one of ["file-secure"]
- `url` (String) The URL path to access the file which should be replicated.
@@ -76,7 +75,6 @@ Read-Only:
- `sas_token` (String) To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary.
- `shared_key` (String) To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["AzBlob"]
- `storage_account` (String) The globally unique name of the storage account that the desired blob sits within. See here for more details.
@@ -86,7 +84,6 @@ Read-Only:
Read-Only:
- `service_account_json` (String) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["GCS"]
@@ -94,7 +91,6 @@ Read-Only:
Read-Only:
-- `storage` (String) must be one of ["HTTPS"]
- `user_agent` (Boolean) Add User-Agent to request
@@ -105,7 +101,6 @@ Read-Only:
- `aws_access_key_id` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
- `aws_secret_access_key` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["S3"]
@@ -116,7 +111,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SCP"]
- `user` (String)
@@ -128,7 +122,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SFTP"]
- `user` (String)
@@ -140,7 +133,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SSH"]
- `user` (String)
@@ -151,7 +143,6 @@ Read-Only:
- `sas_token` (String) To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary.
- `shared_key` (String) To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["AzBlob"]
- `storage_account` (String) The globally unique name of the storage account that the desired blob sits within. See here for more details.
@@ -161,7 +152,6 @@ Read-Only:
Read-Only:
- `service_account_json` (String) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["GCS"]
@@ -169,7 +159,6 @@ Read-Only:
Read-Only:
-- `storage` (String) must be one of ["HTTPS"]
- `user_agent` (Boolean) Add User-Agent to request
@@ -180,7 +169,6 @@ Read-Only:
- `aws_access_key_id` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
- `aws_secret_access_key` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
-- `storage` (String) must be one of ["S3"]
@@ -191,7 +179,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SCP"]
- `user` (String)
@@ -203,7 +190,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SFTP"]
- `user` (String)
@@ -215,7 +201,6 @@ Read-Only:
- `host` (String)
- `password` (String)
- `port` (String)
-- `storage` (String) must be one of ["SSH"]
- `user` (String)
diff --git a/docs/data-sources/source_firebolt.md b/docs/data-sources/source_firebolt.md
index d2b817259..d12b15cd4 100644
--- a/docs/data-sources/source_firebolt.md
+++ b/docs/data-sources/source_firebolt.md
@@ -46,7 +46,6 @@ Read-Only:
- `engine` (String) Engine name or url to connect to.
- `host` (String) The host name of your Firebolt database.
- `password` (String) Firebolt password.
-- `source_type` (String) must be one of ["firebolt"]
- `username` (String) Firebolt email address you use to login.
diff --git a/docs/data-sources/source_freshcaller.md b/docs/data-sources/source_freshcaller.md
index 68a9ae713..99daf1874 100644
--- a/docs/data-sources/source_freshcaller.md
+++ b/docs/data-sources/source_freshcaller.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Freshcaller API Key. See the docs for more information on how to obtain this key.
- `domain` (String) Used to construct Base URL for the Freshcaller APIs
- `requests_per_minute` (Number) The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.
-- `source_type` (String) must be one of ["freshcaller"]
- `start_date` (String) UTC date and time. Any data created after this date will be replicated.
- `sync_lag_minutes` (Number) Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched
diff --git a/docs/data-sources/source_freshdesk.md b/docs/data-sources/source_freshdesk.md
index 88ab4b73e..cdbf76708 100644
--- a/docs/data-sources/source_freshdesk.md
+++ b/docs/data-sources/source_freshdesk.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Freshdesk API Key. See the docs for more information on how to obtain this key.
- `domain` (String) Freshdesk domain
- `requests_per_minute` (Number) The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.
-- `source_type` (String) must be one of ["freshdesk"]
- `start_date` (String) UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated.
diff --git a/docs/data-sources/source_freshsales.md b/docs/data-sources/source_freshsales.md
index ceb870b50..2e97673a7 100644
--- a/docs/data-sources/source_freshsales.md
+++ b/docs/data-sources/source_freshsales.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) Freshsales API Key. See here. The key is case sensitive.
- `domain_name` (String) The Name of your Freshsales domain
-- `source_type` (String) must be one of ["freshsales"]
diff --git a/docs/data-sources/source_gainsight_px.md b/docs/data-sources/source_gainsight_px.md
index f464387d7..2ad66bf06 100644
--- a/docs/data-sources/source_gainsight_px.md
+++ b/docs/data-sources/source_gainsight_px.md
@@ -42,6 +42,5 @@ data "airbyte_source_gainsight_px" "my_source_gainsightpx" {
Read-Only:
- `api_key` (String) The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)
-- `source_type` (String) must be one of ["gainsight-px"]
diff --git a/docs/data-sources/source_gcs.md b/docs/data-sources/source_gcs.md
index df00cdc2a..5e3487f42 100644
--- a/docs/data-sources/source_gcs.md
+++ b/docs/data-sources/source_gcs.md
@@ -44,6 +44,5 @@ Read-Only:
- `gcs_bucket` (String) GCS bucket name
- `gcs_path` (String) GCS path to data
- `service_account` (String) Enter your Google Cloud service account key in JSON format
-- `source_type` (String) must be one of ["gcs"]
diff --git a/docs/data-sources/source_getlago.md b/docs/data-sources/source_getlago.md
index 0d1b331d4..a29778ddf 100644
--- a/docs/data-sources/source_getlago.md
+++ b/docs/data-sources/source_getlago.md
@@ -42,6 +42,5 @@ data "airbyte_source_getlago" "my_source_getlago" {
Read-Only:
- `api_key` (String) Your API Key. See here.
-- `source_type` (String) must be one of ["getlago"]
diff --git a/docs/data-sources/source_github.md b/docs/data-sources/source_github.md
index 439abaa9d..560a7e555 100644
--- a/docs/data-sources/source_github.md
+++ b/docs/data-sources/source_github.md
@@ -45,7 +45,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate to GitHub (see [below for nested schema](#nestedatt--configuration--credentials))
- `repository` (String) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories.
- `requests_per_hour` (Number) The GitHub API allows for a maximum of 5000 requests per hour (15000 for Github Enterprise). You can specify a lower value to limit your use of the API quota.
-- `source_type` (String) must be one of ["github"]
- `start_date` (String) The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info
@@ -66,7 +65,6 @@ Read-Only:
- `access_token` (String) OAuth access token
- `client_id` (String) OAuth Client Id
- `client_secret` (String) OAuth Client secret
-- `option_title` (String) must be one of ["OAuth Credentials"]
@@ -74,7 +72,6 @@ Read-Only:
Read-Only:
-- `option_title` (String) must be one of ["PAT Credentials"]
- `personal_access_token` (String) Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
@@ -86,7 +83,6 @@ Read-Only:
- `access_token` (String) OAuth access token
- `client_id` (String) OAuth Client Id
- `client_secret` (String) OAuth Client secret
-- `option_title` (String) must be one of ["OAuth Credentials"]
@@ -94,7 +90,6 @@ Read-Only:
Read-Only:
-- `option_title` (String) must be one of ["PAT Credentials"]
- `personal_access_token` (String) Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
diff --git a/docs/data-sources/source_gitlab.md b/docs/data-sources/source_gitlab.md
index 74e3c6d91..e6f5279af 100644
--- a/docs/data-sources/source_gitlab.md
+++ b/docs/data-sources/source_gitlab.md
@@ -45,7 +45,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `groups` (String) Space-delimited list of groups. e.g. airbyte.io.
- `projects` (String) Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab.
-- `source_type` (String) must be one of ["gitlab"]
- `start_date` (String) The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
@@ -64,7 +63,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API ID of the Gitlab developer application.
- `client_secret` (String) The API Secret the Gitlab developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -77,7 +75,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Log into your Gitlab account and then generate a personal Access Token.
-- `auth_type` (String) must be one of ["access_token"]
@@ -86,7 +83,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API ID of the Gitlab developer application.
- `client_secret` (String) The API Secret the Gitlab developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -99,6 +95,5 @@ Read-Only:
Read-Only:
- `access_token` (String) Log into your Gitlab account and then generate a personal Access Token.
-- `auth_type` (String) must be one of ["access_token"]
diff --git a/docs/data-sources/source_glassfrog.md b/docs/data-sources/source_glassfrog.md
index 392ef9675..38a4ec773 100644
--- a/docs/data-sources/source_glassfrog.md
+++ b/docs/data-sources/source_glassfrog.md
@@ -42,6 +42,5 @@ data "airbyte_source_glassfrog" "my_source_glassfrog" {
Read-Only:
- `api_key` (String) API key provided by Glassfrog
-- `source_type` (String) must be one of ["glassfrog"]
diff --git a/docs/data-sources/source_gnews.md b/docs/data-sources/source_gnews.md
index 301d66d2b..d54e89f16 100644
--- a/docs/data-sources/source_gnews.md
+++ b/docs/data-sources/source_gnews.md
@@ -66,7 +66,6 @@ This parameter allows you to specify the country where the news articles returne
This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible:
- publishedAt = sort by publication date, the articles with the most recent publication date are returned first
- relevance = sort by best match to keywords, the articles with the best match are returned first
-- `source_type` (String) must be one of ["gnews"]
- `start_date` (String) This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
- `top_headlines_query` (String) This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
quotation marks are used to search for articles with the exact same keyword sequence.
diff --git a/docs/data-sources/source_google_ads.md b/docs/data-sources/source_google_ads.md
index d69d22932..984f80de0 100644
--- a/docs/data-sources/source_google_ads.md
+++ b/docs/data-sources/source_google_ads.md
@@ -47,7 +47,6 @@ Read-Only:
- `customer_id` (String) Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our documentation.
- `end_date` (String) UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value of today is used if not set)
- `login_customer_id` (String) If your access to the customer account is through a manager account, this field is required, and must be set to the 10-digit customer ID of the manager account. For more information about this field, refer to Google's documentation.
-- `source_type` (String) must be one of ["google-ads"]
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set)
diff --git a/docs/data-sources/source_google_analytics_data_api.md b/docs/data-sources/source_google_analytics_data_api.md
index c29393f3e..d96b8d8b2 100644
--- a/docs/data-sources/source_google_analytics_data_api.md
+++ b/docs/data-sources/source_google_analytics_data_api.md
@@ -45,7 +45,6 @@ Read-Only:
- `custom_reports` (String) A JSON array describing the custom reports you want to sync from Google Analytics. See the documentation for more information about the exact format you can use to fill out this field.
- `date_ranges_start_date` (String) The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports.
- `property_id` (String) The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.
-- `source_type` (String) must be one of ["google-analytics-data-api"]
- `window_in_days` (Number) The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation.
@@ -64,7 +63,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Google Analytics developer application.
- `client_secret` (String) The Client Secret of your Google Analytics developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -75,7 +73,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `credentials_json` (String) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
@@ -85,7 +82,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Google Analytics developer application.
- `client_secret` (String) The Client Secret of your Google Analytics developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -96,7 +92,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `credentials_json` (String) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
diff --git a/docs/data-sources/source_google_analytics_v4.md b/docs/data-sources/source_google_analytics_v4.md
index b17e2c30e..592738eee 100644
--- a/docs/data-sources/source_google_analytics_v4.md
+++ b/docs/data-sources/source_google_analytics_v4.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) Credentials for the service (see [below for nested schema](#nestedatt--configuration--credentials))
- `custom_reports` (String) A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field.
-- `source_type` (String) must be one of ["google-analytics-v4"]
- `start_date` (String) The date in the format YYYY-MM-DD. Any data before this date will not be replicated.
- `view_id` (String) The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer.
- `window_in_days` (Number) The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364.
@@ -64,7 +63,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Google Analytics developer application.
- `client_secret` (String) The Client Secret of your Google Analytics developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -75,7 +73,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `credentials_json` (String) The JSON key of the service account to use for authorization
@@ -85,7 +82,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Google Analytics developer application.
- `client_secret` (String) The Client Secret of your Google Analytics developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -96,7 +92,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `credentials_json` (String) The JSON key of the service account to use for authorization
diff --git a/docs/data-sources/source_google_directory.md b/docs/data-sources/source_google_directory.md
index 6119cc061..d606f08a5 100644
--- a/docs/data-sources/source_google_directory.md
+++ b/docs/data-sources/source_google_directory.md
@@ -42,7 +42,6 @@ data "airbyte_source_google_directory" "my_source_googledirectory" {
Read-Only:
- `credentials` (Attributes) Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["google-directory"]
### Nested Schema for `configuration.credentials`
@@ -60,8 +59,6 @@ Read-Only:
Read-Only:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
-- `credentials_title` (String) must be one of ["Service accounts"]
-Authentication Scenario
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
@@ -72,8 +69,6 @@ Read-Only:
- `client_id` (String) The Client ID of the developer application.
- `client_secret` (String) The Client Secret of the developer application.
-- `credentials_title` (String) must be one of ["Web server app"]
-Authentication Scenario
- `refresh_token` (String) The Token for obtaining a new access token.
@@ -83,8 +78,6 @@ Authentication Scenario
Read-Only:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
-- `credentials_title` (String) must be one of ["Service accounts"]
-Authentication Scenario
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
@@ -95,8 +88,6 @@ Read-Only:
- `client_id` (String) The Client ID of the developer application.
- `client_secret` (String) The Client Secret of the developer application.
-- `credentials_title` (String) must be one of ["Web server app"]
-Authentication Scenario
- `refresh_token` (String) The Token for obtaining a new access token.
diff --git a/docs/data-sources/source_google_pagespeed_insights.md b/docs/data-sources/source_google_pagespeed_insights.md
index 722c1e312..24a0e7eed 100644
--- a/docs/data-sources/source_google_pagespeed_insights.md
+++ b/docs/data-sources/source_google_pagespeed_insights.md
@@ -43,7 +43,6 @@ Read-Only:
- `api_key` (String) Google PageSpeed API Key. See here. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive.
- `categories` (List of String) Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo".
-- `source_type` (String) must be one of ["google-pagespeed-insights"]
- `strategies` (List of String) The analyses strategy to use. Either "desktop" or "mobile".
- `urls` (List of String) The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain
diff --git a/docs/data-sources/source_google_search_console.md b/docs/data-sources/source_google_search_console.md
index c13b41baa..4717be536 100644
--- a/docs/data-sources/source_google_search_console.md
+++ b/docs/data-sources/source_google_search_console.md
@@ -48,7 +48,6 @@ Read-Only:
If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation.
- `end_date` (String) UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward.
- `site_urls` (List of String) The URLs of the website property attached to your GSC account. Learn more about properties here.
-- `source_type` (String) must be one of ["google-search-console"]
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
@@ -67,7 +66,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access token for making authenticated requests. Read more here.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The client ID of your Google Search Console developer application. Read more here.
- `client_secret` (String) The client secret of your Google Search Console developer application. Read more here.
- `refresh_token` (String) The token for obtaining a new access token. Read more here.
@@ -78,7 +76,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `email` (String) The email of the user which has permissions to access the Google Workspace Admin APIs.
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
@@ -89,7 +86,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access token for making authenticated requests. Read more here.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The client ID of your Google Search Console developer application. Read more here.
- `client_secret` (String) The client secret of your Google Search Console developer application. Read more here.
- `refresh_token` (String) The token for obtaining a new access token. Read more here.
@@ -100,7 +96,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `email` (String) The email of the user which has permissions to access the Google Workspace Admin APIs.
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
diff --git a/docs/data-sources/source_google_sheets.md b/docs/data-sources/source_google_sheets.md
index 9a1e2595f..058c3f648 100644
--- a/docs/data-sources/source_google_sheets.md
+++ b/docs/data-sources/source_google_sheets.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) Credentials for connecting to the Google Sheets API (see [below for nested schema](#nestedatt--configuration--credentials))
- `names_conversion` (Boolean) Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based.
-- `source_type` (String) must be one of ["google-sheets"]
- `spreadsheet_id` (String) Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.
@@ -61,7 +60,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) Enter your Google application's Client ID. See Google's documentation for more information.
- `client_secret` (String) Enter your Google application's Client Secret. See Google's documentation for more information.
- `refresh_token` (String) Enter your Google application's refresh token. See Google's documentation for more information.
@@ -72,7 +70,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
@@ -81,7 +78,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) Enter your Google application's Client ID. See Google's documentation for more information.
- `client_secret` (String) Enter your Google application's Client Secret. See Google's documentation for more information.
- `refresh_token` (String) Enter your Google application's refresh token. See Google's documentation for more information.
@@ -92,7 +88,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Service"]
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
diff --git a/docs/data-sources/source_google_webfonts.md b/docs/data-sources/source_google_webfonts.md
index 20e758d7f..7a3ac6bbd 100644
--- a/docs/data-sources/source_google_webfonts.md
+++ b/docs/data-sources/source_google_webfonts.md
@@ -45,6 +45,5 @@ Read-Only:
- `api_key` (String) API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts
- `pretty_print` (String) Optional, boolean type
- `sort` (String) Optional, to find how to sort
-- `source_type` (String) must be one of ["google-webfonts"]
diff --git a/docs/data-sources/source_google_workspace_admin_reports.md b/docs/data-sources/source_google_workspace_admin_reports.md
index 5dc2f07f8..cb5173a7a 100644
--- a/docs/data-sources/source_google_workspace_admin_reports.md
+++ b/docs/data-sources/source_google_workspace_admin_reports.md
@@ -44,6 +44,5 @@ Read-Only:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
- `lookback` (Number) Sets the range of time shown in the report. Reports API allows from up to 180 days ago.
-- `source_type` (String) must be one of ["google-workspace-admin-reports"]
diff --git a/docs/data-sources/source_greenhouse.md b/docs/data-sources/source_greenhouse.md
index 8530aaa59..b502251b0 100644
--- a/docs/data-sources/source_greenhouse.md
+++ b/docs/data-sources/source_greenhouse.md
@@ -42,6 +42,5 @@ data "airbyte_source_greenhouse" "my_source_greenhouse" {
Read-Only:
- `api_key` (String) Greenhouse API Key. See the docs for more information on how to generate this key.
-- `source_type` (String) must be one of ["greenhouse"]
diff --git a/docs/data-sources/source_gridly.md b/docs/data-sources/source_gridly.md
index 7f10be2e7..95e9ea857 100644
--- a/docs/data-sources/source_gridly.md
+++ b/docs/data-sources/source_gridly.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String)
- `grid_id` (String) ID of a grid, or can be ID of a branch
-- `source_type` (String) must be one of ["gridly"]
diff --git a/docs/data-sources/source_harvest.md b/docs/data-sources/source_harvest.md
index db58945e7..77d192b38 100644
--- a/docs/data-sources/source_harvest.md
+++ b/docs/data-sources/source_harvest.md
@@ -45,7 +45,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Harvest. (see [below for nested schema](#nestedatt--configuration--credentials))
- `replication_end_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated.
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
-- `source_type` (String) must be one of ["harvest"]
### Nested Schema for `configuration.credentials`
@@ -60,13 +59,9 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The Client ID of your Harvest developer application.
- `client_secret` (String) The Client Secret of your Harvest developer application.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
@@ -75,26 +70,18 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_harvest_authentication_mechanism_authenticate_with_personal_access_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) Log into Harvest and then create new personal access token.
-- `auth_type` (String) must be one of ["Token"]
### Nested Schema for `configuration.credentials.source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The Client ID of your Harvest developer application.
- `client_secret` (String) The Client Secret of your Harvest developer application.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
@@ -103,13 +90,9 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) Log into Harvest and then create new personal access token.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/data-sources/source_hubplanner.md b/docs/data-sources/source_hubplanner.md
index 88ec25a98..40b813a5d 100644
--- a/docs/data-sources/source_hubplanner.md
+++ b/docs/data-sources/source_hubplanner.md
@@ -42,6 +42,5 @@ data "airbyte_source_hubplanner" "my_source_hubplanner" {
Read-Only:
- `api_key` (String) Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.
-- `source_type` (String) must be one of ["hubplanner"]
diff --git a/docs/data-sources/source_hubspot.md b/docs/data-sources/source_hubspot.md
index 46f3ebcf4..c396dea29 100644
--- a/docs/data-sources/source_hubspot.md
+++ b/docs/data-sources/source_hubspot.md
@@ -42,7 +42,6 @@ data "airbyte_source_hubspot" "my_source_hubspot" {
Read-Only:
- `credentials` (Attributes) Choose how to authenticate to HubSpot. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["hubspot"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -62,8 +61,6 @@ Read-Only:
- `client_id` (String) The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID.
- `client_secret` (String) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
-- `credentials_title` (String) must be one of ["OAuth Credentials"]
-Name of the credentials
- `refresh_token` (String) Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
@@ -73,8 +70,6 @@ Name of the credentials
Read-Only:
- `access_token` (String) HubSpot Access token. See the Hubspot docs if you need help finding this token.
-- `credentials_title` (String) must be one of ["Private App Credentials"]
-Name of the credentials set
@@ -84,8 +79,6 @@ Read-Only:
- `client_id` (String) The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID.
- `client_secret` (String) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
-- `credentials_title` (String) must be one of ["OAuth Credentials"]
-Name of the credentials
- `refresh_token` (String) Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
@@ -95,7 +88,5 @@ Name of the credentials
Read-Only:
- `access_token` (String) HubSpot Access token. See the Hubspot docs if you need help finding this token.
-- `credentials_title` (String) must be one of ["Private App Credentials"]
-Name of the credentials set
diff --git a/docs/data-sources/source_insightly.md b/docs/data-sources/source_insightly.md
index 11276454f..4c52bf34a 100644
--- a/docs/data-sources/source_insightly.md
+++ b/docs/data-sources/source_insightly.md
@@ -41,7 +41,6 @@ data "airbyte_source_insightly" "my_source_insightly" {
Read-Only:
-- `source_type` (String) must be one of ["insightly"]
- `start_date` (String) The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams.
- `token` (String) Your Insightly API token.
diff --git a/docs/data-sources/source_instagram.md b/docs/data-sources/source_instagram.md
index 25108283f..287169552 100644
--- a/docs/data-sources/source_instagram.md
+++ b/docs/data-sources/source_instagram.md
@@ -44,7 +44,6 @@ Read-Only:
- `access_token` (String) The value of the access token generated with instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for more information
- `client_id` (String) The Client ID for your Oauth application
- `client_secret` (String) The Client Secret for your Oauth application
-- `source_type` (String) must be one of ["instagram"]
- `start_date` (String) The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/data-sources/source_instatus.md b/docs/data-sources/source_instatus.md
index 63719d228..07149f498 100644
--- a/docs/data-sources/source_instatus.md
+++ b/docs/data-sources/source_instatus.md
@@ -42,6 +42,5 @@ data "airbyte_source_instatus" "my_source_instatus" {
Read-Only:
- `api_key` (String) Instatus REST API key
-- `source_type` (String) must be one of ["instatus"]
diff --git a/docs/data-sources/source_intercom.md b/docs/data-sources/source_intercom.md
index 4c16c3ba4..c1bec5532 100644
--- a/docs/data-sources/source_intercom.md
+++ b/docs/data-sources/source_intercom.md
@@ -44,7 +44,6 @@ Read-Only:
- `access_token` (String) Access token for making authenticated requests. See the Intercom docs for more information.
- `client_id` (String) Client Id for your Intercom application.
- `client_secret` (String) Client Secret for your Intercom application.
-- `source_type` (String) must be one of ["intercom"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_ip2whois.md b/docs/data-sources/source_ip2whois.md
index eec3c2c07..b7d6335b7 100644
--- a/docs/data-sources/source_ip2whois.md
+++ b/docs/data-sources/source_ip2whois.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) Your API Key. See here.
- `domain` (String) Domain name. See here.
-- `source_type` (String) must be one of ["ip2whois"]
diff --git a/docs/data-sources/source_iterable.md b/docs/data-sources/source_iterable.md
index 468137bf6..610e6c38e 100644
--- a/docs/data-sources/source_iterable.md
+++ b/docs/data-sources/source_iterable.md
@@ -42,7 +42,6 @@ data "airbyte_source_iterable" "my_source_iterable" {
Read-Only:
- `api_key` (String) Iterable API Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["iterable"]
- `start_date` (String) The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/data-sources/source_jira.md b/docs/data-sources/source_jira.md
index a7ea1f407..d585ed3b5 100644
--- a/docs/data-sources/source_jira.md
+++ b/docs/data-sources/source_jira.md
@@ -48,7 +48,6 @@ Read-Only:
- `expand_issue_changelog` (Boolean) Expand the changelog when replicating issues.
- `projects` (List of String) List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects.
- `render_fields` (Boolean) Render issue fields in HTML format in addition to Jira JSON-like format.
-- `source_type` (String) must be one of ["jira"]
- `start_date` (String) The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation.
diff --git a/docs/data-sources/source_k6_cloud.md b/docs/data-sources/source_k6_cloud.md
index f664b0a39..8c90082fe 100644
--- a/docs/data-sources/source_k6_cloud.md
+++ b/docs/data-sources/source_k6_cloud.md
@@ -42,6 +42,5 @@ data "airbyte_source_k6_cloud" "my_source_k6cloud" {
Read-Only:
- `api_token` (String) Your API Token. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["k6-cloud"]
diff --git a/docs/data-sources/source_klarna.md b/docs/data-sources/source_klarna.md
index 6102e86a7..d34ece55e 100644
--- a/docs/data-sources/source_klarna.md
+++ b/docs/data-sources/source_klarna.md
@@ -45,7 +45,6 @@ Read-Only:
- `playground` (Boolean) Propertie defining if connector is used against playground or production environment
- `region` (String) must be one of ["eu", "us", "oc"]
Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'
-- `source_type` (String) must be one of ["klarna"]
- `username` (String) Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)
diff --git a/docs/data-sources/source_klaviyo.md b/docs/data-sources/source_klaviyo.md
index d4a7f5180..0e19e3571 100644
--- a/docs/data-sources/source_klaviyo.md
+++ b/docs/data-sources/source_klaviyo.md
@@ -42,7 +42,6 @@ data "airbyte_source_klaviyo" "my_source_klaviyo" {
Read-Only:
- `api_key` (String) Klaviyo API Key. See our docs if you need help finding this key.
-- `source_type` (String) must be one of ["klaviyo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_kustomer_singer.md b/docs/data-sources/source_kustomer_singer.md
index 5a4537dca..700fee9e0 100644
--- a/docs/data-sources/source_kustomer_singer.md
+++ b/docs/data-sources/source_kustomer_singer.md
@@ -42,7 +42,6 @@ data "airbyte_source_kustomer_singer" "my_source_kustomersinger" {
Read-Only:
- `api_token` (String) Kustomer API Token. See the docs on how to obtain this
-- `source_type` (String) must be one of ["kustomer-singer"]
- `start_date` (String) The date from which you'd like to replicate the data
diff --git a/docs/data-sources/source_kyve.md b/docs/data-sources/source_kyve.md
index 304bbf03c..ab57e24e7 100644
--- a/docs/data-sources/source_kyve.md
+++ b/docs/data-sources/source_kyve.md
@@ -44,7 +44,6 @@ Read-Only:
- `max_pages` (Number) The maximum amount of pages to go trough. Set to 'null' for all pages.
- `page_size` (Number) The pagesize for pagination, smaller numbers are used in integration tests.
- `pool_ids` (String) The IDs of the KYVE storage pool you want to archive. (Comma separated)
-- `source_type` (String) must be one of ["kyve"]
- `start_ids` (String) The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)
- `url_base` (String) URL to the KYVE Chain API.
diff --git a/docs/data-sources/source_launchdarkly.md b/docs/data-sources/source_launchdarkly.md
index 58e8a139a..66a00af0a 100644
--- a/docs/data-sources/source_launchdarkly.md
+++ b/docs/data-sources/source_launchdarkly.md
@@ -42,6 +42,5 @@ data "airbyte_source_launchdarkly" "my_source_launchdarkly" {
Read-Only:
- `access_token` (String) Your Access token. See here.
-- `source_type` (String) must be one of ["launchdarkly"]
diff --git a/docs/data-sources/source_lemlist.md b/docs/data-sources/source_lemlist.md
index c08e60316..13adaa6c1 100644
--- a/docs/data-sources/source_lemlist.md
+++ b/docs/data-sources/source_lemlist.md
@@ -42,6 +42,5 @@ data "airbyte_source_lemlist" "my_source_lemlist" {
Read-Only:
- `api_key` (String) Lemlist API key,
-- `source_type` (String) must be one of ["lemlist"]
diff --git a/docs/data-sources/source_lever_hiring.md b/docs/data-sources/source_lever_hiring.md
index 1c78dc637..60d5e3280 100644
--- a/docs/data-sources/source_lever_hiring.md
+++ b/docs/data-sources/source_lever_hiring.md
@@ -44,7 +44,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Lever Hiring. (see [below for nested schema](#nestedatt--configuration--credentials))
- `environment` (String) must be one of ["Production", "Sandbox"]
The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.
-- `source_type` (String) must be one of ["lever-hiring"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.
@@ -63,7 +62,6 @@ Read-Only:
Read-Only:
- `api_key` (String) The Api Key of your Lever Hiring account.
-- `auth_type` (String) must be one of ["Api Key"]
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Lever Hiring developer application.
- `client_secret` (String) The Client Secret of your Lever Hiring developer application.
- `refresh_token` (String) The token for obtaining new access token.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
- `api_key` (String) The Api Key of your Lever Hiring account.
-- `auth_type` (String) must be one of ["Api Key"]
@@ -91,7 +87,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Lever Hiring developer application.
- `client_secret` (String) The Client Secret of your Lever Hiring developer application.
- `refresh_token` (String) The token for obtaining new access token.
diff --git a/docs/data-sources/source_linkedin_ads.md b/docs/data-sources/source_linkedin_ads.md
index 2cb32b690..2c3da95a1 100644
--- a/docs/data-sources/source_linkedin_ads.md
+++ b/docs/data-sources/source_linkedin_ads.md
@@ -44,7 +44,6 @@ Read-Only:
- `account_ids` (List of Number) Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the LinkedIn docs to locate these IDs.
- `ad_analytics_reports` (Attributes List) (see [below for nested schema](#nestedatt--configuration--ad_analytics_reports))
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["linkedin-ads"]
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
@@ -75,7 +74,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The access token generated for your developer application. Refer to our documentation for more information.
-- `auth_method` (String) must be one of ["access_token"]
@@ -83,7 +81,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oAuth2.0"]
- `client_id` (String) The client ID of your developer application. Refer to our documentation for more information.
- `client_secret` (String) The client secret of your developer application. Refer to our documentation for more information.
- `refresh_token` (String) The key to refresh the expired access token. Refer to our documentation for more information.
@@ -95,7 +92,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The access token generated for your developer application. Refer to our documentation for more information.
-- `auth_method` (String) must be one of ["access_token"]
@@ -103,7 +99,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oAuth2.0"]
- `client_id` (String) The client ID of your developer application. Refer to our documentation for more information.
- `client_secret` (String) The client secret of your developer application. Refer to our documentation for more information.
- `refresh_token` (String) The key to refresh the expired access token. Refer to our documentation for more information.
diff --git a/docs/data-sources/source_linkedin_pages.md b/docs/data-sources/source_linkedin_pages.md
index 83897879a..153941b0a 100644
--- a/docs/data-sources/source_linkedin_pages.md
+++ b/docs/data-sources/source_linkedin_pages.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `org_id` (String) Specify the Organization ID
-- `source_type` (String) must be one of ["linkedin-pages"]
### Nested Schema for `configuration.credentials`
@@ -61,7 +60,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-- `auth_method` (String) must be one of ["access_token"]
@@ -69,7 +67,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oAuth2.0"]
- `client_id` (String) The client ID of the LinkedIn developer application.
- `client_secret` (String) The client secret of the LinkedIn developer application.
- `refresh_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
@@ -81,7 +78,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-- `auth_method` (String) must be one of ["access_token"]
@@ -89,7 +85,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oAuth2.0"]
- `client_id` (String) The client ID of the LinkedIn developer application.
- `client_secret` (String) The client secret of the LinkedIn developer application.
- `refresh_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
diff --git a/docs/data-sources/source_linnworks.md b/docs/data-sources/source_linnworks.md
index 4b1de1a3f..7c92db28d 100644
--- a/docs/data-sources/source_linnworks.md
+++ b/docs/data-sources/source_linnworks.md
@@ -43,7 +43,6 @@ Read-Only:
- `application_id` (String) Linnworks Application ID
- `application_secret` (String) Linnworks Application Secret
-- `source_type` (String) must be one of ["linnworks"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `token` (String)
diff --git a/docs/data-sources/source_lokalise.md b/docs/data-sources/source_lokalise.md
index df63115c4..4ea4a8411 100644
--- a/docs/data-sources/source_lokalise.md
+++ b/docs/data-sources/source_lokalise.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) Lokalise API Key with read-access. Available at Profile settings > API tokens. See here.
- `project_id` (String) Lokalise project ID. Available at Project Settings > General.
-- `source_type` (String) must be one of ["lokalise"]
diff --git a/docs/data-sources/source_mailchimp.md b/docs/data-sources/source_mailchimp.md
index 30257bf41..5e5bfb8b6 100644
--- a/docs/data-sources/source_mailchimp.md
+++ b/docs/data-sources/source_mailchimp.md
@@ -43,7 +43,6 @@ Read-Only:
- `campaign_id` (String)
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["mailchimp"]
### Nested Schema for `configuration.credentials`
@@ -61,7 +60,6 @@ Read-Only:
Read-Only:
- `apikey` (String) Mailchimp API Key. See the docs for information on how to generate this key.
-- `auth_type` (String) must be one of ["apikey"]
@@ -70,7 +68,6 @@ Read-Only:
Read-Only:
- `access_token` (String) An access token generated using the above client ID and secret.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
@@ -81,7 +78,6 @@ Read-Only:
Read-Only:
- `apikey` (String) Mailchimp API Key. See the docs for information on how to generate this key.
-- `auth_type` (String) must be one of ["apikey"]
@@ -90,7 +86,6 @@ Read-Only:
Read-Only:
- `access_token` (String) An access token generated using the above client ID and secret.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
diff --git a/docs/data-sources/source_mailgun.md b/docs/data-sources/source_mailgun.md
index dfb97bde8..ee1d44062 100644
--- a/docs/data-sources/source_mailgun.md
+++ b/docs/data-sources/source_mailgun.md
@@ -43,7 +43,6 @@ Read-Only:
- `domain_region` (String) Domain region code. 'EU' or 'US' are possible values. The default is 'US'.
- `private_key` (String) Primary account API key to access your Mailgun data.
-- `source_type` (String) must be one of ["mailgun"]
- `start_date` (String) UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago.
diff --git a/docs/data-sources/source_mailjet_sms.md b/docs/data-sources/source_mailjet_sms.md
index 826541e2d..93d424a13 100644
--- a/docs/data-sources/source_mailjet_sms.md
+++ b/docs/data-sources/source_mailjet_sms.md
@@ -42,7 +42,6 @@ data "airbyte_source_mailjet_sms" "my_source_mailjetsms" {
Read-Only:
- `end_date` (Number) Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp.
-- `source_type` (String) must be one of ["mailjet-sms"]
- `start_date` (Number) Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp.
- `token` (String) Your access token. See here.
diff --git a/docs/data-sources/source_marketo.md b/docs/data-sources/source_marketo.md
index 89cea25cd..db3123b3a 100644
--- a/docs/data-sources/source_marketo.md
+++ b/docs/data-sources/source_marketo.md
@@ -44,7 +44,6 @@ Read-Only:
- `client_id` (String) The Client ID of your Marketo developer application. See the docs for info on how to obtain this.
- `client_secret` (String) The Client Secret of your Marketo developer application. See the docs for info on how to obtain this.
- `domain_url` (String) Your Marketo Base URL. See the docs for info on how to obtain this.
-- `source_type` (String) must be one of ["marketo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_metabase.md b/docs/data-sources/source_metabase.md
index ef27be2ed..3ecc5da71 100644
--- a/docs/data-sources/source_metabase.md
+++ b/docs/data-sources/source_metabase.md
@@ -49,7 +49,6 @@ Read-Only:
http://localhost:3000/api/session
``` Then copy the value of the `id` field returned by a successful call to that API.
Note that by default, sessions are good for 14 days and needs to be regenerated.
-- `source_type` (String) must be one of ["metabase"]
- `username` (String)
diff --git a/docs/data-sources/source_microsoft_teams.md b/docs/data-sources/source_microsoft_teams.md
index a1e6174a4..ded8fa4c0 100644
--- a/docs/data-sources/source_microsoft_teams.md
+++ b/docs/data-sources/source_microsoft_teams.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Microsoft (see [below for nested schema](#nestedatt--configuration--credentials))
- `period` (String) Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.
-- `source_type` (String) must be one of ["microsoft-teams"]
### Nested Schema for `configuration.credentials`
@@ -60,7 +59,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Token"]
- `client_id` (String) The Client ID of your Microsoft Teams developer application.
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Microsoft Teams developer application.
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `refresh_token` (String) A Refresh Token to renew the expired Access Token.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Token"]
- `client_id` (String) The Client ID of your Microsoft Teams developer application.
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
@@ -94,7 +90,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Microsoft Teams developer application.
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `refresh_token` (String) A Refresh Token to renew the expired Access Token.
diff --git a/docs/data-sources/source_mixpanel.md b/docs/data-sources/source_mixpanel.md
index a607eabc2..ccfdfcc75 100644
--- a/docs/data-sources/source_mixpanel.md
+++ b/docs/data-sources/source_mixpanel.md
@@ -50,7 +50,6 @@ Read-Only:
- `region` (String) must be one of ["US", "EU"]
The region of mixpanel domain instance either US or EU.
- `select_properties_by_default` (Boolean) Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.
-- `source_type` (String) must be one of ["mixpanel"]
- `start_date` (String) The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default.
@@ -69,7 +68,6 @@ Read-Only:
Read-Only:
- `api_secret` (String) Mixpanel project secret. See the docs for more information on how to obtain this.
-- `option_title` (String) must be one of ["Project Secret"]
@@ -77,7 +75,6 @@ Read-Only:
Read-Only:
-- `option_title` (String) must be one of ["Service Account"]
- `secret` (String) Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
- `username` (String) Mixpanel Service Account Username. See the docs for more information on how to obtain this.
@@ -88,7 +85,6 @@ Read-Only:
Read-Only:
- `api_secret` (String) Mixpanel project secret. See the docs for more information on how to obtain this.
-- `option_title` (String) must be one of ["Project Secret"]
@@ -96,7 +92,6 @@ Read-Only:
Read-Only:
-- `option_title` (String) must be one of ["Service Account"]
- `secret` (String) Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
- `username` (String) Mixpanel Service Account Username. See the docs for more information on how to obtain this.
diff --git a/docs/data-sources/source_monday.md b/docs/data-sources/source_monday.md
index bbc505251..0851c4cb9 100644
--- a/docs/data-sources/source_monday.md
+++ b/docs/data-sources/source_monday.md
@@ -42,7 +42,6 @@ data "airbyte_source_monday" "my_source_monday" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["monday"]
### Nested Schema for `configuration.credentials`
@@ -60,7 +59,6 @@ Read-Only:
Read-Only:
- `api_token` (String) API Token for making authenticated requests.
-- `auth_type` (String) must be one of ["api_token"]
@@ -69,7 +67,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `subdomain` (String) Slug/subdomain of the account, or the first part of the URL that comes before .monday.com
@@ -81,7 +78,6 @@ Read-Only:
Read-Only:
- `api_token` (String) API Token for making authenticated requests.
-- `auth_type` (String) must be one of ["api_token"]
@@ -90,7 +86,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `subdomain` (String) Slug/subdomain of the account, or the first part of the URL that comes before .monday.com
diff --git a/docs/data-sources/source_mongodb.md b/docs/data-sources/source_mongodb.md
index 61daff387..1eaa9ddcf 100644
--- a/docs/data-sources/source_mongodb.md
+++ b/docs/data-sources/source_mongodb.md
@@ -45,7 +45,6 @@ Read-Only:
- `database` (String) The database you want to replicate.
- `instance_type` (Attributes) The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. (see [below for nested schema](#nestedatt--configuration--instance_type))
- `password` (String) The password associated with this username.
-- `source_type` (String) must be one of ["mongodb"]
- `user` (String) The username which is used to access the database.
@@ -63,14 +62,10 @@ Read-Only:
### Nested Schema for `configuration.instance_type.source_mongodb_mongo_db_instance_type_mongo_db_atlas`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `cluster_url` (String) The URL of a cluster to connect to.
-- `instance` (String) must be one of ["atlas"]
@@ -78,7 +73,6 @@ Read-Only:
Read-Only:
-- `instance` (String) must be one of ["replica"]
- `replica_set` (String) A replica set in MongoDB is a group of mongod processes that maintain the same data set.
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member separated by comma.
@@ -89,21 +83,16 @@ Read-Only:
Read-Only:
- `host` (String) The host name of the Mongo database.
-- `instance` (String) must be one of ["standalone"]
- `port` (Number) The port of the Mongo database.
### Nested Schema for `configuration.instance_type.source_mongodb_update_mongo_db_instance_type_mongo_db_atlas`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `cluster_url` (String) The URL of a cluster to connect to.
-- `instance` (String) must be one of ["atlas"]
@@ -111,7 +100,6 @@ Read-Only:
Read-Only:
-- `instance` (String) must be one of ["replica"]
- `replica_set` (String) A replica set in MongoDB is a group of mongod processes that maintain the same data set.
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member separated by comma.
@@ -122,7 +110,6 @@ Read-Only:
Read-Only:
- `host` (String) The host name of the Mongo database.
-- `instance` (String) must be one of ["standalone"]
- `port` (Number) The port of the Mongo database.
diff --git a/docs/data-sources/source_mongodb_internal_poc.md b/docs/data-sources/source_mongodb_internal_poc.md
index c05ab8a42..6a5212150 100644
--- a/docs/data-sources/source_mongodb_internal_poc.md
+++ b/docs/data-sources/source_mongodb_internal_poc.md
@@ -45,7 +45,6 @@ Read-Only:
- `connection_string` (String) The connection string of the database that you want to replicate..
- `password` (String) The password associated with this username.
- `replica_set` (String) The name of the replica set to be replicated.
-- `source_type` (String) must be one of ["mongodb-internal-poc"]
- `user` (String) The username which is used to access the database.
diff --git a/docs/data-sources/source_mssql.md b/docs/data-sources/source_mssql.md
index ded4cb2bc..8f2b0f02e 100644
--- a/docs/data-sources/source_mssql.md
+++ b/docs/data-sources/source_mssql.md
@@ -48,7 +48,6 @@ Read-Only:
- `port` (Number) The port of the database.
- `replication_method` (Attributes) Configures how data is extracted from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
- `schemas` (List of String) The list of schemas to sync from. Defaults to user. Case sensitive.
-- `source_type` (String) must be one of ["mssql"]
- `ssl_method` (Attributes) The encryption method which is used when communicating with the database. (see [below for nested schema](#nestedatt--configuration--ssl_method))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
- `username` (String) The username which is used to access the database.
@@ -71,7 +70,6 @@ Read-Only:
- `data_to_sync` (String) must be one of ["Existing and New", "New Changes Only"]
What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
-- `method` (String) must be one of ["CDC"]
- `snapshot_isolation` (String) must be one of ["Snapshot", "Read Committed"]
Existing data in the database are synced through an initial snapshot. This parameter controls the isolation level that will be used during the initial snapshotting. If you choose the "Snapshot" level, you must enable the snapshot isolation mode on the database.
@@ -79,10 +77,6 @@ Existing data in the database are synced through an initial snapshot. This param
### Nested Schema for `configuration.replication_method.source_mssql_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["STANDARD"]
-
### Nested Schema for `configuration.replication_method.source_mssql_update_update_method_read_changes_using_change_data_capture_cdc`
@@ -92,7 +86,6 @@ Read-Only:
- `data_to_sync` (String) must be one of ["Existing and New", "New Changes Only"]
What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
-- `method` (String) must be one of ["CDC"]
- `snapshot_isolation` (String) must be one of ["Snapshot", "Read Committed"]
Existing data in the database are synced through an initial snapshot. This parameter controls the isolation level that will be used during the initial snapshotting. If you choose the "Snapshot" level, you must enable the snapshot isolation mode on the database.
@@ -100,10 +93,6 @@ Existing data in the database are synced through an initial snapshot. This param
### Nested Schema for `configuration.replication_method.source_mssql_update_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["STANDARD"]
-
@@ -119,10 +108,6 @@ Read-Only:
### Nested Schema for `configuration.ssl_method.source_mssql_ssl_method_encrypted_trust_server_certificate`
-Read-Only:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.source_mssql_ssl_method_encrypted_verify_certificate`
@@ -130,16 +115,11 @@ Read-Only:
Read-Only:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
### Nested Schema for `configuration.ssl_method.source_mssql_update_ssl_method_encrypted_trust_server_certificate`
-Read-Only:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.source_mssql_update_ssl_method_encrypted_verify_certificate`
@@ -147,7 +127,6 @@ Read-Only:
Read-Only:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
@@ -166,11 +145,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_mssql_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mssql_ssh_tunnel_method_password_authentication`
@@ -178,8 +152,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -192,8 +164,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -201,11 +171,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_mssql_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mssql_update_ssh_tunnel_method_password_authentication`
@@ -213,8 +178,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -227,8 +190,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_my_hours.md b/docs/data-sources/source_my_hours.md
index 6ea4adaff..36858241c 100644
--- a/docs/data-sources/source_my_hours.md
+++ b/docs/data-sources/source_my_hours.md
@@ -44,7 +44,6 @@ Read-Only:
- `email` (String) Your My Hours username
- `logs_batch_size` (Number) Pagination size used for retrieving logs in days
- `password` (String) The password associated to the username
-- `source_type` (String) must be one of ["my-hours"]
- `start_date` (String) Start date for collecting time logs
diff --git a/docs/data-sources/source_mysql.md b/docs/data-sources/source_mysql.md
index 3f367ecab..ceab79e08 100644
--- a/docs/data-sources/source_mysql.md
+++ b/docs/data-sources/source_mysql.md
@@ -47,7 +47,6 @@ Read-Only:
- `password` (String) The password associated with the username.
- `port` (Number) The port to connect to.
- `replication_method` (Attributes) Configures how data is extracted from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
-- `source_type` (String) must be one of ["mysql"]
- `ssl_mode` (Attributes) SSL connection modes. Read more in the docs. (see [below for nested schema](#nestedatt--configuration--ssl_mode))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
- `username` (String) The username which is used to access the database.
@@ -68,17 +67,12 @@ Read-Only:
Read-Only:
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
-- `method` (String) must be one of ["CDC"]
- `server_time_zone` (String) Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.
### Nested Schema for `configuration.replication_method.source_mysql_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["STANDARD"]
-
### Nested Schema for `configuration.replication_method.source_mysql_update_update_method_read_changes_using_binary_log_cdc`
@@ -86,17 +80,12 @@ Read-Only:
Read-Only:
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
-- `method` (String) must be one of ["CDC"]
- `server_time_zone` (String) Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.
### Nested Schema for `configuration.replication_method.source_mysql_update_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["STANDARD"]
-
@@ -116,18 +105,10 @@ Read-Only:
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_preferred`
-Read-Only:
-
-- `mode` (String) must be one of ["preferred"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_required`
-Read-Only:
-
-- `mode` (String) must be one of ["required"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_verify_ca`
@@ -138,7 +119,6 @@ Read-Only:
- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)
- `client_key` (String) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well)
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify_ca"]
@@ -150,24 +130,15 @@ Read-Only:
- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)
- `client_key` (String) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well)
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify_identity"]
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_preferred`
-Read-Only:
-
-- `mode` (String) must be one of ["preferred"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_required`
-Read-Only:
-
-- `mode` (String) must be one of ["required"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_verify_ca`
@@ -178,7 +149,6 @@ Read-Only:
- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)
- `client_key` (String) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well)
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify_ca"]
@@ -190,7 +160,6 @@ Read-Only:
- `client_certificate` (String) Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well)
- `client_key` (String) Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well)
- `client_key_password` (String) Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify_identity"]
@@ -209,11 +178,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_mysql_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mysql_ssh_tunnel_method_password_authentication`
@@ -221,8 +185,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -235,8 +197,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -244,11 +204,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_mysql_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mysql_update_ssh_tunnel_method_password_authentication`
@@ -256,8 +211,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -270,8 +223,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_netsuite.md b/docs/data-sources/source_netsuite.md
index a472df8de..d906df4ae 100644
--- a/docs/data-sources/source_netsuite.md
+++ b/docs/data-sources/source_netsuite.md
@@ -45,7 +45,6 @@ Read-Only:
- `consumer_secret` (String) Consumer secret associated with your integration
- `object_types` (List of String) The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite.
- `realm` (String) Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox`
-- `source_type` (String) must be one of ["netsuite"]
- `start_datetime` (String) Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ"
- `token_key` (String) Access token key
- `token_secret` (String) Access token secret
diff --git a/docs/data-sources/source_notion.md b/docs/data-sources/source_notion.md
index cc7539cd2..6f6556cee 100644
--- a/docs/data-sources/source_notion.md
+++ b/docs/data-sources/source_notion.md
@@ -42,7 +42,6 @@ data "airbyte_source_notion" "my_source_notion" {
Read-Only:
- `credentials` (Attributes) Pick an authentication method. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["notion"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated.
@@ -60,7 +59,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["token"]
- `token` (String) Notion API access token, see the docs for more information on how to obtain this token.
@@ -70,7 +68,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token is a token you received by complete the OauthWebFlow of Notion.
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) The ClientID of your Notion integration.
- `client_secret` (String) The ClientSecret of your Notion integration.
@@ -80,7 +77,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["token"]
- `token` (String) Notion API access token, see the docs for more information on how to obtain this token.
@@ -90,7 +86,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token is a token you received by complete the OauthWebFlow of Notion.
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) The ClientID of your Notion integration.
- `client_secret` (String) The ClientSecret of your Notion integration.
diff --git a/docs/data-sources/source_nytimes.md b/docs/data-sources/source_nytimes.md
index 417c9f015..9d753efd6 100644
--- a/docs/data-sources/source_nytimes.md
+++ b/docs/data-sources/source_nytimes.md
@@ -47,7 +47,6 @@ Read-Only:
Period of time (in days)
- `share_type` (String) must be one of ["facebook"]
Share Type
-- `source_type` (String) must be one of ["nytimes"]
- `start_date` (String) Start date to begin the article retrieval (format YYYY-MM)
diff --git a/docs/data-sources/source_okta.md b/docs/data-sources/source_okta.md
index d0c4b8961..52e3d6dd8 100644
--- a/docs/data-sources/source_okta.md
+++ b/docs/data-sources/source_okta.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `domain` (String) The Okta domain. See the docs for instructions on how to find it.
-- `source_type` (String) must be one of ["okta"]
- `start_date` (String) UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `api_token` (String) An Okta token. See the docs for instructions on how to generate it.
-- `auth_type` (String) must be one of ["api_token"]
@@ -70,7 +68,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
@@ -82,7 +79,6 @@ Read-Only:
Read-Only:
- `api_token` (String) An Okta token. See the docs for instructions on how to generate it.
-- `auth_type` (String) must be one of ["api_token"]
@@ -90,7 +86,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
diff --git a/docs/data-sources/source_omnisend.md b/docs/data-sources/source_omnisend.md
index f584043cc..5c5b7ffd7 100644
--- a/docs/data-sources/source_omnisend.md
+++ b/docs/data-sources/source_omnisend.md
@@ -42,6 +42,5 @@ data "airbyte_source_omnisend" "my_source_omnisend" {
Read-Only:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["omnisend"]
diff --git a/docs/data-sources/source_onesignal.md b/docs/data-sources/source_onesignal.md
index b45b15d65..d0dff2371 100644
--- a/docs/data-sources/source_onesignal.md
+++ b/docs/data-sources/source_onesignal.md
@@ -43,7 +43,6 @@ Read-Only:
- `applications` (Attributes List) Applications keys, see the docs for more information on how to obtain this data (see [below for nested schema](#nestedatt--configuration--applications))
- `outcome_names` (String) Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details
-- `source_type` (String) must be one of ["onesignal"]
- `start_date` (String) The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `user_auth_key` (String) OneSignal User Auth Key, see the docs for more information on how to obtain this key.
diff --git a/docs/data-sources/source_oracle.md b/docs/data-sources/source_oracle.md
index 639edae99..5087ef1c4 100644
--- a/docs/data-sources/source_oracle.md
+++ b/docs/data-sources/source_oracle.md
@@ -51,7 +51,6 @@ Oracle Corporations recommends the following port numbers:
1521 - Default listening port for client connections to the listener.
2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL
- `schemas` (List of String) The list of schemas to sync from. Defaults to user. Case sensitive.
-- `source_type` (String) must be one of ["oracle"]
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
- `username` (String) The username which is used to access the database.
@@ -70,7 +69,6 @@ Read-Only:
Read-Only:
-- `connection_type` (String) must be one of ["service_name"]
- `service_name` (String)
@@ -79,7 +77,6 @@ Read-Only:
Read-Only:
-- `connection_type` (String) must be one of ["sid"]
- `sid` (String)
@@ -88,7 +85,6 @@ Read-Only:
Read-Only:
-- `connection_type` (String) must be one of ["service_name"]
- `service_name` (String)
@@ -97,7 +93,6 @@ Read-Only:
Read-Only:
-- `connection_type` (String) must be one of ["sid"]
- `sid` (String)
@@ -119,7 +114,6 @@ Read-Only:
- `encryption_algorithm` (String) must be one of ["AES256", "RC4_56", "3DES168"]
This parameter defines what encryption algorithm is used.
-- `encryption_method` (String) must be one of ["client_nne"]
@@ -127,7 +121,6 @@ This parameter defines what encryption algorithm is used.
Read-Only:
-- `encryption_method` (String) must be one of ["encrypted_verify_certificate"]
- `ssl_certificate` (String) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
@@ -138,7 +131,6 @@ Read-Only:
- `encryption_algorithm` (String) must be one of ["AES256", "RC4_56", "3DES168"]
This parameter defines what encryption algorithm is used.
-- `encryption_method` (String) must be one of ["client_nne"]
@@ -146,7 +138,6 @@ This parameter defines what encryption algorithm is used.
Read-Only:
-- `encryption_method` (String) must be one of ["encrypted_verify_certificate"]
- `ssl_certificate` (String) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
@@ -166,11 +157,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_oracle_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_oracle_ssh_tunnel_method_password_authentication`
@@ -178,8 +164,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -192,8 +176,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -201,11 +183,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_oracle_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_oracle_update_ssh_tunnel_method_password_authentication`
@@ -213,8 +190,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -227,8 +202,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_orb.md b/docs/data-sources/source_orb.md
index 9e5783179..09fc50e33 100644
--- a/docs/data-sources/source_orb.md
+++ b/docs/data-sources/source_orb.md
@@ -45,7 +45,6 @@ Read-Only:
- `lookback_window_days` (Number) When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced.
- `numeric_event_properties_keys` (List of String) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.
- `plan_id` (String) Orb Plan ID to filter subscriptions that should have usage fetched.
-- `source_type` (String) must be one of ["orb"]
- `start_date` (String) UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter.
- `string_event_properties_keys` (List of String) Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.
- `subscription_usage_grouping_key` (String) Property key name to group subscription usage by.
diff --git a/docs/data-sources/source_orbit.md b/docs/data-sources/source_orbit.md
index 9fa7ac3d1..120704627 100644
--- a/docs/data-sources/source_orbit.md
+++ b/docs/data-sources/source_orbit.md
@@ -42,7 +42,6 @@ data "airbyte_source_orbit" "my_source_orbit" {
Read-Only:
- `api_token` (String) Authorizes you to work with Orbit workspaces associated with the token.
-- `source_type` (String) must be one of ["orbit"]
- `start_date` (String) Date in the format 2022-06-26. Only load members whose last activities are after this date.
- `workspace` (String) The unique name of the workspace that your API token is associated with.
diff --git a/docs/data-sources/source_outbrain_amplify.md b/docs/data-sources/source_outbrain_amplify.md
index b65430536..53593571f 100644
--- a/docs/data-sources/source_outbrain_amplify.md
+++ b/docs/data-sources/source_outbrain_amplify.md
@@ -47,7 +47,6 @@ Read-Only:
The granularity used for geo location data in reports.
- `report_granularity` (String) must be one of ["daily", "weekly", "monthly"]
The granularity used for periodic data in reports. See the docs.
-- `source_type` (String) must be one of ["outbrain-amplify"]
- `start_date` (String) Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.
@@ -66,7 +65,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `type` (String) must be one of ["access_token"]
@@ -75,7 +73,6 @@ Read-Only:
Read-Only:
- `password` (String) Add Password for authentication.
-- `type` (String) must be one of ["username_password"]
- `username` (String) Add Username for authentication.
@@ -85,7 +82,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `type` (String) must be one of ["access_token"]
@@ -94,7 +90,6 @@ Read-Only:
Read-Only:
- `password` (String) Add Password for authentication.
-- `type` (String) must be one of ["username_password"]
- `username` (String) Add Username for authentication.
diff --git a/docs/data-sources/source_outreach.md b/docs/data-sources/source_outreach.md
index 59d661161..0ea367137 100644
--- a/docs/data-sources/source_outreach.md
+++ b/docs/data-sources/source_outreach.md
@@ -45,7 +45,6 @@ Read-Only:
- `client_secret` (String) The Client Secret of your Outreach developer application.
- `redirect_uri` (String) A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.
- `refresh_token` (String) The token for obtaining the new access token.
-- `source_type` (String) must be one of ["outreach"]
- `start_date` (String) The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/data-sources/source_paypal_transaction.md b/docs/data-sources/source_paypal_transaction.md
index cffbcf512..c58e55299 100644
--- a/docs/data-sources/source_paypal_transaction.md
+++ b/docs/data-sources/source_paypal_transaction.md
@@ -45,7 +45,6 @@ Read-Only:
- `client_secret` (String) The Client Secret of your Paypal developer application.
- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
- `refresh_token` (String) The key to refresh the expired access token.
-- `source_type` (String) must be one of ["paypal-transaction"]
- `start_date` (String) Start Date for data extraction in ISO format. Date must be in range from 3 years till 12 hrs before present time.
diff --git a/docs/data-sources/source_paystack.md b/docs/data-sources/source_paystack.md
index 117f68e3a..daa3c1eed 100644
--- a/docs/data-sources/source_paystack.md
+++ b/docs/data-sources/source_paystack.md
@@ -43,7 +43,6 @@ Read-Only:
- `lookback_window_days` (Number) When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation.
- `secret_key` (String) The Paystack API key (usually starts with 'sk_live_'; find yours here).
-- `source_type` (String) must be one of ["paystack"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_pendo.md b/docs/data-sources/source_pendo.md
index c6f4dc766..eed731444 100644
--- a/docs/data-sources/source_pendo.md
+++ b/docs/data-sources/source_pendo.md
@@ -42,6 +42,5 @@ data "airbyte_source_pendo" "my_source_pendo" {
Read-Only:
- `api_key` (String)
-- `source_type` (String) must be one of ["pendo"]
diff --git a/docs/data-sources/source_persistiq.md b/docs/data-sources/source_persistiq.md
index ddcc19899..d135fe76f 100644
--- a/docs/data-sources/source_persistiq.md
+++ b/docs/data-sources/source_persistiq.md
@@ -42,6 +42,5 @@ data "airbyte_source_persistiq" "my_source_persistiq" {
Read-Only:
- `api_key` (String) PersistIq API Key. See the docs for more information on where to find that key.
-- `source_type` (String) must be one of ["persistiq"]
diff --git a/docs/data-sources/source_pexels_api.md b/docs/data-sources/source_pexels_api.md
index d1b8bb290..0efe2c0aa 100644
--- a/docs/data-sources/source_pexels_api.md
+++ b/docs/data-sources/source_pexels_api.md
@@ -47,6 +47,5 @@ Read-Only:
- `orientation` (String) Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square
- `query` (String) Optional, the search query, Example Ocean, Tigers, Pears, etc.
- `size` (String) Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).
-- `source_type` (String) must be one of ["pexels-api"]
diff --git a/docs/data-sources/source_pinterest.md b/docs/data-sources/source_pinterest.md
index 31f2e026c..ed249191e 100644
--- a/docs/data-sources/source_pinterest.md
+++ b/docs/data-sources/source_pinterest.md
@@ -42,7 +42,6 @@ data "airbyte_source_pinterest" "my_source_pinterest" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["pinterest"]
- `start_date` (String) A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today).
- `status` (List of String) Entity statuses based off of campaigns, ad_groups, and ads. If you do not have a status set, it will be ignored completely.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token to make authenticated requests.
-- `auth_method` (String) must be one of ["access_token"]
@@ -70,7 +68,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
@@ -82,7 +79,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token to make authenticated requests.
-- `auth_method` (String) must be one of ["access_token"]
@@ -90,7 +86,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
diff --git a/docs/data-sources/source_pipedrive.md b/docs/data-sources/source_pipedrive.md
index 0ebebedbd..bfaa952e4 100644
--- a/docs/data-sources/source_pipedrive.md
+++ b/docs/data-sources/source_pipedrive.md
@@ -43,7 +43,6 @@ Read-Only:
- `authorization` (Attributes) (see [below for nested schema](#nestedatt--configuration--authorization))
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental
-- `source_type` (String) must be one of ["pipedrive"]
### Nested Schema for `configuration.authorization`
@@ -51,6 +50,5 @@ Read-Only:
Read-Only:
- `api_token` (String) The Pipedrive API Token.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/data-sources/source_pocket.md b/docs/data-sources/source_pocket.md
index c34b1f9eb..5ef48ddbe 100644
--- a/docs/data-sources/source_pocket.md
+++ b/docs/data-sources/source_pocket.md
@@ -53,7 +53,6 @@ Select the granularity of the information about each item.
- `since` (String) Only return items modified since the given timestamp.
- `sort` (String) must be one of ["newest", "oldest", "title", "site"]
Sort retrieved items by the given criteria.
-- `source_type` (String) must be one of ["pocket"]
- `state` (String) must be one of ["unread", "archive", "all"]
Select the state of the items to retrieve.
- `tag` (String) Return only items tagged with this tag name. Use _untagged_ for retrieving only untagged items.
diff --git a/docs/data-sources/source_pokeapi.md b/docs/data-sources/source_pokeapi.md
index 99da2a445..2d3dc1418 100644
--- a/docs/data-sources/source_pokeapi.md
+++ b/docs/data-sources/source_pokeapi.md
@@ -42,6 +42,5 @@ data "airbyte_source_pokeapi" "my_source_pokeapi" {
Read-Only:
- `pokemon_name` (String) Pokemon requested from the API.
-- `source_type` (String) must be one of ["pokeapi"]
diff --git a/docs/data-sources/source_polygon_stock_api.md b/docs/data-sources/source_polygon_stock_api.md
index a9ef45744..1cb1914f0 100644
--- a/docs/data-sources/source_polygon_stock_api.md
+++ b/docs/data-sources/source_polygon_stock_api.md
@@ -47,7 +47,6 @@ Read-Only:
- `limit` (Number) The target date for the aggregate window.
- `multiplier` (Number) The size of the timespan multiplier.
- `sort` (String) Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top).
-- `source_type` (String) must be one of ["polygon-stock-api"]
- `start_date` (String) The beginning date for the aggregate window.
- `stocks_ticker` (String) The exchange symbol that this item is traded under.
- `timespan` (String) The size of the time window.
diff --git a/docs/data-sources/source_postgres.md b/docs/data-sources/source_postgres.md
index 54cf73891..41ad690cf 100644
--- a/docs/data-sources/source_postgres.md
+++ b/docs/data-sources/source_postgres.md
@@ -48,7 +48,6 @@ Read-Only:
- `port` (Number) Port of the database.
- `replication_method` (Attributes) Configures how data is extracted from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
- `schemas` (List of String) The list of schemas (case sensitive) to sync from. Defaults to public.
-- `source_type` (String) must be one of ["postgres"]
- `ssl_mode` (Attributes) SSL connection modes.
Read more in the docs. (see [below for nested schema](#nestedatt--configuration--ssl_mode))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -69,24 +68,16 @@ Read-Only:
### Nested Schema for `configuration.replication_method.source_postgres_update_method_detect_changes_with_xmin_system_column`
-Read-Only:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_method_read_changes_using_write_ahead_log_cdc`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- `lsn_commit_behaviour` (String) must be one of ["While reading Data", "After loading Data in the destination"]
Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
-- `method` (String) must be one of ["CDC"]
- `plugin` (String) must be one of ["pgoutput"]
A logical decoding plugin installed on the PostgreSQL server.
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
@@ -97,32 +88,20 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_postgres_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_detect_changes_with_xmin_system_column`
-Read-Only:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- `lsn_commit_behaviour` (String) must be one of ["While reading Data", "After loading Data in the destination"]
Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
-- `method` (String) must be one of ["CDC"]
- `plugin` (String) must be one of ["pgoutput"]
A logical decoding plugin installed on the PostgreSQL server.
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
@@ -133,10 +112,6 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_scan_changes_with_user_defined_cursor`
-Read-Only:
-
-- `method` (String) must be one of ["Standard"]
-
@@ -160,161 +135,113 @@ Read-Only:
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_allow`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["allow"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_disable`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["disable"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_prefer`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["prefer"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_require`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["require"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_verify_ca`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_verify_full`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_allow`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["allow"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_disable`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["disable"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_prefer`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["prefer"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_require`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `mode` (String) must be one of ["require"]
+- `additional_properties` (String) Parsed as JSON.
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_verify_ca`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-ca"]
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_verify_full`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
- `client_key_password` (String) Password for keystorage. If you do not add it - the password will be generated automatically.
-- `mode` (String) must be one of ["verify-full"]
@@ -333,11 +260,6 @@ Read-Only:
### Nested Schema for `configuration.tunnel_method.source_postgres_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_postgres_ssh_tunnel_method_password_authentication`
@@ -345,8 +267,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -359,8 +279,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
@@ -368,11 +286,6 @@ Connect through a jump server tunnel host using username and ssh key
### Nested Schema for `configuration.tunnel_method.source_postgres_update_ssh_tunnel_method_no_tunnel`
-Read-Only:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_postgres_update_ssh_tunnel_method_password_authentication`
@@ -380,8 +293,6 @@ No ssh tunnel needed to connect to database
Read-Only:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
@@ -394,8 +305,6 @@ Read-Only:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
diff --git a/docs/data-sources/source_posthog.md b/docs/data-sources/source_posthog.md
index e076d3b63..96edbb353 100644
--- a/docs/data-sources/source_posthog.md
+++ b/docs/data-sources/source_posthog.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) API Key. See the docs for information on how to generate this key.
- `base_url` (String) Base PostHog url. Defaults to PostHog Cloud (https://app.posthog.com).
- `events_time_step` (Number) Set lower value in case of failing long running sync of events stream.
-- `source_type` (String) must be one of ["posthog"]
- `start_date` (String) The date from which you'd like to replicate the data. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_postmarkapp.md b/docs/data-sources/source_postmarkapp.md
index b1afac15d..c0a0247f7 100644
--- a/docs/data-sources/source_postmarkapp.md
+++ b/docs/data-sources/source_postmarkapp.md
@@ -41,7 +41,6 @@ data "airbyte_source_postmarkapp" "my_source_postmarkapp" {
Read-Only:
-- `source_type` (String) must be one of ["postmarkapp"]
- `x_postmark_account_token` (String) API Key for account
- `x_postmark_server_token` (String) API Key for server
diff --git a/docs/data-sources/source_prestashop.md b/docs/data-sources/source_prestashop.md
index 3d3aca6cb..6008900b3 100644
--- a/docs/data-sources/source_prestashop.md
+++ b/docs/data-sources/source_prestashop.md
@@ -42,7 +42,6 @@ data "airbyte_source_prestashop" "my_source_prestashop" {
Read-Only:
- `access_key` (String) Your PrestaShop access key. See the docs for info on how to obtain this.
-- `source_type` (String) must be one of ["prestashop"]
- `start_date` (String) The Start date in the format YYYY-MM-DD.
- `url` (String) Shop URL without trailing slash.
diff --git a/docs/data-sources/source_punk_api.md b/docs/data-sources/source_punk_api.md
index dedfcb423..802ce90c0 100644
--- a/docs/data-sources/source_punk_api.md
+++ b/docs/data-sources/source_punk_api.md
@@ -44,6 +44,5 @@ Read-Only:
- `brewed_after` (String) To extract specific data with Unique ID
- `brewed_before` (String) To extract specific data with Unique ID
- `id` (String) To extract specific data with Unique ID
-- `source_type` (String) must be one of ["punk-api"]
diff --git a/docs/data-sources/source_pypi.md b/docs/data-sources/source_pypi.md
index ec211a78e..6d73a76e6 100644
--- a/docs/data-sources/source_pypi.md
+++ b/docs/data-sources/source_pypi.md
@@ -42,7 +42,6 @@ data "airbyte_source_pypi" "my_source_pypi" {
Read-Only:
- `project_name` (String) Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package.
-- `source_type` (String) must be one of ["pypi"]
- `version` (String) Version of the project/package. Use it to find a particular release instead of all releases.
diff --git a/docs/data-sources/source_qualaroo.md b/docs/data-sources/source_qualaroo.md
index c4eedcf28..8b2b75cb9 100644
--- a/docs/data-sources/source_qualaroo.md
+++ b/docs/data-sources/source_qualaroo.md
@@ -42,7 +42,6 @@ data "airbyte_source_qualaroo" "my_source_qualaroo" {
Read-Only:
- `key` (String) A Qualaroo token. See the docs for instructions on how to generate it.
-- `source_type` (String) must be one of ["qualaroo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `survey_ids` (List of String) IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated.
- `token` (String) A Qualaroo token. See the docs for instructions on how to generate it.
diff --git a/docs/data-sources/source_quickbooks.md b/docs/data-sources/source_quickbooks.md
index eeb81b122..8d6b131e5 100644
--- a/docs/data-sources/source_quickbooks.md
+++ b/docs/data-sources/source_quickbooks.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `sandbox` (Boolean) Determines whether to use the sandbox or production environment.
-- `source_type` (String) must be one of ["quickbooks"]
- `start_date` (String) The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated.
@@ -60,7 +59,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access token fot making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
- `client_secret` (String) Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
- `realm_id` (String) Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token.
@@ -74,7 +72,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access token fot making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
- `client_secret` (String) Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
- `realm_id` (String) Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token.
diff --git a/docs/data-sources/source_railz.md b/docs/data-sources/source_railz.md
index f5998c435..80e24bb2f 100644
--- a/docs/data-sources/source_railz.md
+++ b/docs/data-sources/source_railz.md
@@ -43,7 +43,6 @@ Read-Only:
- `client_id` (String) Client ID (client_id)
- `secret_key` (String) Secret key (secret_key)
-- `source_type` (String) must be one of ["railz"]
- `start_date` (String) Start date
diff --git a/docs/data-sources/source_recharge.md b/docs/data-sources/source_recharge.md
index 2a6b96d10..00e6e078e 100644
--- a/docs/data-sources/source_recharge.md
+++ b/docs/data-sources/source_recharge.md
@@ -42,7 +42,6 @@ data "airbyte_source_recharge" "my_source_recharge" {
Read-Only:
- `access_token` (String) The value of the Access Token generated. See the docs for more information.
-- `source_type` (String) must be one of ["recharge"]
- `start_date` (String) The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_recreation.md b/docs/data-sources/source_recreation.md
index 522c2b5fb..ca75bfdd6 100644
--- a/docs/data-sources/source_recreation.md
+++ b/docs/data-sources/source_recreation.md
@@ -43,6 +43,5 @@ Read-Only:
- `apikey` (String) API Key
- `query_campsites` (String)
-- `source_type` (String) must be one of ["recreation"]
diff --git a/docs/data-sources/source_recruitee.md b/docs/data-sources/source_recruitee.md
index 59bddb6f9..cb82d7601 100644
--- a/docs/data-sources/source_recruitee.md
+++ b/docs/data-sources/source_recruitee.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) Recruitee API Key. See here.
- `company_id` (Number) Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.
-- `source_type` (String) must be one of ["recruitee"]
diff --git a/docs/data-sources/source_recurly.md b/docs/data-sources/source_recurly.md
index a1c7b17c2..72dfac800 100644
--- a/docs/data-sources/source_recurly.md
+++ b/docs/data-sources/source_recurly.md
@@ -44,6 +44,5 @@ Read-Only:
- `api_key` (String) Recurly API Key. See the docs for more information on how to generate this key.
- `begin_time` (String) ISO8601 timestamp from which the replication from Recurly API will start from.
- `end_time` (String) ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported.
-- `source_type` (String) must be one of ["recurly"]
diff --git a/docs/data-sources/source_redshift.md b/docs/data-sources/source_redshift.md
index ebae7c06a..f31aa41db 100644
--- a/docs/data-sources/source_redshift.md
+++ b/docs/data-sources/source_redshift.md
@@ -47,7 +47,6 @@ Read-Only:
- `password` (String) Password associated with the username.
- `port` (Number) Port of the database.
- `schemas` (List of String) The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.
-- `source_type` (String) must be one of ["redshift"]
- `username` (String) Username to use to access the database.
diff --git a/docs/data-sources/source_retently.md b/docs/data-sources/source_retently.md
index 9724ec511..f622e7fe0 100644
--- a/docs/data-sources/source_retently.md
+++ b/docs/data-sources/source_retently.md
@@ -42,7 +42,6 @@ data "airbyte_source_retently" "my_source_retently" {
Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Retently (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["retently"]
### Nested Schema for `configuration.credentials`
@@ -57,13 +56,9 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_retently_authentication_mechanism_authenticate_via_retently_o_auth`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The Client ID of your Retently developer application.
- `client_secret` (String) The Client Secret of your Retently developer application.
- `refresh_token` (String) Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.
@@ -72,26 +67,18 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_retently_authentication_mechanism_authenticate_with_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_key` (String) Retently API Token. See the docs for more information on how to obtain this key.
-- `auth_type` (String) must be one of ["Token"]
### Nested Schema for `configuration.credentials.source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The Client ID of your Retently developer application.
- `client_secret` (String) The Client Secret of your Retently developer application.
- `refresh_token` (String) Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.
@@ -100,13 +87,9 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_retently_update_authentication_mechanism_authenticate_with_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_key` (String) Retently API Token. See the docs for more information on how to obtain this key.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/data-sources/source_rki_covid.md b/docs/data-sources/source_rki_covid.md
index 2dddd1a2f..cf7cad99a 100644
--- a/docs/data-sources/source_rki_covid.md
+++ b/docs/data-sources/source_rki_covid.md
@@ -41,7 +41,6 @@ data "airbyte_source_rki_covid" "my_source_rkicovid" {
Read-Only:
-- `source_type` (String) must be one of ["rki-covid"]
- `start_date` (String) UTC date in the format 2017-01-25. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_rss.md b/docs/data-sources/source_rss.md
index de1a555d2..340f45f0d 100644
--- a/docs/data-sources/source_rss.md
+++ b/docs/data-sources/source_rss.md
@@ -41,7 +41,6 @@ data "airbyte_source_rss" "my_source_rss" {
Read-Only:
-- `source_type` (String) must be one of ["rss"]
- `url` (String) RSS Feed URL
diff --git a/docs/data-sources/source_s3.md b/docs/data-sources/source_s3.md
index 24db6a956..5b1fc073d 100644
--- a/docs/data-sources/source_s3.md
+++ b/docs/data-sources/source_s3.md
@@ -51,7 +51,6 @@ Read-Only:
- `path_pattern` (String) Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files.
- `provider` (Attributes) Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services (see [below for nested schema](#nestedatt--configuration--provider))
- `schema` (String) Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema.
-- `source_type` (String) must be one of ["s3"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated.
- `streams` (Attributes List) Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. (see [below for nested schema](#nestedatt--configuration--streams))
@@ -72,10 +71,6 @@ Read-Only:
### Nested Schema for `configuration.format.source_s3_file_format_avro`
-Read-Only:
-
-- `filetype` (String) must be one of ["avro"]
-
### Nested Schema for `configuration.format.source_s3_file_format_csv`
@@ -89,7 +84,6 @@ Read-Only:
- `double_quote` (Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data.
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
-- `filetype` (String) must be one of ["csv"]
- `infer_datatypes` (Boolean) Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- `newlines_in_values` (Boolean) Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank.
@@ -101,7 +95,6 @@ Read-Only:
Read-Only:
- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
-- `filetype` (String) must be one of ["jsonl"]
- `newlines_in_values` (Boolean) Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- `unexpected_field_behavior` (String) must be one of ["ignore", "infer", "error"]
How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
@@ -115,16 +108,11 @@ Read-Only:
- `batch_size` (Number) Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- `buffer_size` (Number) Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- `columns` (List of String) If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
-- `filetype` (String) must be one of ["parquet"]
### Nested Schema for `configuration.format.source_s3_update_file_format_avro`
-Read-Only:
-
-- `filetype` (String) must be one of ["avro"]
-
### Nested Schema for `configuration.format.source_s3_update_file_format_csv`
@@ -138,7 +126,6 @@ Read-Only:
- `double_quote` (Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data.
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
-- `filetype` (String) must be one of ["csv"]
- `infer_datatypes` (Boolean) Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- `newlines_in_values` (Boolean) Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank.
@@ -150,7 +137,6 @@ Read-Only:
Read-Only:
- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
-- `filetype` (String) must be one of ["jsonl"]
- `newlines_in_values` (Boolean) Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- `unexpected_field_behavior` (String) must be one of ["ignore", "infer", "error"]
How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
@@ -164,7 +150,6 @@ Read-Only:
- `batch_size` (Number) Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- `buffer_size` (Number) Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- `columns` (List of String) If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
-- `filetype` (String) must be one of ["parquet"]
@@ -218,7 +203,6 @@ Read-Only:
Read-Only:
- `double_as_string` (Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
-- `filetype` (String) must be one of ["avro"]
@@ -231,7 +215,6 @@ Read-Only:
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
- `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values.
-- `filetype` (String) must be one of ["csv"]
- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--source_s3_update_file_based_stream_config_format_parquet_format--header_definition))
- `inference_type` (String) must be one of ["None", "Primitive Types Only"]
How to infer the types of the columns. If none, inference default to strings.
@@ -254,18 +237,10 @@ Read-Only:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Read-Only:
-
-- `header_definition_type` (String) must be one of ["Autogenerated"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Read-Only:
-
-- `header_definition_type` (String) must be one of ["From CSV"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
@@ -273,7 +248,6 @@ Read-Only:
Read-Only:
- `column_names` (List of String) The column names that will be used while emitting the CSV records
-- `header_definition_type` (String) must be one of ["User Provided"]
@@ -281,10 +255,6 @@ Read-Only:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
-Read-Only:
-
-- `filetype` (String) must be one of ["jsonl"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
@@ -292,7 +262,6 @@ Read-Only:
Read-Only:
- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
-- `filetype` (String) must be one of ["parquet"]
@@ -301,7 +270,6 @@ Read-Only:
Read-Only:
- `double_as_string` (Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
-- `filetype` (String) must be one of ["avro"]
@@ -314,7 +282,6 @@ Read-Only:
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
- `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values.
-- `filetype` (String) must be one of ["csv"]
- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--source_s3_update_file_based_stream_config_format_parquet_format--header_definition))
- `inference_type` (String) must be one of ["None", "Primitive Types Only"]
How to infer the types of the columns. If none, inference default to strings.
@@ -337,18 +304,10 @@ Read-Only:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Read-Only:
-
-- `header_definition_type` (String) must be one of ["Autogenerated"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Read-Only:
-
-- `header_definition_type` (String) must be one of ["From CSV"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
@@ -356,7 +315,6 @@ Read-Only:
Read-Only:
- `column_names` (List of String) The column names that will be used while emitting the CSV records
-- `header_definition_type` (String) must be one of ["User Provided"]
@@ -364,10 +322,6 @@ Read-Only:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
-Read-Only:
-
-- `filetype` (String) must be one of ["jsonl"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
@@ -375,6 +329,5 @@ Read-Only:
Read-Only:
- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
-- `filetype` (String) must be one of ["parquet"]
diff --git a/docs/data-sources/source_salesforce.md b/docs/data-sources/source_salesforce.md
index 108f31092..7047314cc 100644
--- a/docs/data-sources/source_salesforce.md
+++ b/docs/data-sources/source_salesforce.md
@@ -41,13 +41,11 @@ data "airbyte_source_salesforce" "my_source_salesforce" {
Read-Only:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) Enter your Salesforce developer application's Client ID
- `client_secret` (String) Enter your Salesforce developer application's Client secret
- `force_use_bulk_api` (Boolean) Toggle to use Bulk API (this might cause empty fields for some streams)
- `is_sandbox` (Boolean) Toggle if you're using a Salesforce Sandbox
- `refresh_token` (String) Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.
-- `source_type` (String) must be one of ["salesforce"]
- `start_date` (String) Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years.
- `streams_criteria` (Attributes List) Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. (see [below for nested schema](#nestedatt--configuration--streams_criteria))
diff --git a/docs/data-sources/source_salesloft.md b/docs/data-sources/source_salesloft.md
index c2029f97f..b081b6db1 100644
--- a/docs/data-sources/source_salesloft.md
+++ b/docs/data-sources/source_salesloft.md
@@ -42,7 +42,6 @@ data "airbyte_source_salesloft" "my_source_salesloft" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["salesloft"]
- `start_date` (String) The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
@@ -61,7 +60,6 @@ Read-Only:
Read-Only:
- `api_key` (String) API Key for making authenticated requests. More instruction on how to find this value in our docs
-- `auth_type` (String) must be one of ["api_key"]
@@ -70,7 +68,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your Salesloft developer application.
- `client_secret` (String) The Client Secret of your Salesloft developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
- `api_key` (String) API Key for making authenticated requests. More instruction on how to find this value in our docs
-- `auth_type` (String) must be one of ["api_key"]
@@ -92,7 +88,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your Salesloft developer application.
- `client_secret` (String) The Client Secret of your Salesloft developer application.
- `refresh_token` (String) The token for obtaining a new access token.
diff --git a/docs/data-sources/source_sap_fieldglass.md b/docs/data-sources/source_sap_fieldglass.md
index be138c261..56c369530 100644
--- a/docs/data-sources/source_sap_fieldglass.md
+++ b/docs/data-sources/source_sap_fieldglass.md
@@ -42,6 +42,5 @@ data "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" {
Read-Only:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["sap-fieldglass"]
diff --git a/docs/data-sources/source_secoda.md b/docs/data-sources/source_secoda.md
index dcc538e3e..6775ac67c 100644
--- a/docs/data-sources/source_secoda.md
+++ b/docs/data-sources/source_secoda.md
@@ -42,6 +42,5 @@ data "airbyte_source_secoda" "my_source_secoda" {
Read-Only:
- `api_key` (String) Your API Access Key. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["secoda"]
diff --git a/docs/data-sources/source_sendgrid.md b/docs/data-sources/source_sendgrid.md
index 9a2719f5a..7805c4213 100644
--- a/docs/data-sources/source_sendgrid.md
+++ b/docs/data-sources/source_sendgrid.md
@@ -42,7 +42,6 @@ data "airbyte_source_sendgrid" "my_source_sendgrid" {
Read-Only:
- `apikey` (String) API Key, use admin to generate this key.
-- `source_type` (String) must be one of ["sendgrid"]
- `start_time` (String) Start time in ISO8601 format. Any data before this time point will not be replicated.
diff --git a/docs/data-sources/source_sendinblue.md b/docs/data-sources/source_sendinblue.md
index e36af0d59..9a3171661 100644
--- a/docs/data-sources/source_sendinblue.md
+++ b/docs/data-sources/source_sendinblue.md
@@ -42,6 +42,5 @@ data "airbyte_source_sendinblue" "my_source_sendinblue" {
Read-Only:
- `api_key` (String) Your API Key. See here.
-- `source_type` (String) must be one of ["sendinblue"]
diff --git a/docs/data-sources/source_senseforce.md b/docs/data-sources/source_senseforce.md
index 16582c621..3bcc5c2d9 100644
--- a/docs/data-sources/source_senseforce.md
+++ b/docs/data-sources/source_senseforce.md
@@ -45,7 +45,6 @@ Read-Only:
- `backend_url` (String) Your Senseforce API backend URL. This is the URL shown during the Login screen. See here for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR)
- `dataset_id` (String) The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source).
- `slice_range` (Number) The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more.
-- `source_type` (String) must be one of ["senseforce"]
- `start_date` (String) UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later
diff --git a/docs/data-sources/source_sentry.md b/docs/data-sources/source_sentry.md
index 2fdc3a11d..54781ff29 100644
--- a/docs/data-sources/source_sentry.md
+++ b/docs/data-sources/source_sentry.md
@@ -46,6 +46,5 @@ Read-Only:
- `hostname` (String) Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty.
- `organization` (String) The slug of the organization the groups belong to.
- `project` (String) The name (slug) of the Project you want to sync.
-- `source_type` (String) must be one of ["sentry"]
diff --git a/docs/data-sources/source_sftp.md b/docs/data-sources/source_sftp.md
index 943fa7510..5505e5c67 100644
--- a/docs/data-sources/source_sftp.md
+++ b/docs/data-sources/source_sftp.md
@@ -47,7 +47,6 @@ Read-Only:
- `folder_path` (String) The directory to search files for sync
- `host` (String) The server host address
- `port` (Number) The server port
-- `source_type` (String) must be one of ["sftp"]
- `user` (String) The server user
@@ -65,8 +64,6 @@ Read-Only:
Read-Only:
-- `auth_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through password authentication
- `auth_user_password` (String) OS-level password for logging into the jump server host
@@ -75,8 +72,6 @@ Connect through password authentication
Read-Only:
-- `auth_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through ssh key
- `auth_ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
@@ -85,8 +80,6 @@ Connect through ssh key
Read-Only:
-- `auth_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through password authentication
- `auth_user_password` (String) OS-level password for logging into the jump server host
@@ -95,8 +88,6 @@ Connect through password authentication
Read-Only:
-- `auth_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through ssh key
- `auth_ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
diff --git a/docs/data-sources/source_sftp_bulk.md b/docs/data-sources/source_sftp_bulk.md
index d0a7712ff..50e696df6 100644
--- a/docs/data-sources/source_sftp_bulk.md
+++ b/docs/data-sources/source_sftp_bulk.md
@@ -51,7 +51,6 @@ The file type you want to sync. Currently only 'csv' and 'json' files are suppor
- `port` (Number) The server port
- `private_key` (String) The private key
- `separator` (String) The separator used in the CSV files. Define None if you want to use the Sniffer functionality
-- `source_type` (String) must be one of ["sftp-bulk"]
- `start_date` (String) The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `stream_name` (String) The name of the stream or table you want to create
- `username` (String) The server user
diff --git a/docs/data-sources/source_shopify.md b/docs/data-sources/source_shopify.md
index 8cf60d496..16a1924f3 100644
--- a/docs/data-sources/source_shopify.md
+++ b/docs/data-sources/source_shopify.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) The authorization method to use to retrieve data from Shopify (see [below for nested schema](#nestedatt--configuration--credentials))
- `shop` (String) The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.
-- `source_type` (String) must be one of ["shopify"]
- `start_date` (String) The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `api_password` (String) The API Password for your private application in the `Shopify` store.
-- `auth_method` (String) must be one of ["api_password"]
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of the Shopify developer application.
- `client_secret` (String) The Client Secret of the Shopify developer application.
@@ -82,7 +79,6 @@ Read-Only:
Read-Only:
- `api_password` (String) The API Password for your private application in the `Shopify` store.
-- `auth_method` (String) must be one of ["api_password"]
@@ -91,7 +87,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of the Shopify developer application.
- `client_secret` (String) The Client Secret of the Shopify developer application.
diff --git a/docs/data-sources/source_shortio.md b/docs/data-sources/source_shortio.md
index 2b7a35624..9b7b6a1ae 100644
--- a/docs/data-sources/source_shortio.md
+++ b/docs/data-sources/source_shortio.md
@@ -43,7 +43,6 @@ Read-Only:
- `domain_id` (String)
- `secret_key` (String) Short.io Secret Key
-- `source_type` (String) must be one of ["shortio"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_slack.md b/docs/data-sources/source_slack.md
index b08a5203b..b668c6f55 100644
--- a/docs/data-sources/source_slack.md
+++ b/docs/data-sources/source_slack.md
@@ -45,7 +45,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate into Slack (see [below for nested schema](#nestedatt--configuration--credentials))
- `join_channels` (Boolean) Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages.
- `lookback_window` (Number) How far into the past to look for messages in threads, default is 0 days
-- `source_type` (String) must be one of ["slack"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -64,7 +63,6 @@ Read-Only:
Read-Only:
- `api_token` (String) A Slack bot token. See the docs for instructions on how to generate it.
-- `option_title` (String) must be one of ["API Token Credentials"]
@@ -75,7 +73,6 @@ Read-Only:
- `access_token` (String) Slack access_token. See our docs if you need help generating the token.
- `client_id` (String) Slack client_id. See our docs if you need help finding this id.
- `client_secret` (String) Slack client_secret. See our docs if you need help finding this secret.
-- `option_title` (String) must be one of ["Default OAuth2.0 authorization"]
@@ -84,7 +81,6 @@ Read-Only:
Read-Only:
- `api_token` (String) A Slack bot token. See the docs for instructions on how to generate it.
-- `option_title` (String) must be one of ["API Token Credentials"]
@@ -95,6 +91,5 @@ Read-Only:
- `access_token` (String) Slack access_token. See our docs if you need help generating the token.
- `client_id` (String) Slack client_id. See our docs if you need help finding this id.
- `client_secret` (String) Slack client_secret. See our docs if you need help finding this secret.
-- `option_title` (String) must be one of ["Default OAuth2.0 authorization"]
diff --git a/docs/data-sources/source_smaily.md b/docs/data-sources/source_smaily.md
index 18af44e6a..c8613d0b8 100644
--- a/docs/data-sources/source_smaily.md
+++ b/docs/data-sources/source_smaily.md
@@ -44,6 +44,5 @@ Read-Only:
- `api_password` (String) API user password. See https://smaily.com/help/api/general/create-api-user/
- `api_subdomain` (String) API Subdomain. See https://smaily.com/help/api/general/create-api-user/
- `api_username` (String) API user username. See https://smaily.com/help/api/general/create-api-user/
-- `source_type` (String) must be one of ["smaily"]
diff --git a/docs/data-sources/source_smartengage.md b/docs/data-sources/source_smartengage.md
index 06ed19ea9..4939af464 100644
--- a/docs/data-sources/source_smartengage.md
+++ b/docs/data-sources/source_smartengage.md
@@ -42,6 +42,5 @@ data "airbyte_source_smartengage" "my_source_smartengage" {
Read-Only:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["smartengage"]
diff --git a/docs/data-sources/source_smartsheets.md b/docs/data-sources/source_smartsheets.md
index 7768c87cf..56641f024 100644
--- a/docs/data-sources/source_smartsheets.md
+++ b/docs/data-sources/source_smartsheets.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `metadata_fields` (List of String) A List of available columns which metadata can be pulled from.
-- `source_type` (String) must be one of ["smartsheets"]
- `spreadsheet_id` (String) The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties
- `start_datetime` (String) Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00`
@@ -63,7 +62,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
-- `auth_type` (String) must be one of ["access_token"]
@@ -72,7 +70,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API ID of the SmartSheets developer application.
- `client_secret` (String) The API Secret the SmartSheets developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -85,7 +82,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
-- `auth_type` (String) must be one of ["access_token"]
@@ -94,7 +90,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API ID of the SmartSheets developer application.
- `client_secret` (String) The API Secret the SmartSheets developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
diff --git a/docs/data-sources/source_snapchat_marketing.md b/docs/data-sources/source_snapchat_marketing.md
index 26e642b8d..fcc5693a3 100644
--- a/docs/data-sources/source_snapchat_marketing.md
+++ b/docs/data-sources/source_snapchat_marketing.md
@@ -45,7 +45,6 @@ Read-Only:
- `client_secret` (String) The Client Secret of your Snapchat developer application.
- `end_date` (String) Date in the format 2017-01-25. Any data after this date will not be replicated.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
-- `source_type` (String) must be one of ["snapchat-marketing"]
- `start_date` (String) Date in the format 2022-01-01. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_snowflake.md b/docs/data-sources/source_snowflake.md
index fbd2c3c57..98c9d4ae7 100644
--- a/docs/data-sources/source_snowflake.md
+++ b/docs/data-sources/source_snowflake.md
@@ -47,7 +47,6 @@ Read-Only:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `role` (String) The role you created for Airbyte to access Snowflake.
- `schema` (String) The source Snowflake schema tables. Leave empty to access tables from multiple schemas.
-- `source_type` (String) must be one of ["snowflake"]
- `warehouse` (String) The warehouse you created for Airbyte to access data.
@@ -66,7 +65,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Client ID of your Snowflake developer application.
- `client_secret` (String) The Client Secret of your Snowflake developer application.
- `refresh_token` (String) Refresh Token for making authenticated requests.
@@ -77,7 +75,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["username/password"]
- `password` (String) The password associated with the username.
- `username` (String) The username you created to allow Airbyte to access the database.
@@ -88,7 +85,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Client ID of your Snowflake developer application.
- `client_secret` (String) The Client Secret of your Snowflake developer application.
- `refresh_token` (String) Refresh Token for making authenticated requests.
@@ -99,7 +95,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["username/password"]
- `password` (String) The password associated with the username.
- `username` (String) The username you created to allow Airbyte to access the database.
diff --git a/docs/data-sources/source_sonar_cloud.md b/docs/data-sources/source_sonar_cloud.md
index 1de5284fe..db98be42e 100644
--- a/docs/data-sources/source_sonar_cloud.md
+++ b/docs/data-sources/source_sonar_cloud.md
@@ -44,7 +44,6 @@ Read-Only:
- `component_keys` (List of String) Comma-separated list of component keys.
- `end_date` (String) To retrieve issues created before the given date (inclusive).
- `organization` (String) Organization key. See here.
-- `source_type` (String) must be one of ["sonar-cloud"]
- `start_date` (String) To retrieve issues created after the given date (inclusive).
- `user_token` (String) Your User Token. See here. The token is case sensitive.
diff --git a/docs/data-sources/source_spacex_api.md b/docs/data-sources/source_spacex_api.md
index db2ea8af5..547794254 100644
--- a/docs/data-sources/source_spacex_api.md
+++ b/docs/data-sources/source_spacex_api.md
@@ -43,6 +43,5 @@ Read-Only:
- `id` (String)
- `options` (String)
-- `source_type` (String) must be one of ["spacex-api"]
diff --git a/docs/data-sources/source_square.md b/docs/data-sources/source_square.md
index fca8cd041..c5b1f13ba 100644
--- a/docs/data-sources/source_square.md
+++ b/docs/data-sources/source_square.md
@@ -44,7 +44,6 @@ Read-Only:
- `credentials` (Attributes) Choose how to authenticate to Square. (see [below for nested schema](#nestedatt--configuration--credentials))
- `include_deleted_objects` (Boolean) In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes)
- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
-- `source_type` (String) must be one of ["square"]
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated.
@@ -63,7 +62,6 @@ Read-Only:
Read-Only:
- `api_key` (String) The API key for a Square application
-- `auth_type` (String) must be one of ["API Key"]
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Square-issued ID of your application
- `client_secret` (String) The Square-issued application secret for your application
- `refresh_token` (String) A refresh token generated using the above client ID and secret
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
- `api_key` (String) The API key for a Square application
-- `auth_type` (String) must be one of ["API Key"]
@@ -91,7 +87,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Square-issued ID of your application
- `client_secret` (String) The Square-issued application secret for your application
- `refresh_token` (String) A refresh token generated using the above client ID and secret
diff --git a/docs/data-sources/source_strava.md b/docs/data-sources/source_strava.md
index efa5437bb..76717ab40 100644
--- a/docs/data-sources/source_strava.md
+++ b/docs/data-sources/source_strava.md
@@ -42,11 +42,9 @@ data "airbyte_source_strava" "my_source_strava" {
Read-Only:
- `athlete_id` (Number) The Athlete ID of your Strava developer application.
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Strava developer application.
- `client_secret` (String) The Client Secret of your Strava developer application.
- `refresh_token` (String) The Refresh Token with the activity: read_all permissions.
-- `source_type` (String) must be one of ["strava"]
- `start_date` (String) UTC date and time. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_stripe.md b/docs/data-sources/source_stripe.md
index a8b965c93..2459d5f0f 100644
--- a/docs/data-sources/source_stripe.md
+++ b/docs/data-sources/source_stripe.md
@@ -45,7 +45,6 @@ Read-Only:
- `client_secret` (String) Stripe API key (usually starts with 'sk_live_'; find yours here).
- `lookback_window_days` (Number) When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. Applies only to streams that do not support event-based incremental syncs: CheckoutSessionLineItems, Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks. More info here
- `slice_range` (Number) The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted.
-- `source_type` (String) must be one of ["stripe"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated.
diff --git a/docs/data-sources/source_survey_sparrow.md b/docs/data-sources/source_survey_sparrow.md
index 77c24ca50..f9073edd3 100644
--- a/docs/data-sources/source_survey_sparrow.md
+++ b/docs/data-sources/source_survey_sparrow.md
@@ -43,7 +43,6 @@ Read-Only:
- `access_token` (String) Your access token. See here. The key is case sensitive.
- `region` (Attributes) Is your account location is EU based? If yes, the base url to retrieve data will be different. (see [below for nested schema](#nestedatt--configuration--region))
-- `source_type` (String) must be one of ["survey-sparrow"]
- `survey_id` (List of String) A List of your survey ids for survey-specific stream
@@ -59,32 +58,16 @@ Read-Only:
### Nested Schema for `configuration.region.source_survey_sparrow_base_url_eu_based_account`
-Read-Only:
-
-- `url_base` (String) must be one of ["https://eu-api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_base_url_global_account`
-Read-Only:
-
-- `url_base` (String) must be one of ["https://api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_update_base_url_eu_based_account`
-Read-Only:
-
-- `url_base` (String) must be one of ["https://eu-api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_update_base_url_global_account`
-Read-Only:
-
-- `url_base` (String) must be one of ["https://api.surveysparrow.com/v3"]
-
diff --git a/docs/data-sources/source_surveymonkey.md b/docs/data-sources/source_surveymonkey.md
index 50d3595df..a61cd1a00 100644
--- a/docs/data-sources/source_surveymonkey.md
+++ b/docs/data-sources/source_surveymonkey.md
@@ -44,7 +44,6 @@ Read-Only:
- `credentials` (Attributes) The authorization method to use to retrieve data from SurveyMonkey (see [below for nested schema](#nestedatt--configuration--credentials))
- `origin` (String) must be one of ["USA", "Europe", "Canada"]
Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.
-- `source_type` (String) must be one of ["surveymonkey"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `survey_ids` (List of String) IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated.
@@ -54,7 +53,6 @@ Depending on the originating datacenter of the SurveyMonkey account, the API acc
Read-Only:
- `access_token` (String) Access Token for making authenticated requests. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of the SurveyMonkey developer application.
- `client_secret` (String) The Client Secret of the SurveyMonkey developer application.
diff --git a/docs/data-sources/source_tempo.md b/docs/data-sources/source_tempo.md
index 1e714ad7a..e12eaa84b 100644
--- a/docs/data-sources/source_tempo.md
+++ b/docs/data-sources/source_tempo.md
@@ -42,6 +42,5 @@ data "airbyte_source_tempo" "my_source_tempo" {
Read-Only:
- `api_token` (String) Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.
-- `source_type` (String) must be one of ["tempo"]
diff --git a/docs/data-sources/source_the_guardian_api.md b/docs/data-sources/source_the_guardian_api.md
index 8c2359883..d994ef28a 100644
--- a/docs/data-sources/source_the_guardian_api.md
+++ b/docs/data-sources/source_the_guardian_api.md
@@ -45,7 +45,6 @@ Read-Only:
- `end_date` (String) (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs.
- `query` (String) (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators.
- `section` (String) (Optional) Use this to filter the results by a particular section. See here for a list of all sections, and here for the sections endpoint documentation.
-- `source_type` (String) must be one of ["the-guardian-api"]
- `start_date` (String) Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown.
- `tag` (String) (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint documentation.
diff --git a/docs/data-sources/source_tiktok_marketing.md b/docs/data-sources/source_tiktok_marketing.md
index c023c19fb..799f33efd 100644
--- a/docs/data-sources/source_tiktok_marketing.md
+++ b/docs/data-sources/source_tiktok_marketing.md
@@ -45,7 +45,6 @@ Read-Only:
- `credentials` (Attributes) Authentication method (see [below for nested schema](#nestedatt--configuration--credentials))
- `end_date` (String) The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date.
- `include_deleted` (Boolean) Set to active if you want to include deleted data in reports.
-- `source_type` (String) must be one of ["tiktok-marketing"]
- `start_date` (String) The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated.
@@ -66,7 +65,6 @@ Read-Only:
- `access_token` (String) Long-term Authorized Access Token.
- `advertiser_id` (String) The Advertiser ID to filter reports and streams. Let this empty to retrieve all.
- `app_id` (String) The Developer Application App ID.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `secret` (String) The Developer Application Secret.
@@ -77,7 +75,6 @@ Read-Only:
- `access_token` (String) The long-term authorized access token.
- `advertiser_id` (String) The Advertiser ID which generated for the developer's Sandbox application.
-- `auth_type` (String) must be one of ["sandbox_access_token"]
@@ -88,7 +85,6 @@ Read-Only:
- `access_token` (String) Long-term Authorized Access Token.
- `advertiser_id` (String) The Advertiser ID to filter reports and streams. Let this empty to retrieve all.
- `app_id` (String) The Developer Application App ID.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `secret` (String) The Developer Application Secret.
@@ -99,6 +95,5 @@ Read-Only:
- `access_token` (String) The long-term authorized access token.
- `advertiser_id` (String) The Advertiser ID which generated for the developer's Sandbox application.
-- `auth_type` (String) must be one of ["sandbox_access_token"]
diff --git a/docs/data-sources/source_todoist.md b/docs/data-sources/source_todoist.md
index 9dd87f1cc..6a8c09c40 100644
--- a/docs/data-sources/source_todoist.md
+++ b/docs/data-sources/source_todoist.md
@@ -41,7 +41,6 @@ data "airbyte_source_todoist" "my_source_todoist" {
Read-Only:
-- `source_type` (String) must be one of ["todoist"]
- `token` (String) Your API Token. See here. The token is case sensitive.
diff --git a/docs/data-sources/source_trello.md b/docs/data-sources/source_trello.md
index 7e782f778..ff2d0d09c 100644
--- a/docs/data-sources/source_trello.md
+++ b/docs/data-sources/source_trello.md
@@ -43,7 +43,6 @@ Read-Only:
- `board_ids` (List of String) IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated.
- `key` (String) Trello API key. See the docs for instructions on how to generate it.
-- `source_type` (String) must be one of ["trello"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `token` (String) Trello API token. See the docs for instructions on how to generate it.
diff --git a/docs/data-sources/source_trustpilot.md b/docs/data-sources/source_trustpilot.md
index 40768f864..2e5ce668e 100644
--- a/docs/data-sources/source_trustpilot.md
+++ b/docs/data-sources/source_trustpilot.md
@@ -43,7 +43,6 @@ Read-Only:
- `business_units` (List of String) The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration.
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["trustpilot"]
- `start_date` (String) For streams with sync. method incremental the start date time to be used
@@ -61,7 +60,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["apikey"]
- `client_id` (String) The API key of the Trustpilot API application.
@@ -71,7 +69,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API key of the Trustpilot API application. (represents the OAuth Client ID)
- `client_secret` (String) The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
-- `auth_type` (String) must be one of ["apikey"]
- `client_id` (String) The API key of the Trustpilot API application.
@@ -93,7 +89,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The API key of the Trustpilot API application. (represents the OAuth Client ID)
- `client_secret` (String) The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
- `refresh_token` (String) The key to refresh the expired access_token.
diff --git a/docs/data-sources/source_tvmaze_schedule.md b/docs/data-sources/source_tvmaze_schedule.md
index e5fb9f150..5634bf21e 100644
--- a/docs/data-sources/source_tvmaze_schedule.md
+++ b/docs/data-sources/source_tvmaze_schedule.md
@@ -43,7 +43,6 @@ Read-Only:
- `domestic_schedule_country_code` (String) Country code for domestic TV schedule retrieval.
- `end_date` (String) End date for TV schedule retrieval. May be in the future. Optional.
-- `source_type` (String) must be one of ["tvmaze-schedule"]
- `start_date` (String) Start date for TV schedule retrieval. May be in the future.
- `web_schedule_country_code` (String) ISO 3166-1 country code for web TV schedule retrieval. Leave blank for
all countries plus global web channels (e.g. Netflix). Alternatively,
diff --git a/docs/data-sources/source_twilio.md b/docs/data-sources/source_twilio.md
index 9c1438cc8..1ff7e8ffb 100644
--- a/docs/data-sources/source_twilio.md
+++ b/docs/data-sources/source_twilio.md
@@ -44,7 +44,6 @@ Read-Only:
- `account_sid` (String) Twilio account SID
- `auth_token` (String) Twilio Auth Token.
- `lookback_window` (Number) How far into the past to look for records. (in minutes)
-- `source_type` (String) must be one of ["twilio"]
- `start_date` (String) UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/data-sources/source_twilio_taskrouter.md b/docs/data-sources/source_twilio_taskrouter.md
index ed0927859..9c0380cf7 100644
--- a/docs/data-sources/source_twilio_taskrouter.md
+++ b/docs/data-sources/source_twilio_taskrouter.md
@@ -43,6 +43,5 @@ Read-Only:
- `account_sid` (String) Twilio Account ID
- `auth_token` (String) Twilio Auth Token
-- `source_type` (String) must be one of ["twilio-taskrouter"]
diff --git a/docs/data-sources/source_twitter.md b/docs/data-sources/source_twitter.md
index 39e43977a..7d14f0966 100644
--- a/docs/data-sources/source_twitter.md
+++ b/docs/data-sources/source_twitter.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) App only Bearer Token. See the docs for more information on how to obtain this token.
- `end_date` (String) The end date for retrieving tweets must be a minimum of 10 seconds prior to the request time.
- `query` (String) Query for matching Tweets. You can learn how to build this query by reading build a query guide .
-- `source_type` (String) must be one of ["twitter"]
- `start_date` (String) The start date for retrieving tweets cannot be more than 7 days in the past.
diff --git a/docs/data-sources/source_typeform.md b/docs/data-sources/source_typeform.md
index fec7cb66f..476c824dc 100644
--- a/docs/data-sources/source_typeform.md
+++ b/docs/data-sources/source_typeform.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `form_ids` (List of String) When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel
-- `source_type` (String) must be one of ["typeform"]
- `start_date` (String) The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of the Typeform developer application.
- `client_secret` (String) The Client Secret the Typeform developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -75,7 +73,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Log into your Typeform account and then generate a personal Access Token.
-- `auth_type` (String) must be one of ["access_token"]
@@ -84,7 +81,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of the Typeform developer application.
- `client_secret` (String) The Client Secret the Typeform developer application.
- `refresh_token` (String) The key to refresh the expired access_token.
@@ -97,6 +93,5 @@ Read-Only:
Read-Only:
- `access_token` (String) Log into your Typeform account and then generate a personal Access Token.
-- `auth_type` (String) must be one of ["access_token"]
diff --git a/docs/data-sources/source_us_census.md b/docs/data-sources/source_us_census.md
index b54bae126..e00df27f3 100644
--- a/docs/data-sources/source_us_census.md
+++ b/docs/data-sources/source_us_census.md
@@ -44,6 +44,5 @@ Read-Only:
- `api_key` (String) Your API Key. Get your key here.
- `query_params` (String) The query parameters portion of the GET request, without the api key
- `query_path` (String) The path portion of the GET request
-- `source_type` (String) must be one of ["us-census"]
diff --git a/docs/data-sources/source_vantage.md b/docs/data-sources/source_vantage.md
index a555ecf01..b23bf9b91 100644
--- a/docs/data-sources/source_vantage.md
+++ b/docs/data-sources/source_vantage.md
@@ -42,6 +42,5 @@ data "airbyte_source_vantage" "my_source_vantage" {
Read-Only:
- `access_token` (String) Your API Access token. See here.
-- `source_type` (String) must be one of ["vantage"]
diff --git a/docs/data-sources/source_webflow.md b/docs/data-sources/source_webflow.md
index f842f597c..6a8248a68 100644
--- a/docs/data-sources/source_webflow.md
+++ b/docs/data-sources/source_webflow.md
@@ -43,6 +43,5 @@ Read-Only:
- `api_key` (String) The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api
- `site_id` (String) The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites
-- `source_type` (String) must be one of ["webflow"]
diff --git a/docs/data-sources/source_whisky_hunter.md b/docs/data-sources/source_whisky_hunter.md
index 410fbfb32..26ce9b2b2 100644
--- a/docs/data-sources/source_whisky_hunter.md
+++ b/docs/data-sources/source_whisky_hunter.md
@@ -39,8 +39,4 @@ data "airbyte_source_whisky_hunter" "my_source_whiskyhunter" {
### Nested Schema for `configuration`
-Read-Only:
-
-- `source_type` (String) must be one of ["whisky-hunter"]
-
diff --git a/docs/data-sources/source_wikipedia_pageviews.md b/docs/data-sources/source_wikipedia_pageviews.md
index b08e98319..dae371b16 100644
--- a/docs/data-sources/source_wikipedia_pageviews.md
+++ b/docs/data-sources/source_wikipedia_pageviews.md
@@ -47,7 +47,6 @@ Read-Only:
- `country` (String) The ISO 3166-1 alpha-2 code of a country for which to retrieve top articles.
- `end` (String) The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format.
- `project` (String) If you want to filter by project, use the domain of any Wikimedia project.
-- `source_type` (String) must be one of ["wikipedia-pageviews"]
- `start` (String) The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.
diff --git a/docs/data-sources/source_woocommerce.md b/docs/data-sources/source_woocommerce.md
index 771edd9af..70e11d187 100644
--- a/docs/data-sources/source_woocommerce.md
+++ b/docs/data-sources/source_woocommerce.md
@@ -44,7 +44,6 @@ Read-Only:
- `api_key` (String) Customer Key for API in WooCommerce shop
- `api_secret` (String) Customer Secret for API in WooCommerce shop
- `shop` (String) The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'.
-- `source_type` (String) must be one of ["woocommerce"]
- `start_date` (String) The date you would like to replicate data from. Format: YYYY-MM-DD
diff --git a/docs/data-sources/source_xero.md b/docs/data-sources/source_xero.md
index f2e902a60..a85374cc3 100644
--- a/docs/data-sources/source_xero.md
+++ b/docs/data-sources/source_xero.md
@@ -42,7 +42,6 @@ data "airbyte_source_xero" "my_source_xero" {
Read-Only:
- `authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--authentication))
-- `source_type` (String) must be one of ["xero"]
- `start_date` (String) UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ. Any data with created_at before this data will not be synced.
- `tenant_id` (String) Enter your Xero organization's Tenant ID
diff --git a/docs/data-sources/source_xkcd.md b/docs/data-sources/source_xkcd.md
index 8ff9e638d..ce47e5e59 100644
--- a/docs/data-sources/source_xkcd.md
+++ b/docs/data-sources/source_xkcd.md
@@ -39,8 +39,4 @@ data "airbyte_source_xkcd" "my_source_xkcd" {
### Nested Schema for `configuration`
-Read-Only:
-
-- `source_type` (String) must be one of ["xkcd"]
-
diff --git a/docs/data-sources/source_yandex_metrica.md b/docs/data-sources/source_yandex_metrica.md
index b92daa5f2..b2557abeb 100644
--- a/docs/data-sources/source_yandex_metrica.md
+++ b/docs/data-sources/source_yandex_metrica.md
@@ -44,7 +44,6 @@ Read-Only:
- `auth_token` (String) Your Yandex Metrica API access token
- `counter_id` (String) Counter ID
- `end_date` (String) Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date.
-- `source_type` (String) must be one of ["yandex-metrica"]
- `start_date` (String) Starting point for your data replication, in format of "YYYY-MM-DD".
diff --git a/docs/data-sources/source_yotpo.md b/docs/data-sources/source_yotpo.md
index 38279d770..b0e2de56d 100644
--- a/docs/data-sources/source_yotpo.md
+++ b/docs/data-sources/source_yotpo.md
@@ -44,7 +44,6 @@ Read-Only:
- `access_token` (String) Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication)
- `app_key` (String) App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)
- `email` (String) Email address registered with yotpo.
-- `source_type` (String) must be one of ["yotpo"]
- `start_date` (String) Date time filter for incremental filter, Specify which date to extract from.
diff --git a/docs/data-sources/source_younium.md b/docs/data-sources/source_younium.md
index 98f3eece0..6f4489414 100644
--- a/docs/data-sources/source_younium.md
+++ b/docs/data-sources/source_younium.md
@@ -44,7 +44,6 @@ Read-Only:
- `legal_entity` (String) Legal Entity that data should be pulled from
- `password` (String) Account password for younium account API key
- `playground` (Boolean) Property defining if connector is used against playground or production environment
-- `source_type` (String) must be one of ["younium"]
- `username` (String) Username for Younium account
diff --git a/docs/data-sources/source_youtube_analytics.md b/docs/data-sources/source_youtube_analytics.md
index cb19bd3e7..762b13697 100644
--- a/docs/data-sources/source_youtube_analytics.md
+++ b/docs/data-sources/source_youtube_analytics.md
@@ -42,17 +42,13 @@ data "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["youtube-analytics"]
### Nested Schema for `configuration.credentials`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The Client ID of your developer application
- `client_secret` (String) The client secret of your developer application
- `refresh_token` (String) A refresh token generated using the above client ID and secret
diff --git a/docs/data-sources/source_zendesk_chat.md b/docs/data-sources/source_zendesk_chat.md
index 6425e6c15..340c5bb01 100644
--- a/docs/data-sources/source_zendesk_chat.md
+++ b/docs/data-sources/source_zendesk_chat.md
@@ -42,7 +42,6 @@ data "airbyte_source_zendesk_chat" "my_source_zendeskchat" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["zendesk-chat"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z.
- `subdomain` (String) Required if you access Zendesk Chat from a Zendesk Support subdomain.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token to make authenticated requests.
-- `credentials` (String) must be one of ["access_token"]
@@ -73,7 +71,6 @@ Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
- `client_id` (String) The Client ID of your OAuth application
- `client_secret` (String) The Client Secret of your OAuth application.
-- `credentials` (String) must be one of ["oauth2.0"]
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
- `access_token` (String) The Access Token to make authenticated requests.
-- `credentials` (String) must be one of ["access_token"]
@@ -94,7 +90,6 @@ Read-Only:
- `access_token` (String) Access Token for making authenticated requests.
- `client_id` (String) The Client ID of your OAuth application
- `client_secret` (String) The Client Secret of your OAuth application.
-- `credentials` (String) must be one of ["oauth2.0"]
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
diff --git a/docs/data-sources/source_zendesk_sunshine.md b/docs/data-sources/source_zendesk_sunshine.md
index 20b70b156..91ea152b9 100644
--- a/docs/data-sources/source_zendesk_sunshine.md
+++ b/docs/data-sources/source_zendesk_sunshine.md
@@ -42,7 +42,6 @@ data "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" {
Read-Only:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["zendesk-sunshine"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z.
- `subdomain` (String) The subdomain for your Zendesk Account.
@@ -62,7 +61,6 @@ Read-Only:
Read-Only:
- `api_token` (String) API Token. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account
@@ -72,7 +70,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Long-term access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
@@ -83,7 +80,6 @@ Read-Only:
Read-Only:
- `api_token` (String) API Token. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account
@@ -93,7 +89,6 @@ Read-Only:
Read-Only:
- `access_token` (String) Long-term access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
diff --git a/docs/data-sources/source_zendesk_support.md b/docs/data-sources/source_zendesk_support.md
index 9b4abef5d..2bc041cc7 100644
--- a/docs/data-sources/source_zendesk_support.md
+++ b/docs/data-sources/source_zendesk_support.md
@@ -43,7 +43,6 @@ Read-Only:
- `credentials` (Attributes) Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. (see [below for nested schema](#nestedatt--configuration--credentials))
- `ignore_pagination` (Boolean) Makes each stream read a single page of data.
-- `source_type` (String) must be one of ["zendesk-support"]
- `start_date` (String) The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `subdomain` (String) This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain.
@@ -60,58 +59,42 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_zendesk_support_authentication_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) The value of the API token generated. See our full documentation for more information on generating this token.
-- `credentials` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account.
### Nested Schema for `configuration.credentials.source_zendesk_support_authentication_o_auth2_0`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
- `access_token` (String) The OAuth access token. See the Zendesk docs for more information on generating this token.
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The OAuth client's ID. See this guide for more information.
- `client_secret` (String) The OAuth client secret. See this guide for more information.
-- `credentials` (String) must be one of ["oauth2.0"]
### Nested Schema for `configuration.credentials.source_zendesk_support_update_authentication_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) The value of the API token generated. See our full documentation for more information on generating this token.
-- `credentials` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account.
### Nested Schema for `configuration.credentials.source_zendesk_support_update_authentication_o_auth2_0`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
- `access_token` (String) The OAuth access token. See the Zendesk docs for more information on generating this token.
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The OAuth client's ID. See this guide for more information.
- `client_secret` (String) The OAuth client secret. See this guide for more information.
-- `credentials` (String) must be one of ["oauth2.0"]
diff --git a/docs/data-sources/source_zendesk_talk.md b/docs/data-sources/source_zendesk_talk.md
index 95a5dc86b..ac3498bbd 100644
--- a/docs/data-sources/source_zendesk_talk.md
+++ b/docs/data-sources/source_zendesk_talk.md
@@ -42,7 +42,6 @@ data "airbyte_source_zendesk_talk" "my_source_zendesktalk" {
Read-Only:
- `credentials` (Attributes) Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["zendesk-talk"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `subdomain` (String) This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain.
@@ -59,28 +58,20 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_zendesk_talk_authentication_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) The value of the API token generated. See the docs for more information.
-- `auth_type` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account.
### Nested Schema for `configuration.credentials.source_zendesk_talk_authentication_o_auth2_0`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
- `access_token` (String) The value of the API token generated. See the docs for more information.
-- `auth_type` (String) must be one of ["oauth2.0"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) Client ID
- `client_secret` (String) Client Secret
@@ -88,28 +79,20 @@ Read-Only:
### Nested Schema for `configuration.credentials.source_zendesk_talk_update_authentication_api_token`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
+- `additional_properties` (String) Parsed as JSON.
- `api_token` (String) The value of the API token generated. See the docs for more information.
-- `auth_type` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account.
### Nested Schema for `configuration.credentials.source_zendesk_talk_update_authentication_o_auth2_0`
-Optional:
-
-- `additional_properties` (String) Parsed as JSON.
-
Read-Only:
- `access_token` (String) The value of the API token generated. See the docs for more information.
-- `auth_type` (String) must be one of ["oauth2.0"]
+- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) Client ID
- `client_secret` (String) Client Secret
diff --git a/docs/data-sources/source_zenloop.md b/docs/data-sources/source_zenloop.md
index ea54a14ee..750d71f6b 100644
--- a/docs/data-sources/source_zenloop.md
+++ b/docs/data-sources/source_zenloop.md
@@ -43,7 +43,6 @@ Read-Only:
- `api_token` (String) Zenloop API Token. You can get the API token in settings page here
- `date_from` (String) Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced
-- `source_type` (String) must be one of ["zenloop"]
- `survey_group_id` (String) Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups
- `survey_id` (String) Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys
diff --git a/docs/data-sources/source_zoho_crm.md b/docs/data-sources/source_zoho_crm.md
index 1c856c4d9..e1372ac98 100644
--- a/docs/data-sources/source_zoho_crm.md
+++ b/docs/data-sources/source_zoho_crm.md
@@ -50,7 +50,6 @@ Choose your Edition of Zoho CRM to determine API Concurrency Limits
- `environment` (String) must be one of ["Production", "Developer", "Sandbox"]
Please choose the environment
- `refresh_token` (String) OAuth2.0 Refresh Token
-- `source_type` (String) must be one of ["zoho-crm"]
- `start_datetime` (String) ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM`
diff --git a/docs/data-sources/source_zoom.md b/docs/data-sources/source_zoom.md
index 8ad13c4cf..45da5586d 100644
--- a/docs/data-sources/source_zoom.md
+++ b/docs/data-sources/source_zoom.md
@@ -42,6 +42,5 @@ data "airbyte_source_zoom" "my_source_zoom" {
Read-Only:
- `jwt_token` (String) JWT Token
-- `source_type` (String) must be one of ["zoom"]
diff --git a/docs/data-sources/source_zuora.md b/docs/data-sources/source_zuora.md
index 28e7259ce..bddcbfc40 100644
--- a/docs/data-sources/source_zuora.md
+++ b/docs/data-sources/source_zuora.md
@@ -45,7 +45,6 @@ Read-Only:
- `client_secret` (String) Your OAuth user Client Secret
- `data_query` (String) must be one of ["Live", "Unlimited"]
Choose between `Live`, or `Unlimited` - the optimized, replicated database at 12 hours freshness for high volume extraction Link
-- `source_type` (String) must be one of ["zuora"]
- `start_date` (String) Start Date in format: YYYY-MM-DD
- `tenant_endpoint` (String) must be one of ["US Production", "US Cloud Production", "US API Sandbox", "US Cloud API Sandbox", "US Central Sandbox", "US Performance Test", "EU Production", "EU API Sandbox", "EU Central Sandbox"]
Please choose the right endpoint where your Tenant is located. More info by this Link
diff --git a/docs/resources/connection.md b/docs/resources/connection.md
index 83e738768..f693acf43 100644
--- a/docs/resources/connection.md
+++ b/docs/resources/connection.md
@@ -20,7 +20,7 @@ resource "airbyte_connection" "my_connection" {
cursor_field = [
"...",
]
- name = "Terrence Rau"
+ name = "Cecil Johnson"
primary_key = [
[
"...",
@@ -30,19 +30,19 @@ resource "airbyte_connection" "my_connection" {
},
]
}
- data_residency = "us"
- destination_id = "d69a674e-0f46-47cc-8796-ed151a05dfc2"
- name = "Wilfred Wolff"
- namespace_definition = "custom_format"
+ data_residency = "auto"
+ destination_id = "e362083e-afc8-4559-94e0-a570f6dd427d"
+ name = "Melvin O'Connell"
+ namespace_definition = "source"
namespace_format = SOURCE_NAMESPACE
- non_breaking_schema_updates_behavior = "disable_connection"
+ non_breaking_schema_updates_behavior = "propagate_columns"
prefix = "...my_prefix..."
schedule = {
basic_timing = "...my_basic_timing..."
cron_expression = "...my_cron_expression..."
- schedule_type = "cron"
+ schedule_type = "manual"
}
- source_id = "ca1ba928-fc81-4674-acb7-39205929396f"
+ source_id = "78358423-25b6-4c7b-bfd2-fd307d60cb97"
status = "deprecated"
}
```
diff --git a/docs/resources/destination_aws_datalake.md b/docs/resources/destination_aws_datalake.md
index a8eb09c1d..64fab5946 100644
--- a/docs/resources/destination_aws_datalake.md
+++ b/docs/resources/destination_aws_datalake.md
@@ -20,27 +20,25 @@ resource "airbyte_destination_aws_datalake" "my_destination_awsdatalake" {
bucket_prefix = "...my_bucket_prefix..."
credentials = {
destination_aws_datalake_authentication_mode_iam_role = {
- credentials_title = "IAM Role"
- role_arn = "...my_role_arn..."
+ role_arn = "...my_role_arn..."
}
}
- destination_type = "aws-datalake"
format = {
destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json = {
compression_codec = "GZIP"
format_type = "JSONL"
}
}
- glue_catalog_float_as_decimal = true
+ glue_catalog_float_as_decimal = false
lakeformation_database_default_tag_key = "pii_level"
lakeformation_database_default_tag_values = "private,public"
lakeformation_database_name = "...my_lakeformation_database_name..."
- lakeformation_governed_tables = true
- partitioning = "DAY"
- region = "ap-southeast-1"
+ lakeformation_governed_tables = false
+ partitioning = "YEAR/MONTH/DAY"
+ region = "eu-west-1"
}
- name = "Dr. Rickey Boyle"
- workspace_id = "aa2352c5-9559-407a-bf1a-3a2fa9467739"
+ name = "Rosa Harris"
+ workspace_id = "0f2a9b0d-e149-47ac-8629-f5a79ed4a852"
}
```
@@ -65,10 +63,7 @@ Required:
- `bucket_name` (String) The name of the S3 bucket. Read more here.
- `credentials` (Attributes) Choose How to Authenticate to AWS. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `destination_type` (String) must be one of ["aws-datalake"]
- `lakeformation_database_name` (String) The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace.
-- `region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the S3 bucket. See here for all region codes.
Optional:
@@ -81,6 +76,8 @@ Optional:
- `lakeformation_governed_tables` (Boolean) Whether to create tables as LF governed tables.
- `partitioning` (String) must be one of ["NO PARTITIONING", "DATE", "YEAR", "MONTH", "DAY", "YEAR/MONTH", "YEAR/MONTH/DAY"]
Partition data by cursor fields when a cursor field is a date
+- `region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the S3 bucket. See here for all region codes.
### Nested Schema for `configuration.credentials`
@@ -97,8 +94,6 @@ Optional:
Required:
-- `credentials_title` (String) must be one of ["IAM Role"]
-Name of the credentials
- `role_arn` (String) Will assume this role to write data to s3
@@ -109,8 +104,6 @@ Required:
- `aws_access_key_id` (String) AWS User Access Key Id
- `aws_secret_access_key` (String) Secret Access Key
-- `credentials_title` (String) must be one of ["IAM User"]
-Name of the credentials
@@ -118,8 +111,6 @@ Name of the credentials
Required:
-- `credentials_title` (String) must be one of ["IAM Role"]
-Name of the credentials
- `role_arn` (String) Will assume this role to write data to s3
@@ -130,8 +121,6 @@ Required:
- `aws_access_key_id` (String) AWS User Access Key Id
- `aws_secret_access_key` (String) Secret Access Key
-- `credentials_title` (String) must be one of ["IAM User"]
-Name of the credentials
@@ -148,52 +137,40 @@ Optional:
### Nested Schema for `configuration.format.destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression_codec` (String) must be one of ["UNCOMPRESSED", "GZIP"]
The compression algorithm used to compress data.
+- `format_type` (String) must be one of ["JSONL"]
### Nested Schema for `configuration.format.destination_aws_datalake_output_format_wildcard_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `compression_codec` (String) must be one of ["UNCOMPRESSED", "SNAPPY", "GZIP", "ZSTD"]
The compression algorithm used to compress data.
+- `format_type` (String) must be one of ["Parquet"]
### Nested Schema for `configuration.format.destination_aws_datalake_update_output_format_wildcard_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression_codec` (String) must be one of ["UNCOMPRESSED", "GZIP"]
The compression algorithm used to compress data.
+- `format_type` (String) must be one of ["JSONL"]
### Nested Schema for `configuration.format.destination_aws_datalake_update_output_format_wildcard_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `compression_codec` (String) must be one of ["UNCOMPRESSED", "SNAPPY", "GZIP", "ZSTD"]
The compression algorithm used to compress data.
+- `format_type` (String) must be one of ["Parquet"]
diff --git a/docs/resources/destination_azure_blob_storage.md b/docs/resources/destination_azure_blob_storage.md
index 4fc8e3411..e00e2c602 100644
--- a/docs/resources/destination_azure_blob_storage.md
+++ b/docs/resources/destination_azure_blob_storage.md
@@ -21,16 +21,14 @@ resource "airbyte_destination_azure_blob_storage" "my_destination_azureblobstora
azure_blob_storage_endpoint_domain_name = "blob.core.windows.net"
azure_blob_storage_output_buffer_size = 5
azure_blob_storage_spill_size = 500
- destination_type = "azure-blob-storage"
format = {
destination_azure_blob_storage_output_format_csv_comma_separated_values = {
- flattening = "No flattening"
- format_type = "CSV"
+ flattening = "No flattening"
}
}
}
- name = "Matt Hamill"
- workspace_id = "3f5ad019-da1f-4fe7-8f09-7b0074f15471"
+ name = "Aaron Wisozk"
+ workspace_id = "fb9aea60-f386-4615-a68b-5c3f592b38ac"
}
```
@@ -55,7 +53,6 @@ Required:
- `azure_blob_storage_account_key` (String) The Azure blob storage account key.
- `azure_blob_storage_account_name` (String) The account's name of the Azure Blob Storage.
-- `destination_type` (String) must be one of ["azure-blob-storage"]
- `format` (Attributes) Output data format (see [below for nested schema](#nestedatt--configuration--format))
Optional:
@@ -78,36 +75,26 @@ Optional:
### Nested Schema for `configuration.format.destination_azure_blob_storage_output_format_csv_comma_separated_values`
-Required:
+Optional:
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
-- `format_type` (String) must be one of ["CSV"]
### Nested Schema for `configuration.format.destination_azure_blob_storage_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
### Nested Schema for `configuration.format.destination_azure_blob_storage_update_output_format_csv_comma_separated_values`
-Required:
+Optional:
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
-- `format_type` (String) must be one of ["CSV"]
### Nested Schema for `configuration.format.destination_azure_blob_storage_update_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
diff --git a/docs/resources/destination_bigquery.md b/docs/resources/destination_bigquery.md
index aaf0fbe69..f8e99902c 100644
--- a/docs/resources/destination_bigquery.md
+++ b/docs/resources/destination_bigquery.md
@@ -18,13 +18,11 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" {
big_query_client_buffer_size_mb = 15
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
- dataset_location = "australia-southeast2"
- destination_type = "bigquery"
+ dataset_location = "asia-south1"
loading_method = {
destination_bigquery_loading_method_gcs_staging = {
credential = {
destination_bigquery_loading_method_gcs_staging_credential_hmac_key = {
- credential_type = "HMAC_KEY"
hmac_key_access_id = "1234567890abcdefghij1234"
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
@@ -33,15 +31,14 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" {
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
keep_files_in_gcs_bucket = "Delete all tmp files from GCS"
- method = "GCS Staging"
}
}
project_id = "...my_project_id..."
raw_data_dataset = "...my_raw_data_dataset..."
- transformation_priority = "batch"
+ transformation_priority = "interactive"
}
- name = "Edna Pouros"
- workspace_id = "d488e1e9-1e45-40ad-aabd-44269802d502"
+ name = "Otis Hackett"
+ workspace_id = "6bf4ba0e-7ac6-43cd-aaeb-b5cd76c9fd07"
}
```
@@ -67,7 +64,6 @@ Required:
- `dataset_id` (String) The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
- `dataset_location` (String) must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]
The location of the dataset. Warning: Changes made after creation will not be applied. Read more here.
-- `destination_type` (String) must be one of ["bigquery"]
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset. Read more here.
Optional:
@@ -97,7 +93,6 @@ Required:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_loading_method_gcs_staging--credential))
- `gcs_bucket_name` (String) The name of the GCS bucket. Read more here.
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written.
-- `method` (String) must be one of ["GCS Staging"]
Optional:
@@ -117,7 +112,6 @@ Optional:
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -127,10 +121,6 @@ Required:
### Nested Schema for `configuration.loading_method.destination_bigquery_loading_method_standard_inserts`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_gcs_staging`
@@ -140,7 +130,6 @@ Required:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_update_loading_method_gcs_staging--credential))
- `gcs_bucket_name` (String) The name of the GCS bucket. Read more here.
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written.
-- `method` (String) must be one of ["GCS Staging"]
Optional:
@@ -160,7 +149,6 @@ Optional:
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -170,8 +158,4 @@ Required:
### Nested Schema for `configuration.loading_method.destination_bigquery_update_loading_method_standard_inserts`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/resources/destination_bigquery_denormalized.md b/docs/resources/destination_bigquery_denormalized.md
index 0c6bbd5fc..3372f6b9c 100644
--- a/docs/resources/destination_bigquery_denormalized.md
+++ b/docs/resources/destination_bigquery_denormalized.md
@@ -18,13 +18,11 @@ resource "airbyte_destination_bigquery_denormalized" "my_destination_bigqueryden
big_query_client_buffer_size_mb = 15
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
- dataset_location = "europe-west7"
- destination_type = "bigquery-denormalized"
+ dataset_location = "europe-west9"
loading_method = {
destination_bigquery_denormalized_loading_method_gcs_staging = {
credential = {
destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key = {
- credential_type = "HMAC_KEY"
hmac_key_access_id = "1234567890abcdefghij1234"
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
@@ -33,13 +31,12 @@ resource "airbyte_destination_bigquery_denormalized" "my_destination_bigqueryden
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
keep_files_in_gcs_bucket = "Keep all tmp files in GCS"
- method = "GCS Staging"
}
}
project_id = "...my_project_id..."
}
- name = "Francisco Windler"
- workspace_id = "c969e9a3-efa7-47df-b14c-d66ae395efb9"
+ name = "Frankie Runolfsson"
+ workspace_id = "cb44c87d-9163-4ca2-a92d-142842c5e975"
}
```
@@ -63,7 +60,6 @@ resource "airbyte_destination_bigquery_denormalized" "my_destination_bigqueryden
Required:
- `dataset_id` (String) The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
-- `destination_type` (String) must be one of ["bigquery-denormalized"]
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset. Read more here.
Optional:
@@ -92,7 +88,6 @@ Required:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_loading_method_gcs_staging--credential))
- `gcs_bucket_name` (String) The name of the GCS bucket. Read more here.
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written. Read more here.
-- `method` (String) must be one of ["GCS Staging"]
Optional:
@@ -112,7 +107,6 @@ Optional:
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -122,10 +116,6 @@ Required:
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_loading_method_standard_inserts`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_gcs_staging`
@@ -135,7 +125,6 @@ Required:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--loading_method--destination_bigquery_denormalized_update_loading_method_gcs_staging--credential))
- `gcs_bucket_name` (String) The name of the GCS bucket. Read more here.
- `gcs_bucket_path` (String) Directory under the GCS bucket where data will be written. Read more here.
-- `method` (String) must be one of ["GCS Staging"]
Optional:
@@ -155,7 +144,6 @@ Optional:
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
@@ -165,8 +153,4 @@ Required:
### Nested Schema for `configuration.loading_method.destination_bigquery_denormalized_update_loading_method_standard_inserts`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/resources/destination_clickhouse.md b/docs/resources/destination_clickhouse.md
index 5dbe84b6c..59d992419 100644
--- a/docs/resources/destination_clickhouse.md
+++ b/docs/resources/destination_clickhouse.md
@@ -15,21 +15,18 @@ DestinationClickhouse Resource
```terraform
resource "airbyte_destination_clickhouse" "my_destination_clickhouse" {
configuration = {
- database = "...my_database..."
- destination_type = "clickhouse"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 8123
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 8123
tunnel_method = {
- destination_clickhouse_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_clickhouse_ssh_tunnel_method_no_tunnel = {}
}
- username = "Magdalena_Kuvalis"
+ username = "Derick.Auer8"
}
- name = "Sandy Huels"
- workspace_id = "97074ba4-469b-46e2-9419-59890afa563e"
+ name = "Stanley Schaefer"
+ workspace_id = "933cc05b-91a7-42d2-b00d-cd43ac809ede"
}
```
@@ -53,15 +50,14 @@ resource "airbyte_destination_clickhouse" "my_destination_clickhouse" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["clickhouse"]
- `host` (String) Hostname of the database.
-- `port` (Number) HTTP port of the database.
- `username` (String) Username to use to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
+- `port` (Number) HTTP port of the database.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -79,11 +75,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_ssh_tunnel_method_password_authentication`
@@ -91,12 +82,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_ssh_tunnel_method_ssh_key_authentication`
@@ -105,19 +97,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_clickhouse_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_clickhouse_update_ssh_tunnel_method_no_tunnel`
@@ -126,12 +114,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_clickhouse_update_ssh_tunnel_method_ssh_key_authentication`
@@ -140,9 +129,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_convex.md b/docs/resources/destination_convex.md
index 680d10d2b..816f92e65 100644
--- a/docs/resources/destination_convex.md
+++ b/docs/resources/destination_convex.md
@@ -15,12 +15,11 @@ DestinationConvex Resource
```terraform
resource "airbyte_destination_convex" "my_destination_convex" {
configuration = {
- access_key = "...my_access_key..."
- deployment_url = "https://murky-swan-635.convex.cloud"
- destination_type = "convex"
+ access_key = "...my_access_key..."
+ deployment_url = "https://cluttered-owl-337.convex.cloud"
}
- name = "Joyce Kertzmann"
- workspace_id = "4c8b711e-5b7f-4d2e-9028-921cddc69260"
+ name = "Alton Bernier"
+ workspace_id = "5e15759d-85e2-4c27-a398-b4688adb4265"
}
```
@@ -45,6 +44,5 @@ Required:
- `access_key` (String) API access key used to send data to a Convex deployment.
- `deployment_url` (String) URL of the Convex deployment that is the destination
-- `destination_type` (String) must be one of ["convex"]
diff --git a/docs/resources/destination_cumulio.md b/docs/resources/destination_cumulio.md
index 29875b578..241dc42de 100644
--- a/docs/resources/destination_cumulio.md
+++ b/docs/resources/destination_cumulio.md
@@ -15,13 +15,12 @@ DestinationCumulio Resource
```terraform
resource "airbyte_destination_cumulio" "my_destination_cumulio" {
configuration = {
- api_host = "...my_api_host..."
- api_key = "...my_api_key..."
- api_token = "...my_api_token..."
- destination_type = "cumulio"
+ api_host = "...my_api_host..."
+ api_key = "...my_api_key..."
+ api_token = "...my_api_token..."
}
- name = "Ebony Predovic"
- workspace_id = "6b0d5f0d-30c5-4fbb-a587-053202c73d5f"
+ name = "Pat Fadel"
+ workspace_id = "fa18b5ab-2eb4-4f41-a22e-39b661a09af7"
}
```
@@ -44,9 +43,11 @@ resource "airbyte_destination_cumulio" "my_destination_cumulio" {
Required:
-- `api_host` (String) URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
- `api_key` (String) An API key generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
- `api_token` (String) The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
-- `destination_type` (String) must be one of ["cumulio"]
+
+Optional:
+
+- `api_host` (String) URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
diff --git a/docs/resources/destination_databend.md b/docs/resources/destination_databend.md
index 7cf563b9e..57a1ad0a3 100644
--- a/docs/resources/destination_databend.md
+++ b/docs/resources/destination_databend.md
@@ -15,16 +15,15 @@ DestinationDatabend Resource
```terraform
resource "airbyte_destination_databend" "my_destination_databend" {
configuration = {
- database = "...my_database..."
- destination_type = "databend"
- host = "...my_host..."
- password = "...my_password..."
- port = 443
- table = "default"
- username = "Leo.Purdy"
+ database = "...my_database..."
+ host = "...my_host..."
+ password = "...my_password..."
+ port = 443
+ table = "default"
+ username = "Casimir70"
}
- name = "Bobby Kutch V"
- workspace_id = "b3fe49a8-d9cb-4f48-a333-23f9b77f3a41"
+ name = "Sheri Howell"
+ workspace_id = "5d335e03-abeb-4b71-b58e-872ec68b6d2a"
}
```
@@ -48,7 +47,6 @@ resource "airbyte_destination_databend" "my_destination_databend" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["databend"]
- `host` (String) Hostname of the database.
- `username` (String) Username to use to access the database.
diff --git a/docs/resources/destination_databricks.md b/docs/resources/destination_databricks.md
index c8014b63a..592863106 100644
--- a/docs/resources/destination_databricks.md
+++ b/docs/resources/destination_databricks.md
@@ -17,22 +17,19 @@ resource "airbyte_destination_databricks" "my_destination_databricks" {
configuration = {
accept_terms = false
data_source = {
- destination_databricks_data_source_recommended_managed_tables = {
- data_source_type = "MANAGED_TABLES_STORAGE"
- }
+ destination_databricks_data_source_recommended_managed_tables = {}
}
database = "...my_database..."
databricks_http_path = "sql/protocolvx/o/1234567489/0000-1111111-abcd90"
databricks_personal_access_token = "dapi0123456789abcdefghij0123456789AB"
databricks_port = "443"
databricks_server_hostname = "abc-12345678-wxyz.cloud.databricks.com"
- destination_type = "databricks"
- enable_schema_evolution = true
+ enable_schema_evolution = false
purge_staging_data = false
schema = "default"
}
- name = "Bertha Thompson"
- workspace_id = "69280d1b-a77a-489e-bf73-7ae4203ce5e6"
+ name = "Willis Haley"
+ workspace_id = "941566f2-2fd3-40a2-8af8-c1d27b3e573c"
}
```
@@ -55,15 +52,14 @@ resource "airbyte_destination_databricks" "my_destination_databricks" {
Required:
-- `accept_terms` (Boolean) You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector.
- `data_source` (Attributes) Storage on which the delta lake is built. (see [below for nested schema](#nestedatt--configuration--data_source))
- `databricks_http_path` (String) Databricks Cluster HTTP Path.
- `databricks_personal_access_token` (String) Databricks Personal Access Token for making authenticated requests.
- `databricks_server_hostname` (String) Databricks Cluster Server Hostname.
-- `destination_type` (String) must be one of ["databricks"]
Optional:
+- `accept_terms` (Boolean) You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector.
- `database` (String) The name of the catalog. If not specified otherwise, the "hive_metastore" will be used.
- `databricks_port` (String) Databricks Cluster Port.
- `enable_schema_evolution` (Boolean) Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.
@@ -87,17 +83,16 @@ Optional:
Required:
-- `data_source_type` (String) must be one of ["S3_STORAGE"]
- `s3_access_key_id` (String) The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
- `s3_bucket_name` (String) The name of the S3 bucket to use for intermittent staging of the data.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written.
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the S3 staging bucket to use if utilising a copy strategy.
- `s3_secret_access_key` (String) The corresponding secret to the above access key id.
Optional:
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the S3 staging bucket to use if utilising a copy strategy.
@@ -108,7 +103,6 @@ Required:
- `azure_blob_storage_account_name` (String) The account's name of the Azure Blob Storage.
- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container.
- `azure_blob_storage_sas_token` (String) Shared access signature (SAS) token to grant limited access to objects in your storage account.
-- `data_source_type` (String) must be one of ["AZURE_BLOB_STORAGE"]
Optional:
@@ -118,27 +112,22 @@ Optional:
### Nested Schema for `configuration.data_source.destination_databricks_data_source_recommended_managed_tables`
-Required:
-
-- `data_source_type` (String) must be one of ["MANAGED_TABLES_STORAGE"]
-
### Nested Schema for `configuration.data_source.destination_databricks_update_data_source_amazon_s3`
Required:
-- `data_source_type` (String) must be one of ["S3_STORAGE"]
- `s3_access_key_id` (String) The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
- `s3_bucket_name` (String) The name of the S3 bucket to use for intermittent staging of the data.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written.
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the S3 staging bucket to use if utilising a copy strategy.
- `s3_secret_access_key` (String) The corresponding secret to the above access key id.
Optional:
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the S3 staging bucket to use if utilising a copy strategy.
@@ -149,7 +138,6 @@ Required:
- `azure_blob_storage_account_name` (String) The account's name of the Azure Blob Storage.
- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container.
- `azure_blob_storage_sas_token` (String) Shared access signature (SAS) token to grant limited access to objects in your storage account.
-- `data_source_type` (String) must be one of ["AZURE_BLOB_STORAGE"]
Optional:
@@ -159,8 +147,4 @@ Optional:
### Nested Schema for `configuration.data_source.destination_databricks_update_data_source_recommended_managed_tables`
-Required:
-
-- `data_source_type` (String) must be one of ["MANAGED_TABLES_STORAGE"]
-
diff --git a/docs/resources/destination_dev_null.md b/docs/resources/destination_dev_null.md
index 4d2ed7135..8b9881278 100644
--- a/docs/resources/destination_dev_null.md
+++ b/docs/resources/destination_dev_null.md
@@ -15,15 +15,12 @@ DestinationDevNull Resource
```terraform
resource "airbyte_destination_dev_null" "my_destination_devnull" {
configuration = {
- destination_type = "dev-null"
test_destination = {
- destination_dev_null_test_destination_silent = {
- test_destination_type = "SILENT"
- }
+ destination_dev_null_test_destination_silent = {}
}
}
- name = "Rene Hane"
- workspace_id = "a0d446ce-2af7-4a73-8f3b-e453f870b326"
+ name = "Tasha Rodriguez"
+ workspace_id = "23613d23-ce87-4529-baec-4aa100bb2392"
}
```
@@ -46,7 +43,6 @@ resource "airbyte_destination_dev_null" "my_destination_devnull" {
Required:
-- `destination_type` (String) must be one of ["dev-null"]
- `test_destination` (Attributes) The type of destination to be used (see [below for nested schema](#nestedatt--configuration--test_destination))
@@ -60,16 +56,8 @@ Optional:
### Nested Schema for `configuration.test_destination.destination_dev_null_test_destination_silent`
-Required:
-
-- `test_destination_type` (String) must be one of ["SILENT"]
-
### Nested Schema for `configuration.test_destination.destination_dev_null_update_test_destination_silent`
-Required:
-
-- `test_destination_type` (String) must be one of ["SILENT"]
-
diff --git a/docs/resources/destination_dynamodb.md b/docs/resources/destination_dynamodb.md
index dc59cc20e..199e1f9b3 100644
--- a/docs/resources/destination_dynamodb.md
+++ b/docs/resources/destination_dynamodb.md
@@ -16,14 +16,13 @@ DestinationDynamodb Resource
resource "airbyte_destination_dynamodb" "my_destination_dynamodb" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "dynamodb"
dynamodb_endpoint = "http://localhost:9000"
- dynamodb_region = "eu-south-1"
+ dynamodb_region = "us-west-2"
dynamodb_table_name_prefix = "airbyte_sync"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Joanna Kohler"
- workspace_id = "29cdb1a8-422b-4b67-9d23-22715bf0cbb1"
+ name = "Penny Boyer"
+ workspace_id = "8452de7c-35eb-492a-9e95-2da293962c00"
}
```
@@ -47,14 +46,13 @@ resource "airbyte_destination_dynamodb" "my_destination_dynamodb" {
Required:
- `access_key_id` (String) The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.
-- `destination_type` (String) must be one of ["dynamodb"]
-- `dynamodb_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the DynamoDB.
- `dynamodb_table_name_prefix` (String) The prefix to use when naming DynamoDB tables.
- `secret_access_key` (String) The corresponding secret to the access key id.
Optional:
- `dynamodb_endpoint` (String) This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).
+- `dynamodb_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the DynamoDB.
diff --git a/docs/resources/destination_elasticsearch.md b/docs/resources/destination_elasticsearch.md
index df6faf196..08c0945c8 100644
--- a/docs/resources/destination_elasticsearch.md
+++ b/docs/resources/destination_elasticsearch.md
@@ -19,16 +19,14 @@ resource "airbyte_destination_elasticsearch" "my_destination_elasticsearch" {
destination_elasticsearch_authentication_method_api_key_secret = {
api_key_id = "...my_api_key_id..."
api_key_secret = "...my_api_key_secret..."
- method = "secret"
}
}
- ca_certificate = "...my_ca_certificate..."
- destination_type = "elasticsearch"
- endpoint = "...my_endpoint..."
- upsert = true
+ ca_certificate = "...my_ca_certificate..."
+ endpoint = "...my_endpoint..."
+ upsert = false
}
- name = "Carolyn Rohan"
- workspace_id = "90f3443a-1108-4e0a-9cf4-b921879fce95"
+ name = "Frankie Rohan"
+ workspace_id = "7c884619-6559-498a-a24e-ec560fc4948d"
}
```
@@ -51,7 +49,6 @@ resource "airbyte_destination_elasticsearch" "my_destination_elasticsearch" {
Required:
-- `destination_type` (String) must be one of ["elasticsearch"]
- `endpoint` (String) The full url of the Elasticsearch server
Optional:
@@ -77,7 +74,6 @@ Required:
- `api_key_id` (String) The Key ID to used when accessing an enterprise Elasticsearch instance.
- `api_key_secret` (String) The secret associated with the API Key ID.
-- `method` (String) must be one of ["secret"]
@@ -85,7 +81,6 @@ Required:
Required:
-- `method` (String) must be one of ["basic"]
- `password` (String) Basic auth password to access a secure Elasticsearch server
- `username` (String) Basic auth username to access a secure Elasticsearch server
@@ -97,7 +92,6 @@ Required:
- `api_key_id` (String) The Key ID to used when accessing an enterprise Elasticsearch instance.
- `api_key_secret` (String) The secret associated with the API Key ID.
-- `method` (String) must be one of ["secret"]
@@ -105,7 +99,6 @@ Required:
Required:
-- `method` (String) must be one of ["basic"]
- `password` (String) Basic auth password to access a secure Elasticsearch server
- `username` (String) Basic auth username to access a secure Elasticsearch server
diff --git a/docs/resources/destination_firebolt.md b/docs/resources/destination_firebolt.md
index 6a7c63d78..15f94a6e0 100644
--- a/docs/resources/destination_firebolt.md
+++ b/docs/resources/destination_firebolt.md
@@ -15,16 +15,14 @@ DestinationFirebolt Resource
```terraform
resource "airbyte_destination_firebolt" "my_destination_firebolt" {
configuration = {
- account = "...my_account..."
- database = "...my_database..."
- destination_type = "firebolt"
- engine = "...my_engine..."
- host = "api.app.firebolt.io"
+ account = "...my_account..."
+ database = "...my_database..."
+ engine = "...my_engine..."
+ host = "api.app.firebolt.io"
loading_method = {
destination_firebolt_loading_method_external_table_via_s3 = {
aws_key_id = "...my_aws_key_id..."
aws_key_secret = "...my_aws_key_secret..."
- method = "S3"
s3_bucket = "...my_s3_bucket..."
s3_region = "us-east-1"
}
@@ -32,8 +30,8 @@ resource "airbyte_destination_firebolt" "my_destination_firebolt" {
password = "...my_password..."
username = "username@email.com"
}
- name = "Roman Kulas"
- workspace_id = "c7abd74d-d39c-40f5-92cf-f7c70a45626d"
+ name = "Luz Stark"
+ workspace_id = "158c7e04-c579-4843-8bfb-b5605d7306cf"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_destination_firebolt" "my_destination_firebolt" {
Required:
- `database` (String) The database to connect to.
-- `destination_type` (String) must be one of ["firebolt"]
- `password` (String) Firebolt password.
- `username` (String) Firebolt email address you use to login.
@@ -85,7 +82,6 @@ Required:
- `aws_key_id` (String) AWS access key granting read and write access to S3.
- `aws_key_secret` (String) Corresponding secret part of the AWS Key
-- `method` (String) must be one of ["S3"]
- `s3_bucket` (String) The name of the S3 bucket.
- `s3_region` (String) Region name of the S3 bucket.
@@ -93,10 +89,6 @@ Required:
### Nested Schema for `configuration.loading_method.destination_firebolt_loading_method_sql_inserts`
-Required:
-
-- `method` (String) must be one of ["SQL"]
-
### Nested Schema for `configuration.loading_method.destination_firebolt_update_loading_method_external_table_via_s3`
@@ -105,7 +97,6 @@ Required:
- `aws_key_id` (String) AWS access key granting read and write access to S3.
- `aws_key_secret` (String) Corresponding secret part of the AWS Key
-- `method` (String) must be one of ["S3"]
- `s3_bucket` (String) The name of the S3 bucket.
- `s3_region` (String) Region name of the S3 bucket.
@@ -113,8 +104,4 @@ Required:
### Nested Schema for `configuration.loading_method.destination_firebolt_update_loading_method_sql_inserts`
-Required:
-
-- `method` (String) must be one of ["SQL"]
-
diff --git a/docs/resources/destination_firestore.md b/docs/resources/destination_firestore.md
index 77652908d..be0b96bea 100644
--- a/docs/resources/destination_firestore.md
+++ b/docs/resources/destination_firestore.md
@@ -16,11 +16,10 @@ DestinationFirestore Resource
resource "airbyte_destination_firestore" "my_destination_firestore" {
configuration = {
credentials_json = "...my_credentials_json..."
- destination_type = "firestore"
project_id = "...my_project_id..."
}
- name = "Paula Jacobs I"
- workspace_id = "f16d9f5f-ce6c-4556-946c-3e250fb008c4"
+ name = "Shane Weimann MD"
+ workspace_id = "fc11e74f-736d-47a9-93e9-8a4c049945ed"
}
```
@@ -43,7 +42,6 @@ resource "airbyte_destination_firestore" "my_destination_firestore" {
Required:
-- `destination_type` (String) must be one of ["firestore"]
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset.
Optional:
diff --git a/docs/resources/destination_gcs.md b/docs/resources/destination_gcs.md
index e187baa31..b3897b914 100644
--- a/docs/resources/destination_gcs.md
+++ b/docs/resources/destination_gcs.md
@@ -22,7 +22,6 @@ resource "airbyte_destination_gcs" "my_destination_gcs" {
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
}
- destination_type = "gcs"
format = {
destination_gcs_output_format_avro_apache_avro = {
compression_codec = {
@@ -35,10 +34,10 @@ resource "airbyte_destination_gcs" "my_destination_gcs" {
}
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
- gcs_bucket_region = "us-west1"
+ gcs_bucket_region = "eu"
}
- name = "Miss Dennis Friesen"
- workspace_id = "c366c8dd-6b14-4429-8747-4778a7bd466d"
+ name = "Lorena Mills"
+ workspace_id = "416d119e-802e-4071-a9d4-644f9dd3d54c"
}
```
@@ -62,7 +61,6 @@ resource "airbyte_destination_gcs" "my_destination_gcs" {
Required:
- `credential` (Attributes) An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. (see [below for nested schema](#nestedatt--configuration--credential))
-- `destination_type` (String) must be one of ["gcs"]
- `format` (Attributes) Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format. (see [below for nested schema](#nestedatt--configuration--format))
- `gcs_bucket_name` (String) You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more here.
- `gcs_bucket_path` (String) GCS Bucket Path string Subdirectory under the above bucket to sync the data into.
@@ -85,20 +83,26 @@ Optional:
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more here.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more here.
+Optional:
+
+- `credential_type` (String) must be one of ["HMAC_KEY"]
+
### Nested Schema for `configuration.credential.destination_gcs_update_authentication_hmac_key`
Required:
-- `credential_type` (String) must be one of ["HMAC_KEY"]
- `hmac_key_access_id` (String) When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more here.
- `hmac_key_secret` (String) The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more here.
+Optional:
+
+- `credential_type` (String) must be one of ["HMAC_KEY"]
+
@@ -121,6 +125,9 @@ Optional:
Required:
- `compression_codec` (Attributes) The compression algorithm used to compress data. Default to no compression. (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_avro_apache_avro--compression_codec))
+
+Optional:
+
- `format_type` (String) must be one of ["Avro"]
@@ -138,7 +145,7 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_bzip2`
-Required:
+Optional:
- `codec` (String) must be one of ["bzip2"]
@@ -146,19 +153,16 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_deflate`
-Required:
-
-- `codec` (String) must be one of ["Deflate"]
-
Optional:
+- `codec` (String) must be one of ["Deflate"]
- `compression_level` (Number) 0: no compression & fastest, 9: best compression & slowest.
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_no_compression`
-Required:
+Optional:
- `codec` (String) must be one of ["no compression"]
@@ -166,7 +170,7 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_snappy`
-Required:
+Optional:
- `codec` (String) must be one of ["snappy"]
@@ -174,24 +178,18 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_xz`
-Required:
-
-- `codec` (String) must be one of ["xz"]
-
Optional:
+- `codec` (String) must be one of ["xz"]
- `compression_level` (Number) The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here for details.
### Nested Schema for `configuration.format.destination_gcs_output_format_avro_apache_avro.format_type.destination_gcs_output_format_avro_apache_avro_compression_codec_zstandard`
-Required:
-
-- `codec` (String) must be one of ["zstandard"]
-
Optional:
+- `codec` (String) must be one of ["zstandard"]
- `compression_level` (Number) Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- `include_checksum` (Boolean) If true, include a checksum with each data block.
@@ -201,34 +199,31 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values`
-Required:
-
-- `format_type` (String) must be one of ["CSV"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_csv_comma_separated_values--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
+- `format_type` (String) must be one of ["CSV"]
-### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.flattening`
+### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.format_type`
Optional:
-- `destination_gcs_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_csv_comma_separated_values--flattening--destination_gcs_output_format_csv_comma_separated_values_compression_gzip))
-- `destination_gcs_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_csv_comma_separated_values--flattening--destination_gcs_output_format_csv_comma_separated_values_compression_no_compression))
+- `destination_gcs_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_csv_comma_separated_values--format_type--destination_gcs_output_format_csv_comma_separated_values_compression_gzip))
+- `destination_gcs_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_csv_comma_separated_values--format_type--destination_gcs_output_format_csv_comma_separated_values_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.flattening.destination_gcs_output_format_csv_comma_separated_values_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.format_type.destination_gcs_output_format_csv_comma_separated_values_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.flattening.destination_gcs_output_format_csv_comma_separated_values_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_gcs_output_format_csv_comma_separated_values.format_type.destination_gcs_output_format_csv_comma_separated_values_compression_no_compression`
Optional:
@@ -240,32 +235,29 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_json_lines_newline_delimited_json--compression))
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.compression`
+### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_json_lines_newline_delimited_json--compression--destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_json_lines_newline_delimited_json--compression--destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_json_lines_newline_delimited_json--format_type--destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_output_format_json_lines_newline_delimited_json--format_type--destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.compression.destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.format_type.destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.compression.destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_gcs_output_format_json_lines_newline_delimited_json.format_type.destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
@@ -277,10 +269,6 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_output_format_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `block_size_mb` (Number) This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
@@ -288,6 +276,7 @@ Optional:
The compression algorithm used to compress data pages.
- `dictionary_encoding` (Boolean) Default: true.
- `dictionary_page_size_kb` (Number) There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
+- `format_type` (String) must be one of ["Parquet"]
- `max_padding_size_mb` (Number) Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- `page_size_kb` (Number) The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
@@ -298,6 +287,9 @@ The compression algorithm used to compress data pages.
Required:
- `compression_codec` (Attributes) The compression algorithm used to compress data. Default to no compression. (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_avro_apache_avro--compression_codec))
+
+Optional:
+
- `format_type` (String) must be one of ["Avro"]
@@ -315,7 +307,7 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_bzip2`
-Required:
+Optional:
- `codec` (String) must be one of ["bzip2"]
@@ -323,19 +315,16 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_deflate`
-Required:
-
-- `codec` (String) must be one of ["Deflate"]
-
Optional:
+- `codec` (String) must be one of ["Deflate"]
- `compression_level` (Number) 0: no compression & fastest, 9: best compression & slowest.
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_no_compression`
-Required:
+Optional:
- `codec` (String) must be one of ["no compression"]
@@ -343,7 +332,7 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_snappy`
-Required:
+Optional:
- `codec` (String) must be one of ["snappy"]
@@ -351,24 +340,18 @@ Required:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_xz`
-Required:
-
-- `codec` (String) must be one of ["xz"]
-
Optional:
+- `codec` (String) must be one of ["xz"]
- `compression_level` (Number) The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here for details.
### Nested Schema for `configuration.format.destination_gcs_update_output_format_avro_apache_avro.format_type.destination_gcs_update_output_format_avro_apache_avro_compression_codec_zstandard`
-Required:
-
-- `codec` (String) must be one of ["zstandard"]
-
Optional:
+- `codec` (String) must be one of ["zstandard"]
- `compression_level` (Number) Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- `include_checksum` (Boolean) If true, include a checksum with each data block.
@@ -378,34 +361,31 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values`
-Required:
-
-- `format_type` (String) must be one of ["CSV"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_csv_comma_separated_values--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
+- `format_type` (String) must be one of ["CSV"]
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.flattening`
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.format_type`
Optional:
-- `destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_csv_comma_separated_values--flattening--destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip))
-- `destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_csv_comma_separated_values--flattening--destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression))
+- `destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_csv_comma_separated_values--format_type--destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip))
+- `destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_csv_comma_separated_values--format_type--destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.flattening.destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.format_type.destination_gcs_update_output_format_csv_comma_separated_values_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.flattening.destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_csv_comma_separated_values.format_type.destination_gcs_update_output_format_csv_comma_separated_values_compression_no_compression`
Optional:
@@ -417,32 +397,29 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_json_lines_newline_delimited_json--compression))
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.compression`
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_json_lines_newline_delimited_json--compression--destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_json_lines_newline_delimited_json--compression--destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_json_lines_newline_delimited_json--format_type--destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_gcs_update_output_format_json_lines_newline_delimited_json--format_type--destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.compression.destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.format_type.destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.compression.destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_gcs_update_output_format_json_lines_newline_delimited_json.format_type.destination_gcs_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
@@ -454,10 +431,6 @@ Optional:
### Nested Schema for `configuration.format.destination_gcs_update_output_format_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `block_size_mb` (Number) This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
@@ -465,6 +438,7 @@ Optional:
The compression algorithm used to compress data pages.
- `dictionary_encoding` (Boolean) Default: true.
- `dictionary_page_size_kb` (Number) There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
+- `format_type` (String) must be one of ["Parquet"]
- `max_padding_size_mb` (Number) Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- `page_size_kb` (Number) The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
diff --git a/docs/resources/destination_google_sheets.md b/docs/resources/destination_google_sheets.md
index c628da1fd..b78623f25 100644
--- a/docs/resources/destination_google_sheets.md
+++ b/docs/resources/destination_google_sheets.md
@@ -20,11 +20,10 @@ resource "airbyte_destination_google_sheets" "my_destination_googlesheets" {
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
- destination_type = "google-sheets"
- spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"
+ spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"
}
- name = "Mr. Irma Schaefer"
- workspace_id = "b3cdca42-5190-44e5-a3c7-e0bc7178e479"
+ name = "Jody Wuckert"
+ workspace_id = "2ef1e01e-f574-477c-9e2c-85c904a203ff"
}
```
@@ -48,7 +47,6 @@ resource "airbyte_destination_google_sheets" "my_destination_googlesheets" {
Required:
- `credentials` (Attributes) Google API Credentials for connecting to Google Sheets and Google Drive APIs (see [below for nested schema](#nestedatt--configuration--credentials))
-- `destination_type` (String) must be one of ["google-sheets"]
- `spreadsheet_id` (String) The link to your spreadsheet. See this guide for more details.
diff --git a/docs/resources/destination_keen.md b/docs/resources/destination_keen.md
index 55eeac9fe..b9927c3ce 100644
--- a/docs/resources/destination_keen.md
+++ b/docs/resources/destination_keen.md
@@ -15,13 +15,12 @@ DestinationKeen Resource
```terraform
resource "airbyte_destination_keen" "my_destination_keen" {
configuration = {
- api_key = "ABCDEFGHIJKLMNOPRSTUWXYZ"
- destination_type = "keen"
- infer_timestamp = false
- project_id = "58b4acc22ba938934e888322e"
+ api_key = "ABCDEFGHIJKLMNOPRSTUWXYZ"
+ infer_timestamp = true
+ project_id = "58b4acc22ba938934e888322e"
}
- name = "Todd Oberbrunner DDS"
- workspace_id = "688282aa-4825-462f-a22e-9817ee17cbe6"
+ name = "Marlene Ondricka"
+ workspace_id = "112db1ee-ca9f-491e-b58c-33257456993f"
}
```
@@ -45,7 +44,6 @@ resource "airbyte_destination_keen" "my_destination_keen" {
Required:
- `api_key` (String) To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
-- `destination_type` (String) must be one of ["keen"]
- `project_id` (String) To get Keen Project ID, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
Optional:
diff --git a/docs/resources/destination_kinesis.md b/docs/resources/destination_kinesis.md
index b788f2018..60aa331ba 100644
--- a/docs/resources/destination_kinesis.md
+++ b/docs/resources/destination_kinesis.md
@@ -15,16 +15,15 @@ DestinationKinesis Resource
```terraform
resource "airbyte_destination_kinesis" "my_destination_kinesis" {
configuration = {
- access_key = "...my_access_key..."
- buffer_size = 1
- destination_type = "kinesis"
- endpoint = "kinesis.us‑west‑1.amazonaws.com"
- private_key = "...my_private_key..."
- region = "us‑west‑1"
- shard_count = 9
+ access_key = "...my_access_key..."
+ buffer_size = 0
+ endpoint = "kinesis.us‑west‑1.amazonaws.com"
+ private_key = "...my_private_key..."
+ region = "us‑west‑1"
+ shard_count = 4
}
- name = "Opal Kozey"
- workspace_id = "5bc0ab3c-20c4-4f37-89fd-871f99dd2efd"
+ name = "Kristin Lowe"
+ workspace_id = "40d1987e-d52c-4bff-8185-8935bdfe2750"
}
```
@@ -48,11 +47,13 @@ resource "airbyte_destination_kinesis" "my_destination_kinesis" {
Required:
- `access_key` (String) Generate the AWS Access Key for current user.
-- `buffer_size` (Number) Buffer size for storing kinesis records before being batch streamed.
-- `destination_type` (String) must be one of ["kinesis"]
- `endpoint` (String) AWS Kinesis endpoint.
- `private_key` (String) The AWS Private Key - a string of numbers and letters that are unique for each account, also known as a "recovery phrase".
- `region` (String) AWS region. Your account determines the Regions that are available to you.
+
+Optional:
+
+- `buffer_size` (Number) Buffer size for storing kinesis records before being batch streamed.
- `shard_count` (Number) Number of shards to which the data should be streamed.
diff --git a/docs/resources/destination_langchain.md b/docs/resources/destination_langchain.md
index c6dc2e93e..18b401a42 100644
--- a/docs/resources/destination_langchain.md
+++ b/docs/resources/destination_langchain.md
@@ -15,29 +15,25 @@ DestinationLangchain Resource
```terraform
resource "airbyte_destination_langchain" "my_destination_langchain" {
configuration = {
- destination_type = "langchain"
embedding = {
- destination_langchain_embedding_fake = {
- mode = "fake"
- }
+ destination_langchain_embedding_fake = {}
}
indexing = {
- destination_langchain_indexing_chroma_local_persistance_ = {
+ destination_langchain_indexing_chroma_local_persistance = {
collection_name = "...my_collection_name..."
destination_path = "/local/my_chroma_db"
- mode = "chroma_local"
}
}
processing = {
- chunk_overlap = 0
- chunk_size = 1
+ chunk_overlap = 3
+ chunk_size = 2
text_fields = [
"...",
]
}
}
- name = "Hattie Nader"
- workspace_id = "1e674bdb-04f1-4575-a082-d68ea19f1d17"
+ name = "Randal Goyette"
+ workspace_id = "07f993ef-ae2d-4caf-8658-9dab1153f466"
}
```
@@ -60,7 +56,6 @@ resource "airbyte_destination_langchain" "my_destination_langchain" {
Required:
-- `destination_type` (String) must be one of ["langchain"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Indexing configuration (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -78,10 +73,6 @@ Optional:
### Nested Schema for `configuration.embedding.destination_langchain_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_langchain_embedding_open_ai`
@@ -90,18 +81,10 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
### Nested Schema for `configuration.embedding.destination_langchain_update_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_langchain_update_embedding_open_ai`
@@ -110,10 +93,6 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
@@ -138,7 +117,6 @@ Required:
Optional:
- `collection_name` (String) Name of the collection to use.
-- `mode` (String) must be one of ["chroma_local"]
@@ -148,10 +126,6 @@ Required:
- `destination_path` (String) Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
-Optional:
-
-- `mode` (String) must be one of ["DocArrayHnswSearch"]
-
### Nested Schema for `configuration.indexing.destination_langchain_indexing_pinecone`
@@ -162,10 +136,6 @@ Required:
- `pinecone_environment` (String) Pinecone environment to use
- `pinecone_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["pinecone"]
-
### Nested Schema for `configuration.indexing.destination_langchain_update_indexing_chroma_local_persistance`
@@ -177,7 +147,6 @@ Required:
Optional:
- `collection_name` (String) Name of the collection to use.
-- `mode` (String) must be one of ["chroma_local"]
@@ -187,10 +156,6 @@ Required:
- `destination_path` (String) Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
-Optional:
-
-- `mode` (String) must be one of ["DocArrayHnswSearch"]
-
### Nested Schema for `configuration.indexing.destination_langchain_update_indexing_pinecone`
@@ -201,10 +166,6 @@ Required:
- `pinecone_environment` (String) Pinecone environment to use
- `pinecone_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["pinecone"]
-
diff --git a/docs/resources/destination_milvus.md b/docs/resources/destination_milvus.md
index 74d5422fb..cbcfd5b18 100644
--- a/docs/resources/destination_milvus.md
+++ b/docs/resources/destination_milvus.md
@@ -15,29 +15,26 @@ DestinationMilvus Resource
```terraform
resource "airbyte_destination_milvus" "my_destination_milvus" {
configuration = {
- destination_type = "milvus"
embedding = {
destination_milvus_embedding_cohere = {
cohere_key = "...my_cohere_key..."
- mode = "cohere"
}
}
indexing = {
auth = {
destination_milvus_indexing_authentication_api_token = {
- mode = "token"
token = "...my_token..."
}
}
collection = "...my_collection..."
db = "...my_db..."
- host = "https://my-instance.zone.zillizcloud.com"
+ host = "tcp://my-local-milvus:19530"
text_field = "...my_text_field..."
vector_field = "...my_vector_field..."
}
processing = {
- chunk_overlap = 3
- chunk_size = 0
+ chunk_overlap = 4
+ chunk_size = 6
metadata_fields = [
"...",
]
@@ -46,8 +43,8 @@ resource "airbyte_destination_milvus" "my_destination_milvus" {
]
}
}
- name = "Sherry Morar IV"
- workspace_id = "086a1840-394c-4260-b1f9-3f5f0642dac7"
+ name = "Kelli Bashirian"
+ workspace_id = "5aa0db79-7942-4be7-a5f1-f78855663545"
}
```
@@ -70,7 +67,6 @@ resource "airbyte_destination_milvus" "my_destination_milvus" {
Required:
-- `destination_type` (String) must be one of ["milvus"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Indexing configuration (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -96,18 +92,10 @@ Required:
- `cohere_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["cohere"]
-
### Nested Schema for `configuration.embedding.destination_milvus_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_milvus_embedding_from_field`
@@ -117,10 +105,6 @@ Required:
- `dimensions` (Number) The number of dimensions the embedding model is generating
- `field_name` (String) Name of the field in the record that contains the embedding
-Optional:
-
-- `mode` (String) must be one of ["from_field"]
-
### Nested Schema for `configuration.embedding.destination_milvus_embedding_open_ai`
@@ -129,10 +113,6 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_cohere`
@@ -141,18 +121,10 @@ Required:
- `cohere_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["cohere"]
-
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_from_field`
@@ -162,10 +134,6 @@ Required:
- `dimensions` (Number) The number of dimensions the embedding model is generating
- `field_name` (String) Name of the field in the record that contains the embedding
-Optional:
-
-- `mode` (String) must be one of ["from_field"]
-
### Nested Schema for `configuration.embedding.destination_milvus_update_embedding_open_ai`
@@ -174,10 +142,6 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
@@ -214,18 +178,10 @@ Required:
- `token` (String) API Token for the Milvus instance
-Optional:
-
-- `mode` (String) must be one of ["token"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
-Optional:
-
-- `mode` (String) must be one of ["no_auth"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
@@ -235,10 +191,6 @@ Required:
- `password` (String) Password for the Milvus instance
- `username` (String) Username for the Milvus instance
-Optional:
-
-- `mode` (String) must be one of ["username_password"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
@@ -247,18 +199,10 @@ Required:
- `token` (String) API Token for the Milvus instance
-Optional:
-
-- `mode` (String) must be one of ["token"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
-Optional:
-
-- `mode` (String) must be one of ["no_auth"]
-
### Nested Schema for `configuration.indexing.auth.destination_milvus_update_indexing_authentication_username_password`
@@ -268,10 +212,6 @@ Required:
- `password` (String) Password for the Milvus instance
- `username` (String) Username for the Milvus instance
-Optional:
-
-- `mode` (String) must be one of ["username_password"]
-
diff --git a/docs/resources/destination_mongodb.md b/docs/resources/destination_mongodb.md
index 472867bfe..e4029c905 100644
--- a/docs/resources/destination_mongodb.md
+++ b/docs/resources/destination_mongodb.md
@@ -17,13 +17,11 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" {
configuration = {
auth_type = {
destination_mongodb_authorization_type_login_password = {
- authorization = "login/password"
- password = "...my_password..."
- username = "Lucienne.Yundt"
+ password = "...my_password..."
+ username = "Jarrell.Schuppe"
}
}
- database = "...my_database..."
- destination_type = "mongodb"
+ database = "...my_database..."
instance_type = {
destination_mongodb_mongo_db_instance_type_mongo_db_atlas = {
cluster_url = "...my_cluster_url..."
@@ -31,13 +29,11 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" {
}
}
tunnel_method = {
- destination_mongodb_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mongodb_ssh_tunnel_method_no_tunnel = {}
}
}
- name = "Robyn Schmitt I"
- workspace_id = "aa63aae8-d678-464d-bb67-5fd5e60b375e"
+ name = "Eloise Stark"
+ workspace_id = "5e758afd-2ad3-48ed-bed0-e5e2212dc7d0"
}
```
@@ -62,12 +58,11 @@ Required:
- `auth_type` (Attributes) Authorization type. (see [below for nested schema](#nestedatt--configuration--auth_type))
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["mongodb"]
Optional:
- `instance_type` (Attributes) MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. (see [below for nested schema](#nestedatt--configuration--instance_type))
-- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
+- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
### Nested Schema for `configuration.auth_type`
@@ -84,7 +79,6 @@ Optional:
Required:
-- `authorization` (String) must be one of ["login/password"]
- `password` (String) Password associated with the username.
- `username` (String) Username to use to access the database.
@@ -92,17 +86,12 @@ Required:
### Nested Schema for `configuration.auth_type.destination_mongodb_authorization_type_none`
-Required:
-
-- `authorization` (String) must be one of ["none"]
-
### Nested Schema for `configuration.auth_type.destination_mongodb_update_authorization_type_login_password`
Required:
-- `authorization` (String) must be one of ["login/password"]
- `password` (String) Password associated with the username.
- `username` (String) Username to use to access the database.
@@ -110,10 +99,6 @@ Required:
### Nested Schema for `configuration.auth_type.destination_mongodb_update_authorization_type_none`
-Required:
-
-- `authorization` (String) must be one of ["none"]
-
@@ -134,6 +119,9 @@ Optional:
Required:
- `cluster_url` (String) URL of a cluster to connect to.
+
+Optional:
+
- `instance` (String) must be one of ["atlas"]
@@ -142,11 +130,11 @@ Required:
Required:
-- `instance` (String) must be one of ["replica"]
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member seperated by comma.
Optional:
+- `instance` (String) must be one of ["replica"]
- `replica_set` (String) A replica set name.
@@ -156,6 +144,9 @@ Optional:
Required:
- `host` (String) The Host of a Mongo database to be replicated.
+
+Optional:
+
- `instance` (String) must be one of ["standalone"]
- `port` (Number) The Port of a Mongo database to be replicated.
@@ -166,6 +157,9 @@ Required:
Required:
- `cluster_url` (String) URL of a cluster to connect to.
+
+Optional:
+
- `instance` (String) must be one of ["atlas"]
@@ -174,11 +168,11 @@ Required:
Required:
-- `instance` (String) must be one of ["replica"]
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member seperated by comma.
Optional:
+- `instance` (String) must be one of ["replica"]
- `replica_set` (String) A replica set name.
@@ -188,6 +182,9 @@ Optional:
Required:
- `host` (String) The Host of a Mongo database to be replicated.
+
+Optional:
+
- `instance` (String) must be one of ["standalone"]
- `port` (Number) The Port of a Mongo database to be replicated.
@@ -198,9 +195,9 @@ Required:
Optional:
-- `destination_mongodb_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_no_tunnel))
-- `destination_mongodb_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_password_authentication))
-- `destination_mongodb_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_ssh_key_authentication))
+- `destination_mongodb_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_no_tunnel))
+- `destination_mongodb_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_password_authentication))
+- `destination_mongodb_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_ssh_tunnel_method_ssh_key_authentication))
- `destination_mongodb_update_ssh_tunnel_method_no_tunnel` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_no_tunnel))
- `destination_mongodb_update_ssh_tunnel_method_password_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_password_authentication))
- `destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method--destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication))
@@ -208,11 +205,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_mongodb_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mongodb_ssh_tunnel_method_password_authentication`
@@ -220,12 +212,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mongodb_ssh_tunnel_method_ssh_key_authentication`
@@ -234,19 +227,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_mongodb_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_mongodb_update_ssh_tunnel_method_no_tunnel`
@@ -255,12 +244,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication`
@@ -269,9 +259,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_mssql.md b/docs/resources/destination_mssql.md
index 860001e3c..b9d4d0991 100644
--- a/docs/resources/destination_mssql.md
+++ b/docs/resources/destination_mssql.md
@@ -15,27 +15,22 @@ DestinationMssql Resource
```terraform
resource "airbyte_destination_mssql" "my_destination_mssql" {
configuration = {
- database = "...my_database..."
- destination_type = "mssql"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 1433
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 1433
+ schema = "public"
ssl_method = {
- destination_mssql_ssl_method_encrypted_trust_server_certificate_ = {
- ssl_method = "encrypted_trust_server_certificate"
- }
+ destination_mssql_ssl_method_encrypted_trust_server_certificate = {}
}
tunnel_method = {
- destination_mssql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mssql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Desiree_Yost"
+ username = "Destini.Wehner"
}
- name = "Bert Treutel DVM"
- workspace_id = "33317fe3-5b60-4eb1-aa42-6555ba3c2874"
+ name = "Lewis Tromp"
+ workspace_id = "4b4ecb39-7d06-4456-aefb-7ef5d37ea6e5"
}
```
@@ -59,16 +54,15 @@ resource "airbyte_destination_mssql" "my_destination_mssql" {
Required:
- `database` (String) The name of the MSSQL database.
-- `destination_type` (String) must be one of ["mssql"]
- `host` (String) The host name of the MSSQL database.
-- `port` (Number) The port of the MSSQL database.
-- `schema` (String) The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- `username` (String) The username which is used to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) The password associated with this username.
+- `port` (Number) The port of the MSSQL database.
+- `schema` (String) The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- `ssl_method` (Attributes) The encryption method which is used to communicate with the database. (see [below for nested schema](#nestedatt--configuration--ssl_method))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -85,18 +79,10 @@ Optional:
### Nested Schema for `configuration.ssl_method.destination_mssql_ssl_method_encrypted_trust_server_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.destination_mssql_ssl_method_encrypted_verify_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
-
Optional:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
@@ -105,18 +91,10 @@ Optional:
### Nested Schema for `configuration.ssl_method.destination_mssql_update_ssl_method_encrypted_trust_server_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.destination_mssql_update_ssl_method_encrypted_verify_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
-
Optional:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
@@ -138,11 +116,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_mssql_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mssql_ssh_tunnel_method_password_authentication`
@@ -150,12 +123,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mssql_ssh_tunnel_method_ssh_key_authentication`
@@ -164,19 +138,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_mssql_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_mssql_update_ssh_tunnel_method_no_tunnel`
@@ -185,12 +155,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mssql_update_ssh_tunnel_method_ssh_key_authentication`
@@ -199,9 +170,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_mysql.md b/docs/resources/destination_mysql.md
index 251fcdbc6..b490d1834 100644
--- a/docs/resources/destination_mysql.md
+++ b/docs/resources/destination_mysql.md
@@ -15,21 +15,18 @@ DestinationMysql Resource
```terraform
resource "airbyte_destination_mysql" "my_destination_mysql" {
configuration = {
- database = "...my_database..."
- destination_type = "mysql"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 3306
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 3306
tunnel_method = {
- destination_mysql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mysql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Sheldon.Smitham"
+ username = "Millie80"
}
- name = "Guy Luettgen"
- workspace_id = "a8d8f5c0-b2f2-4fb7-b194-a276b26916fe"
+ name = "Colleen Langworth"
+ workspace_id = "a3ea494c-4202-4097-9cad-1afa4145a8ea"
}
```
@@ -53,15 +50,14 @@ resource "airbyte_destination_mysql" "my_destination_mysql" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["mysql"]
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
- `username` (String) Username to use to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
+- `port` (Number) Port of the database.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -79,11 +75,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_mysql_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_mysql_ssh_tunnel_method_password_authentication`
@@ -91,12 +82,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mysql_ssh_tunnel_method_ssh_key_authentication`
@@ -105,19 +97,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_mysql_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_mysql_update_ssh_tunnel_method_no_tunnel`
@@ -126,12 +114,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_mysql_update_ssh_tunnel_method_ssh_key_authentication`
@@ -140,9 +129,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_oracle.md b/docs/resources/destination_oracle.md
index 7f4e8a16b..e2cd9f75a 100644
--- a/docs/resources/destination_oracle.md
+++ b/docs/resources/destination_oracle.md
@@ -15,22 +15,19 @@ DestinationOracle Resource
```terraform
resource "airbyte_destination_oracle" "my_destination_oracle" {
configuration = {
- destination_type = "oracle"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 1521
- schema = "airbyte"
- sid = "...my_sid..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 1521
+ schema = "airbyte"
+ sid = "...my_sid..."
tunnel_method = {
- destination_oracle_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_oracle_ssh_tunnel_method_no_tunnel = {}
}
- username = "Viviane_Aufderhar"
+ username = "Herminio18"
}
- name = "Tammy Medhurst"
- workspace_id = "3698f447-f603-4e8b-845e-80ca55efd20e"
+ name = "Ashley Wisoky"
+ workspace_id = "c0130565-53a4-4e50-8dde-3bcff11f630f"
}
```
@@ -53,9 +50,7 @@ resource "airbyte_destination_oracle" "my_destination_oracle" {
Required:
-- `destination_type` (String) must be one of ["oracle"]
- `host` (String) The hostname of the database.
-- `port` (Number) The port of the database.
- `sid` (String) The System Identifier uniquely distinguishes the instance from any other instance on the same computer.
- `username` (String) The username to access the database. This user must have CREATE USER privileges in the database.
@@ -63,6 +58,7 @@ Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) The password associated with the username.
+- `port` (Number) The port of the database.
- `schema` (String) The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -81,11 +77,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_oracle_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_oracle_ssh_tunnel_method_password_authentication`
@@ -93,12 +84,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_oracle_ssh_tunnel_method_ssh_key_authentication`
@@ -107,19 +99,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_oracle_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_oracle_update_ssh_tunnel_method_no_tunnel`
@@ -128,12 +116,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_oracle_update_ssh_tunnel_method_ssh_key_authentication`
@@ -142,9 +131,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_pinecone.md b/docs/resources/destination_pinecone.md
index 6f890911c..e79c872b6 100644
--- a/docs/resources/destination_pinecone.md
+++ b/docs/resources/destination_pinecone.md
@@ -15,11 +15,9 @@ DestinationPinecone Resource
```terraform
resource "airbyte_destination_pinecone" "my_destination_pinecone" {
configuration = {
- destination_type = "pinecone"
embedding = {
destination_pinecone_embedding_cohere = {
cohere_key = "...my_cohere_key..."
- mode = "cohere"
}
}
indexing = {
@@ -28,8 +26,8 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" {
pinecone_key = "...my_pinecone_key..."
}
processing = {
- chunk_overlap = 2
- chunk_size = 3
+ chunk_overlap = 7
+ chunk_size = 6
metadata_fields = [
"...",
]
@@ -38,8 +36,8 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" {
]
}
}
- name = "Cecelia Braun"
- workspace_id = "8b6a89fb-e3a5-4aa8-a482-4d0ab4075088"
+ name = "Peggy Renner"
+ workspace_id = "88e15f86-8bf0-4372-97dc-d66bcb9a13f0"
}
```
@@ -62,7 +60,6 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" {
Required:
-- `destination_type` (String) must be one of ["pinecone"]
- `embedding` (Attributes) Embedding configuration (see [below for nested schema](#nestedatt--configuration--embedding))
- `indexing` (Attributes) Pinecone is a popular vector store that can be used to store and retrieve embeddings. (see [below for nested schema](#nestedatt--configuration--indexing))
- `processing` (Attributes) (see [below for nested schema](#nestedatt--configuration--processing))
@@ -86,18 +83,10 @@ Required:
- `cohere_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["cohere"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_embedding_open_ai`
@@ -106,10 +95,6 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_update_embedding_cohere`
@@ -118,18 +103,10 @@ Required:
- `cohere_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["cohere"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_update_embedding_fake`
-Optional:
-
-- `mode` (String) must be one of ["fake"]
-
### Nested Schema for `configuration.embedding.destination_pinecone_update_embedding_open_ai`
@@ -138,10 +115,6 @@ Required:
- `openai_key` (String)
-Optional:
-
-- `mode` (String) must be one of ["openai"]
-
diff --git a/docs/resources/destination_postgres.md b/docs/resources/destination_postgres.md
index b75470f08..30ecb27f0 100644
--- a/docs/resources/destination_postgres.md
+++ b/docs/resources/destination_postgres.md
@@ -15,27 +15,22 @@ DestinationPostgres Resource
```terraform
resource "airbyte_destination_postgres" "my_destination_postgres" {
configuration = {
- database = "...my_database..."
- destination_type = "postgres"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5432
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5432
+ schema = "public"
ssl_mode = {
- destination_postgres_ssl_modes_allow = {
- mode = "allow"
- }
+ destination_postgres_ssl_modes_allow = {}
}
tunnel_method = {
- destination_postgres_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_postgres_ssh_tunnel_method_no_tunnel = {}
}
- username = "Foster.Borer"
+ username = "Tremayne.OConnell"
}
- name = "Karen Kautzer"
- workspace_id = "904f3b11-94b8-4abf-a03a-79f9dfe0ab7d"
+ name = "Howard Franecki"
+ workspace_id = "4a59e7bf-d1d4-496b-914d-08d4a7d5d4b2"
}
```
@@ -59,16 +54,15 @@ resource "airbyte_destination_postgres" "my_destination_postgres" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["postgres"]
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
-- `schema` (String) The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- `username` (String) Username to use to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
+- `port` (Number) Port of the database.
+- `schema` (String) The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- `ssl_mode` (Attributes) SSL connection modes.
disable - Chose this mode to disable encryption of communication between Airbyte and destination database
allow - Chose this mode to enable encryption only when required by the source database
@@ -100,34 +94,18 @@ Optional:
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_ssl_modes_verify_ca`
@@ -135,7 +113,6 @@ Required:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -150,7 +127,6 @@ Required:
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -160,34 +136,18 @@ Optional:
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
### Nested Schema for `configuration.ssl_mode.destination_postgres_update_ssl_modes_verify_ca`
@@ -195,7 +155,6 @@ Required:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -210,7 +169,6 @@ Required:
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -233,11 +191,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_postgres_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_postgres_ssh_tunnel_method_password_authentication`
@@ -245,12 +198,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_postgres_ssh_tunnel_method_ssh_key_authentication`
@@ -259,19 +213,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_postgres_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_postgres_update_ssh_tunnel_method_no_tunnel`
@@ -280,12 +230,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_postgres_update_ssh_tunnel_method_ssh_key_authentication`
@@ -294,9 +245,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_pubsub.md b/docs/resources/destination_pubsub.md
index e4efa0825..347df577f 100644
--- a/docs/resources/destination_pubsub.md
+++ b/docs/resources/destination_pubsub.md
@@ -15,18 +15,17 @@ DestinationPubsub Resource
```terraform
resource "airbyte_destination_pubsub" "my_destination_pubsub" {
configuration = {
- batching_delay_threshold = 7
- batching_element_count_threshold = 5
- batching_enabled = true
- batching_request_bytes_threshold = 3
+ batching_delay_threshold = 9
+ batching_element_count_threshold = 10
+ batching_enabled = false
+ batching_request_bytes_threshold = 4
credentials_json = "...my_credentials_json..."
- destination_type = "pubsub"
- ordering_enabled = true
+ ordering_enabled = false
project_id = "...my_project_id..."
topic_id = "...my_topic_id..."
}
- name = "Phil Boyer"
- workspace_id = "f86bc173-d689-4eee-9526-f8d986e881ea"
+ name = "Eddie Conroy"
+ workspace_id = "2f48f6e5-43a0-4f0f-b9a6-c151a78cf13c"
}
```
@@ -49,10 +48,7 @@ resource "airbyte_destination_pubsub" "my_destination_pubsub" {
Required:
-- `batching_enabled` (Boolean) If TRUE messages will be buffered instead of sending them one by one
- `credentials_json` (String) The contents of the JSON service account key. Check out the docs if you need help generating this key.
-- `destination_type` (String) must be one of ["pubsub"]
-- `ordering_enabled` (Boolean) If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream
- `project_id` (String) The GCP project ID for the project containing the target PubSub.
- `topic_id` (String) The PubSub topic ID in the given GCP project ID.
@@ -60,6 +56,8 @@ Optional:
- `batching_delay_threshold` (Number) Number of ms before the buffer is flushed
- `batching_element_count_threshold` (Number) Number of messages before the buffer is flushed
+- `batching_enabled` (Boolean) If TRUE messages will be buffered instead of sending them one by one
- `batching_request_bytes_threshold` (Number) Number of bytes before the buffer is flushed
+- `ordering_enabled` (Boolean) If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream
diff --git a/docs/resources/destination_redis.md b/docs/resources/destination_redis.md
index 3392155a9..b4fe598c4 100644
--- a/docs/resources/destination_redis.md
+++ b/docs/resources/destination_redis.md
@@ -15,26 +15,21 @@ DestinationRedis Resource
```terraform
resource "airbyte_destination_redis" "my_destination_redis" {
configuration = {
- cache_type = "hash"
- destination_type = "redis"
- host = "localhost,127.0.0.1"
- password = "...my_password..."
- port = 9
- ssl = false
+ cache_type = "hash"
+ host = "localhost,127.0.0.1"
+ password = "...my_password..."
+ port = 2
+ ssl = true
ssl_mode = {
- destination_redis_ssl_modes_disable = {
- mode = "disable"
- }
+ destination_redis_ssl_modes_disable = {}
}
tunnel_method = {
- destination_redis_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_redis_ssh_tunnel_method_no_tunnel = {}
}
- username = "Vivianne.Baumbach3"
+ username = "Kathryne_Monahan22"
}
- name = "Bonnie Halvorson"
- workspace_id = "f94e29e9-73e9-422a-97a1-5be3e060807e"
+ name = "Gerard Ratke"
+ workspace_id = "3d3987f0-9ed8-432d-98dd-dbef1f87bb50"
}
```
@@ -57,16 +52,15 @@ resource "airbyte_destination_redis" "my_destination_redis" {
Required:
-- `cache_type` (String) must be one of ["hash"]
-Redis cache type to store data in.
-- `destination_type` (String) must be one of ["redis"]
- `host` (String) Redis host to connect to.
-- `port` (Number) Port of Redis.
- `username` (String) Username associated with Redis.
Optional:
+- `cache_type` (String) must be one of ["hash"]
+Redis cache type to store data in.
- `password` (String) Password associated with Redis.
+- `port` (Number) Port of Redis.
- `ssl` (Boolean) Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible.
- `ssl_mode` (Attributes) SSL connection modes.
verify-full - This is the most secure mode. Always require encryption and verifies the identity of the source database server (see [below for nested schema](#nestedatt--configuration--ssl_mode))
@@ -85,10 +79,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.destination_redis_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_redis_ssl_modes_verify_full`
@@ -98,7 +88,6 @@ Required:
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -108,10 +97,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.destination_redis_update_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
### Nested Schema for `configuration.ssl_mode.destination_redis_update_ssl_modes_verify_full`
@@ -121,7 +106,6 @@ Required:
- `ca_certificate` (String) CA certificate
- `client_certificate` (String) Client certificate
- `client_key` (String) Client key
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -144,11 +128,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_redis_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redis_ssh_tunnel_method_password_authentication`
@@ -156,12 +135,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_redis_ssh_tunnel_method_ssh_key_authentication`
@@ -170,19 +150,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_redis_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_redis_update_ssh_tunnel_method_no_tunnel`
@@ -191,12 +167,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_redis_update_ssh_tunnel_method_ssh_key_authentication`
@@ -205,9 +182,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_redshift.md b/docs/resources/destination_redshift.md
index cf6d52877..098b9c4c5 100644
--- a/docs/resources/destination_redshift.md
+++ b/docs/resources/destination_redshift.md
@@ -15,41 +15,36 @@ DestinationRedshift Resource
```terraform
resource "airbyte_destination_redshift" "my_destination_redshift" {
configuration = {
- database = "...my_database..."
- destination_type = "redshift"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5439
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5439
+ schema = "public"
tunnel_method = {
- destination_redshift_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_redshift_ssh_tunnel_method_no_tunnel = {}
}
uploading_method = {
destination_redshift_uploading_method_s3_staging = {
access_key_id = "...my_access_key_id..."
encryption = {
destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption = {
- encryption_type = "aes_cbc_envelope"
key_encrypting_key = "...my_key_encrypting_key..."
}
}
file_buffer_count = 10
- file_name_pattern = "{timestamp}"
- method = "S3 Staging"
- purge_staging_data = false
+ file_name_pattern = "{sync_id}"
+ purge_staging_data = true
s3_bucket_name = "airbyte.staging"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "us-west-2"
+ s3_bucket_region = "ap-northeast-2"
secret_access_key = "...my_secret_access_key..."
}
}
- username = "Margarette_Rau"
+ username = "Lucinda.Heathcote"
}
- name = "Mrs. Geraldine Zulauf"
- workspace_id = "7a60ff2a-54a3-41e9-8764-a3e865e7956f"
+ name = "Samantha O'Reilly"
+ workspace_id = "180123f0-d76f-4b78-bf74-fa22de12791b"
}
```
@@ -73,16 +68,15 @@ resource "airbyte_destination_redshift" "my_destination_redshift" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["redshift"]
- `host` (String) Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com)
- `password` (String) Password associated with the username.
-- `port` (Number) Port of the database.
-- `schema` (String) The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public".
- `username` (String) Username to use to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
+- `port` (Number) Port of the database.
+- `schema` (String) The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public".
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
- `uploading_method` (Attributes) The method how the data will be uploaded to the database. (see [below for nested schema](#nestedatt--configuration--uploading_method))
@@ -101,11 +95,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_redshift_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_redshift_ssh_tunnel_method_password_authentication`
@@ -113,12 +102,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_redshift_ssh_tunnel_method_ssh_key_authentication`
@@ -127,19 +117,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_redshift_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_redshift_update_ssh_tunnel_method_no_tunnel`
@@ -148,12 +134,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_redshift_update_ssh_tunnel_method_ssh_key_authentication`
@@ -162,11 +149,12 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
@@ -185,10 +173,7 @@ Optional:
Required:
- `access_key_id` (String) This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key.
-- `method` (String) must be one of ["S3 Staging"]
- `s3_bucket_name` (String) The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1"]
-The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
- `secret_access_key` (String) The corresponding secret to the above access key id. See AWS docs on how to generate an access key ID and secret access key.
Optional:
@@ -198,33 +183,27 @@ Optional:
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `purge_staging_data` (Boolean) Whether to delete the staging files from S3 after completing the sync. See docs for details.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1"]
+The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
-### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_path`
+### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_region`
Optional:
-- `destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption` (Attributes) Staging data will be encrypted using AES-CBC envelope encryption. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_update_uploading_method_s3_staging--s3_bucket_path--destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption))
-- `destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption` (Attributes) Staging data will be stored in plaintext. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_update_uploading_method_s3_staging--s3_bucket_path--destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption))
-
-
-### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_path.destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption`
+- `destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption` (Attributes) Staging data will be encrypted using AES-CBC envelope encryption. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_update_uploading_method_s3_staging--s3_bucket_region--destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption))
+- `destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption` (Attributes) Staging data will be stored in plaintext. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_update_uploading_method_s3_staging--s3_bucket_region--destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption))
-Required:
-
-- `encryption_type` (String) must be one of ["aes_cbc_envelope"]
+
+### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_region.destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption`
Optional:
- `key_encrypting_key` (String) The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
-
-### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_path.destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption`
-
-Required:
-
-- `encryption_type` (String) must be one of ["none"]
+
+### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_s3_staging.s3_bucket_region.destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption`
@@ -232,10 +211,6 @@ Required:
### Nested Schema for `configuration.uploading_method.destination_redshift_update_uploading_method_standard`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging`
@@ -243,10 +218,7 @@ Required:
Required:
- `access_key_id` (String) This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See AWS docs on how to generate an access key ID and secret access key.
-- `method` (String) must be one of ["S3 Staging"]
- `s3_bucket_name` (String) The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1"]
-The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
- `secret_access_key` (String) The corresponding secret to the above access key id. See AWS docs on how to generate an access key ID and secret access key.
Optional:
@@ -256,33 +228,27 @@ Optional:
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
- `purge_staging_data` (Boolean) Whether to delete the staging files from S3 after completing the sync. See docs for details.
- `s3_bucket_path` (String) The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1"]
+The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
-### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_path`
+### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_region`
Optional:
-- `destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption` (Attributes) Staging data will be encrypted using AES-CBC envelope encryption. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_uploading_method_s3_staging--s3_bucket_path--destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption))
-- `destination_redshift_uploading_method_s3_staging_encryption_no_encryption` (Attributes) Staging data will be stored in plaintext. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_uploading_method_s3_staging--s3_bucket_path--destination_redshift_uploading_method_s3_staging_encryption_no_encryption))
-
-
-### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_path.destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption`
-
-Required:
+- `destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption` (Attributes) Staging data will be encrypted using AES-CBC envelope encryption. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_uploading_method_s3_staging--s3_bucket_region--destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption))
+- `destination_redshift_uploading_method_s3_staging_encryption_no_encryption` (Attributes) Staging data will be stored in plaintext. (see [below for nested schema](#nestedatt--configuration--uploading_method--destination_redshift_uploading_method_s3_staging--s3_bucket_region--destination_redshift_uploading_method_s3_staging_encryption_no_encryption))
-- `encryption_type` (String) must be one of ["aes_cbc_envelope"]
+
+### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_region.destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption`
Optional:
- `key_encrypting_key` (String) The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
-
-### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_path.destination_redshift_uploading_method_s3_staging_encryption_no_encryption`
-
-Required:
-
-- `encryption_type` (String) must be one of ["none"]
+
+### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_s3_staging.s3_bucket_region.destination_redshift_uploading_method_s3_staging_encryption_no_encryption`
@@ -290,8 +256,4 @@ Required:
### Nested Schema for `configuration.uploading_method.destination_redshift_uploading_method_standard`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
diff --git a/docs/resources/destination_s3.md b/docs/resources/destination_s3.md
index 38141cdd1..9170a4889 100644
--- a/docs/resources/destination_s3.md
+++ b/docs/resources/destination_s3.md
@@ -16,8 +16,7 @@ DestinationS3 Resource
resource "airbyte_destination_s3" "my_destination_s3" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "s3"
- file_name_pattern = "{timestamp}"
+ file_name_pattern = "{date:yyyy_MM}"
format = {
destination_s3_output_format_avro_apache_avro = {
compression_codec = {
@@ -30,13 +29,13 @@ resource "airbyte_destination_s3" "my_destination_s3" {
}
s3_bucket_name = "airbyte_sync"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "us-west-1"
+ s3_bucket_region = "us-gov-west-1"
s3_endpoint = "http://localhost:9000"
s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Joyce O'Kon"
- workspace_id = "9da660ff-57bf-4aad-8f9e-fc1b4512c103"
+ name = "Shannon Goldner Jr."
+ workspace_id = "0749774a-e87c-4308-92ff-b0f41f82248d"
}
```
@@ -59,17 +58,16 @@ resource "airbyte_destination_s3" "my_destination_s3" {
Required:
-- `destination_type` (String) must be one of ["s3"]
- `format` (Attributes) Format of the data output. See here for more details (see [below for nested schema](#nestedatt--configuration--format))
- `s3_bucket_name` (String) The name of the S3 bucket. Read more here.
- `s3_bucket_path` (String) Directory under the S3 bucket where data will be written. Read more here
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the S3 bucket. See here for all region codes.
Optional:
- `access_key_id` (String) The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the S3 bucket. See here for all region codes.
- `s3_endpoint` (String) Your S3 endpoint url. Read more here
- `s3_path_format` (String) Format string on how data will be organized inside the S3 bucket directory. Read more here
- `secret_access_key` (String) The corresponding secret to the access key ID. Read more here
@@ -94,6 +92,9 @@ Optional:
Required:
- `compression_codec` (Attributes) The compression algorithm used to compress data. Default to no compression. (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_avro_apache_avro--compression_codec))
+
+Optional:
+
- `format_type` (String) must be one of ["Avro"]
@@ -111,7 +112,7 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_bzip2`
-Required:
+Optional:
- `codec` (String) must be one of ["bzip2"]
@@ -119,7 +120,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_deflate`
-Required:
+Optional:
- `codec` (String) must be one of ["Deflate"]
- `compression_level` (Number) 0: no compression & fastest, 9: best compression & slowest.
@@ -128,7 +129,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_no_compression`
-Required:
+Optional:
- `codec` (String) must be one of ["no compression"]
@@ -136,7 +137,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_snappy`
-Required:
+Optional:
- `codec` (String) must be one of ["snappy"]
@@ -144,7 +145,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_xz`
-Required:
+Optional:
- `codec` (String) must be one of ["xz"]
- `compression_level` (Number) See here for details.
@@ -153,13 +154,10 @@ Required:
### Nested Schema for `configuration.format.destination_s3_output_format_avro_apache_avro.format_type.destination_s3_output_format_avro_apache_avro_compression_codec_zstandard`
-Required:
+Optional:
- `codec` (String) must be one of ["zstandard"]
- `compression_level` (Number) Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
-
-Optional:
-
- `include_checksum` (Boolean) If true, include a checksum with each data block.
@@ -168,34 +166,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values`
-Required:
+Optional:
+- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- `format_type` (String) must be one of ["CSV"]
-Optional:
-
-- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--compression))
-
-### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.compression`
+### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.format_type`
Optional:
-- `destination_s3_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--compression--destination_s3_output_format_csv_comma_separated_values_compression_gzip))
-- `destination_s3_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--compression--destination_s3_output_format_csv_comma_separated_values_compression_no_compression))
+- `destination_s3_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--format_type--destination_s3_output_format_csv_comma_separated_values_compression_gzip))
+- `destination_s3_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_csv_comma_separated_values--format_type--destination_s3_output_format_csv_comma_separated_values_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.compression.destination_s3_output_format_csv_comma_separated_values_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.format_type.destination_s3_output_format_csv_comma_separated_values_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.compression.destination_s3_output_format_csv_comma_separated_values_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_output_format_csv_comma_separated_values.format_type.destination_s3_output_format_csv_comma_separated_values_compression_no_compression`
Optional:
@@ -207,34 +202,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_json_lines_newline_delimited_json--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.flattening`
+### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_json_lines_newline_delimited_json--flattening--destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_json_lines_newline_delimited_json--flattening--destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_json_lines_newline_delimited_json--format_type--destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_output_format_json_lines_newline_delimited_json--format_type--destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.flattening.destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.format_type.destination_s3_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.flattening.destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_output_format_json_lines_newline_delimited_json.format_type.destination_s3_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
@@ -246,10 +238,6 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_output_format_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `block_size_mb` (Number) This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
@@ -257,6 +245,7 @@ Optional:
The compression algorithm used to compress data pages.
- `dictionary_encoding` (Boolean) Default: true.
- `dictionary_page_size_kb` (Number) There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
+- `format_type` (String) must be one of ["Parquet"]
- `max_padding_size_mb` (Number) Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- `page_size_kb` (Number) The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
@@ -267,6 +256,9 @@ The compression algorithm used to compress data pages.
Required:
- `compression_codec` (Attributes) The compression algorithm used to compress data. Default to no compression. (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_avro_apache_avro--compression_codec))
+
+Optional:
+
- `format_type` (String) must be one of ["Avro"]
@@ -284,7 +276,7 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_bzip2`
-Required:
+Optional:
- `codec` (String) must be one of ["bzip2"]
@@ -292,7 +284,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_deflate`
-Required:
+Optional:
- `codec` (String) must be one of ["Deflate"]
- `compression_level` (Number) 0: no compression & fastest, 9: best compression & slowest.
@@ -301,7 +293,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_no_compression`
-Required:
+Optional:
- `codec` (String) must be one of ["no compression"]
@@ -309,7 +301,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_snappy`
-Required:
+Optional:
- `codec` (String) must be one of ["snappy"]
@@ -317,7 +309,7 @@ Required:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_xz`
-Required:
+Optional:
- `codec` (String) must be one of ["xz"]
- `compression_level` (Number) See here for details.
@@ -326,13 +318,10 @@ Required:
### Nested Schema for `configuration.format.destination_s3_update_output_format_avro_apache_avro.format_type.destination_s3_update_output_format_avro_apache_avro_compression_codec_zstandard`
-Required:
+Optional:
- `codec` (String) must be one of ["zstandard"]
- `compression_level` (Number) Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
-
-Optional:
-
- `include_checksum` (Boolean) If true, include a checksum with each data block.
@@ -341,34 +330,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values`
-Required:
+Optional:
+- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- `format_type` (String) must be one of ["CSV"]
-Optional:
-
-- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--compression))
-
-### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.compression`
+### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.format_type`
Optional:
-- `destination_s3_update_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--compression--destination_s3_update_output_format_csv_comma_separated_values_compression_gzip))
-- `destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--compression--destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression))
+- `destination_s3_update_output_format_csv_comma_separated_values_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--format_type--destination_s3_update_output_format_csv_comma_separated_values_compression_gzip))
+- `destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_csv_comma_separated_values--format_type--destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.compression.destination_s3_update_output_format_csv_comma_separated_values_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.format_type.destination_s3_update_output_format_csv_comma_separated_values_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.compression.destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_update_output_format_csv_comma_separated_values.format_type.destination_s3_update_output_format_csv_comma_separated_values_compression_no_compression`
Optional:
@@ -380,34 +366,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_json_lines_newline_delimited_json--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.flattening`
+### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_json_lines_newline_delimited_json--flattening--destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_json_lines_newline_delimited_json--flattening--destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_json_lines_newline_delimited_json--format_type--destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_update_output_format_json_lines_newline_delimited_json--format_type--destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.flattening.destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.format_type.destination_s3_update_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.flattening.destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_update_output_format_json_lines_newline_delimited_json.format_type.destination_s3_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
@@ -419,10 +402,6 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_update_output_format_parquet_columnar_storage`
-Required:
-
-- `format_type` (String) must be one of ["Parquet"]
-
Optional:
- `block_size_mb` (Number) This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
@@ -430,6 +409,7 @@ Optional:
The compression algorithm used to compress data pages.
- `dictionary_encoding` (Boolean) Default: true.
- `dictionary_page_size_kb` (Number) There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
+- `format_type` (String) must be one of ["Parquet"]
- `max_padding_size_mb` (Number) Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- `page_size_kb` (Number) The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
diff --git a/docs/resources/destination_s3_glue.md b/docs/resources/destination_s3_glue.md
index 02f7619d4..a70153531 100644
--- a/docs/resources/destination_s3_glue.md
+++ b/docs/resources/destination_s3_glue.md
@@ -16,8 +16,7 @@ DestinationS3Glue Resource
resource "airbyte_destination_s3_glue" "my_destination_s3glue" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "s3-glue"
- file_name_pattern = "{date}"
+ file_name_pattern = "{timestamp}"
format = {
destination_s3_glue_output_format_json_lines_newline_delimited_json = {
compression = {
@@ -33,13 +32,13 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" {
glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe"
s3_bucket_name = "airbyte_sync"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "ca-central-1"
+ s3_bucket_region = "us-west-1"
s3_endpoint = "http://localhost:9000"
s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Edmund Daugherty"
- workspace_id = "15199ebf-d0e9-4fe6-8632-ca3aed011799"
+ name = "Manuel Dickens"
+ workspace_id = "bd87b5cc-e361-4485-8333-df23c5e509f4"
}
```
@@ -62,20 +61,19 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" {
Required:
-- `destination_type` (String) must be one of ["s3-glue"]
- `format` (Attributes) Format of the data output. See here for more details (see [below for nested schema](#nestedatt--configuration--format))
- `glue_database` (String) Name of the glue database for creating the tables, leave blank if no integration
-- `glue_serialization_library` (String) must be one of ["org.openx.data.jsonserde.JsonSerDe", "org.apache.hive.hcatalog.data.JsonSerDe"]
-The library that your query engine will use for reading and writing data in your lake.
- `s3_bucket_name` (String) The name of the S3 bucket. Read more here.
- `s3_bucket_path` (String) Directory under the S3 bucket where data will be written. Read more here
-- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
-The region of the S3 bucket. See here for all region codes.
Optional:
- `access_key_id` (String) The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
- `file_name_pattern` (String) The pattern allows you to set the file-name format for the S3 staging file(s)
+- `glue_serialization_library` (String) must be one of ["org.openx.data.jsonserde.JsonSerDe", "org.apache.hive.hcatalog.data.JsonSerDe"]
+The library that your query engine will use for reading and writing data in your lake.
+- `s3_bucket_region` (String) must be one of ["", "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
+The region of the S3 bucket. See here for all region codes.
- `s3_endpoint` (String) Your S3 endpoint url. Read more here
- `s3_path_format` (String) Format string on how data will be organized inside the S3 bucket directory. Read more here
- `secret_access_key` (String) The corresponding secret to the access key ID. Read more here
@@ -91,34 +89,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_output_format_json_lines_newline_delimited_json--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.flattening`
+### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_output_format_json_lines_newline_delimited_json--flattening--destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_output_format_json_lines_newline_delimited_json--flattening--destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_output_format_json_lines_newline_delimited_json--format_type--destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_output_format_json_lines_newline_delimited_json--format_type--destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.flattening.destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.format_type.destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.flattening.destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_glue_output_format_json_lines_newline_delimited_json.format_type.destination_s3_glue_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
@@ -130,34 +125,31 @@ Optional:
### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
Optional:
- `compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_update_output_format_json_lines_newline_delimited_json--compression))
- `flattening` (String) must be one of ["No flattening", "Root level flattening"]
Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
+- `format_type` (String) must be one of ["JSONL"]
-### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.flattening`
+### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.format_type`
Optional:
-- `destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_update_output_format_json_lines_newline_delimited_json--flattening--destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip))
-- `destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_update_output_format_json_lines_newline_delimited_json--flattening--destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
+- `destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_update_output_format_json_lines_newline_delimited_json--format_type--destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip))
+- `destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression` (Attributes) Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). (see [below for nested schema](#nestedatt--configuration--format--destination_s3_glue_update_output_format_json_lines_newline_delimited_json--format_type--destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression))
-
-### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.flattening.destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip`
+
+### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.format_type.destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_gzip`
Optional:
- `compression_type` (String) must be one of ["GZIP"]
-
-### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.flattening.destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
+
+### Nested Schema for `configuration.format.destination_s3_glue_update_output_format_json_lines_newline_delimited_json.format_type.destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression_no_compression`
Optional:
diff --git a/docs/resources/destination_sftp_json.md b/docs/resources/destination_sftp_json.md
index a7e3c7f07..48419bbc3 100644
--- a/docs/resources/destination_sftp_json.md
+++ b/docs/resources/destination_sftp_json.md
@@ -16,14 +16,13 @@ DestinationSftpJSON Resource
resource "airbyte_destination_sftp_json" "my_destination_sftpjson" {
configuration = {
destination_path = "/json_data"
- destination_type = "sftp-json"
host = "...my_host..."
password = "...my_password..."
port = 22
- username = "Dayton98"
+ username = "Christop6"
}
- name = "Terence Beer"
- workspace_id = "71778ff6-1d01-4747-a360-a15db6a66065"
+ name = "Matthew Friesen"
+ workspace_id = "78c254cd-184f-4d11-ae75-f1c50c9ec767"
}
```
@@ -47,7 +46,6 @@ resource "airbyte_destination_sftp_json" "my_destination_sftpjson" {
Required:
- `destination_path` (String) Path to the directory where json files will be written.
-- `destination_type` (String) must be one of ["sftp-json"]
- `host` (String) Hostname of the SFTP server.
- `password` (String) Password associated with the username.
- `username` (String) Username to use to access the SFTP server.
diff --git a/docs/resources/destination_snowflake.md b/docs/resources/destination_snowflake.md
index 53a90329c..f5d53bcfe 100644
--- a/docs/resources/destination_snowflake.md
+++ b/docs/resources/destination_snowflake.md
@@ -17,23 +17,21 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" {
configuration = {
credentials = {
destination_snowflake_authorization_method_key_pair_authentication = {
- auth_type = "Key Pair Authentication"
private_key = "...my_private_key..."
private_key_password = "...my_private_key_password..."
}
}
- database = "AIRBYTE_DATABASE"
- destination_type = "snowflake"
- host = "accountname.snowflakecomputing.com"
- jdbc_url_params = "...my_jdbc_url_params..."
- raw_data_schema = "...my_raw_data_schema..."
- role = "AIRBYTE_ROLE"
- schema = "AIRBYTE_SCHEMA"
- username = "AIRBYTE_USER"
- warehouse = "AIRBYTE_WAREHOUSE"
+ database = "AIRBYTE_DATABASE"
+ host = "accountname.us-east-2.aws.snowflakecomputing.com"
+ jdbc_url_params = "...my_jdbc_url_params..."
+ raw_data_schema = "...my_raw_data_schema..."
+ role = "AIRBYTE_ROLE"
+ schema = "AIRBYTE_SCHEMA"
+ username = "AIRBYTE_USER"
+ warehouse = "AIRBYTE_WAREHOUSE"
}
- name = "Shaun Osinski"
- workspace_id = "851d6c64-5b08-4b61-891b-aa0fe1ade008"
+ name = "Van Leuschke"
+ workspace_id = "e4a6f8bb-810e-4d64-af80-2e7b2183b2bc"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" {
Required:
- `database` (String) Enter the name of the database you want to sync data into
-- `destination_type` (String) must be one of ["snowflake"]
- `host` (String) Enter your Snowflake account's locator (in the format ...snowflakecomputing.com)
- `role` (String) Enter the role that you want to use to access Snowflake
- `schema` (String) Enter the name of the default schema
@@ -91,7 +88,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["Key Pair Authentication"]
- `private_key_password` (String) Passphrase for private key
@@ -105,7 +101,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) Enter your application's Client ID
- `client_secret` (String) Enter your application's Client secret
@@ -117,10 +112,6 @@ Required:
- `password` (String) Enter the password associated with the username.
-Optional:
-
-- `auth_type` (String) must be one of ["Username and Password"]
-
### Nested Schema for `configuration.credentials.destination_snowflake_update_authorization_method_key_pair_authentication`
@@ -131,7 +122,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["Key Pair Authentication"]
- `private_key_password` (String) Passphrase for private key
@@ -145,7 +135,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) Enter your application's Client ID
- `client_secret` (String) Enter your application's Client secret
@@ -157,8 +146,4 @@ Required:
- `password` (String) Enter the password associated with the username.
-Optional:
-
-- `auth_type` (String) must be one of ["Username and Password"]
-
diff --git a/docs/resources/destination_timeplus.md b/docs/resources/destination_timeplus.md
index 30302c1a5..887601578 100644
--- a/docs/resources/destination_timeplus.md
+++ b/docs/resources/destination_timeplus.md
@@ -15,12 +15,11 @@ DestinationTimeplus Resource
```terraform
resource "airbyte_destination_timeplus" "my_destination_timeplus" {
configuration = {
- apikey = "...my_apikey..."
- destination_type = "timeplus"
- endpoint = "https://us.timeplus.cloud/workspace_id"
+ apikey = "...my_apikey..."
+ endpoint = "https://us.timeplus.cloud/workspace_id"
}
- name = "Ruben Williamson"
- workspace_id = "5f350d8c-db5a-4341-8143-010421813d52"
+ name = "Johanna Kemmer"
+ workspace_id = "7afdacad-2c14-4cf1-ba66-83bb76cbdd42"
}
```
@@ -44,7 +43,9 @@ resource "airbyte_destination_timeplus" "my_destination_timeplus" {
Required:
- `apikey` (String) Personal API key
-- `destination_type` (String) must be one of ["timeplus"]
+
+Optional:
+
- `endpoint` (String) Timeplus workspace endpoint
diff --git a/docs/resources/destination_typesense.md b/docs/resources/destination_typesense.md
index d6f7345d8..f6403d1f5 100644
--- a/docs/resources/destination_typesense.md
+++ b/docs/resources/destination_typesense.md
@@ -15,15 +15,14 @@ DestinationTypesense Resource
```terraform
resource "airbyte_destination_typesense" "my_destination_typesense" {
configuration = {
- api_key = "...my_api_key..."
- batch_size = 0
- destination_type = "typesense"
- host = "...my_host..."
- port = "...my_port..."
- protocol = "...my_protocol..."
+ api_key = "...my_api_key..."
+ batch_size = 8
+ host = "...my_host..."
+ port = "...my_port..."
+ protocol = "...my_protocol..."
}
- name = "Conrad Rutherford"
- workspace_id = "e253b668-451c-46c6-a205-e16deab3fec9"
+ name = "Marjorie Prohaska"
+ workspace_id = "603cc8cd-887e-4760-b813-ef7fc0d176e5"
}
```
@@ -47,7 +46,6 @@ resource "airbyte_destination_typesense" "my_destination_typesense" {
Required:
- `api_key` (String) Typesense API Key
-- `destination_type` (String) must be one of ["typesense"]
- `host` (String) Hostname of the Typesense instance without protocol.
Optional:
diff --git a/docs/resources/destination_vertica.md b/docs/resources/destination_vertica.md
index f4974a20b..5211ce023 100644
--- a/docs/resources/destination_vertica.md
+++ b/docs/resources/destination_vertica.md
@@ -15,22 +15,19 @@ DestinationVertica Resource
```terraform
resource "airbyte_destination_vertica" "my_destination_vertica" {
configuration = {
- database = "...my_database..."
- destination_type = "vertica"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5433
- schema = "...my_schema..."
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5433
+ schema = "...my_schema..."
tunnel_method = {
- destination_vertica_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_vertica_ssh_tunnel_method_no_tunnel = {}
}
- username = "Jackson.Kuvalis"
+ username = "Douglas32"
}
- name = "Ida Lubowitz"
- workspace_id = "73a8418d-1623-409f-b092-9921aefb9f58"
+ name = "Mr. Bobbie Wolf"
+ workspace_id = "2182d15e-f4e8-495c-9212-618452d1432f"
}
```
@@ -54,9 +51,7 @@ resource "airbyte_destination_vertica" "my_destination_vertica" {
Required:
- `database` (String) Name of the database.
-- `destination_type` (String) must be one of ["vertica"]
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
- `schema` (String) Schema for vertica destination
- `username` (String) Username to use to access the database.
@@ -64,6 +59,7 @@ Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) Password associated with the username.
+- `port` (Number) Port of the database.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -81,11 +77,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.destination_vertica_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.destination_vertica_ssh_tunnel_method_password_authentication`
@@ -93,12 +84,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_vertica_ssh_tunnel_method_ssh_key_authentication`
@@ -107,19 +99,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.destination_vertica_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.destination_vertica_update_ssh_tunnel_method_no_tunnel`
@@ -128,12 +116,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.destination_vertica_update_ssh_tunnel_method_ssh_key_authentication`
@@ -142,9 +131,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/destination_xata.md b/docs/resources/destination_xata.md
index a05ab3edd..2a8725c23 100644
--- a/docs/resources/destination_xata.md
+++ b/docs/resources/destination_xata.md
@@ -15,12 +15,11 @@ DestinationXata Resource
```terraform
resource "airbyte_destination_xata" "my_destination_xata" {
configuration = {
- api_key = "...my_api_key..."
- db_url = "https://my-workspace-abc123.us-east-1.xata.sh/db/nyc-taxi-fares:main"
- destination_type = "xata"
+ api_key = "...my_api_key..."
+ db_url = "https://my-workspace-abc123.us-east-1.xata.sh/db/nyc-taxi-fares:main"
}
- name = "Oscar Smith"
- workspace_id = "e68e4be0-5601-43f5-9da7-57a59ecfef66"
+ name = "Shannon Kuvalis"
+ workspace_id = "fec4ca4c-8c4b-4f88-a725-c3c6bc39a6d3"
}
```
@@ -45,6 +44,5 @@ Required:
- `api_key` (String) API Key to connect.
- `db_url` (String) URL pointing to your workspace.
-- `destination_type` (String) must be one of ["xata"]
diff --git a/docs/resources/source_aha.md b/docs/resources/source_aha.md
index df1b71d29..5eeb1bab2 100644
--- a/docs/resources/source_aha.md
+++ b/docs/resources/source_aha.md
@@ -15,13 +15,12 @@ SourceAha Resource
```terraform
resource "airbyte_source_aha" "my_source_aha" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "aha"
- url = "...my_url..."
+ api_key = "...my_api_key..."
+ url = "...my_url..."
}
- name = "Van Bergnaum"
+ name = "Melvin Marks"
secret_id = "...my_secret_id..."
- workspace_id = "a3383c2b-eb47-4737-bc8d-72f64d1db1f2"
+ workspace_id = "39ea0e10-1659-40e1-a2bc-7de0ff637374"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_aha" "my_source_aha" {
Required:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["aha"]
- `url` (String) URL
diff --git a/docs/resources/source_aircall.md b/docs/resources/source_aircall.md
index 8576bc2f6..543814d80 100644
--- a/docs/resources/source_aircall.md
+++ b/docs/resources/source_aircall.md
@@ -15,14 +15,13 @@ SourceAircall Resource
```terraform
resource "airbyte_source_aircall" "my_source_aircall" {
configuration = {
- api_id = "...my_api_id..."
- api_token = "...my_api_token..."
- source_type = "aircall"
- start_date = "2022-03-01T00:00:00.000Z"
+ api_id = "...my_api_id..."
+ api_token = "...my_api_token..."
+ start_date = "2022-03-01T00:00:00.000Z"
}
- name = "Martha Bashirian"
+ name = "Kari Flatley"
secret_id = "...my_secret_id..."
- workspace_id = "1e96349e-1cf9-4e06-a3a4-37000ae6b6bc"
+ workspace_id = "c2cd950e-36ac-4c1e-af12-915604b55b32"
}
```
@@ -51,7 +50,6 @@ Required:
- `api_id` (String) App ID found at settings https://dashboard.aircall.io/integrations/api-keys
- `api_token` (String) App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys)
-- `source_type` (String) must be one of ["aircall"]
- `start_date` (String) Date time filter for incremental filter, Specify which date to extract from.
diff --git a/docs/resources/source_airtable.md b/docs/resources/source_airtable.md
index 2e257fa5e..fc85a6b47 100644
--- a/docs/resources/source_airtable.md
+++ b/docs/resources/source_airtable.md
@@ -18,18 +18,16 @@ resource "airbyte_source_airtable" "my_source_airtable" {
credentials = {
source_airtable_authentication_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-08-01T09:41:55.270Z"
+ token_expiry_date = "2022-02-15T01:33:45.237Z"
}
}
- source_type = "airtable"
}
- name = "Tommie Klocko"
+ name = "Vicki Smitham"
secret_id = "...my_secret_id..."
- workspace_id = "eac55a97-41d3-4113-9296-5bb8a7202611"
+ workspace_id = "48e4e42a-5305-40a9-afbc-66c913a5b780"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_source_airtable" "my_source_airtable" {
Optional:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["airtable"]
### Nested Schema for `configuration.credentials`
@@ -81,7 +78,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
@@ -92,10 +88,6 @@ Required:
- `api_key` (String) The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
-Optional:
-
-- `auth_method` (String) must be one of ["api_key"]
-
### Nested Schema for `configuration.credentials.source_airtable_update_authentication_o_auth2_0`
@@ -109,7 +101,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
@@ -120,8 +111,4 @@ Required:
- `api_key` (String) The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
-Optional:
-
-- `auth_method` (String) must be one of ["api_key"]
-
diff --git a/docs/resources/source_alloydb.md b/docs/resources/source_alloydb.md
index 4d3d54abc..5f75781a7 100644
--- a/docs/resources/source_alloydb.md
+++ b/docs/resources/source_alloydb.md
@@ -21,35 +21,32 @@ resource "airbyte_source_alloydb" "my_source_alloydb" {
password = "...my_password..."
port = 5432
replication_method = {
- source_alloydb_replication_method_logical_replication_cdc_ = {
- initial_waiting_seconds = 2
- lsn_commit_behaviour = "While reading Data"
- method = "CDC"
+ source_alloydb_replication_method_logical_replication_cdc = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ initial_waiting_seconds = 1
+ lsn_commit_behaviour = "After loading Data in the destination"
plugin = "pgoutput"
publication = "...my_publication..."
- queue_size = 10
+ queue_size = 4
replication_slot = "...my_replication_slot..."
}
}
schemas = [
"...",
]
- source_type = "alloydb"
ssl_mode = {
source_alloydb_ssl_modes_allow = {
- mode = "allow"
+ additional_properties = "{ \"see\": \"documentation\" }"
}
}
tunnel_method = {
- source_alloydb_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_alloydb_ssh_tunnel_method_no_tunnel = {}
}
- username = "Ashlynn_Emard"
+ username = "Mackenzie83"
}
- name = "Wilbert Crona"
+ name = "Robin Kuhn"
secret_id = "...my_secret_id..."
- workspace_id = "9b1abda8-c070-4e10-84cb-0672d1ad879e"
+ workspace_id = "3598ffb0-4292-44fa-aae5-018c31937409"
}
```
@@ -78,14 +75,13 @@ Required:
- `database` (String) Name of the database.
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
-- `source_type` (String) must be one of ["alloydb"]
- `username` (String) Username to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters.
- `password` (String) Password associated with the username.
+- `port` (Number) Port of the database.
- `replication_method` (Attributes) Replication method for extracting data from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
- `schemas` (List of String) The list of schemas (case sensitive) to sync from. Defaults to public.
- `ssl_mode` (Attributes) SSL connection modes.
@@ -109,7 +105,6 @@ Optional:
Required:
-- `method` (String) must be one of ["CDC"]
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
- `replication_slot` (String) A plugin logical replication slot. Read about replication slots.
@@ -127,25 +122,16 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_alloydb_replication_method_standard`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_replication_method_standard_xmin`
-Required:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_logical_replication_cdc`
Required:
-- `method` (String) must be one of ["CDC"]
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
- `replication_slot` (String) A plugin logical replication slot. Read about replication slots.
@@ -163,18 +149,10 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_standard`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_alloydb_update_replication_method_standard_xmin`
-Required:
-
-- `method` (String) must be one of ["Xmin"]
-
@@ -198,10 +176,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -210,10 +184,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -222,10 +192,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -234,10 +200,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -249,7 +211,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -265,7 +226,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -278,10 +238,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -290,10 +246,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -302,10 +254,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -314,10 +262,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_alloydb_update_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -329,7 +273,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -345,7 +288,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -371,11 +313,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_alloydb_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_alloydb_ssh_tunnel_method_password_authentication`
@@ -383,12 +320,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_alloydb_ssh_tunnel_method_ssh_key_authentication`
@@ -397,20 +335,16 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_alloydb_update_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_alloydb_update_ssh_tunnel_method_password_authentication`
@@ -418,12 +352,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_alloydb_update_ssh_tunnel_method_ssh_key_authentication`
@@ -432,9 +367,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_amazon_ads.md b/docs/resources/source_amazon_ads.md
index 9313194aa..6e07dfb3f 100644
--- a/docs/resources/source_amazon_ads.md
+++ b/docs/resources/source_amazon_ads.md
@@ -15,30 +15,28 @@ SourceAmazonAds Resource
```terraform
resource "airbyte_source_amazon_ads" "my_source_amazonads" {
configuration = {
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- look_back_window = 10
+ look_back_window = 3
marketplace_ids = [
"...",
]
profiles = [
- 6,
+ 10,
]
refresh_token = "...my_refresh_token..."
- region = "EU"
+ region = "FE"
report_record_types = [
- "asins_targets",
+ "asins",
]
- source_type = "amazon-ads"
- start_date = "2022-10-10"
+ start_date = "2022-10-10"
state_filter = [
"archived",
]
}
- name = "Dan Towne"
+ name = "Brett Wisozk IV"
secret_id = "...my_secret_id..."
- workspace_id = "d02bae0b-e2d7-4822-99e3-ea4b5197f924"
+ workspace_id = "64a856a0-4170-4ff8-966d-c32335977b07"
}
```
@@ -68,11 +66,9 @@ Required:
- `client_id` (String) The client ID of your Amazon Ads developer application. See the docs for more information.
- `client_secret` (String) The client secret of your Amazon Ads developer application. See the docs for more information.
- `refresh_token` (String) Amazon Ads refresh token. See the docs for more information on how to obtain this token.
-- `source_type` (String) must be one of ["amazon-ads"]
Optional:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `look_back_window` (Number) The amount of days to go back in time to get the updated data from Amazon Ads
- `marketplace_ids` (List of String) Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
- `profiles` (List of Number) Profile IDs you want to fetch data for. See docs for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
diff --git a/docs/resources/source_amazon_seller_partner.md b/docs/resources/source_amazon_seller_partner.md
index 2a1f4205f..82431722b 100644
--- a/docs/resources/source_amazon_seller_partner.md
+++ b/docs/resources/source_amazon_seller_partner.md
@@ -15,26 +15,24 @@ SourceAmazonSellerPartner Resource
```terraform
resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" {
configuration = {
- advanced_stream_options = "{\"GET_SALES_AND_TRAFFIC_REPORT\": {\"availability_sla_days\": 3}}"
- auth_type = "oauth2.0"
+ advanced_stream_options = "{\"GET_SOME_REPORT\": {\"custom\": \"true\"}}"
aws_access_key = "...my_aws_access_key..."
- aws_environment = "PRODUCTION"
+ aws_environment = "SANDBOX"
aws_secret_key = "...my_aws_secret_key..."
lwa_app_id = "...my_lwa_app_id..."
lwa_client_secret = "...my_lwa_client_secret..."
- max_wait_seconds = 1980
- period_in_days = 5
+ max_wait_seconds = 500
+ period_in_days = 1
refresh_token = "...my_refresh_token..."
- region = "SA"
+ region = "IT"
replication_end_date = "2017-01-25T00:00:00Z"
replication_start_date = "2017-01-25T00:00:00Z"
report_options = "{\"GET_SOME_REPORT\": {\"custom\": \"true\"}}"
role_arn = "...my_role_arn..."
- source_type = "amazon-seller-partner"
}
- name = "Phyllis Quitzon"
+ name = "Linda Kutch"
secret_id = "...my_secret_id..."
- workspace_id = "5c537c64-54ef-4b0b-b489-6c3ca5acfbe2"
+ workspace_id = "58c67348-eaa4-4356-b389-ad49dbc4fabb"
}
```
@@ -61,24 +59,22 @@ resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner"
Required:
-- `aws_environment` (String) must be one of ["PRODUCTION", "SANDBOX"]
-Select the AWS Environment.
- `lwa_app_id` (String) Your Login with Amazon Client ID.
- `lwa_client_secret` (String) Your Login with Amazon Client Secret.
- `refresh_token` (String) The Refresh Token obtained via OAuth flow authorization.
-- `region` (String) must be one of ["AE", "AU", "BE", "BR", "CA", "DE", "EG", "ES", "FR", "GB", "IN", "IT", "JP", "MX", "NL", "PL", "SA", "SE", "SG", "TR", "UK", "US"]
-Select the AWS Region.
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
-- `source_type` (String) must be one of ["amazon-seller-partner"]
Optional:
- `advanced_stream_options` (String) Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `aws_access_key` (String) Specifies the AWS access key used as part of the credentials to authenticate the user.
+- `aws_environment` (String) must be one of ["PRODUCTION", "SANDBOX"]
+Select the AWS Environment.
- `aws_secret_key` (String) Specifies the AWS secret key used as part of the credentials to authenticate the user.
- `max_wait_seconds` (Number) Sometimes report can take up to 30 minutes to generate. This will set the limit for how long to wait for a successful report.
- `period_in_days` (Number) Will be used for stream slicing for initial full_refresh sync when no updated state is present for reports that support sliced incremental sync.
+- `region` (String) must be one of ["AE", "AU", "BE", "BR", "CA", "DE", "EG", "ES", "FR", "GB", "IN", "IT", "JP", "MX", "NL", "PL", "SA", "SE", "SG", "TR", "UK", "US"]
+Select the AWS Region.
- `replication_end_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated.
- `report_options` (String) Additional information passed to reports. This varies by report type. Must be a valid json string.
- `role_arn` (String) Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).
diff --git a/docs/resources/source_amazon_sqs.md b/docs/resources/source_amazon_sqs.md
index 7ea4bb73b..95c879c87 100644
--- a/docs/resources/source_amazon_sqs.md
+++ b/docs/resources/source_amazon_sqs.md
@@ -21,14 +21,13 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" {
max_batch_size = 5
max_wait_time = 5
queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue"
- region = "ap-southeast-2"
+ region = "eu-central-1"
secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz"
- source_type = "amazon-sqs"
visibility_timeout = 15
}
- name = "Cathy Kirlin"
+ name = "Mr. Myrtle Crona"
secret_id = "...my_secret_id..."
- workspace_id = "29177dea-c646-4ecb-9734-09e3eb1e5a2b"
+ workspace_id = "b4de2c1a-7f28-48ad-bcde-3c9d6fa94b74"
}
```
@@ -55,16 +54,15 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" {
Required:
-- `delete_messages` (Boolean) If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail.
- `queue_url` (String) URL of the SQS Queue
- `region` (String) must be one of ["us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "me-south-1", "us-gov-east-1", "us-gov-west-1"]
AWS Region of the SQS Queue
-- `source_type` (String) must be one of ["amazon-sqs"]
Optional:
- `access_key` (String) The Access Key ID of the AWS IAM Role to use for pulling messages
- `attributes_to_return` (String) Comma separated list of Mesage Attribute names to return
+- `delete_messages` (Boolean) If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail.
- `max_batch_size` (Number) Max amount of messages to get in one batch (10 max)
- `max_wait_time` (Number) Max amount of time in seconds to wait for messages in a single poll (20 max)
- `secret_key` (String) The Secret Key of the AWS IAM Role to use for pulling messages
diff --git a/docs/resources/source_amplitude.md b/docs/resources/source_amplitude.md
index afa37370c..8feed428c 100644
--- a/docs/resources/source_amplitude.md
+++ b/docs/resources/source_amplitude.md
@@ -16,15 +16,14 @@ SourceAmplitude Resource
resource "airbyte_source_amplitude" "my_source_amplitude" {
configuration = {
api_key = "...my_api_key..."
- data_region = "Standard Server"
- request_time_range = 1
+ data_region = "EU Residency Server"
+ request_time_range = 6
secret_key = "...my_secret_key..."
- source_type = "amplitude"
start_date = "2021-01-25T00:00:00Z"
}
- name = "Robin Bednar"
+ name = "Priscilla Wunsch"
secret_id = "...my_secret_id..."
- workspace_id = "116db995-45fc-495f-a889-70e189dbb30f"
+ workspace_id = "ce1dfc1b-2798-4db1-9e64-b83f63d34837"
}
```
@@ -53,7 +52,6 @@ Required:
- `api_key` (String) Amplitude API Key. See the setup guide for more information on how to obtain this key.
- `secret_key` (String) Amplitude Secret Key. See the setup guide for more information on how to obtain this key.
-- `source_type` (String) must be one of ["amplitude"]
- `start_date` (String) UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
Optional:
diff --git a/docs/resources/source_apify_dataset.md b/docs/resources/source_apify_dataset.md
index dc02b94ef..f5a559b05 100644
--- a/docs/resources/source_apify_dataset.md
+++ b/docs/resources/source_apify_dataset.md
@@ -15,14 +15,13 @@ SourceApifyDataset Resource
```terraform
resource "airbyte_source_apify_dataset" "my_source_apifydataset" {
configuration = {
- clean = true
- dataset_id = "...my_dataset_id..."
- source_type = "apify-dataset"
- token = "Personal API tokens"
+ clean = false
+ dataset_id = "...my_dataset_id..."
+ token = "Personal API tokens"
}
- name = "Dale Ferry"
+ name = "Eric King"
secret_id = "...my_secret_id..."
- workspace_id = "055b197c-d44e-42f5-ad82-d3513bb6f48b"
+ workspace_id = "c9d4f32d-3e19-42a8-a43c-0f29f7cbd12b"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_apify_dataset" "my_source_apifydataset" {
Required:
-- `source_type` (String) must be one of ["apify-dataset"]
- `token` (String) Your application's Client Secret. You can find this value on the console integrations tab after you login.
Optional:
diff --git a/docs/resources/source_appfollow.md b/docs/resources/source_appfollow.md
index 7f6e36ef9..915bbcd9a 100644
--- a/docs/resources/source_appfollow.md
+++ b/docs/resources/source_appfollow.md
@@ -15,12 +15,11 @@ SourceAppfollow Resource
```terraform
resource "airbyte_source_appfollow" "my_source_appfollow" {
configuration = {
- api_secret = "...my_api_secret..."
- source_type = "appfollow"
+ api_secret = "...my_api_secret..."
}
- name = "Regina Huel"
+ name = "Ruby Becker"
secret_id = "...my_secret_id..."
- workspace_id = "db35ff2e-4b27-4537-a8cd-9e7319c177d5"
+ workspace_id = "3801c367-8d42-4b62-94a3-1a29aaf3c680"
}
```
@@ -45,10 +44,6 @@ resource "airbyte_source_appfollow" "my_source_appfollow" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["appfollow"]
-
Optional:
- `api_secret` (String) API Key provided by Appfollow
diff --git a/docs/resources/source_asana.md b/docs/resources/source_asana.md
index 63b256530..bfc91864b 100644
--- a/docs/resources/source_asana.md
+++ b/docs/resources/source_asana.md
@@ -16,18 +16,16 @@ SourceAsana Resource
resource "airbyte_source_asana" "my_source_asana" {
configuration = {
credentials = {
- source_asana_authentication_mechanism_authenticate_via_asana_oauth_ = {
+ source_asana_authentication_mechanism_authenticate_via_asana_oauth = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- option_title = "OAuth Credentials"
refresh_token = "...my_refresh_token..."
}
}
- source_type = "asana"
}
- name = "Jill Wintheiser"
+ name = "Melissa VonRueden"
secret_id = "...my_secret_id..."
- workspace_id = "b114eeb5-2ff7-485f-8378-14d4c98e0c2b"
+ workspace_id = "15370422-95e6-4e54-9c30-616586b73990"
}
```
@@ -55,7 +53,6 @@ resource "airbyte_source_asana" "my_source_asana" {
Optional:
- `credentials` (Attributes) Choose how to authenticate to Github (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["asana"]
### Nested Schema for `configuration.credentials`
@@ -76,11 +73,6 @@ Required:
- `client_secret` (String)
- `refresh_token` (String)
-Optional:
-
-- `option_title` (String) must be one of ["OAuth Credentials"]
-OAuth Credentials
-
### Nested Schema for `configuration.credentials.source_asana_authentication_mechanism_authenticate_with_personal_access_token`
@@ -89,11 +81,6 @@ Required:
- `personal_access_token` (String) Asana Personal Access Token (generate yours here).
-Optional:
-
-- `option_title` (String) must be one of ["PAT Credentials"]
-PAT Credentials
-
### Nested Schema for `configuration.credentials.source_asana_update_authentication_mechanism_authenticate_via_asana_oauth`
@@ -104,11 +91,6 @@ Required:
- `client_secret` (String)
- `refresh_token` (String)
-Optional:
-
-- `option_title` (String) must be one of ["OAuth Credentials"]
-OAuth Credentials
-
### Nested Schema for `configuration.credentials.source_asana_update_authentication_mechanism_authenticate_with_personal_access_token`
@@ -117,9 +99,4 @@ Required:
- `personal_access_token` (String) Asana Personal Access Token (generate yours here).
-Optional:
-
-- `option_title` (String) must be one of ["PAT Credentials"]
-PAT Credentials
-
diff --git a/docs/resources/source_auth0.md b/docs/resources/source_auth0.md
index 52fc91890..0999e9f27 100644
--- a/docs/resources/source_auth0.md
+++ b/docs/resources/source_auth0.md
@@ -19,15 +19,13 @@ resource "airbyte_source_auth0" "my_source_auth0" {
credentials = {
source_auth0_authentication_method_o_auth2_access_token = {
access_token = "...my_access_token..."
- auth_type = "oauth2_access_token"
}
}
- source_type = "auth0"
- start_date = "2023-08-05T00:43:59.244Z"
+ start_date = "2023-08-05T00:43:59.244Z"
}
- name = "Willard McLaughlin"
+ name = "Merle Nicolas"
secret_id = "...my_secret_id..."
- workspace_id = "75dad636-c600-4503-98bb-31180f739ae9"
+ workspace_id = "beba7dc7-cde8-4f8d-8392-aab15fb458ba"
}
```
@@ -56,7 +54,6 @@ Required:
- `base_url` (String) The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN`
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["auth0"]
Optional:
@@ -78,7 +75,6 @@ Optional:
Required:
- `access_token` (String) Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
-- `auth_type` (String) must be one of ["oauth2_access_token"]
@@ -87,7 +83,6 @@ Required:
Required:
- `audience` (String) The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
-- `auth_type` (String) must be one of ["oauth2_confidential_application"]
- `client_id` (String) Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
- `client_secret` (String) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
@@ -98,7 +93,6 @@ Required:
Required:
- `access_token` (String) Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
-- `auth_type` (String) must be one of ["oauth2_access_token"]
@@ -107,7 +101,6 @@ Required:
Required:
- `audience` (String) The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
-- `auth_type` (String) must be one of ["oauth2_confidential_application"]
- `client_id` (String) Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
- `client_secret` (String) Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
diff --git a/docs/resources/source_aws_cloudtrail.md b/docs/resources/source_aws_cloudtrail.md
index ae5eda7dc..37e600a38 100644
--- a/docs/resources/source_aws_cloudtrail.md
+++ b/docs/resources/source_aws_cloudtrail.md
@@ -18,12 +18,11 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" {
aws_key_id = "...my_aws_key_id..."
aws_region_name = "...my_aws_region_name..."
aws_secret_key = "...my_aws_secret_key..."
- source_type = "aws-cloudtrail"
start_date = "2021-01-01"
}
- name = "Nellie Waters"
+ name = "Ernesto Koelpin"
secret_id = "...my_secret_id..."
- workspace_id = "09e28103-31f3-4981-94c7-00b607f3c93c"
+ workspace_id = "1d5852a4-59de-4520-8e34-20a295e5c099"
}
```
@@ -53,7 +52,9 @@ Required:
- `aws_key_id` (String) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
- `aws_region_name` (String) The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name.
- `aws_secret_key` (String) AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["aws-cloudtrail"]
+
+Optional:
+
- `start_date` (String) The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
diff --git a/docs/resources/source_azure_blob_storage.md b/docs/resources/source_azure_blob_storage.md
index a6896cfbb..15146034f 100644
--- a/docs/resources/source_azure_blob_storage.md
+++ b/docs/resources/source_azure_blob_storage.md
@@ -22,15 +22,12 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" {
azure_blob_storage_endpoint = "blob.core.windows.net"
azure_blob_storage_schema_inference_limit = 500
format = {
- source_azure_blob_storage_input_format_json_lines_newline_delimited_json = {
- format_type = "JSONL"
- }
+ source_azure_blob_storage_input_format_json_lines_newline_delimited_json = {}
}
- source_type = "azure-blob-storage"
}
- name = "Patty Mraz"
+ name = "Margie Kutch"
secret_id = "...my_secret_id..."
- workspace_id = "3f2ceda7-e23f-4225-b411-faf4b7544e47"
+ workspace_id = "187a0987-5344-412b-8321-7acbe2ad9f31"
}
```
@@ -61,7 +58,6 @@ Required:
- `azure_blob_storage_account_name` (String) The account's name of the Azure Blob Storage.
- `azure_blob_storage_container_name` (String) The name of the Azure blob storage container.
- `format` (Attributes) Input data format (see [below for nested schema](#nestedatt--configuration--format))
-- `source_type` (String) must be one of ["azure-blob-storage"]
Optional:
@@ -80,16 +76,8 @@ Optional:
### Nested Schema for `configuration.format.source_azure_blob_storage_input_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
### Nested Schema for `configuration.format.source_azure_blob_storage_update_input_format_json_lines_newline_delimited_json`
-Required:
-
-- `format_type` (String) must be one of ["JSONL"]
-
diff --git a/docs/resources/source_azure_table.md b/docs/resources/source_azure_table.md
index 608c2aab8..9b31e9d52 100644
--- a/docs/resources/source_azure_table.md
+++ b/docs/resources/source_azure_table.md
@@ -15,14 +15,13 @@ SourceAzureTable Resource
```terraform
resource "airbyte_source_azure_table" "my_source_azuretable" {
configuration = {
- source_type = "azure-table"
storage_access_key = "...my_storage_access_key..."
storage_account_name = "...my_storage_account_name..."
- storage_endpoint_suffix = "core.windows.net"
+ storage_endpoint_suffix = "core.chinacloudapi.cn"
}
- name = "Ian Baumbach"
+ name = "Lucille Lubowitz"
secret_id = "...my_secret_id..."
- workspace_id = "57a5b404-63a7-4d57-9f14-00e764ad7334"
+ workspace_id = "c7b23d6b-848f-4403-86c0-4b193fb28918"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_azure_table" "my_source_azuretable" {
Required:
-- `source_type` (String) must be one of ["azure-table"]
- `storage_access_key` (String) Azure Table Storage Access Key. See the docs for more information on how to obtain this key.
- `storage_account_name` (String) The name of your storage account.
diff --git a/docs/resources/source_bamboo_hr.md b/docs/resources/source_bamboo_hr.md
index 7e8bce413..cb0aa38e5 100644
--- a/docs/resources/source_bamboo_hr.md
+++ b/docs/resources/source_bamboo_hr.md
@@ -18,12 +18,11 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" {
api_key = "...my_api_key..."
custom_reports_fields = "...my_custom_reports_fields..."
custom_reports_include_default_fields = true
- source_type = "bamboo-hr"
subdomain = "...my_subdomain..."
}
- name = "Ralph Rau"
+ name = "Olga Crooks"
secret_id = "...my_secret_id..."
- workspace_id = "1b36a080-88d1-400e-bada-200ef0422eb2"
+ workspace_id = "6ed560cd-3f9e-41f9-aaf9-a8e2157a8560"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" {
Required:
- `api_key` (String) Api key of bamboo hr
-- `source_type` (String) must be one of ["bamboo-hr"]
- `subdomain` (String) Sub Domain of bamboo hr
Optional:
diff --git a/docs/resources/source_bigcommerce.md b/docs/resources/source_bigcommerce.md
index e850994f9..6218f02c8 100644
--- a/docs/resources/source_bigcommerce.md
+++ b/docs/resources/source_bigcommerce.md
@@ -16,13 +16,12 @@ SourceBigcommerce Resource
resource "airbyte_source_bigcommerce" "my_source_bigcommerce" {
configuration = {
access_token = "...my_access_token..."
- source_type = "bigcommerce"
start_date = "2021-01-01"
store_hash = "...my_store_hash..."
}
- name = "Beth Gleason"
+ name = "Max Mills"
secret_id = "...my_secret_id..."
- workspace_id = "9ab8366c-723f-4fda-9e06-bee4825c1fc0"
+ workspace_id = "7fd0c202-086d-4396-9e60-f942f937a3c5"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_bigcommerce" "my_source_bigcommerce" {
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `source_type` (String) must be one of ["bigcommerce"]
- `start_date` (String) The date you would like to replicate data. Format: YYYY-MM-DD.
- `store_hash` (String) The hash code of the store. For https://api.bigcommerce.com/stores/HASH_CODE/v3/, The store's hash code is 'HASH_CODE'.
diff --git a/docs/resources/source_bigquery.md b/docs/resources/source_bigquery.md
index 5d4224fa6..893b19079 100644
--- a/docs/resources/source_bigquery.md
+++ b/docs/resources/source_bigquery.md
@@ -18,11 +18,10 @@ resource "airbyte_source_bigquery" "my_source_bigquery" {
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
project_id = "...my_project_id..."
- source_type = "bigquery"
}
- name = "Joe Bradtke"
+ name = "Greg Bayer"
secret_id = "...my_secret_id..."
- workspace_id = "80bff918-544e-4c42-9efc-ce8f1977773e"
+ workspace_id = "d11c7ed1-7b1d-45b0-8289-a0dc02329a5c"
}
```
@@ -51,7 +50,6 @@ Required:
- `credentials_json` (String) The contents of your Service Account Key JSON file. See the docs for more information on how to obtain this key.
- `project_id` (String) The GCP project ID for the project containing the target BigQuery dataset.
-- `source_type` (String) must be one of ["bigquery"]
Optional:
diff --git a/docs/resources/source_bing_ads.md b/docs/resources/source_bing_ads.md
index c209d01ae..ce7ec61ed 100644
--- a/docs/resources/source_bing_ads.md
+++ b/docs/resources/source_bing_ads.md
@@ -15,19 +15,17 @@ SourceBingAds Resource
```terraform
resource "airbyte_source_bing_ads" "my_source_bingads" {
configuration = {
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
developer_token = "...my_developer_token..."
- lookback_window = 4
+ lookback_window = 7
refresh_token = "...my_refresh_token..."
- reports_start_date = "2022-08-23"
- source_type = "bing-ads"
+ reports_start_date = "2021-04-13"
tenant_id = "...my_tenant_id..."
}
- name = "Kathryn Nitzsche"
+ name = "Alfred Littel"
secret_id = "...my_secret_id..."
- workspace_id = "408f05e3-d48f-4daf-b13a-1f5fd94259c0"
+ workspace_id = "495eab20-ebb3-405f-b624-c43900725fa3"
}
```
@@ -57,14 +55,12 @@ Required:
- `client_id` (String) The Client ID of your Microsoft Advertising developer application.
- `developer_token` (String) Developer token associated with user. See more info in the docs.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
-- `reports_start_date` (String) The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.
-- `source_type` (String) must be one of ["bing-ads"]
Optional:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_secret` (String) The Client Secret of your Microsoft Advertising developer application.
- `lookback_window` (Number) Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode.
+- `reports_start_date` (String) The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.
- `tenant_id` (String) The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.
diff --git a/docs/resources/source_braintree.md b/docs/resources/source_braintree.md
index e4b899ddb..fd4fed55f 100644
--- a/docs/resources/source_braintree.md
+++ b/docs/resources/source_braintree.md
@@ -19,12 +19,11 @@ resource "airbyte_source_braintree" "my_source_braintree" {
merchant_id = "...my_merchant_id..."
private_key = "...my_private_key..."
public_key = "...my_public_key..."
- source_type = "braintree"
- start_date = "2020-12-30"
+ start_date = "2020"
}
- name = "Henrietta Nienow"
+ name = "Traci Volkman"
secret_id = "...my_secret_id..."
- workspace_id = "4f3b756c-11f6-4c37-a512-6243835bbc05"
+ workspace_id = "2f8e06ef-6fed-4365-9e7d-5496735da213"
}
```
@@ -56,7 +55,6 @@ Environment specifies where the data will come from.
- `merchant_id` (String) The unique identifier for your entire gateway account. See the docs for more information on how to obtain this ID.
- `private_key` (String) Braintree Private Key. See the docs for more information on how to obtain this key.
- `public_key` (String) Braintree Public Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["braintree"]
Optional:
diff --git a/docs/resources/source_braze.md b/docs/resources/source_braze.md
index 9b54f5633..1514256d9 100644
--- a/docs/resources/source_braze.md
+++ b/docs/resources/source_braze.md
@@ -15,14 +15,13 @@ SourceBraze Resource
```terraform
resource "airbyte_source_braze" "my_source_braze" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "braze"
- start_date = "2022-09-06"
- url = "...my_url..."
+ api_key = "...my_api_key..."
+ start_date = "2021-06-06"
+ url = "...my_url..."
}
- name = "Rosie Glover"
+ name = "Alberta Langosh"
secret_id = "...my_secret_id..."
- workspace_id = "efc5fde1-0a0c-4e21-a9e5-10019c6dc5e3"
+ workspace_id = "fef8f538-76e3-4de3-8a86-e4df19faac84"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_braze" "my_source_braze" {
Required:
- `api_key` (String) Braze REST API key
-- `source_type` (String) must be one of ["braze"]
- `start_date` (String) Rows after this date will be synced
- `url` (String) Braze REST API endpoint
diff --git a/docs/resources/source_chargebee.md b/docs/resources/source_chargebee.md
index 441d8aec3..15d62b367 100644
--- a/docs/resources/source_chargebee.md
+++ b/docs/resources/source_chargebee.md
@@ -15,15 +15,14 @@ SourceChargebee Resource
```terraform
resource "airbyte_source_chargebee" "my_source_chargebee" {
configuration = {
- product_catalog = "1.0"
+ product_catalog = "2.0"
site = "airbyte-test"
site_api_key = "...my_site_api_key..."
- source_type = "chargebee"
start_date = "2021-01-25T00:00:00Z"
}
- name = "Viola Morissette"
+ name = "Marcus Jaskolski"
secret_id = "...my_secret_id..."
- workspace_id = "fbbe6949-fb2b-4b4e-8ae6-c3d5db3adebd"
+ workspace_id = "3644196a-04bb-4966-ae7d-15e7eedd4643"
}
```
@@ -54,7 +53,6 @@ Required:
Product Catalog version of your Chargebee site. Instructions on how to find your version you may find here under `API Version` section.
- `site` (String) The site prefix for your Chargebee instance.
- `site_api_key` (String) Chargebee API Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["chargebee"]
- `start_date` (String) UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/resources/source_chartmogul.md b/docs/resources/source_chartmogul.md
index eae9586b4..ae32231e5 100644
--- a/docs/resources/source_chartmogul.md
+++ b/docs/resources/source_chartmogul.md
@@ -15,14 +15,13 @@ SourceChartmogul Resource
```terraform
resource "airbyte_source_chartmogul" "my_source_chartmogul" {
configuration = {
- api_key = "...my_api_key..."
- interval = "week"
- source_type = "chartmogul"
- start_date = "2017-01-25T00:00:00Z"
+ api_key = "...my_api_key..."
+ interval = "week"
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Neal Gorczany"
+ name = "Tyler Lind"
secret_id = "...my_secret_id..."
- workspace_id = "06a8aa94-c026-444c-b5e9-d9a4578adc1a"
+ workspace_id = "dc13c292-fcfa-4b73-b9ba-5d3045674ad2"
}
```
@@ -50,9 +49,11 @@ resource "airbyte_source_chartmogul" "my_source_chartmogul" {
Required:
- `api_key` (String) Your Chartmogul API key. See the docs for info on how to obtain this.
+- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated.
+
+Optional:
+
- `interval` (String) must be one of ["day", "week", "month", "quarter"]
Some APIs such as Metrics require intervals to cluster data.
-- `source_type` (String) must be one of ["chartmogul"]
-- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated.
diff --git a/docs/resources/source_clickhouse.md b/docs/resources/source_clickhouse.md
index 0752f6a3e..67cedd681 100644
--- a/docs/resources/source_clickhouse.md
+++ b/docs/resources/source_clickhouse.md
@@ -15,21 +15,18 @@ SourceClickhouse Resource
```terraform
resource "airbyte_source_clickhouse" "my_source_clickhouse" {
configuration = {
- database = "default"
- host = "...my_host..."
- password = "...my_password..."
- port = 8123
- source_type = "clickhouse"
+ database = "default"
+ host = "...my_host..."
+ password = "...my_password..."
+ port = 8123
tunnel_method = {
- source_clickhouse_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_clickhouse_ssh_tunnel_method_no_tunnel = {}
}
- username = "Gerry81"
+ username = "Sarah.Rolfson7"
}
- name = "Mr. Simon Altenwerth"
+ name = "Adrian Williamson"
secret_id = "...my_secret_id..."
- workspace_id = "c802e2ec-09ff-48f0-b816-ff3477c13e90"
+ workspace_id = "13664c8a-b088-4c24-8e91-396f3407545d"
}
```
@@ -58,13 +55,12 @@ Required:
- `database` (String) The name of the database.
- `host` (String) The host endpoint of the Clickhouse cluster.
-- `port` (Number) The port of the database.
-- `source_type` (String) must be one of ["clickhouse"]
- `username` (String) The username which is used to access the database.
Optional:
- `password` (String) The password associated with this username.
+- `port` (Number) The port of the database.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -82,11 +78,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_clickhouse_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_clickhouse_ssh_tunnel_method_password_authentication`
@@ -94,12 +85,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_clickhouse_ssh_tunnel_method_ssh_key_authentication`
@@ -108,19 +100,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.source_clickhouse_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.source_clickhouse_update_ssh_tunnel_method_no_tunnel`
@@ -129,12 +117,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_clickhouse_update_ssh_tunnel_method_ssh_key_authentication`
@@ -143,9 +132,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_clickup_api.md b/docs/resources/source_clickup_api.md
index 3fe26b280..850c61adb 100644
--- a/docs/resources/source_clickup_api.md
+++ b/docs/resources/source_clickup_api.md
@@ -19,13 +19,12 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" {
folder_id = "...my_folder_id..."
include_closed_tasks = true
list_id = "...my_list_id..."
- source_type = "clickup-api"
space_id = "...my_space_id..."
team_id = "...my_team_id..."
}
- name = "Mr. Jack Gottlieb"
+ name = "Karen Jacobs"
secret_id = "...my_secret_id..."
- workspace_id = "b0960a66-8151-4a47-aaf9-23c5949f83f3"
+ workspace_id = "d04e6080-39bc-47eb-8732-a47524bb490a"
}
```
@@ -53,7 +52,6 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" {
Required:
- `api_token` (String) Every ClickUp API call required authentication. This field is your personal API token. See here.
-- `source_type` (String) must be one of ["clickup-api"]
Optional:
diff --git a/docs/resources/source_clockify.md b/docs/resources/source_clockify.md
index 113eb7b03..3b5974020 100644
--- a/docs/resources/source_clockify.md
+++ b/docs/resources/source_clockify.md
@@ -17,12 +17,11 @@ resource "airbyte_source_clockify" "my_source_clockify" {
configuration = {
api_key = "...my_api_key..."
api_url = "...my_api_url..."
- source_type = "clockify"
workspace_id = "...my_workspace_id..."
}
- name = "Angela Schaefer"
+ name = "Jessie Hansen"
secret_id = "...my_secret_id..."
- workspace_id = "76ffb901-c6ec-4bb4-a243-cf789ffafeda"
+ workspace_id = "d11902ba-1888-4602-b1ad-193af491985c"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_clockify" "my_source_clockify" {
Required:
- `api_key` (String) You can get your api access_key here This API is Case Sensitive.
-- `source_type` (String) must be one of ["clockify"]
- `workspace_id` (String) WorkSpace Id
Optional:
diff --git a/docs/resources/source_close_com.md b/docs/resources/source_close_com.md
index b28cb6c3a..60cbe751f 100644
--- a/docs/resources/source_close_com.md
+++ b/docs/resources/source_close_com.md
@@ -15,13 +15,12 @@ SourceCloseCom Resource
```terraform
resource "airbyte_source_close_com" "my_source_closecom" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "close-com"
- start_date = "2021-01-01"
+ api_key = "...my_api_key..."
+ start_date = "2021-01-01"
}
- name = "Ronnie Nikolaus"
+ name = "Luis Fahey"
secret_id = "...my_secret_id..."
- workspace_id = "e0ac184c-2b9c-4247-8883-73a40e1942f3"
+ workspace_id = "e7edb401-c239-4e69-86f2-1d654173cccb"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_close_com" "my_source_closecom" {
Required:
- `api_key` (String) Close.com API key (usually starts with 'api_'; find yours here).
-- `source_type` (String) must be one of ["close-com"]
Optional:
diff --git a/docs/resources/source_coda.md b/docs/resources/source_coda.md
index cc909b5dd..2adbc12f4 100644
--- a/docs/resources/source_coda.md
+++ b/docs/resources/source_coda.md
@@ -15,12 +15,11 @@ SourceCoda Resource
```terraform
resource "airbyte_source_coda" "my_source_coda" {
configuration = {
- auth_token = "...my_auth_token..."
- source_type = "coda"
+ auth_token = "...my_auth_token..."
}
- name = "Lila Harris II"
+ name = "Miss Forrest Heaney"
secret_id = "...my_secret_id..."
- workspace_id = "5756f5d5-6d0b-4d0a-b2df-e13db4f62cba"
+ workspace_id = "caa62e55-7cba-40d3-b800-2a5767fcf379"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_coda" "my_source_coda" {
Required:
- `auth_token` (String) Bearer token
-- `source_type` (String) must be one of ["coda"]
diff --git a/docs/resources/source_coin_api.md b/docs/resources/source_coin_api.md
index 3bd2f51bf..621c98606 100644
--- a/docs/resources/source_coin_api.md
+++ b/docs/resources/source_coin_api.md
@@ -17,16 +17,15 @@ resource "airbyte_source_coin_api" "my_source_coinapi" {
configuration = {
api_key = "...my_api_key..."
end_date = "2019-01-01T00:00:00"
- environment = "sandbox"
- limit = 10
- period = "2MTH"
- source_type = "coin-api"
+ environment = "production"
+ limit = 7
+ period = "5SEC"
start_date = "2019-01-01T00:00:00"
symbol_id = "...my_symbol_id..."
}
- name = "Francis Boyle"
+ name = "Rebecca Brekke"
secret_id = "...my_secret_id..."
- workspace_id = "bc0b80a6-924d-43b2-acfc-c8f895010f5d"
+ workspace_id = "e8db1144-f7f4-4dcb-a810-858467e5cd33"
}
```
@@ -54,10 +53,7 @@ resource "airbyte_source_coin_api" "my_source_coinapi" {
Required:
- `api_key` (String) API Key
-- `environment` (String) must be one of ["sandbox", "production"]
-The environment to use. Either sandbox or production.
- `period` (String) The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get
-- `source_type` (String) must be one of ["coin-api"]
- `start_date` (String) The start date in ISO 8601 format.
- `symbol_id` (String) The symbol ID to use. See the documentation for a list.
https://docs.coinapi.io/#list-all-symbols-get
@@ -67,6 +63,8 @@ Optional:
- `end_date` (String) The end date in ISO 8601 format. If not supplied, data will be returned
from the start date to the current time, or when the count of result
elements reaches its limit.
+- `environment` (String) must be one of ["sandbox", "production"]
+The environment to use. Either sandbox or production.
- `limit` (Number) The maximum number of elements to return. If not supplied, the default
is 100. For numbers larger than 100, each 100 items is counted as one
request for pricing purposes. Maximum value is 100000.
diff --git a/docs/resources/source_coinmarketcap.md b/docs/resources/source_coinmarketcap.md
index c2cd2f263..0e742886f 100644
--- a/docs/resources/source_coinmarketcap.md
+++ b/docs/resources/source_coinmarketcap.md
@@ -15,16 +15,15 @@ SourceCoinmarketcap Resource
```terraform
resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" {
configuration = {
- api_key = "...my_api_key..."
- data_type = "historical"
- source_type = "coinmarketcap"
+ api_key = "...my_api_key..."
+ data_type = "latest"
symbols = [
"...",
]
}
- name = "Meredith Kassulke"
+ name = "Olga Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "1804e54c-82f1-468a-b63c-8873e484380b"
+ workspace_id = "cc3fde33-4f78-46aa-a3aa-f527fe19eb1b"
}
```
@@ -54,7 +53,6 @@ Required:
- `api_key` (String) Your API Key. See here. The token is case sensitive.
- `data_type` (String) must be one of ["latest", "historical"]
/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See here.
-- `source_type` (String) must be one of ["coinmarketcap"]
Optional:
diff --git a/docs/resources/source_configcat.md b/docs/resources/source_configcat.md
index 0664fac49..d3fb71a4c 100644
--- a/docs/resources/source_configcat.md
+++ b/docs/resources/source_configcat.md
@@ -15,13 +15,12 @@ SourceConfigcat Resource
```terraform
resource "airbyte_source_configcat" "my_source_configcat" {
configuration = {
- password = "...my_password..."
- source_type = "configcat"
- username = "Art_Wiegand"
+ password = "...my_password..."
+ username = "Uriah_MacGyver16"
}
- name = "Lowell Oberbrunner"
+ name = "Crystal Mueller"
secret_id = "...my_secret_id..."
- workspace_id = "5a60a04c-495c-4c69-9171-b51c1bdb1cf4"
+ workspace_id = "7597e801-e676-489a-86f3-96c7c6bf7372"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_configcat" "my_source_configcat" {
Required:
- `password` (String) Basic auth password. See here.
-- `source_type` (String) must be one of ["configcat"]
- `username` (String) Basic auth user name. See here.
diff --git a/docs/resources/source_confluence.md b/docs/resources/source_confluence.md
index 65945d69a..259d7d936 100644
--- a/docs/resources/source_confluence.md
+++ b/docs/resources/source_confluence.md
@@ -18,11 +18,10 @@ resource "airbyte_source_confluence" "my_source_confluence" {
api_token = "...my_api_token..."
domain_name = "...my_domain_name..."
email = "abc@example.com"
- source_type = "confluence"
}
- name = "Jody Will"
+ name = "Terry Beer"
secret_id = "...my_secret_id..."
- workspace_id = "ccca99bc-7fc0-4b2d-8e10-873e42b006d6"
+ workspace_id = "f1e30360-fc0e-4aa5-8681-bc3adb090c01"
}
```
@@ -52,6 +51,5 @@ Required:
- `api_token` (String) Please follow the Jira confluence for generating an API token: generating an API token.
- `domain_name` (String) Your Confluence domain name
- `email` (String) Your Confluence login email
-- `source_type` (String) must be one of ["confluence"]
diff --git a/docs/resources/source_convex.md b/docs/resources/source_convex.md
index 107ac4ea7..66e804445 100644
--- a/docs/resources/source_convex.md
+++ b/docs/resources/source_convex.md
@@ -17,11 +17,10 @@ resource "airbyte_source_convex" "my_source_convex" {
configuration = {
access_key = "...my_access_key..."
deployment_url = "https://murky-swan-635.convex.cloud"
- source_type = "convex"
}
- name = "Guy Kovacek"
+ name = "Leroy Cormier Jr."
secret_id = "...my_secret_id..."
- workspace_id = "a8581a58-208c-454f-afa9-c95f2eac5565"
+ workspace_id = "1e265eeb-c230-4b15-894c-c21854edb75e"
}
```
@@ -50,6 +49,5 @@ Required:
- `access_key` (String) API access key used to retrieve data from Convex.
- `deployment_url` (String)
-- `source_type` (String) must be one of ["convex"]
diff --git a/docs/resources/source_datascope.md b/docs/resources/source_datascope.md
index bae217d54..0095992f1 100644
--- a/docs/resources/source_datascope.md
+++ b/docs/resources/source_datascope.md
@@ -15,13 +15,12 @@ SourceDatascope Resource
```terraform
resource "airbyte_source_datascope" "my_source_datascope" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "datascope"
- start_date = "dd/mm/YYYY HH:MM"
+ api_key = "...my_api_key..."
+ start_date = "dd/mm/YYYY HH:MM"
}
- name = "Danny Bahringer"
+ name = "Antonia Bradtke"
secret_id = "...my_secret_id..."
- workspace_id = "fee81206-e281-43fa-8a41-c480d3f2132a"
+ workspace_id = "ddc2da36-2faf-41b2-8fe2-6cb1bb0550b4"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_datascope" "my_source_datascope" {
Required:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["datascope"]
- `start_date` (String) Start date for the data to be replicated
diff --git a/docs/resources/source_delighted.md b/docs/resources/source_delighted.md
index b49cbcb20..0e46ff880 100644
--- a/docs/resources/source_delighted.md
+++ b/docs/resources/source_delighted.md
@@ -15,13 +15,12 @@ SourceDelighted Resource
```terraform
resource "airbyte_source_delighted" "my_source_delighted" {
configuration = {
- api_key = "...my_api_key..."
- since = "2022-05-30 04:50:23"
- source_type = "delighted"
+ api_key = "...my_api_key..."
+ since = "2022-05-30 04:50:23"
}
- name = "Sarah Collier"
+ name = "Katherine Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "14f4cc6f-18bf-4962-9a6a-4f77a87ee3e4"
+ workspace_id = "7f29336e-2378-418d-9537-3da8d6eef047"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String) A Delighted API key.
- `since` (String) The date from which you'd like to replicate the data
-- `source_type` (String) must be one of ["delighted"]
diff --git a/docs/resources/source_dixa.md b/docs/resources/source_dixa.md
index 00d9fb658..ca3870a6f 100644
--- a/docs/resources/source_dixa.md
+++ b/docs/resources/source_dixa.md
@@ -15,14 +15,13 @@ SourceDixa Resource
```terraform
resource "airbyte_source_dixa" "my_source_dixa" {
configuration = {
- api_token = "...my_api_token..."
- batch_size = 31
- source_type = "dixa"
- start_date = "YYYY-MM-DD"
+ api_token = "...my_api_token..."
+ batch_size = 1
+ start_date = "YYYY-MM-DD"
}
- name = "Brittany Cole"
+ name = "Edith Abshire"
secret_id = "...my_secret_id..."
- workspace_id = "5b34418e-3bb9-41c8-9975-e0e8419d8f84"
+ workspace_id = "bc2dbf18-8dfa-4bd5-b111-ac61dffa69fe"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_dixa" "my_source_dixa" {
Required:
- `api_token` (String) Dixa API token
-- `source_type` (String) must be one of ["dixa"]
- `start_date` (String) The connector pulls records updated from this date onwards.
Optional:
diff --git a/docs/resources/source_dockerhub.md b/docs/resources/source_dockerhub.md
index 45ad7b7aa..588fca708 100644
--- a/docs/resources/source_dockerhub.md
+++ b/docs/resources/source_dockerhub.md
@@ -16,11 +16,10 @@ SourceDockerhub Resource
resource "airbyte_source_dockerhub" "my_source_dockerhub" {
configuration = {
docker_username = "airbyte"
- source_type = "dockerhub"
}
- name = "Joe Haag"
+ name = "Rebecca Gerlach"
secret_id = "...my_secret_id..."
- workspace_id = "3e07edcc-4aa5-4f3c-abd9-05a972e05672"
+ workspace_id = "3e9a244d-7bc1-4a5a-ae1c-c19313722140"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_dockerhub" "my_source_dockerhub" {
Required:
- `docker_username` (String) Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)
-- `source_type` (String) must be one of ["dockerhub"]
diff --git a/docs/resources/source_dremio.md b/docs/resources/source_dremio.md
index ace6581e5..564acc251 100644
--- a/docs/resources/source_dremio.md
+++ b/docs/resources/source_dremio.md
@@ -15,13 +15,12 @@ SourceDremio Resource
```terraform
resource "airbyte_source_dremio" "my_source_dremio" {
configuration = {
- api_key = "...my_api_key..."
- base_url = "...my_base_url..."
- source_type = "dremio"
+ api_key = "...my_api_key..."
+ base_url = "...my_base_url..."
}
- name = "Aaron Connelly"
+ name = "Bessie Towne"
secret_id = "...my_secret_id..."
- workspace_id = "2d309470-bf7a-44fa-87cf-535a6fae54eb"
+ workspace_id = "1b638bd6-48d5-4481-8afe-b93d4bbde9f2"
}
```
@@ -49,7 +48,9 @@ resource "airbyte_source_dremio" "my_source_dremio" {
Required:
- `api_key` (String) API Key that is generated when you authenticate to Dremio API
+
+Optional:
+
- `base_url` (String) URL of your Dremio instance
-- `source_type` (String) must be one of ["dremio"]
diff --git a/docs/resources/source_dynamodb.md b/docs/resources/source_dynamodb.md
index 6de681c81..1f05ea9cb 100644
--- a/docs/resources/source_dynamodb.md
+++ b/docs/resources/source_dynamodb.md
@@ -17,14 +17,13 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
endpoint = "https://{aws_dynamo_db_url}.com"
- region = "us-gov-west-1"
+ region = "eu-west-1"
reserved_attribute_names = "name, field_name, field-name"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
- source_type = "dynamodb"
}
- name = "Sandra Rowe Sr."
+ name = "Daryl Bartoletti"
secret_id = "...my_secret_id..."
- workspace_id = "f023b75d-2367-4fe1-a0cc-8df79f0a396d"
+ workspace_id = "3fe4ad28-2938-4c45-a756-44517930ed8d"
}
```
@@ -53,7 +52,6 @@ Required:
- `access_key_id` (String) The access key id to access Dynamodb. Airbyte requires read permissions to the database
- `secret_access_key` (String) The corresponding secret to the access key id.
-- `source_type` (String) must be one of ["dynamodb"]
Optional:
diff --git a/docs/resources/source_e2e_test_cloud.md b/docs/resources/source_e2e_test_cloud.md
index f8fb3fe22..135bb4f14 100644
--- a/docs/resources/source_e2e_test_cloud.md
+++ b/docs/resources/source_e2e_test_cloud.md
@@ -15,21 +15,18 @@ SourceE2eTestCloud Resource
```terraform
resource "airbyte_source_e2e_test_cloud" "my_source_e2etestcloud" {
configuration = {
- max_messages = 6
- message_interval_ms = 0
+ max_messages = 3
+ message_interval_ms = 2
mock_catalog = {
source_e2e_test_cloud_mock_catalog_multi_schema = {
stream_schemas = "...my_stream_schemas..."
- type = "MULTI_STREAM"
}
}
- seed = 42
- source_type = "e2e-test-cloud"
- type = "CONTINUOUS_FEED"
+ seed = 42
}
- name = "Gertrude Grant"
+ name = "Angel Pagac"
secret_id = "...my_secret_id..."
- workspace_id = "c15dfbac-e188-4b1c-8ee2-c8c6ce611fee"
+ workspace_id = "a6ef9fc3-c374-44fd-a52e-57aa673d2825"
}
```
@@ -56,15 +53,13 @@ resource "airbyte_source_e2e_test_cloud" "my_source_e2etestcloud" {
Required:
-- `max_messages` (Number) Number of records to emit per stream. Min 1. Max 100 billion.
- `mock_catalog` (Attributes) (see [below for nested schema](#nestedatt--configuration--mock_catalog))
-- `source_type` (String) must be one of ["e2e-test-cloud"]
Optional:
+- `max_messages` (Number) Number of records to emit per stream. Min 1. Max 100 billion.
- `message_interval_ms` (Number) Interval between messages in ms. Min 0 ms. Max 60000 ms (1 minute).
- `seed` (Number) When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].
-- `type` (String) must be one of ["CONTINUOUS_FEED"]
### Nested Schema for `configuration.mock_catalog`
@@ -79,46 +74,36 @@ Optional:
### Nested Schema for `configuration.mock_catalog.source_e2e_test_cloud_mock_catalog_multi_schema`
-Required:
+Optional:
- `stream_schemas` (String) A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["MULTI_STREAM"]
### Nested Schema for `configuration.mock_catalog.source_e2e_test_cloud_mock_catalog_single_schema`
-Required:
-
-- `stream_name` (String) Name of the data stream.
-- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["SINGLE_STREAM"]
-
Optional:
- `stream_duplication` (Number) Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
+- `stream_name` (String) Name of the data stream.
+- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
### Nested Schema for `configuration.mock_catalog.source_e2e_test_cloud_update_mock_catalog_multi_schema`
-Required:
+Optional:
- `stream_schemas` (String) A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["MULTI_STREAM"]
### Nested Schema for `configuration.mock_catalog.source_e2e_test_cloud_update_mock_catalog_single_schema`
-Required:
-
-- `stream_name` (String) Name of the data stream.
-- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
-- `type` (String) must be one of ["SINGLE_STREAM"]
-
Optional:
- `stream_duplication` (Number) Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
+- `stream_name` (String) Name of the data stream.
+- `stream_schema` (String) A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
diff --git a/docs/resources/source_emailoctopus.md b/docs/resources/source_emailoctopus.md
index 43ef90e3a..c840d7e0b 100644
--- a/docs/resources/source_emailoctopus.md
+++ b/docs/resources/source_emailoctopus.md
@@ -15,12 +15,11 @@ SourceEmailoctopus Resource
```terraform
resource "airbyte_source_emailoctopus" "my_source_emailoctopus" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "emailoctopus"
+ api_key = "...my_api_key..."
}
- name = "Gregory Satterfield"
+ name = "Elijah Abbott"
secret_id = "...my_secret_id..."
- workspace_id = "bdb6eec7-4378-4ba2-9317-747dc915ad2c"
+ workspace_id = "20e39e10-d6ef-409f-b849-b0bdf3d5ca96"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_emailoctopus" "my_source_emailoctopus" {
Required:
- `api_key` (String) EmailOctopus API Key. See the docs for information on how to generate this key.
-- `source_type` (String) must be one of ["emailoctopus"]
diff --git a/docs/resources/source_exchange_rates.md b/docs/resources/source_exchange_rates.md
index ca8d8a6e0..6b483c987 100644
--- a/docs/resources/source_exchange_rates.md
+++ b/docs/resources/source_exchange_rates.md
@@ -18,12 +18,11 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" {
access_key = "...my_access_key..."
base = "USD"
ignore_weekends = false
- source_type = "exchange-rates"
start_date = "YYYY-MM-DD"
}
- name = "Mrs. Leslie Klocko"
+ name = "Eleanor O'Conner PhD"
secret_id = "...my_secret_id..."
- workspace_id = "c0f5ae2f-3a6b-4700-8787-56143f5a6c98"
+ workspace_id = "23c3d11f-f934-4df0-9756-d8b0d90daf91"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" {
Required:
- `access_key` (String) Your API Key. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["exchange-rates"]
- `start_date` (String) Start getting data from that date.
Optional:
diff --git a/docs/resources/source_facebook_marketing.md b/docs/resources/source_facebook_marketing.md
index f34d17319..0f3fe9ca2 100644
--- a/docs/resources/source_facebook_marketing.md
+++ b/docs/resources/source_facebook_marketing.md
@@ -17,41 +17,40 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" {
configuration = {
access_token = "...my_access_token..."
account_id = "111111111111111"
- action_breakdowns_allow_empty = true
+ action_breakdowns_allow_empty = false
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
custom_insights = [
{
action_breakdowns = [
- "action_destination",
+ "action_device",
]
- action_report_time = "conversion"
+ action_report_time = "mixed"
breakdowns = [
- "frequency_value",
+ "platform_position",
]
end_date = "2017-01-26T00:00:00Z"
fields = [
- "account_name",
+ "place_page_name",
]
- insights_lookback_window = 6
- level = "ad"
- name = "Jesus Batz"
+ insights_lookback_window = 5
+ level = "campaign"
+ name = "Delia Dicki"
start_date = "2017-01-25T00:00:00Z"
time_increment = 8
},
]
end_date = "2017-01-26T00:00:00Z"
fetch_thumbnail_images = false
- include_deleted = true
- insights_lookback_window = 4
- max_batch_size = 7
- page_size = 3
- source_type = "facebook-marketing"
+ include_deleted = false
+ insights_lookback_window = 1
+ max_batch_size = 9
+ page_size = 1
start_date = "2017-01-25T00:00:00Z"
}
- name = "Ms. Wilbert McGlynn"
+ name = "Willis Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "04f926ba-d255-4381-9b47-4b0ed20e5624"
+ workspace_id = "f001ddb3-cf07-44d6-a7d2-01b0d069bb26"
}
```
@@ -80,7 +79,6 @@ Required:
- `access_token` (String) The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions ads_management, ads_read, read_insights, business_management. Then click on "Get token". See the docs for more information.
- `account_id` (String) The Facebook Ad account ID to use when pulling data from the Facebook Marketing API. Open your Meta Ads Manager. The Ad account ID number is in the account dropdown menu or in your browser's address bar. See the docs for more information.
-- `source_type` (String) must be one of ["facebook-marketing"]
- `start_date` (String) The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
Optional:
diff --git a/docs/resources/source_facebook_pages.md b/docs/resources/source_facebook_pages.md
index 92ca82db3..d37c2fd9f 100644
--- a/docs/resources/source_facebook_pages.md
+++ b/docs/resources/source_facebook_pages.md
@@ -17,11 +17,10 @@ resource "airbyte_source_facebook_pages" "my_source_facebookpages" {
configuration = {
access_token = "...my_access_token..."
page_id = "...my_page_id..."
- source_type = "facebook-pages"
}
- name = "Moses Wuckert"
+ name = "Leslie Reinger"
secret_id = "...my_secret_id..."
- workspace_id = "39a910ab-dcab-4626-b669-6e1ec00221b3"
+ workspace_id = "25aa9f8c-7d41-4070-88d9-ffe8959afeef"
}
```
@@ -50,6 +49,5 @@ Required:
- `access_token` (String) Facebook Page Access Token
- `page_id` (String) Page ID
-- `source_type` (String) must be one of ["facebook-pages"]
diff --git a/docs/resources/source_faker.md b/docs/resources/source_faker.md
index 5fa327f17..f93241011 100644
--- a/docs/resources/source_faker.md
+++ b/docs/resources/source_faker.md
@@ -16,15 +16,14 @@ SourceFaker Resource
resource "airbyte_source_faker" "my_source_faker" {
configuration = {
always_updated = false
- count = 3
- parallelism = 9
- records_per_slice = 5
- seed = 6
- source_type = "faker"
+ count = 6
+ parallelism = 10
+ records_per_slice = 7
+ seed = 9
}
- name = "Delbert Reynolds"
+ name = "Kerry Hickle"
secret_id = "...my_secret_id..."
- workspace_id = "cfda8d0c-549e-4f03-8049-78a61fa1cf20"
+ workspace_id = "690efc6e-828b-41d2-9db5-daa9ea927cae"
}
```
@@ -49,14 +48,10 @@ resource "airbyte_source_faker" "my_source_faker" {
### Nested Schema for `configuration`
-Required:
-
-- `count` (Number) How many users should be generated in total. This setting does not apply to the purchases or products stream.
-- `source_type` (String) must be one of ["faker"]
-
Optional:
- `always_updated` (Boolean) Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted.
+- `count` (Number) How many users should be generated in total. This setting does not apply to the purchases or products stream.
- `parallelism` (Number) How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source.
- `records_per_slice` (Number) How many fake records will be in each page (stream slice), before a state message is emitted?
- `seed` (Number) Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)
diff --git a/docs/resources/source_fauna.md b/docs/resources/source_fauna.md
index e08ebd353..7c9f9b9ca 100644
--- a/docs/resources/source_fauna.md
+++ b/docs/resources/source_fauna.md
@@ -17,21 +17,18 @@ resource "airbyte_source_fauna" "my_source_fauna" {
configuration = {
collection = {
deletions = {
- source_fauna_collection_deletion_mode_disabled = {
- deletion_mode = "ignore"
- }
+ source_fauna_collection_deletion_mode_disabled = {}
}
- page_size = 4
+ page_size = 5
}
- domain = "...my_domain..."
- port = 5
- scheme = "...my_scheme..."
- secret = "...my_secret..."
- source_type = "fauna"
+ domain = "...my_domain..."
+ port = 7
+ scheme = "...my_scheme..."
+ secret = "...my_secret..."
}
- name = "Irvin Klein"
+ name = "Sherri Ruecker"
secret_id = "...my_secret_id..."
- workspace_id = "1ffc71dc-a163-4f2a-bc80-a97ff334cddf"
+ workspace_id = "e6b85628-652e-40ff-83c2-1b517b16f1f8"
}
```
@@ -58,15 +55,14 @@ resource "airbyte_source_fauna" "my_source_fauna" {
Required:
-- `domain` (String) Domain of Fauna to query. Defaults db.fauna.com. See the docs.
-- `port` (Number) Endpoint port.
-- `scheme` (String) URL scheme.
- `secret` (String) Fauna secret, used when authenticating with the database.
-- `source_type` (String) must be one of ["fauna"]
Optional:
- `collection` (Attributes) Settings for the Fauna Collection. (see [below for nested schema](#nestedatt--configuration--collection))
+- `domain` (String) Domain of Fauna to query. Defaults db.fauna.com. See the docs.
+- `port` (Number) Endpoint port.
+- `scheme` (String) URL scheme.
### Nested Schema for `configuration.collection`
@@ -77,6 +73,9 @@ Required:
Enabling deletion mode informs your destination of deleted documents.
Disabled - Leave this feature disabled, and ignore deleted documents.
Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. (see [below for nested schema](#nestedatt--configuration--collection--deletions))
+
+Optional:
+
- `page_size` (Number) The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail.
Choose your page size based on how large the documents are.
See the docs.
@@ -106,34 +105,24 @@ Enabled - Enables this feature. When a document is deleted, the connector export
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Required:
-
-- `deletion_mode` (String) must be one of ["ignore"]
-
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Required:
+Optional:
- `column` (String) Name of the "deleted at" column.
-- `deletion_mode` (String) must be one of ["deleted_field"]
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Required:
-
-- `deletion_mode` (String) must be one of ["ignore"]
-
### Nested Schema for `configuration.collection.deletions.source_fauna_update_collection_deletion_mode_enabled`
-Required:
+Optional:
- `column` (String) Name of the "deleted at" column.
-- `deletion_mode` (String) must be one of ["deleted_field"]
diff --git a/docs/resources/source_file_secure.md b/docs/resources/source_file_secure.md
index 79d6ae22a..86620e2b8 100644
--- a/docs/resources/source_file_secure.md
+++ b/docs/resources/source_file_secure.md
@@ -21,17 +21,15 @@ resource "airbyte_source_file_secure" "my_source_filesecure" {
source_file_secure_storage_provider_az_blob_azure_blob_storage = {
sas_token = "...my_sas_token..."
shared_key = "...my_shared_key..."
- storage = "AzBlob"
storage_account = "...my_storage_account..."
}
}
- reader_options = "{\"sep\": \" \"}"
- source_type = "file-secure"
+ reader_options = "{}"
url = "gs://my-google-bucket/data.csv"
}
- name = "Freddie Von V"
+ name = "Guadalupe Senger I"
secret_id = "...my_secret_id..."
- workspace_id = "76c6ab21-d29d-4fc9-8d6f-ecd799390066"
+ workspace_id = "7451945c-4336-4052-aae8-aa3c4f287913"
}
```
@@ -59,14 +57,13 @@ resource "airbyte_source_file_secure" "my_source_filesecure" {
Required:
- `dataset_name` (String) The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only).
-- `format` (String) must be one of ["csv", "json", "jsonl", "excel", "excel_binary", "feather", "parquet", "yaml"]
-The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs).
- `provider` (Attributes) The storage Provider or Location of the file(s) which should be replicated. (see [below for nested schema](#nestedatt--configuration--provider))
-- `source_type` (String) must be one of ["file-secure"]
- `url` (String) The URL path to access the file which should be replicated.
Optional:
+- `format` (String) must be one of ["csv", "json", "jsonl", "excel", "excel_binary", "feather", "parquet", "yaml"]
+The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs).
- `reader_options` (String) This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.
@@ -94,7 +91,6 @@ Optional:
Required:
-- `storage` (String) must be one of ["AzBlob"]
- `storage_account` (String) The globally unique name of the storage account that the desired blob sits within. See here for more details.
Optional:
@@ -106,10 +102,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_storage_provider_gcs_google_cloud_storage`
-Required:
-
-- `storage` (String) must be one of ["GCS"]
-
Optional:
- `service_account_json` (String) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
@@ -118,10 +110,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_storage_provider_https_public_web`
-Required:
-
-- `storage` (String) must be one of ["HTTPS"]
-
Optional:
- `user_agent` (Boolean) Add User-Agent to request
@@ -130,10 +118,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_storage_provider_s3_amazon_web_services`
-Required:
-
-- `storage` (String) must be one of ["S3"]
-
Optional:
- `aws_access_key_id` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
@@ -146,7 +130,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SCP"]
- `user` (String)
Optional:
@@ -161,7 +144,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SFTP"]
- `user` (String)
Optional:
@@ -176,7 +158,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SSH"]
- `user` (String)
Optional:
@@ -190,7 +171,6 @@ Optional:
Required:
-- `storage` (String) must be one of ["AzBlob"]
- `storage_account` (String) The globally unique name of the storage account that the desired blob sits within. See here for more details.
Optional:
@@ -202,10 +182,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_update_storage_provider_gcs_google_cloud_storage`
-Required:
-
-- `storage` (String) must be one of ["GCS"]
-
Optional:
- `service_account_json` (String) In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
@@ -214,10 +190,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_update_storage_provider_https_public_web`
-Required:
-
-- `storage` (String) must be one of ["HTTPS"]
-
Optional:
- `user_agent` (Boolean) Add User-Agent to request
@@ -226,10 +198,6 @@ Optional:
### Nested Schema for `configuration.provider.source_file_secure_update_storage_provider_s3_amazon_web_services`
-Required:
-
-- `storage` (String) must be one of ["S3"]
-
Optional:
- `aws_access_key_id` (String) In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
@@ -242,7 +210,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SCP"]
- `user` (String)
Optional:
@@ -257,7 +224,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SFTP"]
- `user` (String)
Optional:
@@ -272,7 +238,6 @@ Optional:
Required:
- `host` (String)
-- `storage` (String) must be one of ["SSH"]
- `user` (String)
Optional:
diff --git a/docs/resources/source_firebolt.md b/docs/resources/source_firebolt.md
index 6d39095c2..903c7328f 100644
--- a/docs/resources/source_firebolt.md
+++ b/docs/resources/source_firebolt.md
@@ -15,17 +15,16 @@ SourceFirebolt Resource
```terraform
resource "airbyte_source_firebolt" "my_source_firebolt" {
configuration = {
- account = "...my_account..."
- database = "...my_database..."
- engine = "...my_engine..."
- host = "api.app.firebolt.io"
- password = "...my_password..."
- source_type = "firebolt"
- username = "username@email.com"
+ account = "...my_account..."
+ database = "...my_database..."
+ engine = "...my_engine..."
+ host = "api.app.firebolt.io"
+ password = "...my_password..."
+ username = "username@email.com"
}
- name = "Donna Abshire"
+ name = "Willie Bayer"
secret_id = "...my_secret_id..."
- workspace_id = "5338cec0-86fa-421e-9152-cb3119167b8e"
+ workspace_id = "1180fb2a-875a-41ca-990e-95bd1182a17e"
}
```
@@ -54,7 +53,6 @@ Required:
- `database` (String) The database to connect to.
- `password` (String) Firebolt password.
-- `source_type` (String) must be one of ["firebolt"]
- `username` (String) Firebolt email address you use to login.
Optional:
diff --git a/docs/resources/source_freshcaller.md b/docs/resources/source_freshcaller.md
index 5201870a0..11e1a6be0 100644
--- a/docs/resources/source_freshcaller.md
+++ b/docs/resources/source_freshcaller.md
@@ -17,14 +17,13 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" {
configuration = {
api_key = "...my_api_key..."
domain = "snaptravel"
- requests_per_minute = 2
- source_type = "freshcaller"
+ requests_per_minute = 7
start_date = "2022-01-01T12:00:00Z"
- sync_lag_minutes = 9
+ sync_lag_minutes = 10
}
- name = "Kenneth Friesen IV"
+ name = "Carmen Strosin"
secret_id = "...my_secret_id..."
- workspace_id = "d6d364ff-d455-4906-9126-3d48e935c2c9"
+ workspace_id = "a73356f3-9bea-45e2-889f-0e8905c8543b"
}
```
@@ -53,7 +52,6 @@ Required:
- `api_key` (String) Freshcaller API Key. See the docs for more information on how to obtain this key.
- `domain` (String) Used to construct Base URL for the Freshcaller APIs
-- `source_type` (String) must be one of ["freshcaller"]
- `start_date` (String) UTC date and time. Any data created after this date will be replicated.
Optional:
diff --git a/docs/resources/source_freshdesk.md b/docs/resources/source_freshdesk.md
index ac7a22698..e86427869 100644
--- a/docs/resources/source_freshdesk.md
+++ b/docs/resources/source_freshdesk.md
@@ -17,13 +17,12 @@ resource "airbyte_source_freshdesk" "my_source_freshdesk" {
configuration = {
api_key = "...my_api_key..."
domain = "myaccount.freshdesk.com"
- requests_per_minute = 10
- source_type = "freshdesk"
+ requests_per_minute = 6
start_date = "2020-12-01T00:00:00Z"
}
- name = "Dale Altenwerth"
+ name = "Kendra Pfeffer"
secret_id = "...my_secret_id..."
- workspace_id = "3e43202d-7216-4576-9066-41870d9d21f9"
+ workspace_id = "dcadad29-38da-4576-9e78-80f00a30ddef"
}
```
@@ -52,7 +51,6 @@ Required:
- `api_key` (String) Freshdesk API Key. See the docs for more information on how to obtain this key.
- `domain` (String) Freshdesk domain
-- `source_type` (String) must be one of ["freshdesk"]
Optional:
diff --git a/docs/resources/source_freshsales.md b/docs/resources/source_freshsales.md
index 01138f18f..1392cd44b 100644
--- a/docs/resources/source_freshsales.md
+++ b/docs/resources/source_freshsales.md
@@ -17,11 +17,10 @@ resource "airbyte_source_freshsales" "my_source_freshsales" {
configuration = {
api_key = "...my_api_key..."
domain_name = "mydomain.myfreshworks.com"
- source_type = "freshsales"
}
- name = "Gustavo Adams DDS"
+ name = "Dr. Rex Monahan"
secret_id = "...my_secret_id..."
- workspace_id = "4ecc11a0-8364-4290-a8b8-502a55e7f73b"
+ workspace_id = "7f8f441b-58df-4c55-9a0b-ee1c5ff22338"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String) Freshsales API Key. See here. The key is case sensitive.
- `domain_name` (String) The Name of your Freshsales domain
-- `source_type` (String) must be one of ["freshsales"]
diff --git a/docs/resources/source_gainsight_px.md b/docs/resources/source_gainsight_px.md
index b61fefa57..07f02a1b0 100644
--- a/docs/resources/source_gainsight_px.md
+++ b/docs/resources/source_gainsight_px.md
@@ -15,12 +15,11 @@ SourceGainsightPx Resource
```terraform
resource "airbyte_source_gainsight_px" "my_source_gainsightpx" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "gainsight-px"
+ api_key = "...my_api_key..."
}
- name = "Hugh Goodwin"
+ name = "Phillip Beatty"
secret_id = "...my_secret_id..."
- workspace_id = "320a319f-4bad-4f94-bc9a-867bc4242666"
+ workspace_id = "261684e7-3ef6-402c-915f-597cf5896557"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_gainsight_px" "my_source_gainsightpx" {
Required:
- `api_key` (String) The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)
-- `source_type` (String) must be one of ["gainsight-px"]
diff --git a/docs/resources/source_gcs.md b/docs/resources/source_gcs.md
index 36995e4c2..a918e7287 100644
--- a/docs/resources/source_gcs.md
+++ b/docs/resources/source_gcs.md
@@ -18,11 +18,10 @@ resource "airbyte_source_gcs" "my_source_gcs" {
gcs_bucket = "...my_gcs_bucket..."
gcs_path = "...my_gcs_path..."
service_account = "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }"
- source_type = "gcs"
}
- name = "Olga Blanda"
+ name = "Elias Botsford"
secret_id = "...my_secret_id..."
- workspace_id = "dca8ef51-fcb4-4c59-bec1-2cdaad0ec7af"
+ workspace_id = "cd6b10d6-388d-44fd-bb9a-f007bc04191b"
}
```
@@ -52,6 +51,5 @@ Required:
- `gcs_bucket` (String) GCS bucket name
- `gcs_path` (String) GCS path to data
- `service_account` (String) Enter your Google Cloud service account key in JSON format
-- `source_type` (String) must be one of ["gcs"]
diff --git a/docs/resources/source_getlago.md b/docs/resources/source_getlago.md
index ffb27eb2c..e515e9478 100644
--- a/docs/resources/source_getlago.md
+++ b/docs/resources/source_getlago.md
@@ -15,12 +15,11 @@ SourceGetlago Resource
```terraform
resource "airbyte_source_getlago" "my_source_getlago" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "getlago"
+ api_key = "...my_api_key..."
}
- name = "Irving Rohan"
+ name = "Kelvin Bahringer"
secret_id = "...my_secret_id..."
- workspace_id = "0df448a4-7f93-490c-9888-0983dabf9ef3"
+ workspace_id = "f07c5466-21bd-4ba9-8354-f51ed0a8181e"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_getlago" "my_source_getlago" {
Required:
- `api_key` (String) Your API Key. See here.
-- `source_type` (String) must be one of ["getlago"]
diff --git a/docs/resources/source_github.md b/docs/resources/source_github.md
index fe3191ddf..812da9de5 100644
--- a/docs/resources/source_github.md
+++ b/docs/resources/source_github.md
@@ -21,17 +21,15 @@ resource "airbyte_source_github" "my_source_github" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- option_title = "OAuth Credentials"
}
}
- repository = "airbytehq/airbyte"
- requests_per_hour = 10
- source_type = "github"
+ repository = "airbytehq/*"
+ requests_per_hour = 9
start_date = "2021-03-01T00:00:00Z"
}
- name = "Van Kuhlman IV"
+ name = "Gustavo Mertz"
secret_id = "...my_secret_id..."
- workspace_id = "9af4d357-24cd-4b0f-8d28-1187d56844ed"
+ workspace_id = "e7b2f5ca-6ecd-4faf-ab05-210208e036b2"
}
```
@@ -59,7 +57,6 @@ resource "airbyte_source_github" "my_source_github" {
Required:
- `repository` (String) Space-delimited list of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/airbyte airbytehq/another-repo` for multiple repositories.
-- `source_type` (String) must be one of ["github"]
- `start_date` (String) The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info
Optional:
@@ -89,7 +86,6 @@ Optional:
- `client_id` (String) OAuth Client Id
- `client_secret` (String) OAuth Client secret
-- `option_title` (String) must be one of ["OAuth Credentials"]
@@ -99,10 +95,6 @@ Required:
- `personal_access_token` (String) Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
-Optional:
-
-- `option_title` (String) must be one of ["PAT Credentials"]
-
### Nested Schema for `configuration.credentials.source_github_update_authentication_o_auth`
@@ -115,7 +107,6 @@ Optional:
- `client_id` (String) OAuth Client Id
- `client_secret` (String) OAuth Client secret
-- `option_title` (String) must be one of ["OAuth Credentials"]
@@ -125,8 +116,4 @@ Required:
- `personal_access_token` (String) Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
-Optional:
-
-- `option_title` (String) must be one of ["PAT Credentials"]
-
diff --git a/docs/resources/source_gitlab.md b/docs/resources/source_gitlab.md
index 169076e81..297623d0c 100644
--- a/docs/resources/source_gitlab.md
+++ b/docs/resources/source_gitlab.md
@@ -15,25 +15,23 @@ SourceGitlab Resource
```terraform
resource "airbyte_source_gitlab" "my_source_gitlab" {
configuration = {
- api_url = "https://gitlab.company.org"
+ api_url = "https://gitlab.com"
credentials = {
source_gitlab_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-06-26T03:36:42.239Z"
+ token_expiry_date = "2021-05-15T22:42:10.955Z"
}
}
- groups = "airbyte.io"
- projects = "airbyte.io/documentation"
- source_type = "gitlab"
- start_date = "2021-03-01T00:00:00Z"
+ groups = "airbyte.io"
+ projects = "airbyte.io/documentation"
+ start_date = "2021-03-01T00:00:00Z"
}
- name = "Frank Keeling"
+ name = "Troy Johnston"
secret_id = "...my_secret_id..."
- workspace_id = "628bdfc2-032b-46c8-b992-3b7e13584f7a"
+ workspace_id = "963e10b1-b394-4b84-acdf-8db6a4f7e237"
}
```
@@ -61,7 +59,6 @@ resource "airbyte_source_gitlab" "my_source_gitlab" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["gitlab"]
- `start_date` (String) The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
Optional:
@@ -91,10 +88,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_gitlab_authorization_method_private_token`
@@ -103,10 +96,6 @@ Required:
- `access_token` (String) Log into your Gitlab account and then generate a personal Access Token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_gitlab_update_authorization_method_o_auth2_0`
@@ -119,10 +108,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_gitlab_update_authorization_method_private_token`
@@ -131,8 +116,4 @@ Required:
- `access_token` (String) Log into your Gitlab account and then generate a personal Access Token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
diff --git a/docs/resources/source_glassfrog.md b/docs/resources/source_glassfrog.md
index 9d864489f..3e6ed7874 100644
--- a/docs/resources/source_glassfrog.md
+++ b/docs/resources/source_glassfrog.md
@@ -15,12 +15,11 @@ SourceGlassfrog Resource
```terraform
resource "airbyte_source_glassfrog" "my_source_glassfrog" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "glassfrog"
+ api_key = "...my_api_key..."
}
- name = "Carl Davis"
+ name = "Julie Quitzon"
secret_id = "...my_secret_id..."
- workspace_id = "891f82ce-1157-4172-b053-77dcfa89df97"
+ workspace_id = "0f5d38a1-edcb-436c-9a3d-51cbc15623ec"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_glassfrog" "my_source_glassfrog" {
Required:
- `api_key` (String) API key provided by Glassfrog
-- `source_type` (String) must be one of ["glassfrog"]
diff --git a/docs/resources/source_gnews.md b/docs/resources/source_gnews.md
index 43bff1408..2578c734f 100644
--- a/docs/resources/source_gnews.md
+++ b/docs/resources/source_gnews.md
@@ -16,25 +16,24 @@ SourceGnews Resource
resource "airbyte_source_gnews" "my_source_gnews" {
configuration = {
api_key = "...my_api_key..."
- country = "ie"
+ country = "it"
end_date = "2022-08-21 16:27:09"
in = [
- "content",
+ "title",
]
- language = "fr"
+ language = "he"
nullable = [
- "description",
+ "title",
]
- query = "Apple AND NOT iPhone"
- sortby = "publishedAt"
- source_type = "gnews"
+ query = "(Windows 7) AND (Windows 10)"
+ sortby = "relevance"
start_date = "2022-08-21 16:27:09"
- top_headlines_query = "Apple AND NOT iPhone"
- top_headlines_topic = "business"
+ top_headlines_query = "Apple OR Microsoft"
+ top_headlines_topic = "science"
}
- name = "Katrina Considine"
+ name = "Dr. Lynne Wuckert DVM"
secret_id = "...my_secret_id..."
- workspace_id = "c3ddc5f1-11de-4a10-a6d5-41a4d190feb2"
+ workspace_id = "20de16b8-da7b-4814-bf85-1cf99c7fd70e"
}
```
@@ -76,7 +75,6 @@ Required:
specified keywords. To use it, you need to add NOT in front of each word or phrase surrounded by quotes.
For example the query: Apple NOT iPhone will return all articles matching the keyword Apple but not the keyword
iPhone
-- `source_type` (String) must be one of ["gnews"]
Optional:
diff --git a/docs/resources/source_google_ads.md b/docs/resources/source_google_ads.md
index 0d20ad3dc..8914e6dc9 100644
--- a/docs/resources/source_google_ads.md
+++ b/docs/resources/source_google_ads.md
@@ -32,12 +32,11 @@ resource "airbyte_source_google_ads" "my_source_googleads" {
customer_id = "6783948572,5839201945"
end_date = "2017-01-30"
login_customer_id = "7349206847"
- source_type = "google-ads"
start_date = "2017-01-25"
}
- name = "Dr. Forrest Roob"
+ name = "Leland Will"
secret_id = "...my_secret_id..."
- workspace_id = "bddb4847-08fb-44e3-91e6-bc158c4c4e54"
+ workspace_id = "64874e62-c58d-4879-afd4-8887cb19c48e"
}
```
@@ -66,7 +65,6 @@ Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
- `customer_id` (String) Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our documentation.
-- `source_type` (String) must be one of ["google-ads"]
Optional:
diff --git a/docs/resources/source_google_analytics_data_api.md b/docs/resources/source_google_analytics_data_api.md
index cbd825a38..52d00c930 100644
--- a/docs/resources/source_google_analytics_data_api.md
+++ b/docs/resources/source_google_analytics_data_api.md
@@ -16,9 +16,8 @@ SourceGoogleAnalyticsDataAPI Resource
resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsdataapi" {
configuration = {
credentials = {
- source_google_analytics_data_api_credentials_authenticate_via_google_oauth_ = {
+ source_google_analytics_data_api_credentials_authenticate_via_google_oauth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -27,12 +26,11 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda
custom_reports = "...my_custom_reports..."
date_ranges_start_date = "2021-01-01"
property_id = "5729978930"
- source_type = "google-analytics-data-api"
- window_in_days = 364
+ window_in_days = 60
}
- name = "Juanita Collier"
+ name = "Robin Shanahan"
secret_id = "...my_secret_id..."
- workspace_id = "0e9b200c-e78a-41bd-8fb7-a0a116ce723d"
+ workspace_id = "d007e52a-2e43-496e-b403-ea2d50959a4f"
}
```
@@ -61,7 +59,6 @@ Required:
- `date_ranges_start_date` (String) The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports.
- `property_id` (String) The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.
-- `source_type` (String) must be one of ["google-analytics-data-api"]
Optional:
@@ -91,7 +88,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
@@ -101,10 +97,6 @@ Required:
- `credentials_json` (String) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
-Optional:
-
-- `auth_type` (String) must be one of ["Service"]
-
### Nested Schema for `configuration.credentials.source_google_analytics_data_api_update_credentials_authenticate_via_google_oauth`
@@ -118,7 +110,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
@@ -128,8 +119,4 @@ Required:
- `credentials_json` (String) The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
-Optional:
-
-- `auth_type` (String) must be one of ["Service"]
-
diff --git a/docs/resources/source_google_analytics_v4.md b/docs/resources/source_google_analytics_v4.md
index 1a2d2ab2a..01247234f 100644
--- a/docs/resources/source_google_analytics_v4.md
+++ b/docs/resources/source_google_analytics_v4.md
@@ -16,23 +16,21 @@ SourceGoogleAnalyticsV4 Resource
resource "airbyte_source_google_analytics_v4" "my_source_googleanalyticsv4" {
configuration = {
credentials = {
- source_google_analytics_v4_credentials_authenticate_via_google_oauth_ = {
+ source_google_analytics_v4_credentials_authenticate_via_google_oauth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
}
custom_reports = "...my_custom_reports..."
- source_type = "google-analytics-v4"
start_date = "2020-06-01"
view_id = "...my_view_id..."
- window_in_days = 120
+ window_in_days = 30
}
- name = "Dr. Doug Dibbert"
+ name = "Christopher Kulas"
secret_id = "...my_secret_id..."
- workspace_id = "af725b29-1220-430d-83f5-aeb7799d22e8"
+ workspace_id = "6bd0cbf5-314e-4ea0-ba21-aa37367271c7"
}
```
@@ -59,7 +57,6 @@ resource "airbyte_source_google_analytics_v4" "my_source_googleanalyticsv4" {
Required:
-- `source_type` (String) must be one of ["google-analytics-v4"]
- `start_date` (String) The date in the format YYYY-MM-DD. Any data before this date will not be replicated.
- `view_id` (String) The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer.
@@ -91,7 +88,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
@@ -101,10 +97,6 @@ Required:
- `credentials_json` (String) The JSON key of the service account to use for authorization
-Optional:
-
-- `auth_type` (String) must be one of ["Service"]
-
### Nested Schema for `configuration.credentials.source_google_analytics_v4_update_credentials_authenticate_via_google_oauth`
@@ -118,7 +110,6 @@ Required:
Optional:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["Client"]
@@ -128,8 +119,4 @@ Required:
- `credentials_json` (String) The JSON key of the service account to use for authorization
-Optional:
-
-- `auth_type` (String) must be one of ["Service"]
-
diff --git a/docs/resources/source_google_directory.md b/docs/resources/source_google_directory.md
index 277f8a891..6f173cf05 100644
--- a/docs/resources/source_google_directory.md
+++ b/docs/resources/source_google_directory.md
@@ -17,16 +17,14 @@ resource "airbyte_source_google_directory" "my_source_googledirectory" {
configuration = {
credentials = {
source_google_directory_google_credentials_service_account_key = {
- credentials_json = "...my_credentials_json..."
- credentials_title = "Service accounts"
- email = "Ayla.Zulauf@hotmail.com"
+ credentials_json = "...my_credentials_json..."
+ email = "Lucio_Medhurst61@yahoo.com"
}
}
- source_type = "google-directory"
}
- name = "Mrs. Allen Lockman"
+ name = "Patricia Feeney"
secret_id = "...my_secret_id..."
- workspace_id = "dc42c876-c2c2-4dfb-8cfc-1c76230f841f"
+ workspace_id = "323c7d78-45b7-4f88-82a1-9738b218b704"
}
```
@@ -51,10 +49,6 @@ resource "airbyte_source_google_directory" "my_source_googledirectory" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["google-directory"]
-
Optional:
- `credentials` (Attributes) Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios. (see [below for nested schema](#nestedatt--configuration--credentials))
@@ -77,11 +71,6 @@ Required:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
-Optional:
-
-- `credentials_title` (String) must be one of ["Service accounts"]
-Authentication Scenario
-
### Nested Schema for `configuration.credentials.source_google_directory_google_credentials_sign_in_via_google_o_auth`
@@ -92,11 +81,6 @@ Required:
- `client_secret` (String) The Client Secret of the developer application.
- `refresh_token` (String) The Token for obtaining a new access token.
-Optional:
-
-- `credentials_title` (String) must be one of ["Web server app"]
-Authentication Scenario
-
### Nested Schema for `configuration.credentials.source_google_directory_update_google_credentials_service_account_key`
@@ -106,11 +90,6 @@ Required:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
-Optional:
-
-- `credentials_title` (String) must be one of ["Service accounts"]
-Authentication Scenario
-
### Nested Schema for `configuration.credentials.source_google_directory_update_google_credentials_sign_in_via_google_o_auth`
@@ -121,9 +100,4 @@ Required:
- `client_secret` (String) The Client Secret of the developer application.
- `refresh_token` (String) The Token for obtaining a new access token.
-Optional:
-
-- `credentials_title` (String) must be one of ["Web server app"]
-Authentication Scenario
-
diff --git a/docs/resources/source_google_pagespeed_insights.md b/docs/resources/source_google_pagespeed_insights.md
index c574bdc92..49de41bc9 100644
--- a/docs/resources/source_google_pagespeed_insights.md
+++ b/docs/resources/source_google_pagespeed_insights.md
@@ -17,9 +17,8 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin
configuration = {
api_key = "...my_api_key..."
categories = [
- "pwa",
+ "performance",
]
- source_type = "google-pagespeed-insights"
strategies = [
"desktop",
]
@@ -27,9 +26,9 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin
"...",
]
}
- name = "Kristopher Dare"
+ name = "Miss Horace Champlin"
secret_id = "...my_secret_id..."
- workspace_id = "db14db6b-e5a6-4859-98e2-2ae20da16fc2"
+ workspace_id = "9cfd9baf-3821-4deb-b264-dad9e5fb5312"
}
```
@@ -57,7 +56,6 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin
Required:
- `categories` (List of String) Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo".
-- `source_type` (String) must be one of ["google-pagespeed-insights"]
- `strategies` (List of String) The analyses strategy to use. Either "desktop" or "mobile".
- `urls` (List of String) The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain
diff --git a/docs/resources/source_google_search_console.md b/docs/resources/source_google_search_console.md
index 5d721b254..fa9f2b254 100644
--- a/docs/resources/source_google_search_console.md
+++ b/docs/resources/source_google_search_console.md
@@ -18,7 +18,6 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
authorization = {
source_google_search_console_authentication_type_o_auth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -28,9 +27,9 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
custom_reports_array = [
{
dimensions = [
- "page",
+ "device",
]
- name = "Heidi Bernier"
+ name = "Toni Botsford"
},
]
data_state = "all"
@@ -38,12 +37,11 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
site_urls = [
"...",
]
- source_type = "google-search-console"
- start_date = "2022-07-11"
+ start_date = "2021-10-13"
}
- name = "Jordan Hilll"
+ name = "Dana Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "90439d22-2465-4694-a240-7084f7ab37ce"
+ workspace_id = "a51fb73f-472f-42e8-bbfe-18227a33308d"
}
```
@@ -72,7 +70,6 @@ Required:
- `authorization` (Attributes) (see [below for nested schema](#nestedatt--configuration--authorization))
- `site_urls` (List of String) The URLs of the website property attached to your GSC account. Learn more about properties here.
-- `source_type` (String) must be one of ["google-search-console"]
Optional:
@@ -98,7 +95,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The client ID of your Google Search Console developer application. Read more here.
- `client_secret` (String) The client secret of your Google Search Console developer application. Read more here.
- `refresh_token` (String) The token for obtaining a new access token. Read more here.
@@ -113,7 +109,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["Service"]
- `email` (String) The email of the user which has permissions to access the Google Workspace Admin APIs.
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
@@ -123,7 +118,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The client ID of your Google Search Console developer application. Read more here.
- `client_secret` (String) The client secret of your Google Search Console developer application. Read more here.
- `refresh_token` (String) The token for obtaining a new access token. Read more here.
@@ -138,7 +132,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["Service"]
- `email` (String) The email of the user which has permissions to access the Google Workspace Admin APIs.
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
diff --git a/docs/resources/source_google_sheets.md b/docs/resources/source_google_sheets.md
index 3ba1744db..0236448d8 100644
--- a/docs/resources/source_google_sheets.md
+++ b/docs/resources/source_google_sheets.md
@@ -16,20 +16,18 @@ SourceGoogleSheets Resource
resource "airbyte_source_google_sheets" "my_source_googlesheets" {
configuration = {
credentials = {
- source_google_sheets_authentication_authenticate_via_google_o_auth_ = {
- auth_type = "Client"
+ source_google_sheets_authentication_authenticate_via_google_o_auth = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
}
- names_conversion = true
- source_type = "google-sheets"
+ names_conversion = false
spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit"
}
- name = "Irene Davis"
+ name = "Suzanne Hintz"
secret_id = "...my_secret_id..."
- workspace_id = "194db554-10ad-4c66-9af9-0a26c7cdc981"
+ workspace_id = "9be62599-f17b-45c6-9c8d-2f7dd6ee9c7e"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_source_google_sheets" "my_source_googlesheets" {
Required:
- `credentials` (Attributes) Credentials for connecting to the Google Sheets API (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["google-sheets"]
- `spreadsheet_id` (String) Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.
Optional:
@@ -79,7 +76,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) Enter your Google application's Client ID. See Google's documentation for more information.
- `client_secret` (String) Enter your Google application's Client Secret. See Google's documentation for more information.
- `refresh_token` (String) Enter your Google application's refresh token. See Google's documentation for more information.
@@ -90,7 +86,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["Service"]
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
@@ -99,7 +94,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) Enter your Google application's Client ID. See Google's documentation for more information.
- `client_secret` (String) Enter your Google application's Client Secret. See Google's documentation for more information.
- `refresh_token` (String) Enter your Google application's refresh token. See Google's documentation for more information.
@@ -110,7 +104,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["Service"]
- `service_account_info` (String) The JSON key of the service account to use for authorization. Read more here.
diff --git a/docs/resources/source_google_webfonts.md b/docs/resources/source_google_webfonts.md
index 002d3ab6f..def45d4f9 100644
--- a/docs/resources/source_google_webfonts.md
+++ b/docs/resources/source_google_webfonts.md
@@ -19,11 +19,10 @@ resource "airbyte_source_google_webfonts" "my_source_googlewebfonts" {
api_key = "...my_api_key..."
pretty_print = "...my_pretty_print..."
sort = "...my_sort..."
- source_type = "google-webfonts"
}
- name = "Donald Hyatt"
+ name = "Ms. Eva Barton Sr."
secret_id = "...my_secret_id..."
- workspace_id = "81d6bb33-cfaa-4348-831b-f407ee4fcf0c"
+ workspace_id = "82195430-f896-44a3-a1f4-31fb3aad078a"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_google_webfonts" "my_source_googlewebfonts" {
Required:
- `api_key` (String) API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts
-- `source_type` (String) must be one of ["google-webfonts"]
Optional:
diff --git a/docs/resources/source_google_workspace_admin_reports.md b/docs/resources/source_google_workspace_admin_reports.md
index 9c81767bf..8f341b81f 100644
--- a/docs/resources/source_google_workspace_admin_reports.md
+++ b/docs/resources/source_google_workspace_admin_reports.md
@@ -16,13 +16,12 @@ SourceGoogleWorkspaceAdminReports Resource
resource "airbyte_source_google_workspace_admin_reports" "my_source_googleworkspaceadminreports" {
configuration = {
credentials_json = "...my_credentials_json..."
- email = "Bridgette_Rohan@gmail.com"
- lookback = 10
- source_type = "google-workspace-admin-reports"
+ email = "Golden96@gmail.com"
+ lookback = 8
}
- name = "Samantha Huels"
+ name = "Lewis Murphy"
secret_id = "...my_secret_id..."
- workspace_id = "398a0dc7-6632-44cc-b06c-8ca12d025292"
+ workspace_id = "dd854e0c-39c2-42fe-97df-57adf10725ff"
}
```
@@ -51,7 +50,6 @@ Required:
- `credentials_json` (String) The contents of the JSON service account key. See the docs for more information on how to generate this key.
- `email` (String) The email of the user, which has permissions to access the Google Workspace Admin APIs.
-- `source_type` (String) must be one of ["google-workspace-admin-reports"]
Optional:
diff --git a/docs/resources/source_greenhouse.md b/docs/resources/source_greenhouse.md
index 1a78be76f..f2daba35c 100644
--- a/docs/resources/source_greenhouse.md
+++ b/docs/resources/source_greenhouse.md
@@ -15,12 +15,11 @@ SourceGreenhouse Resource
```terraform
resource "airbyte_source_greenhouse" "my_source_greenhouse" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "greenhouse"
+ api_key = "...my_api_key..."
}
- name = "Patricia Pouros"
+ name = "Faith Boyer"
secret_id = "...my_secret_id..."
- workspace_id = "5722dd89-5b8b-4cf2-8db9-59693352f745"
+ workspace_id = "7e8fd2f1-93d4-4f9a-b29a-2f8317dec4e3"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_greenhouse" "my_source_greenhouse" {
Required:
- `api_key` (String) Greenhouse API Key. See the docs for more information on how to generate this key.
-- `source_type` (String) must be one of ["greenhouse"]
diff --git a/docs/resources/source_gridly.md b/docs/resources/source_gridly.md
index 01d5a0080..03442fc43 100644
--- a/docs/resources/source_gridly.md
+++ b/docs/resources/source_gridly.md
@@ -15,13 +15,12 @@ SourceGridly Resource
```terraform
resource "airbyte_source_gridly" "my_source_gridly" {
configuration = {
- api_key = "...my_api_key..."
- grid_id = "...my_grid_id..."
- source_type = "gridly"
+ api_key = "...my_api_key..."
+ grid_id = "...my_grid_id..."
}
- name = "Josephine McCullough"
+ name = "Mr. Kenny Rohan"
secret_id = "...my_secret_id..."
- workspace_id = "d78de3b6-e938-49f5-abb7-f662550a2838"
+ workspace_id = "cb908523-df16-4a0c-8499-1982a682b0a7"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String)
- `grid_id` (String) ID of a grid, or can be ID of a branch
-- `source_type` (String) must be one of ["gridly"]
diff --git a/docs/resources/source_harvest.md b/docs/resources/source_harvest.md
index 1eebc2ea3..2d55401ef 100644
--- a/docs/resources/source_harvest.md
+++ b/docs/resources/source_harvest.md
@@ -17,20 +17,19 @@ resource "airbyte_source_harvest" "my_source_harvest" {
configuration = {
account_id = "...my_account_id..."
credentials = {
- source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth_ = {
- auth_type = "Client"
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
}
replication_end_date = "2017-01-25T00:00:00Z"
replication_start_date = "2017-01-25T00:00:00Z"
- source_type = "harvest"
}
- name = "Rodney Orn"
+ name = "Joan Jerde"
secret_id = "...my_secret_id..."
- workspace_id = "2315bba6-5016-44e0-af5b-f6ae591bc8bd"
+ workspace_id = "2127f33f-8652-4b25-91b0-23ec1224a7ff"
}
```
@@ -59,7 +58,6 @@ Required:
- `account_id` (String) Harvest account ID. Required for all Harvest requests in pair with Personal Access Token
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
-- `source_type` (String) must be one of ["harvest"]
Optional:
@@ -88,7 +86,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Client"]
@@ -101,7 +98,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Token"]
@@ -116,7 +112,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Client"]
@@ -129,6 +124,5 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/resources/source_hubplanner.md b/docs/resources/source_hubplanner.md
index f20025573..9c81fcdbb 100644
--- a/docs/resources/source_hubplanner.md
+++ b/docs/resources/source_hubplanner.md
@@ -15,12 +15,11 @@ SourceHubplanner Resource
```terraform
resource "airbyte_source_hubplanner" "my_source_hubplanner" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "hubplanner"
+ api_key = "...my_api_key..."
}
- name = "Cary Emmerich Sr."
+ name = "Clarence Hodkiewicz"
secret_id = "...my_secret_id..."
- workspace_id = "b63c205f-da84-4077-8a68-a9a35d086b6f"
+ workspace_id = "c187087d-37ac-499f-9785-1612305e0c1f"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_hubplanner" "my_source_hubplanner" {
Required:
- `api_key` (String) Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.
-- `source_type` (String) must be one of ["hubplanner"]
diff --git a/docs/resources/source_hubspot.md b/docs/resources/source_hubspot.md
index a6f8e891a..8b031acca 100644
--- a/docs/resources/source_hubspot.md
+++ b/docs/resources/source_hubspot.md
@@ -17,18 +17,16 @@ resource "airbyte_source_hubspot" "my_source_hubspot" {
configuration = {
credentials = {
source_hubspot_authentication_o_auth = {
- client_id = "123456789000"
- client_secret = "secret"
- credentials_title = "OAuth Credentials"
- refresh_token = "refresh_token"
+ client_id = "123456789000"
+ client_secret = "secret"
+ refresh_token = "refresh_token"
}
}
- source_type = "hubspot"
- start_date = "2017-01-25T00:00:00Z"
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Mr. Tomas Wisozk DVM"
+ name = "Darlene Stroman"
secret_id = "...my_secret_id..."
- workspace_id = "9f443b42-57b9-492c-8dbd-a6a61efa2198"
+ workspace_id = "bd757e59-4698-41cb-8608-691686308ead"
}
```
@@ -56,7 +54,6 @@ resource "airbyte_source_hubspot" "my_source_hubspot" {
Required:
- `credentials` (Attributes) Choose how to authenticate to HubSpot. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["hubspot"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -76,8 +73,6 @@ Required:
- `client_id` (String) The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID.
- `client_secret` (String) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
-- `credentials_title` (String) must be one of ["OAuth Credentials"]
-Name of the credentials
- `refresh_token` (String) Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
@@ -87,8 +82,6 @@ Name of the credentials
Required:
- `access_token` (String) HubSpot Access token. See the Hubspot docs if you need help finding this token.
-- `credentials_title` (String) must be one of ["Private App Credentials"]
-Name of the credentials set
@@ -98,8 +91,6 @@ Required:
- `client_id` (String) The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID.
- `client_secret` (String) The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
-- `credentials_title` (String) must be one of ["OAuth Credentials"]
-Name of the credentials
- `refresh_token` (String) Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
@@ -109,7 +100,5 @@ Name of the credentials
Required:
- `access_token` (String) HubSpot Access token. See the Hubspot docs if you need help finding this token.
-- `credentials_title` (String) must be one of ["Private App Credentials"]
-Name of the credentials set
diff --git a/docs/resources/source_insightly.md b/docs/resources/source_insightly.md
index 576daa4ed..77f7a78f3 100644
--- a/docs/resources/source_insightly.md
+++ b/docs/resources/source_insightly.md
@@ -15,13 +15,12 @@ SourceInsightly Resource
```terraform
resource "airbyte_source_insightly" "my_source_insightly" {
configuration = {
- source_type = "insightly"
- start_date = "2021-03-01T00:00:00Z"
- token = "...my_token..."
+ start_date = "2021-03-01T00:00:00Z"
+ token = "...my_token..."
}
- name = "Dana Lindgren"
+ name = "Allan Feeney"
secret_id = "...my_secret_id..."
- workspace_id = "0a9eba47-f7d3-4ef0-8964-0d6a1831c87a"
+ workspace_id = "69be0c12-ece5-49b9-bbae-f8e47490588d"
}
```
@@ -48,7 +47,6 @@ resource "airbyte_source_insightly" "my_source_insightly" {
Required:
-- `source_type` (String) must be one of ["insightly"]
- `start_date` (String) The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams.
- `token` (String) Your Insightly API token.
diff --git a/docs/resources/source_instagram.md b/docs/resources/source_instagram.md
index 926ad00ad..1c1ffb94a 100644
--- a/docs/resources/source_instagram.md
+++ b/docs/resources/source_instagram.md
@@ -18,12 +18,11 @@ resource "airbyte_source_instagram" "my_source_instagram" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- source_type = "instagram"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Mae Hoppe"
+ name = "Bobbie Dickinson"
secret_id = "...my_secret_id..."
- workspace_id = "f1ad837a-e80c-41c1-9c95-ba998678fa3f"
+ workspace_id = "74a681ee-a74b-487a-9fb1-87d33223d80b"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_instagram" "my_source_instagram" {
Required:
- `access_token` (String) The value of the access token generated with instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for more information
-- `source_type` (String) must be one of ["instagram"]
- `start_date` (String) The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
Optional:
diff --git a/docs/resources/source_instatus.md b/docs/resources/source_instatus.md
index 830c152ab..b294ccd5f 100644
--- a/docs/resources/source_instatus.md
+++ b/docs/resources/source_instatus.md
@@ -15,12 +15,11 @@ SourceInstatus Resource
```terraform
resource "airbyte_source_instatus" "my_source_instatus" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "instatus"
+ api_key = "...my_api_key..."
}
- name = "Bobbie Johnston"
+ name = "Jackie Miller"
secret_id = "...my_secret_id..."
- workspace_id = "1af388ce-0361-4444-8c79-77a0ef2f5360"
+ workspace_id = "2d2f4597-4a2e-4bc3-a80a-bb376bce66a7"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_instatus" "my_source_instatus" {
Required:
- `api_key` (String) Instatus REST API key
-- `source_type` (String) must be one of ["instatus"]
diff --git a/docs/resources/source_intercom.md b/docs/resources/source_intercom.md
index d2ad37413..857814223 100644
--- a/docs/resources/source_intercom.md
+++ b/docs/resources/source_intercom.md
@@ -18,12 +18,11 @@ resource "airbyte_source_intercom" "my_source_intercom" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- source_type = "intercom"
start_date = "2020-11-16T00:00:00Z"
}
- name = "Darnell Watsica"
+ name = "Dr. Bradford Davis"
secret_id = "...my_secret_id..."
- workspace_id = "934152ed-7e25-43f4-8157-deaa7170f445"
+ workspace_id = "3e9aab71-454c-4b24-9893-e1da46c4f685"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_intercom" "my_source_intercom" {
Required:
- `access_token` (String) Access token for making authenticated requests. See the Intercom docs for more information.
-- `source_type` (String) must be one of ["intercom"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
Optional:
diff --git a/docs/resources/source_ip2whois.md b/docs/resources/source_ip2whois.md
index 623f30ce1..9a9018687 100644
--- a/docs/resources/source_ip2whois.md
+++ b/docs/resources/source_ip2whois.md
@@ -15,13 +15,12 @@ SourceIp2whois Resource
```terraform
resource "airbyte_source_ip2whois" "my_source_ip2whois" {
configuration = {
- api_key = "...my_api_key..."
- domain = "www.facebook.com"
- source_type = "ip2whois"
+ api_key = "...my_api_key..."
+ domain = "www.facebook.com"
}
- name = "Leland Wisoky"
+ name = "Mr. Helen Heidenreich MD"
secret_id = "...my_secret_id..."
- workspace_id = "7aaf9bba-d185-4fe4-b1d6-bf5c838fbb8c"
+ workspace_id = "8862473b-7573-4910-8618-e91445d83c49"
}
```
@@ -50,6 +49,5 @@ Optional:
- `api_key` (String) Your API Key. See here.
- `domain` (String) Domain name. See here.
-- `source_type` (String) must be one of ["ip2whois"]
diff --git a/docs/resources/source_iterable.md b/docs/resources/source_iterable.md
index 4c6f49f35..ed452d5c2 100644
--- a/docs/resources/source_iterable.md
+++ b/docs/resources/source_iterable.md
@@ -15,13 +15,12 @@ SourceIterable Resource
```terraform
resource "airbyte_source_iterable" "my_source_iterable" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "iterable"
- start_date = "2021-04-01T00:00:00Z"
+ api_key = "...my_api_key..."
+ start_date = "2021-04-01T00:00:00Z"
}
- name = "Archie Jaskolski"
+ name = "Miguel McLaughlin"
secret_id = "...my_secret_id..."
- workspace_id = "c4b425e9-9e62-434c-9f7b-79dfeb77a5c3"
+ workspace_id = "517f0e32-c2e3-402e-ade9-2b3e43098446"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_iterable" "my_source_iterable" {
Required:
- `api_key` (String) Iterable API Key. See the docs for more information on how to obtain this key.
-- `source_type` (String) must be one of ["iterable"]
- `start_date` (String) The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/resources/source_jira.md b/docs/resources/source_jira.md
index cccfae197..b80f9a30f 100644
--- a/docs/resources/source_jira.md
+++ b/docs/resources/source_jira.md
@@ -16,20 +16,19 @@ SourceJira Resource
resource "airbyte_source_jira" "my_source_jira" {
configuration = {
api_token = "...my_api_token..."
- domain = ".jira.com"
- email = "Eldridge_Reichert@hotmail.com"
- enable_experimental_streams = false
- expand_issue_changelog = false
+ domain = "jira..com"
+ email = "Karlee_Fadel@yahoo.com"
+ enable_experimental_streams = true
+ expand_issue_changelog = true
projects = [
"...",
]
render_fields = false
- source_type = "jira"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Olive Windler"
+ name = "Ida Rath"
secret_id = "...my_secret_id..."
- workspace_id = "0a54b475-f16f-456d-b85a-3c4ac631b99e"
+ workspace_id = "8621a877-d2e6-425c-9d80-ba5ff53c6fc1"
}
```
@@ -59,7 +58,6 @@ Required:
- `api_token` (String) Jira API Token. See the docs for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth.
- `domain` (String) The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com
- `email` (String) The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth.
-- `source_type` (String) must be one of ["jira"]
Optional:
diff --git a/docs/resources/source_k6_cloud.md b/docs/resources/source_k6_cloud.md
index 7259f593b..59bd49129 100644
--- a/docs/resources/source_k6_cloud.md
+++ b/docs/resources/source_k6_cloud.md
@@ -15,12 +15,11 @@ SourceK6Cloud Resource
```terraform
resource "airbyte_source_k6_cloud" "my_source_k6cloud" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "k6-cloud"
+ api_token = "...my_api_token..."
}
- name = "Ella Runolfsdottir"
+ name = "Jacquelyn Nolan"
secret_id = "...my_secret_id..."
- workspace_id = "8f9fdb94-10f6-43bb-b817-837b01afdd78"
+ workspace_id = "a827c3d3-49f4-444d-8a85-89d8494dcfae"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_k6_cloud" "my_source_k6cloud" {
Required:
- `api_token` (String) Your API Token. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["k6-cloud"]
diff --git a/docs/resources/source_klarna.md b/docs/resources/source_klarna.md
index 3ecc96a20..5983b1c4e 100644
--- a/docs/resources/source_klarna.md
+++ b/docs/resources/source_klarna.md
@@ -15,15 +15,14 @@ SourceKlarna Resource
```terraform
resource "airbyte_source_klarna" "my_source_klarna" {
configuration = {
- password = "...my_password..."
- playground = true
- region = "us"
- source_type = "klarna"
- username = "Chase50"
+ password = "...my_password..."
+ playground = false
+ region = "eu"
+ username = "Elwyn21"
}
- name = "Caleb Rau"
+ name = "Edward Boyer"
secret_id = "...my_secret_id..."
- workspace_id = "873f5033-f19d-4bf1-a5ce-4152eab9cd7e"
+ workspace_id = "f446900c-8feb-4a7b-85cf-ea08abdda328"
}
```
@@ -51,10 +50,12 @@ resource "airbyte_source_klarna" "my_source_klarna" {
Required:
- `password` (String) A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication)
-- `playground` (Boolean) Propertie defining if connector is used against playground or production environment
- `region` (String) must be one of ["eu", "us", "oc"]
Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'
-- `source_type` (String) must be one of ["klarna"]
- `username` (String) Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)
+Optional:
+
+- `playground` (Boolean) Propertie defining if connector is used against playground or production environment
+
diff --git a/docs/resources/source_klaviyo.md b/docs/resources/source_klaviyo.md
index 34b618c3f..e1eab6608 100644
--- a/docs/resources/source_klaviyo.md
+++ b/docs/resources/source_klaviyo.md
@@ -15,13 +15,12 @@ SourceKlaviyo Resource
```terraform
resource "airbyte_source_klaviyo" "my_source_klaviyo" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "klaviyo"
- start_date = "2017-01-25T00:00:00Z"
+ api_key = "...my_api_key..."
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Charlotte Muller"
+ name = "Jimmy Kilback"
secret_id = "...my_secret_id..."
- workspace_id = "0e123b78-47ec-459e-9f67-f3c4cce4b6d7"
+ workspace_id = "06663420-a6a3-4ab4-9447-55b910e5c999"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_klaviyo" "my_source_klaviyo" {
Required:
- `api_key` (String) Klaviyo API Key. See our docs if you need help finding this key.
-- `source_type` (String) must be one of ["klaviyo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/resources/source_kustomer_singer.md b/docs/resources/source_kustomer_singer.md
index 1fdcb97e2..e68d373e5 100644
--- a/docs/resources/source_kustomer_singer.md
+++ b/docs/resources/source_kustomer_singer.md
@@ -15,13 +15,12 @@ SourceKustomerSinger Resource
```terraform
resource "airbyte_source_kustomer_singer" "my_source_kustomersinger" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "kustomer-singer"
- start_date = "2019-01-01T00:00:00Z"
+ api_token = "...my_api_token..."
+ start_date = "2019-01-01T00:00:00Z"
}
- name = "Bobbie Jacobs"
+ name = "Alberto McKenzie"
secret_id = "...my_secret_id..."
- workspace_id = "3c574750-1357-4e44-b51f-8b084c3197e1"
+ workspace_id = "d0e8f2a3-7cc1-4fbe-8883-da2fecd2cab2"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_kustomer_singer" "my_source_kustomersinger" {
Required:
- `api_token` (String) Kustomer API Token. See the docs on how to obtain this
-- `source_type` (String) must be one of ["kustomer-singer"]
- `start_date` (String) The date from which you'd like to replicate the data
diff --git a/docs/resources/source_kyve.md b/docs/resources/source_kyve.md
index 2ce36824e..ceb1e7e1d 100644
--- a/docs/resources/source_kyve.md
+++ b/docs/resources/source_kyve.md
@@ -15,16 +15,15 @@ SourceKyve Resource
```terraform
resource "airbyte_source_kyve" "my_source_kyve" {
configuration = {
- max_pages = 6
- page_size = 2
- pool_ids = "0,1"
- source_type = "kyve"
- start_ids = "0"
- url_base = "https://api.korellia.kyve.network/"
+ max_pages = 6
+ page_size = 10
+ pool_ids = "0"
+ start_ids = "0,0"
+ url_base = "https://api.beta.kyve.network/"
}
- name = "Gail Homenick"
+ name = "Lisa Barrows"
secret_id = "...my_secret_id..."
- workspace_id = "94874c2d-5cc4-4972-a33e-66bd8fe5d00b"
+ workspace_id = "3cc123e8-783d-450d-8d2b-80c50dc344f6"
}
```
@@ -52,7 +51,6 @@ resource "airbyte_source_kyve" "my_source_kyve" {
Required:
- `pool_ids` (String) The IDs of the KYVE storage pool you want to archive. (Comma separated)
-- `source_type` (String) must be one of ["kyve"]
- `start_ids` (String) The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)
Optional:
diff --git a/docs/resources/source_launchdarkly.md b/docs/resources/source_launchdarkly.md
index aac121903..febbf9424 100644
--- a/docs/resources/source_launchdarkly.md
+++ b/docs/resources/source_launchdarkly.md
@@ -16,11 +16,10 @@ SourceLaunchdarkly Resource
resource "airbyte_source_launchdarkly" "my_source_launchdarkly" {
configuration = {
access_token = "...my_access_token..."
- source_type = "launchdarkly"
}
- name = "Darren Monahan"
+ name = "Rosalie Reynolds PhD"
secret_id = "...my_secret_id..."
- workspace_id = "20387320-590c-4cc1-8964-00313b3e5044"
+ workspace_id = "9a05e994-ace4-41dc-9b42-f2a228e88647"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_launchdarkly" "my_source_launchdarkly" {
Required:
- `access_token` (String) Your Access token. See here.
-- `source_type` (String) must be one of ["launchdarkly"]
diff --git a/docs/resources/source_lemlist.md b/docs/resources/source_lemlist.md
index 0b231b6ab..7077eb1e9 100644
--- a/docs/resources/source_lemlist.md
+++ b/docs/resources/source_lemlist.md
@@ -15,12 +15,11 @@ SourceLemlist Resource
```terraform
resource "airbyte_source_lemlist" "my_source_lemlist" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "lemlist"
+ api_key = "...my_api_key..."
}
- name = "Gene Herman"
+ name = "Benjamin Stroman"
secret_id = "...my_secret_id..."
- workspace_id = "72dc4077-d0cc-43f4-88ef-c15ceb4d6e1e"
+ workspace_id = "7506042c-1c65-4661-b248-5a060238eba1"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_lemlist" "my_source_lemlist" {
Required:
- `api_key` (String) Lemlist API key,
-- `source_type` (String) must be one of ["lemlist"]
diff --git a/docs/resources/source_lever_hiring.md b/docs/resources/source_lever_hiring.md
index 3e3d97ffa..2ab244301 100644
--- a/docs/resources/source_lever_hiring.md
+++ b/docs/resources/source_lever_hiring.md
@@ -16,18 +16,16 @@ SourceLeverHiring Resource
resource "airbyte_source_lever_hiring" "my_source_leverhiring" {
configuration = {
credentials = {
- source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key_ = {
- api_key = "...my_api_key..."
- auth_type = "Api Key"
+ source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key = {
+ api_key = "...my_api_key..."
}
}
- environment = "Sandbox"
- source_type = "lever-hiring"
+ environment = "Production"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Donald Wuckert"
+ name = "Joyce Shields"
secret_id = "...my_secret_id..."
- workspace_id = "aedf2aca-b58b-4991-8926-ddb589461e74"
+ workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6"
}
```
@@ -54,7 +52,6 @@ resource "airbyte_source_lever_hiring" "my_source_leverhiring" {
Required:
-- `source_type` (String) must be one of ["lever-hiring"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.
Optional:
@@ -80,10 +77,6 @@ Required:
- `api_key` (String) The Api Key of your Lever Hiring account.
-Optional:
-
-- `auth_type` (String) must be one of ["Api Key"]
-
### Nested Schema for `configuration.credentials.source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth`
@@ -94,7 +87,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Lever Hiring developer application.
- `client_secret` (String) The Client Secret of your Lever Hiring developer application.
@@ -106,10 +98,6 @@ Required:
- `api_key` (String) The Api Key of your Lever Hiring account.
-Optional:
-
-- `auth_type` (String) must be one of ["Api Key"]
-
### Nested Schema for `configuration.credentials.source_lever_hiring_update_authentication_mechanism_authenticate_via_lever_o_auth`
@@ -120,7 +108,6 @@ Required:
Optional:
-- `auth_type` (String) must be one of ["Client"]
- `client_id` (String) The Client ID of your Lever Hiring developer application.
- `client_secret` (String) The Client Secret of your Lever Hiring developer application.
diff --git a/docs/resources/source_linkedin_ads.md b/docs/resources/source_linkedin_ads.md
index 958334248..6f259c6ff 100644
--- a/docs/resources/source_linkedin_ads.md
+++ b/docs/resources/source_linkedin_ads.md
@@ -16,27 +16,25 @@ SourceLinkedinAds Resource
resource "airbyte_source_linkedin_ads" "my_source_linkedinads" {
configuration = {
account_ids = [
- 1,
+ 6,
]
ad_analytics_reports = [
{
- name = "Kara Rohan"
- pivot_by = "MEMBER_REGION_V2"
- time_granularity = "MONTHLY"
+ name = "Cary Bernier"
+ pivot_by = "CAMPAIGN"
+ time_granularity = "YEARLY"
},
]
credentials = {
source_linkedin_ads_authentication_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- source_type = "linkedin-ads"
- start_date = "2021-05-17"
+ start_date = "2021-05-17"
}
- name = "Elsa Adams"
+ name = "Jonathon Huels"
secret_id = "...my_secret_id..."
- workspace_id = "930b69f7-ac2f-472f-8850-090491160820"
+ workspace_id = "ff332bdf-1457-475f-8bb8-1a7466bf78b3"
}
```
@@ -63,7 +61,6 @@ resource "airbyte_source_linkedin_ads" "my_source_linkedinads" {
Required:
-- `source_type` (String) must be one of ["linkedin-ads"]
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
Optional:
@@ -101,10 +98,6 @@ Required:
- `access_token` (String) The access token generated for your developer application. Refer to our documentation for more information.
-Optional:
-
-- `auth_method` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_linkedin_ads_authentication_o_auth2_0`
@@ -115,10 +108,6 @@ Required:
- `client_secret` (String) The client secret of your developer application. Refer to our documentation for more information.
- `refresh_token` (String) The key to refresh the expired access token. Refer to our documentation for more information.
-Optional:
-
-- `auth_method` (String) must be one of ["oAuth2.0"]
-
### Nested Schema for `configuration.credentials.source_linkedin_ads_update_authentication_access_token`
@@ -127,10 +116,6 @@ Required:
- `access_token` (String) The access token generated for your developer application. Refer to our documentation for more information.
-Optional:
-
-- `auth_method` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_linkedin_ads_update_authentication_o_auth2_0`
@@ -141,8 +126,4 @@ Required:
- `client_secret` (String) The client secret of your developer application. Refer to our documentation for more information.
- `refresh_token` (String) The key to refresh the expired access token. Refer to our documentation for more information.
-Optional:
-
-- `auth_method` (String) must be one of ["oAuth2.0"]
-
diff --git a/docs/resources/source_linkedin_pages.md b/docs/resources/source_linkedin_pages.md
index 14ab6fbf6..ea80953f7 100644
--- a/docs/resources/source_linkedin_pages.md
+++ b/docs/resources/source_linkedin_pages.md
@@ -18,15 +18,13 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" {
credentials = {
source_linkedin_pages_authentication_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- org_id = "123456789"
- source_type = "linkedin-pages"
+ org_id = "123456789"
}
- name = "Tracey Kutch"
+ name = "Allan Stamm"
secret_id = "...my_secret_id..."
- workspace_id = "c66183bf-e965-49eb-80ec-16faf75b0b53"
+ workspace_id = "e547fc7c-1cb5-43c3-9168-9ddb3b3d7401"
}
```
@@ -54,7 +52,6 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" {
Required:
- `org_id` (String) Specify the Organization ID
-- `source_type` (String) must be one of ["linkedin-pages"]
Optional:
@@ -77,10 +74,6 @@ Required:
- `access_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-Optional:
-
-- `auth_method` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_linkedin_pages_authentication_o_auth2_0`
@@ -91,10 +84,6 @@ Required:
- `client_secret` (String) The client secret of the LinkedIn developer application.
- `refresh_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-Optional:
-
-- `auth_method` (String) must be one of ["oAuth2.0"]
-
### Nested Schema for `configuration.credentials.source_linkedin_pages_update_authentication_access_token`
@@ -103,10 +92,6 @@ Required:
- `access_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-Optional:
-
-- `auth_method` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_linkedin_pages_update_authentication_o_auth2_0`
@@ -117,8 +102,4 @@ Required:
- `client_secret` (String) The client secret of the LinkedIn developer application.
- `refresh_token` (String) The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
-Optional:
-
-- `auth_method` (String) must be one of ["oAuth2.0"]
-
diff --git a/docs/resources/source_linnworks.md b/docs/resources/source_linnworks.md
index 80be8629f..15a13dd2e 100644
--- a/docs/resources/source_linnworks.md
+++ b/docs/resources/source_linnworks.md
@@ -17,13 +17,12 @@ resource "airbyte_source_linnworks" "my_source_linnworks" {
configuration = {
application_id = "...my_application_id..."
application_secret = "...my_application_secret..."
- source_type = "linnworks"
- start_date = "2022-05-04T07:21:12.859Z"
+ start_date = "2022-05-21T06:55:58.730Z"
token = "...my_token..."
}
- name = "Antonia Muller"
+ name = "Roosevelt Dibbert"
secret_id = "...my_secret_id..."
- workspace_id = "cbaaf445-2c48-442c-9b2a-d32dafe81a88"
+ workspace_id = "2cb41644-2d85-4f5b-a382-e70e18a8172f"
}
```
@@ -52,7 +51,6 @@ Required:
- `application_id` (String) Linnworks Application ID
- `application_secret` (String) Linnworks Application Secret
-- `source_type` (String) must be one of ["linnworks"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `token` (String)
diff --git a/docs/resources/source_lokalise.md b/docs/resources/source_lokalise.md
index c887b9bc6..448b22ab5 100644
--- a/docs/resources/source_lokalise.md
+++ b/docs/resources/source_lokalise.md
@@ -15,13 +15,12 @@ SourceLokalise Resource
```terraform
resource "airbyte_source_lokalise" "my_source_lokalise" {
configuration = {
- api_key = "...my_api_key..."
- project_id = "...my_project_id..."
- source_type = "lokalise"
+ api_key = "...my_api_key..."
+ project_id = "...my_project_id..."
}
- name = "Bernard Gottlieb"
+ name = "Chris Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "573fecd4-7353-4f63-8820-9379aa69cd5f"
+ workspace_id = "1c9f9cba-a542-4e6e-8809-61d84c3fbc24"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String) Lokalise API Key with read-access. Available at Profile settings > API tokens. See here.
- `project_id` (String) Lokalise project ID. Available at Project Settings > General.
-- `source_type` (String) must be one of ["lokalise"]
diff --git a/docs/resources/source_mailchimp.md b/docs/resources/source_mailchimp.md
index b80c36148..138fa6739 100644
--- a/docs/resources/source_mailchimp.md
+++ b/docs/resources/source_mailchimp.md
@@ -18,15 +18,13 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" {
campaign_id = "...my_campaign_id..."
credentials = {
source_mailchimp_authentication_api_key = {
- apikey = "...my_apikey..."
- auth_type = "apikey"
+ apikey = "...my_apikey..."
}
}
- source_type = "mailchimp"
}
- name = "Benny Williamson"
+ name = "Dr. Everett Keebler"
secret_id = "...my_secret_id..."
- workspace_id = "da18a782-2bf9-4589-8e68-61adb55f9e5d"
+ workspace_id = "e85198c1-16e7-4265-81ee-6770fa8ec1ba"
}
```
@@ -51,10 +49,6 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["mailchimp"]
-
Optional:
- `campaign_id` (String)
@@ -76,7 +70,6 @@ Optional:
Required:
- `apikey` (String) Mailchimp API Key. See the docs for information on how to generate this key.
-- `auth_type` (String) must be one of ["apikey"]
@@ -85,7 +78,6 @@ Required:
Required:
- `access_token` (String) An access token generated using the above client ID and secret.
-- `auth_type` (String) must be one of ["oauth2.0"]
Optional:
@@ -99,7 +91,6 @@ Optional:
Required:
- `apikey` (String) Mailchimp API Key. See the docs for information on how to generate this key.
-- `auth_type` (String) must be one of ["apikey"]
@@ -108,7 +99,6 @@ Required:
Required:
- `access_token` (String) An access token generated using the above client ID and secret.
-- `auth_type` (String) must be one of ["oauth2.0"]
Optional:
diff --git a/docs/resources/source_mailgun.md b/docs/resources/source_mailgun.md
index c771986a8..beb97f3e8 100644
--- a/docs/resources/source_mailgun.md
+++ b/docs/resources/source_mailgun.md
@@ -17,12 +17,11 @@ resource "airbyte_source_mailgun" "my_source_mailgun" {
configuration = {
domain_region = "...my_domain_region..."
private_key = "...my_private_key..."
- source_type = "mailgun"
start_date = "2023-08-01T00:00:00Z"
}
- name = "Sheri Mayert"
+ name = "Whitney Streich"
secret_id = "...my_secret_id..."
- workspace_id = "8f7502bf-dc34-4508-81f1-764456379f3f"
+ workspace_id = "57a40e88-51a3-4541-ba6f-5d90d5a8a349"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_mailgun" "my_source_mailgun" {
Required:
- `private_key` (String) Primary account API key to access your Mailgun data.
-- `source_type` (String) must be one of ["mailgun"]
Optional:
diff --git a/docs/resources/source_mailjet_sms.md b/docs/resources/source_mailjet_sms.md
index 80e5ef086..57324eea3 100644
--- a/docs/resources/source_mailjet_sms.md
+++ b/docs/resources/source_mailjet_sms.md
@@ -15,14 +15,13 @@ SourceMailjetSms Resource
```terraform
resource "airbyte_source_mailjet_sms" "my_source_mailjetsms" {
configuration = {
- end_date = 1666281656
- source_type = "mailjet-sms"
- start_date = 1666261656
- token = "...my_token..."
+ end_date = 1666281656
+ start_date = 1666261656
+ token = "...my_token..."
}
- name = "Dr. Eloise Cronin"
+ name = "Marlene Crist"
secret_id = "...my_secret_id..."
- workspace_id = "62657b36-fc6b-49f5-87ce-525c67641a83"
+ workspace_id = "ff3818db-e50f-4cb3-aa78-173abb82e6a7"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_mailjet_sms" "my_source_mailjetsms" {
Required:
-- `source_type` (String) must be one of ["mailjet-sms"]
- `token` (String) Your access token. See here.
Optional:
diff --git a/docs/resources/source_marketo.md b/docs/resources/source_marketo.md
index f59260c4d..33d3d46f5 100644
--- a/docs/resources/source_marketo.md
+++ b/docs/resources/source_marketo.md
@@ -18,12 +18,11 @@ resource "airbyte_source_marketo" "my_source_marketo" {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
domain_url = "https://000-AAA-000.mktorest.com"
- source_type = "marketo"
start_date = "2020-09-25T00:00:00Z"
}
- name = "Jerome Berge"
+ name = "Merle McCullough"
secret_id = "...my_secret_id..."
- workspace_id = "b4c21ccb-423a-4bcd-891f-aabdd88e71f6"
+ workspace_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536"
}
```
@@ -53,7 +52,6 @@ Required:
- `client_id` (String) The Client ID of your Marketo developer application. See the docs for info on how to obtain this.
- `client_secret` (String) The Client Secret of your Marketo developer application. See the docs for info on how to obtain this.
- `domain_url` (String) Your Marketo Base URL. See the docs for info on how to obtain this.
-- `source_type` (String) must be one of ["marketo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/resources/source_metabase.md b/docs/resources/source_metabase.md
index f6b805f97..06062fa0e 100644
--- a/docs/resources/source_metabase.md
+++ b/docs/resources/source_metabase.md
@@ -18,12 +18,11 @@ resource "airbyte_source_metabase" "my_source_metabase" {
instance_api_url = "https://localhost:3000/api/"
password = "...my_password..."
session_token = "...my_session_token..."
- source_type = "metabase"
- username = "Peyton.Green"
+ username = "Tyrell_Jacobson73"
}
- name = "Tammy Sporer"
+ name = "Malcolm Lindgren"
secret_id = "...my_secret_id..."
- workspace_id = "71e7fd07-4009-4ef8-929d-e1dd7097b5da"
+ workspace_id = "f6afbf36-5d68-47e0-87e3-905b6a417fae"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_metabase" "my_source_metabase" {
Required:
- `instance_api_url` (String) URL to your metabase instance API
-- `source_type` (String) must be one of ["metabase"]
Optional:
diff --git a/docs/resources/source_microsoft_teams.md b/docs/resources/source_microsoft_teams.md
index f7977bd25..2318817fa 100644
--- a/docs/resources/source_microsoft_teams.md
+++ b/docs/resources/source_microsoft_teams.md
@@ -17,18 +17,16 @@ resource "airbyte_source_microsoft_teams" "my_source_microsoftteams" {
configuration = {
credentials = {
source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft = {
- auth_type = "Token"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
tenant_id = "...my_tenant_id..."
}
}
- period = "D7"
- source_type = "microsoft-teams"
+ period = "D7"
}
- name = "Brandy Ryan"
+ name = "Randall Wunsch"
secret_id = "...my_secret_id..."
- workspace_id = "fa6c78a2-16e1-49ba-beca-6191498140b6"
+ workspace_id = "b7e8dc37-1ecb-4ee1-8511-b439ed171c9d"
}
```
@@ -56,7 +54,6 @@ resource "airbyte_source_microsoft_teams" "my_source_microsoftteams" {
Required:
- `period` (String) Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.
-- `source_type` (String) must be one of ["microsoft-teams"]
Optional:
@@ -81,10 +78,6 @@ Required:
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
-Optional:
-
-- `auth_type` (String) must be one of ["Token"]
-
### Nested Schema for `configuration.credentials.source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0`
@@ -96,10 +89,6 @@ Required:
- `refresh_token` (String) A Refresh Token to renew the expired Access Token.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
-Optional:
-
-- `auth_type` (String) must be one of ["Client"]
-
### Nested Schema for `configuration.credentials.source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft`
@@ -110,10 +99,6 @@ Required:
- `client_secret` (String) The Client Secret of your Microsoft Teams developer application.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
-Optional:
-
-- `auth_type` (String) must be one of ["Token"]
-
### Nested Schema for `configuration.credentials.source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0`
@@ -125,8 +110,4 @@ Required:
- `refresh_token` (String) A Refresh Token to renew the expired Access Token.
- `tenant_id` (String) A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL
-Optional:
-
-- `auth_type` (String) must be one of ["Client"]
-
diff --git a/docs/resources/source_mixpanel.md b/docs/resources/source_mixpanel.md
index 4b56bde43..138a2610c 100644
--- a/docs/resources/source_mixpanel.md
+++ b/docs/resources/source_mixpanel.md
@@ -15,25 +15,23 @@ SourceMixpanel Resource
```terraform
resource "airbyte_source_mixpanel" "my_source_mixpanel" {
configuration = {
- attribution_window = 2
+ attribution_window = 6
credentials = {
source_mixpanel_authentication_wildcard_project_secret = {
- api_secret = "...my_api_secret..."
- option_title = "Project Secret"
+ api_secret = "...my_api_secret..."
}
}
date_window_size = 10
end_date = "2021-11-16"
- project_id = 7
- project_timezone = "UTC"
- region = "US"
+ project_id = 3
+ project_timezone = "US/Pacific"
+ region = "EU"
select_properties_by_default = true
- source_type = "mixpanel"
start_date = "2021-11-16"
}
- name = "Donald Ernser"
+ name = "Peggy Cormier"
secret_id = "...my_secret_id..."
- workspace_id = "f37e4aa8-6855-4596-a732-aa5dcb6682cb"
+ workspace_id = "a41c80b2-3345-4c94-9a95-559f5a34ff68"
}
```
@@ -69,7 +67,6 @@ Optional:
- `region` (String) must be one of ["US", "EU"]
The region of mixpanel domain instance either US or EU.
- `select_properties_by_default` (Boolean) Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.
-- `source_type` (String) must be one of ["mixpanel"]
- `start_date` (String) The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default.
@@ -89,10 +86,6 @@ Required:
- `api_secret` (String) Mixpanel project secret. See the docs for more information on how to obtain this.
-Optional:
-
-- `option_title` (String) must be one of ["Project Secret"]
-
### Nested Schema for `configuration.credentials.source_mixpanel_authentication_wildcard_service_account`
@@ -102,10 +95,6 @@ Required:
- `secret` (String) Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
- `username` (String) Mixpanel Service Account Username. See the docs for more information on how to obtain this.
-Optional:
-
-- `option_title` (String) must be one of ["Service Account"]
-
### Nested Schema for `configuration.credentials.source_mixpanel_update_authentication_wildcard_project_secret`
@@ -114,10 +103,6 @@ Required:
- `api_secret` (String) Mixpanel project secret. See the docs for more information on how to obtain this.
-Optional:
-
-- `option_title` (String) must be one of ["Project Secret"]
-
### Nested Schema for `configuration.credentials.source_mixpanel_update_authentication_wildcard_service_account`
@@ -127,8 +112,4 @@ Required:
- `secret` (String) Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
- `username` (String) Mixpanel Service Account Username. See the docs for more information on how to obtain this.
-Optional:
-
-- `option_title` (String) must be one of ["Service Account"]
-
diff --git a/docs/resources/source_monday.md b/docs/resources/source_monday.md
index ef5c56f9b..a4c9fe302 100644
--- a/docs/resources/source_monday.md
+++ b/docs/resources/source_monday.md
@@ -18,14 +18,12 @@ resource "airbyte_source_monday" "my_source_monday" {
credentials = {
source_monday_authorization_method_api_token = {
api_token = "...my_api_token..."
- auth_type = "api_token"
}
}
- source_type = "monday"
}
- name = "Shirley Wisoky"
+ name = "Traci Lynch"
secret_id = "...my_secret_id..."
- workspace_id = "fd5fb6e9-1b9a-49f7-8846-e2c3309db053"
+ workspace_id = "8e9f7431-721e-4422-bfd5-1b66ec345b5c"
}
```
@@ -50,10 +48,6 @@ resource "airbyte_source_monday" "my_source_monday" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["monday"]
-
Optional:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
@@ -74,7 +68,6 @@ Optional:
Required:
- `api_token` (String) API Token for making authenticated requests.
-- `auth_type` (String) must be one of ["api_token"]
@@ -83,7 +76,6 @@ Required:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
@@ -98,7 +90,6 @@ Optional:
Required:
- `api_token` (String) API Token for making authenticated requests.
-- `auth_type` (String) must be one of ["api_token"]
@@ -107,7 +98,6 @@ Required:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
diff --git a/docs/resources/source_mongodb.md b/docs/resources/source_mongodb.md
index 9b8bca0ff..8f465a1fb 100644
--- a/docs/resources/source_mongodb.md
+++ b/docs/resources/source_mongodb.md
@@ -19,17 +19,16 @@ resource "airbyte_source_mongodb" "my_source_mongodb" {
database = "...my_database..."
instance_type = {
source_mongodb_mongo_db_instance_type_mongo_db_atlas = {
- cluster_url = "...my_cluster_url..."
- instance = "atlas"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ cluster_url = "...my_cluster_url..."
}
}
- password = "...my_password..."
- source_type = "mongodb"
- user = "...my_user..."
+ password = "...my_password..."
+ user = "...my_user..."
}
- name = "Doreen Mayer"
+ name = "Shelley Parker"
secret_id = "...my_secret_id..."
- workspace_id = "5ca006f5-392c-411a-a5a8-bf92f97428ad"
+ workspace_id = "4726a8cd-9c5a-4ad4-bafd-a11e10d002e1"
}
```
@@ -57,7 +56,6 @@ resource "airbyte_source_mongodb" "my_source_mongodb" {
Required:
- `database` (String) The database you want to replicate.
-- `source_type` (String) must be one of ["mongodb"]
Optional:
@@ -84,7 +82,6 @@ Optional:
Required:
- `cluster_url` (String) The URL of a cluster to connect to.
-- `instance` (String) must be one of ["atlas"]
Optional:
@@ -96,7 +93,6 @@ Optional:
Required:
-- `instance` (String) must be one of ["replica"]
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member separated by comma.
Optional:
@@ -110,7 +106,9 @@ Optional:
Required:
- `host` (String) The host name of the Mongo database.
-- `instance` (String) must be one of ["standalone"]
+
+Optional:
+
- `port` (Number) The port of the Mongo database.
@@ -120,7 +118,6 @@ Required:
Required:
- `cluster_url` (String) The URL of a cluster to connect to.
-- `instance` (String) must be one of ["atlas"]
Optional:
@@ -132,7 +129,6 @@ Optional:
Required:
-- `instance` (String) must be one of ["replica"]
- `server_addresses` (String) The members of a replica set. Please specify `host`:`port` of each member separated by comma.
Optional:
@@ -146,7 +142,9 @@ Optional:
Required:
- `host` (String) The host name of the Mongo database.
-- `instance` (String) must be one of ["standalone"]
+
+Optional:
+
- `port` (Number) The port of the Mongo database.
diff --git a/docs/resources/source_mongodb_internal_poc.md b/docs/resources/source_mongodb_internal_poc.md
index c7044fa78..f97af95a7 100644
--- a/docs/resources/source_mongodb_internal_poc.md
+++ b/docs/resources/source_mongodb_internal_poc.md
@@ -16,15 +16,14 @@ SourceMongodbInternalPoc Resource
resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" {
configuration = {
auth_source = "admin"
- connection_string = "mongodb://example1.host.com:27017,example2.host.com:27017,example3.host.com:27017"
+ connection_string = "mongodb://example.host.com:27017"
password = "...my_password..."
replica_set = "...my_replica_set..."
- source_type = "mongodb-internal-poc"
user = "...my_user..."
}
- name = "Eduardo Weissnat"
+ name = "Victoria Wiegand"
secret_id = "...my_secret_id..."
- workspace_id = "f8221125-359d-4983-87f7-a79cd72cd248"
+ workspace_id = "a1e39a63-be20-49ca-a593-eb808ec8c0a1"
}
```
@@ -49,10 +48,6 @@ resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["mongodb-internal-poc"]
-
Optional:
- `auth_source` (String) The authentication source where the user information is stored.
diff --git a/docs/resources/source_mssql.md b/docs/resources/source_mssql.md
index c8c1d5f2b..b72a0773e 100644
--- a/docs/resources/source_mssql.md
+++ b/docs/resources/source_mssql.md
@@ -21,32 +21,26 @@ resource "airbyte_source_mssql" "my_source_mssql" {
password = "...my_password..."
port = 1433
replication_method = {
- source_mssql_update_method_read_changes_using_change_data_capture_cdc_ = {
- data_to_sync = "New Changes Only"
- initial_waiting_seconds = 7
- method = "CDC"
+ source_mssql_update_method_read_changes_using_change_data_capture_cdc = {
+ data_to_sync = "Existing and New"
+ initial_waiting_seconds = 0
snapshot_isolation = "Snapshot"
}
}
schemas = [
"...",
]
- source_type = "mssql"
ssl_method = {
- source_mssql_ssl_method_encrypted_trust_server_certificate_ = {
- ssl_method = "encrypted_trust_server_certificate"
- }
+ source_mssql_ssl_method_encrypted_trust_server_certificate = {}
}
tunnel_method = {
- source_mssql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_mssql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Bobbie60"
+ username = "Jaylon.Block"
}
- name = "Clarence Murazik"
+ name = "Mercedes Abernathy"
secret_id = "...my_secret_id..."
- workspace_id = "1ef5725f-1169-4ac1-a41d-8a23c23e34f2"
+ workspace_id = "f4b5e4c1-9596-4433-a1d5-1484aac586d0"
}
```
@@ -76,7 +70,6 @@ Required:
- `database` (String) The name of the database.
- `host` (String) The hostname of the database.
- `port` (Number) The port of the database.
-- `source_type` (String) must be one of ["mssql"]
- `username` (String) The username which is used to access the database.
Optional:
@@ -101,10 +94,6 @@ Optional:
### Nested Schema for `configuration.replication_method.source_mssql_update_method_read_changes_using_change_data_capture_cdc`
-Required:
-
-- `method` (String) must be one of ["CDC"]
-
Optional:
- `data_to_sync` (String) must be one of ["Existing and New", "New Changes Only"]
@@ -117,18 +106,10 @@ Existing data in the database are synced through an initial snapshot. This param
### Nested Schema for `configuration.replication_method.source_mssql_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["STANDARD"]
-
### Nested Schema for `configuration.replication_method.source_mssql_update_update_method_read_changes_using_change_data_capture_cdc`
-Required:
-
-- `method` (String) must be one of ["CDC"]
-
Optional:
- `data_to_sync` (String) must be one of ["Existing and New", "New Changes Only"]
@@ -141,10 +122,6 @@ Existing data in the database are synced through an initial snapshot. This param
### Nested Schema for `configuration.replication_method.source_mssql_update_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["STANDARD"]
-
@@ -160,18 +137,10 @@ Optional:
### Nested Schema for `configuration.ssl_method.source_mssql_ssl_method_encrypted_trust_server_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.source_mssql_ssl_method_encrypted_verify_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
-
Optional:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
@@ -180,18 +149,10 @@ Optional:
### Nested Schema for `configuration.ssl_method.source_mssql_update_ssl_method_encrypted_trust_server_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_trust_server_certificate"]
-
### Nested Schema for `configuration.ssl_method.source_mssql_update_ssl_method_encrypted_verify_certificate`
-Required:
-
-- `ssl_method` (String) must be one of ["encrypted_verify_certificate"]
-
Optional:
- `host_name_in_certificate` (String) Specifies the host name of the server. The value of this property must match the subject property of the certificate.
@@ -213,11 +174,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_mssql_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mssql_ssh_tunnel_method_password_authentication`
@@ -225,12 +181,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_mssql_ssh_tunnel_method_ssh_key_authentication`
@@ -239,19 +196,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.source_mssql_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.source_mssql_update_ssh_tunnel_method_no_tunnel`
@@ -260,12 +213,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_mssql_update_ssh_tunnel_method_ssh_key_authentication`
@@ -274,9 +228,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_my_hours.md b/docs/resources/source_my_hours.md
index 0085bed7f..686f493e8 100644
--- a/docs/resources/source_my_hours.md
+++ b/docs/resources/source_my_hours.md
@@ -18,12 +18,11 @@ resource "airbyte_source_my_hours" "my_source_myhours" {
email = "john@doe.com"
logs_batch_size = 30
password = "...my_password..."
- source_type = "my-hours"
- start_date = "2016-01-01"
+ start_date = "%Y-%m-%d"
}
- name = "Elsa Kerluke"
+ name = "Stacey Herzog"
secret_id = "...my_secret_id..."
- workspace_id = "922151fe-1712-4099-853e-9f543d854439"
+ workspace_id = "57a2c261-8fe1-4b91-9cce-8e649d7675fb"
}
```
@@ -52,7 +51,6 @@ Required:
- `email` (String) Your My Hours username
- `password` (String) The password associated to the username
-- `source_type` (String) must be one of ["my-hours"]
- `start_date` (String) Start date for collecting time logs
Optional:
diff --git a/docs/resources/source_mysql.md b/docs/resources/source_mysql.md
index b945dfda0..22de4b3ef 100644
--- a/docs/resources/source_mysql.md
+++ b/docs/resources/source_mysql.md
@@ -21,28 +21,22 @@ resource "airbyte_source_mysql" "my_source_mysql" {
password = "...my_password..."
port = 3306
replication_method = {
- source_mysql_update_method_read_changes_using_binary_log_cdc_ = {
- initial_waiting_seconds = 10
- method = "CDC"
+ source_mysql_update_method_read_changes_using_binary_log_cdc = {
+ initial_waiting_seconds = 5
server_time_zone = "...my_server_time_zone..."
}
}
- source_type = "mysql"
ssl_mode = {
- source_mysql_ssl_modes_preferred = {
- mode = "preferred"
- }
+ source_mysql_ssl_modes_preferred = {}
}
tunnel_method = {
- source_mysql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_mysql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Carley25"
+ username = "Bernadette63"
}
- name = "Ruth Goodwin"
+ name = "Ricardo O'Keefe"
secret_id = "...my_secret_id..."
- workspace_id = "bc154188-c2f5-46e8-9da7-832eabd617c3"
+ workspace_id = "c65536a2-05f1-4e4d-b09e-a5800594fbd8"
}
```
@@ -71,15 +65,14 @@ Required:
- `database` (String) The database name.
- `host` (String) The host name of the database.
-- `port` (Number) The port to connect to.
- `replication_method` (Attributes) Configures how data is extracted from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
-- `source_type` (String) must be one of ["mysql"]
- `username` (String) The username which is used to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters.
- `password` (String) The password associated with the username.
+- `port` (Number) The port to connect to.
- `ssl_mode` (Attributes) SSL connection modes. Read more in the docs. (see [below for nested schema](#nestedatt--configuration--ssl_mode))
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -96,10 +89,6 @@ Optional:
### Nested Schema for `configuration.replication_method.source_mysql_update_method_read_changes_using_binary_log_cdc`
-Required:
-
-- `method` (String) must be one of ["CDC"]
-
Optional:
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
@@ -109,18 +98,10 @@ Optional:
### Nested Schema for `configuration.replication_method.source_mysql_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["STANDARD"]
-
### Nested Schema for `configuration.replication_method.source_mysql_update_update_method_read_changes_using_binary_log_cdc`
-Required:
-
-- `method` (String) must be one of ["CDC"]
-
Optional:
- `initial_waiting_seconds` (Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
@@ -130,10 +111,6 @@ Optional:
### Nested Schema for `configuration.replication_method.source_mysql_update_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["STANDARD"]
-
@@ -153,18 +130,10 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_preferred`
-Required:
-
-- `mode` (String) must be one of ["preferred"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_required`
-Required:
-
-- `mode` (String) must be one of ["required"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_ssl_modes_verify_ca`
@@ -172,7 +141,6 @@ Required:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify_ca"]
Optional:
@@ -187,7 +155,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify_identity"]
Optional:
@@ -199,18 +166,10 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_preferred`
-Required:
-
-- `mode` (String) must be one of ["preferred"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_required`
-Required:
-
-- `mode` (String) must be one of ["required"]
-
### Nested Schema for `configuration.ssl_mode.source_mysql_update_ssl_modes_verify_ca`
@@ -218,7 +177,6 @@ Required:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify_ca"]
Optional:
@@ -233,7 +191,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify_identity"]
Optional:
@@ -258,11 +215,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_mysql_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_mysql_ssh_tunnel_method_password_authentication`
@@ -270,12 +222,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_mysql_ssh_tunnel_method_ssh_key_authentication`
@@ -284,19 +237,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.source_mysql_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.source_mysql_update_ssh_tunnel_method_no_tunnel`
@@ -305,12 +254,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_mysql_update_ssh_tunnel_method_ssh_key_authentication`
@@ -319,9 +269,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_netsuite.md b/docs/resources/source_netsuite.md
index 5d9f80f52..d852b968b 100644
--- a/docs/resources/source_netsuite.md
+++ b/docs/resources/source_netsuite.md
@@ -21,15 +21,14 @@ resource "airbyte_source_netsuite" "my_source_netsuite" {
"...",
]
realm = "...my_realm..."
- source_type = "netsuite"
start_datetime = "2017-01-25T00:00:00Z"
token_key = "...my_token_key..."
token_secret = "...my_token_secret..."
- window_in_days = 7
+ window_in_days = 4
}
- name = "Miss Meredith Hand"
+ name = "Sylvia Bernhard"
secret_id = "...my_secret_id..."
- workspace_id = "4bf01bad-8706-4d46-882b-fbdc41ff5d4e"
+ workspace_id = "ace02f96-b833-4556-b7e4-181b36cf1afc"
}
```
@@ -59,7 +58,6 @@ Required:
- `consumer_key` (String) Consumer key associated with your integration
- `consumer_secret` (String) Consumer secret associated with your integration
- `realm` (String) Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox`
-- `source_type` (String) must be one of ["netsuite"]
- `start_datetime` (String) Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ"
- `token_key` (String) Access token key
- `token_secret` (String) Access token secret
diff --git a/docs/resources/source_notion.md b/docs/resources/source_notion.md
index 4bcf04c38..a9d5853ab 100644
--- a/docs/resources/source_notion.md
+++ b/docs/resources/source_notion.md
@@ -17,16 +17,14 @@ resource "airbyte_source_notion" "my_source_notion" {
configuration = {
credentials = {
source_notion_authenticate_using_access_token = {
- auth_type = "token"
- token = "...my_token..."
+ token = "...my_token..."
}
}
- source_type = "notion"
- start_date = "2020-11-16T00:00:00.000Z"
+ start_date = "2020-11-16T00:00:00.000Z"
}
- name = "Francisco Yost"
+ name = "Alyssa Douglas"
secret_id = "...my_secret_id..."
- workspace_id = "cb35d176-38f1-4edb-b835-9ecc5cb860f8"
+ workspace_id = "9cbeca1c-7573-4a5b-bba8-2d4c0a2cef78"
}
```
@@ -53,7 +51,6 @@ resource "airbyte_source_notion" "my_source_notion" {
Required:
-- `source_type` (String) must be one of ["notion"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated.
Optional:
@@ -75,7 +72,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["token"]
- `token` (String) Notion API access token, see the docs for more information on how to obtain this token.
@@ -85,7 +81,6 @@ Required:
Required:
- `access_token` (String) Access Token is a token you received by complete the OauthWebFlow of Notion.
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) The ClientID of your Notion integration.
- `client_secret` (String) The ClientSecret of your Notion integration.
@@ -95,7 +90,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["token"]
- `token` (String) Notion API access token, see the docs for more information on how to obtain this token.
@@ -105,7 +99,6 @@ Required:
Required:
- `access_token` (String) Access Token is a token you received by complete the OauthWebFlow of Notion.
-- `auth_type` (String) must be one of ["OAuth2.0"]
- `client_id` (String) The ClientID of your Notion integration.
- `client_secret` (String) The ClientSecret of your Notion integration.
diff --git a/docs/resources/source_nytimes.md b/docs/resources/source_nytimes.md
index ff83b2189..37e6146e8 100644
--- a/docs/resources/source_nytimes.md
+++ b/docs/resources/source_nytimes.md
@@ -15,16 +15,15 @@ SourceNytimes Resource
```terraform
resource "airbyte_source_nytimes" "my_source_nytimes" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "1851-01"
- period = "7"
- share_type = "facebook"
- source_type = "nytimes"
- start_date = "2022-08"
+ api_key = "...my_api_key..."
+ end_date = "2022-08"
+ period = "7"
+ share_type = "facebook"
+ start_date = "2022-08"
}
- name = "Mr. Emily Macejkovic"
+ name = "Arturo O'Keefe"
secret_id = "...my_secret_id..."
- workspace_id = "4fe44472-97cd-43b1-9d3b-bce247b7684e"
+ workspace_id = "04a9e0dd-c315-46b2-bfd5-d6c69da5497a"
}
```
@@ -54,7 +53,6 @@ Required:
- `api_key` (String) API Key
- `period` (Number) must be one of ["1", "7", "30"]
Period of time (in days)
-- `source_type` (String) must be one of ["nytimes"]
- `start_date` (String) Start date to begin the article retrieval (format YYYY-MM)
Optional:
diff --git a/docs/resources/source_okta.md b/docs/resources/source_okta.md
index 818e96444..3a8c96d04 100644
--- a/docs/resources/source_okta.md
+++ b/docs/resources/source_okta.md
@@ -18,16 +18,14 @@ resource "airbyte_source_okta" "my_source_okta" {
credentials = {
source_okta_authorization_method_api_token = {
api_token = "...my_api_token..."
- auth_type = "api_token"
}
}
- domain = "...my_domain..."
- source_type = "okta"
- start_date = "2022-07-22T00:00:00Z"
+ domain = "...my_domain..."
+ start_date = "2022-07-22T00:00:00Z"
}
- name = "Mr. Emmett Heidenreich"
+ name = "Dr. Gilberto Koss"
secret_id = "...my_secret_id..."
- workspace_id = "6d71cffb-d0eb-474b-8421-953b44bd3c43"
+ workspace_id = "dea586a0-9709-4edc-af2c-4357e7eb149e"
}
```
@@ -52,10 +50,6 @@ resource "airbyte_source_okta" "my_source_okta" {
### Nested Schema for `configuration`
-Required:
-
-- `source_type` (String) must be one of ["okta"]
-
Optional:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
@@ -78,7 +72,6 @@ Optional:
Required:
- `api_token` (String) An Okta token. See the docs for instructions on how to generate it.
-- `auth_type` (String) must be one of ["api_token"]
@@ -86,7 +79,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
@@ -98,7 +90,6 @@ Required:
Required:
- `api_token` (String) An Okta token. See the docs for instructions on how to generate it.
-- `auth_type` (String) must be one of ["api_token"]
@@ -106,7 +97,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
diff --git a/docs/resources/source_omnisend.md b/docs/resources/source_omnisend.md
index f0b9461ad..97c0dbe93 100644
--- a/docs/resources/source_omnisend.md
+++ b/docs/resources/source_omnisend.md
@@ -15,12 +15,11 @@ SourceOmnisend Resource
```terraform
resource "airbyte_source_omnisend" "my_source_omnisend" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "omnisend"
+ api_key = "...my_api_key..."
}
- name = "Lynn Miller"
+ name = "Shawna Treutel"
secret_id = "...my_secret_id..."
- workspace_id = "3e5953c0-0113-4986-baa4-1e6c31cc2f1f"
+ workspace_id = "76bd271d-6f7a-477e-91b0-4b8d52e6bc1e"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_omnisend" "my_source_omnisend" {
Required:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["omnisend"]
diff --git a/docs/resources/source_onesignal.md b/docs/resources/source_onesignal.md
index e0b682980..10c9ad786 100644
--- a/docs/resources/source_onesignal.md
+++ b/docs/resources/source_onesignal.md
@@ -23,13 +23,12 @@ resource "airbyte_source_onesignal" "my_source_onesignal" {
},
]
outcome_names = "os__session_duration.count,os__click.count,CustomOutcomeName.sum"
- source_type = "onesignal"
start_date = "2020-11-16T00:00:00Z"
user_auth_key = "...my_user_auth_key..."
}
- name = "Joan Schaefer"
+ name = "Mattie Bode"
secret_id = "...my_secret_id..."
- workspace_id = "41ffbe9c-bd79-45ee-a5e0-76cc7abf616e"
+ workspace_id = "c2e9642f-3c2f-4e19-832e-dfee92bc3373"
}
```
@@ -58,7 +57,6 @@ Required:
- `applications` (Attributes List) Applications keys, see the docs for more information on how to obtain this data (see [below for nested schema](#nestedatt--configuration--applications))
- `outcome_names` (String) Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details
-- `source_type` (String) must be one of ["onesignal"]
- `start_date` (String) The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `user_auth_key` (String) OneSignal User Auth Key, see the docs for more information on how to obtain this key.
diff --git a/docs/resources/source_oracle.md b/docs/resources/source_oracle.md
index 093d12f88..46d5783f5 100644
--- a/docs/resources/source_oracle.md
+++ b/docs/resources/source_oracle.md
@@ -17,34 +17,29 @@ resource "airbyte_source_oracle" "my_source_oracle" {
configuration = {
connection_data = {
source_oracle_connect_by_service_name = {
- connection_type = "service_name"
- service_name = "...my_service_name..."
+ service_name = "...my_service_name..."
}
}
encryption = {
- source_oracle_encryption_native_network_encryption_nne_ = {
+ source_oracle_encryption_native_network_encryption_nne = {
encryption_algorithm = "RC4_56"
- encryption_method = "client_nne"
}
}
host = "...my_host..."
jdbc_url_params = "...my_jdbc_url_params..."
password = "...my_password..."
- port = 4
+ port = 9
schemas = [
"...",
]
- source_type = "oracle"
tunnel_method = {
- source_oracle_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_oracle_ssh_tunnel_method_no_tunnel = {}
}
- username = "Oswaldo42"
+ username = "Carolina_Schamberger"
}
- name = "Cheryl McKenzie"
+ name = "Jeannie Conroy"
secret_id = "...my_secret_id..."
- workspace_id = "b90f2e09-d19d-42fc-af9e-2e105944b935"
+ workspace_id = "f975a7b1-02e5-4487-915a-2f449e5b0b68"
}
```
@@ -73,11 +68,6 @@ Required:
- `encryption` (Attributes) The encryption method with is used when communicating with the database. (see [below for nested schema](#nestedatt--configuration--encryption))
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
-Oracle Corporations recommends the following port numbers:
-1521 - Default listening port for client connections to the listener.
-2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL
-- `source_type` (String) must be one of ["oracle"]
- `username` (String) The username which is used to access the database.
Optional:
@@ -85,6 +75,10 @@ Optional:
- `connection_data` (Attributes) Connect data that will be used for DB connection (see [below for nested schema](#nestedatt--configuration--connection_data))
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
- `password` (String) The password associated with the username.
+- `port` (Number) Port of the database.
+Oracle Corporations recommends the following port numbers:
+1521 - Default listening port for client connections to the listener.
+2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL
- `schemas` (List of String) The list of schemas to sync from. Defaults to user. Case sensitive.
- `tunnel_method` (Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see [below for nested schema](#nestedatt--configuration--tunnel_method))
@@ -101,10 +95,6 @@ Optional:
### Nested Schema for `configuration.encryption.source_oracle_encryption_native_network_encryption_nne`
-Required:
-
-- `encryption_method` (String) must be one of ["client_nne"]
-
Optional:
- `encryption_algorithm` (String) must be one of ["AES256", "RC4_56", "3DES168"]
@@ -116,17 +106,12 @@ This parameter defines what encryption algorithm is used.
Required:
-- `encryption_method` (String) must be one of ["encrypted_verify_certificate"]
- `ssl_certificate` (String) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
### Nested Schema for `configuration.encryption.source_oracle_update_encryption_native_network_encryption_nne`
-Required:
-
-- `encryption_method` (String) must be one of ["client_nne"]
-
Optional:
- `encryption_algorithm` (String) must be one of ["AES256", "RC4_56", "3DES168"]
@@ -138,7 +123,6 @@ This parameter defines what encryption algorithm is used.
Required:
-- `encryption_method` (String) must be one of ["encrypted_verify_certificate"]
- `ssl_certificate` (String) Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
@@ -160,10 +144,6 @@ Required:
- `service_name` (String)
-Optional:
-
-- `connection_type` (String) must be one of ["service_name"]
-
### Nested Schema for `configuration.connection_data.source_oracle_connect_by_system_id_sid`
@@ -172,10 +152,6 @@ Required:
- `sid` (String)
-Optional:
-
-- `connection_type` (String) must be one of ["sid"]
-
### Nested Schema for `configuration.connection_data.source_oracle_update_connect_by_service_name`
@@ -184,10 +160,6 @@ Required:
- `service_name` (String)
-Optional:
-
-- `connection_type` (String) must be one of ["service_name"]
-
### Nested Schema for `configuration.connection_data.source_oracle_update_connect_by_system_id_sid`
@@ -196,10 +168,6 @@ Required:
- `sid` (String)
-Optional:
-
-- `connection_type` (String) must be one of ["sid"]
-
@@ -217,11 +185,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_oracle_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_oracle_ssh_tunnel_method_password_authentication`
@@ -229,12 +192,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_oracle_ssh_tunnel_method_ssh_key_authentication`
@@ -243,19 +207,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.source_oracle_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.source_oracle_update_ssh_tunnel_method_no_tunnel`
@@ -264,12 +224,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_oracle_update_ssh_tunnel_method_ssh_key_authentication`
@@ -278,9 +239,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_orb.md b/docs/resources/source_orb.md
index d6144b287..ca76a0416 100644
--- a/docs/resources/source_orb.md
+++ b/docs/resources/source_orb.md
@@ -20,17 +20,16 @@ resource "airbyte_source_orb" "my_source_orb" {
numeric_event_properties_keys = [
"...",
]
- plan_id = "...my_plan_id..."
- source_type = "orb"
- start_date = "2022-03-01T00:00:00Z"
+ plan_id = "...my_plan_id..."
+ start_date = "2022-03-01T00:00:00Z"
string_event_properties_keys = [
"...",
]
subscription_usage_grouping_key = "...my_subscription_usage_grouping_key..."
}
- name = "Josephine Kilback"
+ name = "Marta Renner"
secret_id = "...my_secret_id..."
- workspace_id = "2f90849d-6aed-44ae-8b75-37cd9222c9ff"
+ workspace_id = "99e2f7dc-2833-4c76-bbd5-5f566b4ade04"
}
```
@@ -58,7 +57,6 @@ resource "airbyte_source_orb" "my_source_orb" {
Required:
- `api_key` (String) Orb API Key, issued from the Orb admin console.
-- `source_type` (String) must be one of ["orb"]
- `start_date` (String) UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter.
Optional:
diff --git a/docs/resources/source_orbit.md b/docs/resources/source_orbit.md
index 6f9cbf315..ddbdf79d2 100644
--- a/docs/resources/source_orbit.md
+++ b/docs/resources/source_orbit.md
@@ -15,14 +15,13 @@ SourceOrbit Resource
```terraform
resource "airbyte_source_orbit" "my_source_orbit" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "orbit"
- start_date = "...my_start_date..."
- workspace = "...my_workspace..."
+ api_token = "...my_api_token..."
+ start_date = "...my_start_date..."
+ workspace = "...my_workspace..."
}
- name = "Jo Greenholt V"
+ name = "Willard Towne"
secret_id = "...my_secret_id..."
- workspace_id = "abfa2e76-1f0c-4a4d-856e-f1031e6899f0"
+ workspace_id = "0fd8ad91-61a0-45c5-a889-977eae086e3c"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_orbit" "my_source_orbit" {
Required:
- `api_token` (String) Authorizes you to work with Orbit workspaces associated with the token.
-- `source_type` (String) must be one of ["orbit"]
- `workspace` (String) The unique name of the workspace that your API token is associated with.
Optional:
diff --git a/docs/resources/source_outbrain_amplify.md b/docs/resources/source_outbrain_amplify.md
index 18a19739c..be052ab43 100644
--- a/docs/resources/source_outbrain_amplify.md
+++ b/docs/resources/source_outbrain_amplify.md
@@ -18,18 +18,16 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" {
credentials = {
source_outbrain_amplify_authentication_method_access_token = {
access_token = "...my_access_token..."
- type = "access_token"
}
}
end_date = "...my_end_date..."
- geo_location_breakdown = "subregion"
- report_granularity = "daily"
- source_type = "outbrain-amplify"
+ geo_location_breakdown = "country"
+ report_granularity = "monthly"
start_date = "...my_start_date..."
}
- name = "Cynthia Boyer"
+ name = "Robin Ankunding"
secret_id = "...my_secret_id..."
- workspace_id = "2cd55cc0-584a-4184-976d-971fc820c65b"
+ workspace_id = "ab840e56-112c-41fd-a021-0a5cfbec2876"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" {
Required:
- `credentials` (Attributes) Credentials for making authenticated requests requires either username/password or access_token. (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["outbrain-amplify"]
- `start_date` (String) Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.
Optional:
@@ -84,7 +81,6 @@ Optional:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `type` (String) must be one of ["access_token"]
@@ -93,7 +89,6 @@ Required:
Required:
- `password` (String) Add Password for authentication.
-- `type` (String) must be one of ["username_password"]
- `username` (String) Add Username for authentication.
@@ -103,7 +98,6 @@ Required:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `type` (String) must be one of ["access_token"]
@@ -112,7 +106,6 @@ Required:
Required:
- `password` (String) Add Password for authentication.
-- `type` (String) must be one of ["username_password"]
- `username` (String) Add Username for authentication.
diff --git a/docs/resources/source_outreach.md b/docs/resources/source_outreach.md
index 585c858dc..2bb2b87e9 100644
--- a/docs/resources/source_outreach.md
+++ b/docs/resources/source_outreach.md
@@ -19,12 +19,11 @@ resource "airbyte_source_outreach" "my_source_outreach" {
client_secret = "...my_client_secret..."
redirect_uri = "...my_redirect_uri..."
refresh_token = "...my_refresh_token..."
- source_type = "outreach"
start_date = "2020-11-16T00:00:00Z"
}
- name = "Kim Kirlin"
+ name = "Mr. Amber Wintheiser"
secret_id = "...my_secret_id..."
- workspace_id = "8e0cc885-187e-44de-84af-28c5dddb46aa"
+ workspace_id = "c84028fb-b0cd-4dcf-802e-3e6016546635"
}
```
@@ -55,7 +54,6 @@ Required:
- `client_secret` (String) The Client Secret of your Outreach developer application.
- `redirect_uri` (String) A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.
- `refresh_token` (String) The token for obtaining the new access token.
-- `source_type` (String) must be one of ["outreach"]
- `start_date` (String) The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
diff --git a/docs/resources/source_paypal_transaction.md b/docs/resources/source_paypal_transaction.md
index d78081001..4527cbd69 100644
--- a/docs/resources/source_paypal_transaction.md
+++ b/docs/resources/source_paypal_transaction.md
@@ -17,14 +17,13 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- is_sandbox = false
+ is_sandbox = true
refresh_token = "...my_refresh_token..."
- source_type = "paypal-transaction"
start_date = "2021-06-11T23:59:59+00:00"
}
- name = "Ernestine Little"
+ name = "Daniel Graham"
secret_id = "...my_secret_id..."
- workspace_id = "da013191-1296-4466-85c1-d81f29042f56"
+ workspace_id = "6c5d5cf5-0fbf-4713-864e-d5bf6d67306c"
}
```
@@ -53,12 +52,11 @@ Required:
- `client_id` (String) The Client ID of your Paypal developer application.
- `client_secret` (String) The Client Secret of your Paypal developer application.
-- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
-- `source_type` (String) must be one of ["paypal-transaction"]
- `start_date` (String) Start Date for data extraction in ISO format. Date must be in range from 3 years till 12 hrs before present time.
Optional:
+- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
- `refresh_token` (String) The key to refresh the expired access token.
diff --git a/docs/resources/source_paystack.md b/docs/resources/source_paystack.md
index 68355ea78..4db28911b 100644
--- a/docs/resources/source_paystack.md
+++ b/docs/resources/source_paystack.md
@@ -15,14 +15,13 @@ SourcePaystack Resource
```terraform
resource "airbyte_source_paystack" "my_source_paystack" {
configuration = {
- lookback_window_days = 6
+ lookback_window_days = 8
secret_key = "...my_secret_key..."
- source_type = "paystack"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Dr. Boyd Wilderman"
+ name = "Elias Kautzer"
secret_id = "...my_secret_id..."
- workspace_id = "2216cbe0-71bc-4163-a279-a3b084da9925"
+ workspace_id = "faeff480-df14-43ee-90f8-279e427b2c34"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_paystack" "my_source_paystack" {
Required:
- `secret_key` (String) The Paystack API key (usually starts with 'sk_live_'; find yours here).
-- `source_type` (String) must be one of ["paystack"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
Optional:
diff --git a/docs/resources/source_pendo.md b/docs/resources/source_pendo.md
index 8f1f63acb..b92ce92ea 100644
--- a/docs/resources/source_pendo.md
+++ b/docs/resources/source_pendo.md
@@ -15,12 +15,11 @@ SourcePendo Resource
```terraform
resource "airbyte_source_pendo" "my_source_pendo" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "pendo"
+ api_key = "...my_api_key..."
}
- name = "Estelle Bechtelar"
+ name = "Leigh Bruen"
secret_id = "...my_secret_id..."
- workspace_id = "40847a74-2d84-4496-8bde-ecf6b99bc635"
+ workspace_id = "b428b10c-62ae-4eab-aa16-bc0f1be55677"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_pendo" "my_source_pendo" {
Required:
- `api_key` (String)
-- `source_type` (String) must be one of ["pendo"]
diff --git a/docs/resources/source_persistiq.md b/docs/resources/source_persistiq.md
index aaa226c27..7cab22f62 100644
--- a/docs/resources/source_persistiq.md
+++ b/docs/resources/source_persistiq.md
@@ -15,12 +15,11 @@ SourcePersistiq Resource
```terraform
resource "airbyte_source_persistiq" "my_source_persistiq" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "persistiq"
+ api_key = "...my_api_key..."
}
- name = "Nicole Vandervort"
+ name = "Bessie Ernser"
secret_id = "...my_secret_id..."
- workspace_id = "df55c294-c060-4b06-a128-7764eef6d0c6"
+ workspace_id = "c6ca7fcd-ac63-4878-94b6-9c42e8b9a534"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_persistiq" "my_source_persistiq" {
Required:
- `api_key` (String) PersistIq API Key. See the docs for more information on where to find that key.
-- `source_type` (String) must be one of ["persistiq"]
diff --git a/docs/resources/source_pexels_api.md b/docs/resources/source_pexels_api.md
index 3f0f8b35a..c6e87a4f5 100644
--- a/docs/resources/source_pexels_api.md
+++ b/docs/resources/source_pexels_api.md
@@ -18,14 +18,13 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" {
api_key = "...my_api_key..."
color = "orange"
locale = "en-US"
- orientation = "landscape"
+ orientation = "square"
query = "oceans"
size = "small"
- source_type = "pexels-api"
}
- name = "Arnold Dooley"
+ name = "Genevieve Corwin"
secret_id = "...my_secret_id..."
- workspace_id = "63457150-9a8e-4870-93c5-a1f9c242c7b6"
+ workspace_id = "4eff211a-dfc7-421d-91f8-0239a929660c"
}
```
@@ -54,7 +53,6 @@ Required:
- `api_key` (String) API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free.
- `query` (String) Optional, the search query, Example Ocean, Tigers, Pears, etc.
-- `source_type` (String) must be one of ["pexels-api"]
Optional:
diff --git a/docs/resources/source_pinterest.md b/docs/resources/source_pinterest.md
index 6805e0477..d610865f2 100644
--- a/docs/resources/source_pinterest.md
+++ b/docs/resources/source_pinterest.md
@@ -18,18 +18,16 @@ resource "airbyte_source_pinterest" "my_source_pinterest" {
credentials = {
source_pinterest_authorization_method_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- source_type = "pinterest"
- start_date = "2022-07-28"
+ start_date = "2022-07-28"
status = [
- "ACTIVE",
+ "ARCHIVED",
]
}
- name = "Nathan Bauch"
+ name = "Walter Bode"
secret_id = "...my_secret_id..."
- workspace_id = "3df5b671-9890-4f42-a4bb-438d85b26059"
+ workspace_id = "8c1cd3af-e5ef-4853-81e2-2d9fe1bd2224"
}
```
@@ -56,7 +54,6 @@ resource "airbyte_source_pinterest" "my_source_pinterest" {
Required:
-- `source_type` (String) must be one of ["pinterest"]
- `start_date` (String) A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today).
Optional:
@@ -80,7 +77,6 @@ Optional:
Required:
- `access_token` (String) The Access Token to make authenticated requests.
-- `auth_method` (String) must be one of ["access_token"]
@@ -88,7 +84,6 @@ Required:
Required:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
Optional:
@@ -103,7 +98,6 @@ Optional:
Required:
- `access_token` (String) The Access Token to make authenticated requests.
-- `auth_method` (String) must be one of ["access_token"]
@@ -111,7 +105,6 @@ Required:
Required:
-- `auth_method` (String) must be one of ["oauth2.0"]
- `refresh_token` (String) Refresh Token to obtain new Access Token, when it's expired.
Optional:
diff --git a/docs/resources/source_pipedrive.md b/docs/resources/source_pipedrive.md
index 0d844c962..f51f1699e 100644
--- a/docs/resources/source_pipedrive.md
+++ b/docs/resources/source_pipedrive.md
@@ -17,14 +17,12 @@ resource "airbyte_source_pipedrive" "my_source_pipedrive" {
configuration = {
authorization = {
api_token = "...my_api_token..."
- auth_type = "Token"
}
replication_start_date = "2017-01-25T00:00:00Z"
- source_type = "pipedrive"
}
- name = "Rhonda Hammes"
+ name = "Sophia Kerluke III"
secret_id = "...my_secret_id..."
- workspace_id = "c2059c9c-3f56-47e0-a252-765b1d62fcda"
+ workspace_id = "be306a4e-8399-4441-ba7c-75d4c70b5882"
}
```
@@ -52,7 +50,6 @@ resource "airbyte_source_pipedrive" "my_source_pipedrive" {
Required:
- `replication_start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental
-- `source_type` (String) must be one of ["pipedrive"]
Optional:
@@ -64,6 +61,5 @@ Optional:
Required:
- `api_token` (String) The Pipedrive API Token.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/resources/source_pocket.md b/docs/resources/source_pocket.md
index 740aec074..fe80b2da5 100644
--- a/docs/resources/source_pocket.md
+++ b/docs/resources/source_pocket.md
@@ -20,17 +20,16 @@ resource "airbyte_source_pocket" "my_source_pocket" {
content_type = "image"
detail_type = "complete"
domain = "...my_domain..."
- favorite = true
+ favorite = false
search = "...my_search..."
since = "2022-10-20 14:14:14"
- sort = "site"
- source_type = "pocket"
- state = "unread"
+ sort = "newest"
+ state = "archive"
tag = "...my_tag..."
}
- name = "Christina Bode"
+ name = "Deanna Kunde"
secret_id = "...my_secret_id..."
- workspace_id = "e2239e8f-25cd-40d1-9d95-9f439e39266c"
+ workspace_id = "fdf7e2fa-4a63-4623-a34b-ba48ed6d0eaf"
}
```
@@ -59,7 +58,6 @@ Required:
- `access_token` (String) The user's Pocket access token.
- `consumer_key` (String) Your application's Consumer Key.
-- `source_type` (String) must be one of ["pocket"]
Optional:
diff --git a/docs/resources/source_pokeapi.md b/docs/resources/source_pokeapi.md
index 209cba1b0..1c0b3f1de 100644
--- a/docs/resources/source_pokeapi.md
+++ b/docs/resources/source_pokeapi.md
@@ -15,12 +15,11 @@ SourcePokeapi Resource
```terraform
resource "airbyte_source_pokeapi" "my_source_pokeapi" {
configuration = {
- pokemon_name = "snorlax"
- source_type = "pokeapi"
+ pokemon_name = "luxray"
}
- name = "Jeremiah Hahn"
+ name = "Dean Gutkowski"
secret_id = "...my_secret_id..."
- workspace_id = "aa2b2411-3695-4d1e-a698-fcc4596217c2"
+ workspace_id = "c369f9cb-0a3d-4d00-87da-ef770c81f95c"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_pokeapi" "my_source_pokeapi" {
Required:
- `pokemon_name` (String) Pokemon requested from the API.
-- `source_type` (String) must be one of ["pokeapi"]
diff --git a/docs/resources/source_polygon_stock_api.md b/docs/resources/source_polygon_stock_api.md
index 5a80bed58..99c5e799b 100644
--- a/docs/resources/source_polygon_stock_api.md
+++ b/docs/resources/source_polygon_stock_api.md
@@ -15,20 +15,19 @@ SourcePolygonStockAPI Resource
```terraform
resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" {
configuration = {
- adjusted = "false"
+ adjusted = "true"
api_key = "...my_api_key..."
end_date = "2020-10-14"
- limit = 100
+ limit = 120
multiplier = 1
sort = "asc"
- source_type = "polygon-stock-api"
start_date = "2020-10-14"
stocks_ticker = "IBM"
timespan = "day"
}
- name = "Mary Fisher"
+ name = "Shari Jerde"
secret_id = "...my_secret_id..."
- workspace_id = "fb5971e9-8190-4557-b89c-edbac7fda395"
+ workspace_id = "c5cd0a4f-da52-4f69-943b-8620d9bb5048"
}
```
@@ -58,7 +57,6 @@ Required:
- `api_key` (String) Your API ACCESS Key
- `end_date` (String) The target date for the aggregate window.
- `multiplier` (Number) The size of the timespan multiplier.
-- `source_type` (String) must be one of ["polygon-stock-api"]
- `start_date` (String) The beginning date for the aggregate window.
- `stocks_ticker` (String) The exchange symbol that this item is traded under.
- `timespan` (String) The size of the time window.
diff --git a/docs/resources/source_postgres.md b/docs/resources/source_postgres.md
index 304d0512c..6b171d0bd 100644
--- a/docs/resources/source_postgres.md
+++ b/docs/resources/source_postgres.md
@@ -21,29 +21,24 @@ resource "airbyte_source_postgres" "my_source_postgres" {
password = "...my_password..."
port = 5432
replication_method = {
- source_postgres_update_method_detect_changes_with_xmin_system_column = {
- method = "Xmin"
- }
+ source_postgres_update_method_detect_changes_with_xmin_system_column = {}
}
schemas = [
"...",
]
- source_type = "postgres"
ssl_mode = {
source_postgres_ssl_modes_allow = {
- mode = "allow"
+ additional_properties = "{ \"see\": \"documentation\" }"
}
}
tunnel_method = {
- source_postgres_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_postgres_ssh_tunnel_method_no_tunnel = {}
}
- username = "Edwardo.Streich"
+ username = "Luigi_Murray"
}
- name = "Roosevelt Cummings"
+ name = "Arlene O'Kon V"
secret_id = "...my_secret_id..."
- workspace_id = "480632b9-954b-46fa-a206-369828553cb1"
+ workspace_id = "fd2caf83-f045-4910-a7c5-70570b889169"
}
```
@@ -72,14 +67,13 @@ Required:
- `database` (String) Name of the database.
- `host` (String) Hostname of the database.
-- `port` (Number) Port of the database.
-- `source_type` (String) must be one of ["postgres"]
- `username` (String) Username to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters.
- `password` (String) Password associated with the username.
+- `port` (Number) Port of the database.
- `replication_method` (Attributes) Configures how data is extracted from the database. (see [below for nested schema](#nestedatt--configuration--replication_method))
- `schemas` (List of String) The list of schemas (case sensitive) to sync from. Defaults to public.
- `ssl_mode` (Attributes) SSL connection modes.
@@ -101,17 +95,12 @@ Optional:
### Nested Schema for `configuration.replication_method.source_postgres_update_method_detect_changes_with_xmin_system_column`
-Required:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_method_read_changes_using_write_ahead_log_cdc`
Required:
-- `method` (String) must be one of ["CDC"]
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
- `replication_slot` (String) A plugin logical replication slot. Read about replication slots.
@@ -129,25 +118,16 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_postgres_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_detect_changes_with_xmin_system_column`
-Required:
-
-- `method` (String) must be one of ["Xmin"]
-
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc`
Required:
-- `method` (String) must be one of ["CDC"]
- `publication` (String) A Postgres publication used for consuming changes. Read about publications and replication identities.
- `replication_slot` (String) A plugin logical replication slot. Read about replication slots.
@@ -165,10 +145,6 @@ A logical decoding plugin installed on the PostgreSQL server.
### Nested Schema for `configuration.replication_method.source_postgres_update_update_method_scan_changes_with_user_defined_cursor`
-Required:
-
-- `method` (String) must be one of ["Standard"]
-
@@ -192,10 +168,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -204,10 +176,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -216,10 +184,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -228,10 +192,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -243,7 +203,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -259,7 +218,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -272,10 +230,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_allow`
-Required:
-
-- `mode` (String) must be one of ["allow"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -284,10 +238,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_disable`
-Required:
-
-- `mode` (String) must be one of ["disable"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -296,10 +246,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_prefer`
-Required:
-
-- `mode` (String) must be one of ["prefer"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -308,10 +254,6 @@ Optional:
### Nested Schema for `configuration.ssl_mode.source_postgres_update_ssl_modes_require`
-Required:
-
-- `mode` (String) must be one of ["require"]
-
Optional:
- `additional_properties` (String) Parsed as JSON.
@@ -323,7 +265,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-ca"]
Optional:
@@ -339,7 +280,6 @@ Optional:
Required:
- `ca_certificate` (String) CA certificate
-- `mode` (String) must be one of ["verify-full"]
Optional:
@@ -365,11 +305,6 @@ Optional:
### Nested Schema for `configuration.tunnel_method.source_postgres_ssh_tunnel_method_no_tunnel`
-Required:
-
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
-
### Nested Schema for `configuration.tunnel_method.source_postgres_ssh_tunnel_method_password_authentication`
@@ -377,12 +312,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_postgres_ssh_tunnel_method_ssh_key_authentication`
@@ -391,19 +327,15 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
-
-### Nested Schema for `configuration.tunnel_method.source_postgres_update_ssh_tunnel_method_no_tunnel`
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
-Required:
-- `tunnel_method` (String) must be one of ["NO_TUNNEL"]
-No ssh tunnel needed to connect to database
+
+### Nested Schema for `configuration.tunnel_method.source_postgres_update_ssh_tunnel_method_no_tunnel`
@@ -412,12 +344,13 @@ No ssh tunnel needed to connect to database
Required:
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through a jump server tunnel host using username and password authentication
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host
- `tunnel_user_password` (String) OS-level password for logging into the jump server host
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
### Nested Schema for `configuration.tunnel_method.source_postgres_update_ssh_tunnel_method_ssh_key_authentication`
@@ -426,9 +359,10 @@ Required:
- `ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
- `tunnel_host` (String) Hostname of the jump server host that allows inbound ssh tunnel.
-- `tunnel_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through a jump server tunnel host using username and ssh key
-- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
- `tunnel_user` (String) OS-level username for logging into the jump server host.
+Optional:
+
+- `tunnel_port` (Number) Port on the proxy/jump server that accepts inbound ssh connections.
+
diff --git a/docs/resources/source_posthog.md b/docs/resources/source_posthog.md
index 27fbc1d87..5567d21c2 100644
--- a/docs/resources/source_posthog.md
+++ b/docs/resources/source_posthog.md
@@ -17,13 +17,12 @@ resource "airbyte_source_posthog" "my_source_posthog" {
configuration = {
api_key = "...my_api_key..."
base_url = "https://posthog.example.com"
- events_time_step = 30
- source_type = "posthog"
+ events_time_step = 5
start_date = "2021-01-01T00:00:00Z"
}
- name = "Terence Wisozk"
+ name = "Freda Kulas"
secret_id = "...my_secret_id..."
- workspace_id = "21ec2053-b749-4366-ac8e-e0f2bf19588d"
+ workspace_id = "fcaa386d-a1d2-4ddf-8351-c49c68690051"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_posthog" "my_source_posthog" {
Required:
- `api_key` (String) API Key. See the docs for information on how to generate this key.
-- `source_type` (String) must be one of ["posthog"]
- `start_date` (String) The date from which you'd like to replicate the data. Any data before this date will not be replicated.
Optional:
diff --git a/docs/resources/source_postmarkapp.md b/docs/resources/source_postmarkapp.md
index e9925ed62..ffcefc3ac 100644
--- a/docs/resources/source_postmarkapp.md
+++ b/docs/resources/source_postmarkapp.md
@@ -15,13 +15,12 @@ SourcePostmarkapp Resource
```terraform
resource "airbyte_source_postmarkapp" "my_source_postmarkapp" {
configuration = {
- source_type = "postmarkapp"
x_postmark_account_token = "...my_x_postmark_account_token..."
x_postmark_server_token = "...my_x_postmark_server_token..."
}
- name = "Mr. Sharon Swift"
+ name = "Danielle Borer"
secret_id = "...my_secret_id..."
- workspace_id = "3deba297-be3e-490b-840d-f868fd52405c"
+ workspace_id = "5e4d38a3-0ea5-46cd-ba27-fbf6225b4bae"
}
```
@@ -48,7 +47,6 @@ resource "airbyte_source_postmarkapp" "my_source_postmarkapp" {
Required:
-- `source_type` (String) must be one of ["postmarkapp"]
- `x_postmark_account_token` (String) API Key for account
- `x_postmark_server_token` (String) API Key for server
diff --git a/docs/resources/source_prestashop.md b/docs/resources/source_prestashop.md
index bfcc11bc1..ad1050c8f 100644
--- a/docs/resources/source_prestashop.md
+++ b/docs/resources/source_prestashop.md
@@ -15,14 +15,13 @@ SourcePrestashop Resource
```terraform
resource "airbyte_source_prestashop" "my_source_prestashop" {
configuration = {
- access_key = "...my_access_key..."
- source_type = "prestashop"
- start_date = "2022-01-01"
- url = "...my_url..."
+ access_key = "...my_access_key..."
+ start_date = "2022-01-01"
+ url = "...my_url..."
}
- name = "Evelyn Stracke"
+ name = "Anna Collier Sr."
secret_id = "...my_secret_id..."
- workspace_id = "2f4f127f-b0e0-4bf1-b821-7978d0acca77"
+ workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_prestashop" "my_source_prestashop" {
Required:
- `access_key` (String) Your PrestaShop access key. See the docs for info on how to obtain this.
-- `source_type` (String) must be one of ["prestashop"]
- `start_date` (String) The Start date in the format YYYY-MM-DD.
- `url` (String) Shop URL without trailing slash.
diff --git a/docs/resources/source_punk_api.md b/docs/resources/source_punk_api.md
index 33fb6c703..2f6a4f3fc 100644
--- a/docs/resources/source_punk_api.md
+++ b/docs/resources/source_punk_api.md
@@ -18,11 +18,10 @@ resource "airbyte_source_punk_api" "my_source_punkapi" {
brewed_after = "MM-YYYY"
brewed_before = "MM-YYYY"
id = 22
- source_type = "punk-api"
}
- name = "Darnell Turcotte"
+ name = "Richard Heller"
secret_id = "...my_secret_id..."
- workspace_id = "540ef53a-34a1-4b8f-a997-31adc05d85ae"
+ workspace_id = "2040e069-282d-4d6a-92cb-01cbd9faeeda"
}
```
@@ -51,7 +50,6 @@ Required:
- `brewed_after` (String) To extract specific data with Unique ID
- `brewed_before` (String) To extract specific data with Unique ID
-- `source_type` (String) must be one of ["punk-api"]
Optional:
diff --git a/docs/resources/source_pypi.md b/docs/resources/source_pypi.md
index a6b79c0f9..fc6c45536 100644
--- a/docs/resources/source_pypi.md
+++ b/docs/resources/source_pypi.md
@@ -16,12 +16,11 @@ SourcePypi Resource
resource "airbyte_source_pypi" "my_source_pypi" {
configuration = {
project_name = "sampleproject"
- source_type = "pypi"
version = "1.2.0"
}
- name = "Antonia Wintheiser"
+ name = "Darlene Legros"
secret_id = "...my_secret_id..."
- workspace_id = "0fb38742-90d3-4365-a1ec-a16ef89451bd"
+ workspace_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_pypi" "my_source_pypi" {
Required:
- `project_name` (String) Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package.
-- `source_type` (String) must be one of ["pypi"]
Optional:
diff --git a/docs/resources/source_qualaroo.md b/docs/resources/source_qualaroo.md
index 6659a5d39..bc39ca527 100644
--- a/docs/resources/source_qualaroo.md
+++ b/docs/resources/source_qualaroo.md
@@ -15,17 +15,16 @@ SourceQualaroo Resource
```terraform
resource "airbyte_source_qualaroo" "my_source_qualaroo" {
configuration = {
- key = "...my_key..."
- source_type = "qualaroo"
- start_date = "2021-03-01T00:00:00.000Z"
+ key = "...my_key..."
+ start_date = "2021-03-01T00:00:00.000Z"
survey_ids = [
"...",
]
token = "...my_token..."
}
- name = "Sue Thompson"
+ name = "Rosalie Hoppe"
secret_id = "...my_secret_id..."
- workspace_id = "b518c4da-1fad-4355-92f0-6d4e5b72f0f5"
+ workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c"
}
```
@@ -53,7 +52,6 @@ resource "airbyte_source_qualaroo" "my_source_qualaroo" {
Required:
- `key` (String) A Qualaroo token. See the docs for instructions on how to generate it.
-- `source_type` (String) must be one of ["qualaroo"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `token` (String) A Qualaroo token. See the docs for instructions on how to generate it.
diff --git a/docs/resources/source_quickbooks.md b/docs/resources/source_quickbooks.md
index c23c86ec2..90e01046f 100644
--- a/docs/resources/source_quickbooks.md
+++ b/docs/resources/source_quickbooks.md
@@ -18,21 +18,19 @@ resource "airbyte_source_quickbooks" "my_source_quickbooks" {
credentials = {
source_quickbooks_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
realm_id = "...my_realm_id..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2022-06-15T23:02:57.447Z"
+ token_expiry_date = "2022-06-02T21:27:50.594Z"
}
}
- sandbox = false
- source_type = "quickbooks"
- start_date = "2021-03-20T00:00:00Z"
+ sandbox = true
+ start_date = "2021-03-20T00:00:00Z"
}
- name = "William Gottlieb"
+ name = "Ms. Rodolfo Kerluke"
secret_id = "...my_secret_id..."
- workspace_id = "e00a1d6e-b943-4464-9d03-084fbba5ccef"
+ workspace_id = "e714fbf0-cfd3-4aed-94ef-24d0de80e3db"
}
```
@@ -60,10 +58,12 @@ resource "airbyte_source_quickbooks" "my_source_quickbooks" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `sandbox` (Boolean) Determines whether to use the sandbox or production environment.
-- `source_type` (String) must be one of ["quickbooks"]
- `start_date` (String) The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated.
+Optional:
+
+- `sandbox` (Boolean) Determines whether to use the sandbox or production environment.
+
### Nested Schema for `configuration.credentials`
@@ -84,10 +84,6 @@ Required:
- `refresh_token` (String) A token used when refreshing the access token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_quickbooks_update_authorization_method_o_auth2_0`
@@ -101,8 +97,4 @@ Required:
- `refresh_token` (String) A token used when refreshing the access token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
diff --git a/docs/resources/source_railz.md b/docs/resources/source_railz.md
index 09a7c18fa..fb965dc4b 100644
--- a/docs/resources/source_railz.md
+++ b/docs/resources/source_railz.md
@@ -15,14 +15,13 @@ SourceRailz Resource
```terraform
resource "airbyte_source_railz" "my_source_railz" {
configuration = {
- client_id = "...my_client_id..."
- secret_key = "...my_secret_key..."
- source_type = "railz"
- start_date = "...my_start_date..."
+ client_id = "...my_client_id..."
+ secret_key = "...my_secret_key..."
+ start_date = "...my_start_date..."
}
- name = "Clyde Schmeler Jr."
+ name = "Mr. Steven Hills Sr."
secret_id = "...my_secret_id..."
- workspace_id = "fe51e528-a45a-4c82-b85f-8bc2caba8da4"
+ workspace_id = "5d2de4b8-db33-4d2b-ba27-b0b342a10fbc"
}
```
@@ -51,7 +50,6 @@ Required:
- `client_id` (String) Client ID (client_id)
- `secret_key` (String) Secret key (secret_key)
-- `source_type` (String) must be one of ["railz"]
- `start_date` (String) Start date
diff --git a/docs/resources/source_recharge.md b/docs/resources/source_recharge.md
index c3ab7a31b..0ffece949 100644
--- a/docs/resources/source_recharge.md
+++ b/docs/resources/source_recharge.md
@@ -16,12 +16,11 @@ SourceRecharge Resource
resource "airbyte_source_recharge" "my_source_recharge" {
configuration = {
access_token = "...my_access_token..."
- source_type = "recharge"
start_date = "2021-05-14T00:00:00Z"
}
- name = "Angel Stokes"
+ name = "Ms. Grant Krajcik I"
secret_id = "...my_secret_id..."
- workspace_id = "7ff4711a-a1bc-474b-86ce-cc74f77b4848"
+ workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_recharge" "my_source_recharge" {
Required:
- `access_token` (String) The value of the Access Token generated. See the docs for more information.
-- `source_type` (String) must be one of ["recharge"]
- `start_date` (String) The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/resources/source_recreation.md b/docs/resources/source_recreation.md
index 9b923b0f5..ebef033d1 100644
--- a/docs/resources/source_recreation.md
+++ b/docs/resources/source_recreation.md
@@ -17,11 +17,10 @@ resource "airbyte_source_recreation" "my_source_recreation" {
configuration = {
apikey = "...my_apikey..."
query_campsites = "...my_query_campsites..."
- source_type = "recreation"
}
- name = "Taylor Kertzmann"
+ name = "Krista Reilly"
secret_id = "...my_secret_id..."
- workspace_id = "f0441d2c-3b80-4809-8373-e060459bebba"
+ workspace_id = "00caee12-c4e6-45b5-be54-a27b617a012e"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_recreation" "my_source_recreation" {
Required:
- `apikey` (String) API Key
-- `source_type` (String) must be one of ["recreation"]
Optional:
diff --git a/docs/resources/source_recruitee.md b/docs/resources/source_recruitee.md
index ff172c647..d761274ef 100644
--- a/docs/resources/source_recruitee.md
+++ b/docs/resources/source_recruitee.md
@@ -15,13 +15,12 @@ SourceRecruitee Resource
```terraform
resource "airbyte_source_recruitee" "my_source_recruitee" {
configuration = {
- api_key = "...my_api_key..."
- company_id = 9
- source_type = "recruitee"
+ api_key = "...my_api_key..."
+ company_id = 4
}
- name = "Mrs. Tina White"
+ name = "Van Jakubowski"
secret_id = "...my_secret_id..."
- workspace_id = "6bcf1525-58da-4a95-be6c-d02756c354aa"
+ workspace_id = "1922df28-3a61-4431-ba52-314031fd7b82"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String) Recruitee API Key. See here.
- `company_id` (Number) Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.
-- `source_type` (String) must be one of ["recruitee"]
diff --git a/docs/resources/source_recurly.md b/docs/resources/source_recurly.md
index 4d6e8253e..baafcea4f 100644
--- a/docs/resources/source_recurly.md
+++ b/docs/resources/source_recurly.md
@@ -15,14 +15,13 @@ SourceRecurly Resource
```terraform
resource "airbyte_source_recurly" "my_source_recurly" {
configuration = {
- api_key = "...my_api_key..."
- begin_time = "2021-12-01T00:00:00"
- end_time = "2021-12-01T00:00:00"
- source_type = "recurly"
+ api_key = "...my_api_key..."
+ begin_time = "2021-12-01T00:00:00"
+ end_time = "2021-12-01T00:00:00"
}
- name = "Josephine Dibbert"
+ name = "Ms. Jeffery Russel"
secret_id = "...my_secret_id..."
- workspace_id = "7e1763c5-208c-423e-9802-d82f0d45eb4a"
+ workspace_id = "c1950da3-1ebe-4cd9-b5a7-5a7c5fc21d72"
}
```
@@ -50,7 +49,6 @@ resource "airbyte_source_recurly" "my_source_recurly" {
Required:
- `api_key` (String) Recurly API Key. See the docs for more information on how to generate this key.
-- `source_type` (String) must be one of ["recurly"]
Optional:
diff --git a/docs/resources/source_redshift.md b/docs/resources/source_redshift.md
index 8a38f454e..912a96734 100644
--- a/docs/resources/source_redshift.md
+++ b/docs/resources/source_redshift.md
@@ -23,12 +23,11 @@ resource "airbyte_source_redshift" "my_source_redshift" {
schemas = [
"...",
]
- source_type = "redshift"
- username = "Nelda.Jaskolski"
+ username = "Montana1"
}
- name = "Clay Hintz"
+ name = "Duane Kirlin"
secret_id = "...my_secret_id..."
- workspace_id = "c18edc7f-787e-432e-84b3-d3ed0c5670ef"
+ workspace_id = "b731c6d5-241e-4982-9d4f-c03242ccd276"
}
```
@@ -58,13 +57,12 @@ Required:
- `database` (String) Name of the database.
- `host` (String) Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com).
- `password` (String) Password associated with the username.
-- `port` (Number) Port of the database.
-- `source_type` (String) must be one of ["redshift"]
- `username` (String) Username to use to access the database.
Optional:
- `jdbc_url_params` (String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
+- `port` (Number) Port of the database.
- `schemas` (List of String) The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.
diff --git a/docs/resources/source_retently.md b/docs/resources/source_retently.md
index 6cf7842b1..7e229049d 100644
--- a/docs/resources/source_retently.md
+++ b/docs/resources/source_retently.md
@@ -16,18 +16,17 @@ SourceRetently Resource
resource "airbyte_source_retently" "my_source_retently" {
configuration = {
credentials = {
- source_retently_authentication_mechanism_authenticate_via_retently_o_auth_ = {
- auth_type = "Client"
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ source_retently_authentication_mechanism_authenticate_via_retently_o_auth = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
}
- source_type = "retently"
}
- name = "Kelly Pfeffer"
+ name = "Rosie Baumbach"
secret_id = "...my_secret_id..."
- workspace_id = "c9f1cc50-3f6c-439b-8d0a-6290f957f385"
+ workspace_id = "0eb91c3d-f259-4349-952d-c8258f30a271"
}
```
@@ -55,7 +54,6 @@ resource "airbyte_source_retently" "my_source_retently" {
Optional:
- `credentials` (Attributes) Choose how to authenticate to Retently (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["retently"]
### Nested Schema for `configuration.credentials`
@@ -79,7 +77,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Client"]
@@ -92,7 +89,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Token"]
@@ -107,7 +103,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Client"]
@@ -120,6 +115,5 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["Token"]
diff --git a/docs/resources/source_rki_covid.md b/docs/resources/source_rki_covid.md
index 9f0c9d8c2..c56dedceb 100644
--- a/docs/resources/source_rki_covid.md
+++ b/docs/resources/source_rki_covid.md
@@ -15,12 +15,11 @@ SourceRkiCovid Resource
```terraform
resource "airbyte_source_rki_covid" "my_source_rkicovid" {
configuration = {
- source_type = "rki-covid"
- start_date = "...my_start_date..."
+ start_date = "...my_start_date..."
}
- name = "Penny Morissette"
+ name = "Mr. Earl Rempel"
secret_id = "...my_secret_id..."
- workspace_id = "7ef807aa-e03f-433c-a79f-b9de4032ba26"
+ workspace_id = "c7045956-c03e-4c7b-8b68-fdfc0692b4fd"
}
```
@@ -47,7 +46,6 @@ resource "airbyte_source_rki_covid" "my_source_rkicovid" {
Required:
-- `source_type` (String) must be one of ["rki-covid"]
- `start_date` (String) UTC date in the format 2017-01-25. Any data before this date will not be replicated.
diff --git a/docs/resources/source_rss.md b/docs/resources/source_rss.md
index dfb2fe4b5..4be4abaff 100644
--- a/docs/resources/source_rss.md
+++ b/docs/resources/source_rss.md
@@ -15,12 +15,11 @@ SourceRss Resource
```terraform
resource "airbyte_source_rss" "my_source_rss" {
configuration = {
- source_type = "rss"
- url = "...my_url..."
+ url = "...my_url..."
}
- name = "Gustavo Donnelly"
+ name = "Colleen Frami"
secret_id = "...my_secret_id..."
- workspace_id = "ba9216bc-b415-4835-8736-41723133edc0"
+ workspace_id = "9a8d0acc-9948-4b00-a105-9fac1d6c9b0f"
}
```
@@ -47,7 +46,6 @@ resource "airbyte_source_rss" "my_source_rss" {
Required:
-- `source_type` (String) must be one of ["rss"]
- `url` (String) RSS Feed URL
diff --git a/docs/resources/source_s3.md b/docs/resources/source_s3.md
index de1bd4527..8a666f86e 100644
--- a/docs/resources/source_s3.md
+++ b/docs/resources/source_s3.md
@@ -21,9 +21,7 @@ resource "airbyte_source_s3" "my_source_s3" {
dataset = "...my_dataset..."
endpoint = "...my_endpoint..."
format = {
- source_s3_file_format_avro = {
- filetype = "avro"
- }
+ source_s3_file_format_avro = {}
}
path_pattern = "**"
provider = {
@@ -34,17 +32,15 @@ resource "airbyte_source_s3" "my_source_s3" {
path_prefix = "...my_path_prefix..."
start_date = "2021-01-01T00:00:00Z"
}
- schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}"
- source_type = "s3"
- start_date = "2021-01-01T00:00:00.000000Z"
+ schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}"
+ start_date = "2021-01-01T00:00:00.000000Z"
streams = [
{
- days_to_sync_if_history_is_full = 1
+ days_to_sync_if_history_is_full = 6
file_type = "...my_file_type..."
format = {
source_s3_file_based_stream_config_format_avro_format = {
double_as_string = true
- filetype = "avro"
}
}
globs = [
@@ -52,16 +48,16 @@ resource "airbyte_source_s3" "my_source_s3" {
]
input_schema = "...my_input_schema..."
legacy_prefix = "...my_legacy_prefix..."
- name = "Flora Rempel"
+ name = "Pearl Batz"
primary_key = "...my_primary_key..."
schemaless = false
- validation_policy = "Skip Record"
+ validation_policy = "Emit Record"
},
]
}
- name = "Jacqueline Kiehn"
+ name = "Rudolph Roberts"
secret_id = "...my_secret_id..."
- workspace_id = "2c22c553-5049-45c5-9bb3-c57c1e4981e8"
+ workspace_id = "d8aaea00-f0c4-4c84-b89e-625bae876a32"
}
```
@@ -90,7 +86,6 @@ because it is responsible for converting legacy S3 v3 configs into v4 configs us
Required:
- `bucket` (String) Name of the S3 bucket where the file(s) exist.
-- `source_type` (String) must be one of ["s3"]
- `streams` (Attributes List) Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. (see [below for nested schema](#nestedatt--configuration--streams))
Optional:
@@ -145,7 +140,6 @@ Optional:
Optional:
- `double_as_string` (Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
-- `filetype` (String) must be one of ["avro"]
@@ -158,7 +152,6 @@ Optional:
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
- `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values.
-- `filetype` (String) must be one of ["csv"]
- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--source_s3_update_file_based_stream_config_format_parquet_format--header_definition))
- `inference_type` (String) must be one of ["None", "Primitive Types Only"]
How to infer the types of the columns. If none, inference default to strings.
@@ -181,18 +174,10 @@ Optional:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Optional:
-
-- `header_definition_type` (String) must be one of ["Autogenerated"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Optional:
-
-- `header_definition_type` (String) must be one of ["From CSV"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
@@ -201,20 +186,12 @@ Required:
- `column_names` (List of String) The column names that will be used while emitting the CSV records
-Optional:
-
-- `header_definition_type` (String) must be one of ["User Provided"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
-Optional:
-
-- `filetype` (String) must be one of ["jsonl"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
@@ -222,7 +199,6 @@ Optional:
Optional:
- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
-- `filetype` (String) must be one of ["parquet"]
@@ -231,7 +207,6 @@ Optional:
Optional:
- `double_as_string` (Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
-- `filetype` (String) must be one of ["avro"]
@@ -244,7 +219,6 @@ Optional:
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
- `false_values` (List of String) A set of case-sensitive strings that should be interpreted as false values.
-- `filetype` (String) must be one of ["csv"]
- `header_definition` (Attributes) How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see [below for nested schema](#nestedatt--configuration--streams--format--source_s3_update_file_based_stream_config_format_parquet_format--header_definition))
- `inference_type` (String) must be one of ["None", "Primitive Types Only"]
How to infer the types of the columns. If none, inference default to strings.
@@ -267,18 +241,10 @@ Optional:
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Optional:
-
-- `header_definition_type` (String) must be one of ["Autogenerated"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
-Optional:
-
-- `header_definition_type` (String) must be one of ["From CSV"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format.header_definition.source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided`
@@ -287,20 +253,12 @@ Required:
- `column_names` (List of String) The column names that will be used while emitting the CSV records
-Optional:
-
-- `header_definition_type` (String) must be one of ["User Provided"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
-Optional:
-
-- `filetype` (String) must be one of ["jsonl"]
-
### Nested Schema for `configuration.streams.format.source_s3_update_file_based_stream_config_format_parquet_format`
@@ -308,7 +266,6 @@ Optional:
Optional:
- `decimal_as_float` (Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
-- `filetype` (String) must be one of ["parquet"]
@@ -330,10 +287,6 @@ Optional:
### Nested Schema for `configuration.format.source_s3_file_format_avro`
-Optional:
-
-- `filetype` (String) must be one of ["avro"]
-
### Nested Schema for `configuration.format.source_s3_file_format_csv`
@@ -347,7 +300,6 @@ Optional:
- `double_quote` (Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data.
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
-- `filetype` (String) must be one of ["csv"]
- `infer_datatypes` (Boolean) Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- `newlines_in_values` (Boolean) Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank.
@@ -359,7 +311,6 @@ Optional:
Optional:
- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
-- `filetype` (String) must be one of ["jsonl"]
- `newlines_in_values` (Boolean) Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- `unexpected_field_behavior` (String) must be one of ["ignore", "infer", "error"]
How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
@@ -373,16 +324,11 @@ Optional:
- `batch_size` (Number) Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- `buffer_size` (Number) Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- `columns` (List of String) If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
-- `filetype` (String) must be one of ["parquet"]
### Nested Schema for `configuration.format.source_s3_update_file_format_avro`
-Optional:
-
-- `filetype` (String) must be one of ["avro"]
-
### Nested Schema for `configuration.format.source_s3_update_file_format_csv`
@@ -396,7 +342,6 @@ Optional:
- `double_quote` (Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data.
- `encoding` (String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- `escape_char` (String) The character used for escaping special characters. To disallow escaping, leave this field blank.
-- `filetype` (String) must be one of ["csv"]
- `infer_datatypes` (Boolean) Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- `newlines_in_values` (Boolean) Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- `quote_char` (String) The character used for quoting CSV values. To disallow quoting, make this field blank.
@@ -408,7 +353,6 @@ Optional:
Optional:
- `block_size` (Number) The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
-- `filetype` (String) must be one of ["jsonl"]
- `newlines_in_values` (Boolean) Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- `unexpected_field_behavior` (String) must be one of ["ignore", "infer", "error"]
How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
@@ -422,7 +366,6 @@ Optional:
- `batch_size` (Number) Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- `buffer_size` (Number) Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- `columns` (List of String) If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
-- `filetype` (String) must be one of ["parquet"]
diff --git a/docs/resources/source_salesforce.md b/docs/resources/source_salesforce.md
index d3d243efe..bdeb4179a 100644
--- a/docs/resources/source_salesforce.md
+++ b/docs/resources/source_salesforce.md
@@ -15,24 +15,22 @@ SourceSalesforce Resource
```terraform
resource "airbyte_source_salesforce" "my_source_salesforce" {
configuration = {
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- force_use_bulk_api = true
- is_sandbox = false
+ force_use_bulk_api = false
+ is_sandbox = true
refresh_token = "...my_refresh_token..."
- source_type = "salesforce"
start_date = "2021-07-25"
streams_criteria = [
{
- criteria = "not contains"
+ criteria = "starts with"
value = "...my_value..."
},
]
}
- name = "Gregg Boyer Sr."
+ name = "Joel Powlowski"
secret_id = "...my_secret_id..."
- workspace_id = "ebde64bf-cc54-469d-8015-dfa796206bef"
+ workspace_id = "e953bf2d-efea-42fd-945f-48d363139855"
}
```
@@ -62,11 +60,9 @@ Required:
- `client_id` (String) Enter your Salesforce developer application's Client ID
- `client_secret` (String) Enter your Salesforce developer application's Client secret
- `refresh_token` (String) Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.
-- `source_type` (String) must be one of ["salesforce"]
Optional:
-- `auth_type` (String) must be one of ["Client"]
- `force_use_bulk_api` (Boolean) Toggle to use Bulk API (this might cause empty fields for some streams)
- `is_sandbox` (Boolean) Toggle if you're using a Salesforce Sandbox
- `start_date` (String) Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years.
@@ -77,7 +73,10 @@ Optional:
Required:
-- `criteria` (String) must be one of ["starts with", "ends with", "contains", "exacts", "starts not with", "ends not with", "not contains", "not exacts"]
- `value` (String)
+Optional:
+
+- `criteria` (String) must be one of ["starts with", "ends with", "contains", "exacts", "starts not with", "ends not with", "not contains", "not exacts"]
+
diff --git a/docs/resources/source_salesloft.md b/docs/resources/source_salesloft.md
index a90fdd6c6..aded68e6d 100644
--- a/docs/resources/source_salesloft.md
+++ b/docs/resources/source_salesloft.md
@@ -17,16 +17,14 @@ resource "airbyte_source_salesloft" "my_source_salesloft" {
configuration = {
credentials = {
source_salesloft_credentials_authenticate_via_api_key = {
- api_key = "...my_api_key..."
- auth_type = "api_key"
+ api_key = "...my_api_key..."
}
}
- source_type = "salesloft"
- start_date = "2020-11-16T00:00:00Z"
+ start_date = "2020-11-16T00:00:00Z"
}
- name = "Lynda Dicki"
+ name = "Dr. Johnny Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "2c1aa010-e9aa-4c2e-9135-586d18f9f97a"
+ workspace_id = "206afb3a-724a-460d-8013-4e58876cb030"
}
```
@@ -54,7 +52,6 @@ resource "airbyte_source_salesloft" "my_source_salesloft" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["salesloft"]
- `start_date` (String) The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
@@ -73,7 +70,6 @@ Optional:
Required:
- `api_key` (String) API Key for making authenticated requests. More instruction on how to find this value in our docs
-- `auth_type` (String) must be one of ["api_key"]
@@ -82,7 +78,6 @@ Required:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your Salesloft developer application.
- `client_secret` (String) The Client Secret of your Salesloft developer application.
- `refresh_token` (String) The token for obtaining a new access token.
@@ -95,7 +90,6 @@ Required:
Required:
- `api_key` (String) API Key for making authenticated requests. More instruction on how to find this value in our docs
-- `auth_type` (String) must be one of ["api_key"]
@@ -104,7 +98,6 @@ Required:
Required:
- `access_token` (String) Access Token for making authenticated requests.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your Salesloft developer application.
- `client_secret` (String) The Client Secret of your Salesloft developer application.
- `refresh_token` (String) The token for obtaining a new access token.
diff --git a/docs/resources/source_sap_fieldglass.md b/docs/resources/source_sap_fieldglass.md
index 5e2a052ca..5ce31feb8 100644
--- a/docs/resources/source_sap_fieldglass.md
+++ b/docs/resources/source_sap_fieldglass.md
@@ -15,12 +15,11 @@ SourceSapFieldglass Resource
```terraform
resource "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "sap-fieldglass"
+ api_key = "...my_api_key..."
}
- name = "Juana Williamson"
+ name = "Raymond D'Amore"
secret_id = "...my_secret_id..."
- workspace_id = "2bf7d67c-a84a-4d99-b41d-61243531870c"
+ workspace_id = "e06a57c7-c577-4af1-a5ba-ddd2747bbc7f"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" {
Required:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["sap-fieldglass"]
diff --git a/docs/resources/source_secoda.md b/docs/resources/source_secoda.md
index 14e946432..a215d0edc 100644
--- a/docs/resources/source_secoda.md
+++ b/docs/resources/source_secoda.md
@@ -15,12 +15,11 @@ SourceSecoda Resource
```terraform
resource "airbyte_source_secoda" "my_source_secoda" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "secoda"
+ api_key = "...my_api_key..."
}
- name = "Brett Leannon I"
+ name = "Hazel Blick V"
secret_id = "...my_secret_id..."
- workspace_id = "ad421bd4-3d1f-40cb-8a00-03eb22d9b3a7"
+ workspace_id = "ce4fe165-bc48-440e-bfb5-df25477f370b"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_secoda" "my_source_secoda" {
Required:
- `api_key` (String) Your API Access Key. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["secoda"]
diff --git a/docs/resources/source_sendgrid.md b/docs/resources/source_sendgrid.md
index 8ec44ae9f..ae21fa49f 100644
--- a/docs/resources/source_sendgrid.md
+++ b/docs/resources/source_sendgrid.md
@@ -15,13 +15,12 @@ SourceSendgrid Resource
```terraform
resource "airbyte_source_sendgrid" "my_source_sendgrid" {
configuration = {
- apikey = "...my_apikey..."
- source_type = "sendgrid"
- start_time = "2020-01-01T01:01:01Z"
+ apikey = "...my_apikey..."
+ start_time = "2020-01-01T01:01:01Z"
}
- name = "Shari Pfannerstill"
+ name = "Adrienne Leannon"
secret_id = "...my_secret_id..."
- workspace_id = "41c57d1f-edc2-4050-938d-c3ce185472f9"
+ workspace_id = "fb0cb9d8-dfc2-47a8-872c-3eb5dc55714d"
}
```
@@ -49,7 +48,6 @@ resource "airbyte_source_sendgrid" "my_source_sendgrid" {
Required:
- `apikey` (String) API Key, use admin to generate this key.
-- `source_type` (String) must be one of ["sendgrid"]
Optional:
diff --git a/docs/resources/source_sendinblue.md b/docs/resources/source_sendinblue.md
index 0d69e89da..e53cec7a1 100644
--- a/docs/resources/source_sendinblue.md
+++ b/docs/resources/source_sendinblue.md
@@ -15,12 +15,11 @@ SourceSendinblue Resource
```terraform
resource "airbyte_source_sendinblue" "my_source_sendinblue" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "sendinblue"
+ api_key = "...my_api_key..."
}
- name = "Terence Kassulke III"
+ name = "Charles Koss"
secret_id = "...my_secret_id..."
- workspace_id = "6a8be344-4eac-48b3-a287-5c6c1fe606d0"
+ workspace_id = "69873338-6b53-4a47-9a08-05ff1793bf9b"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_sendinblue" "my_source_sendinblue" {
Required:
- `api_key` (String) Your API Key. See here.
-- `source_type` (String) must be one of ["sendinblue"]
diff --git a/docs/resources/source_senseforce.md b/docs/resources/source_senseforce.md
index 17f4207e8..7bef19865 100644
--- a/docs/resources/source_senseforce.md
+++ b/docs/resources/source_senseforce.md
@@ -19,12 +19,11 @@ resource "airbyte_source_senseforce" "my_source_senseforce" {
backend_url = "https://galaxyapi.senseforce.io"
dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7"
slice_range = 10
- source_type = "senseforce"
start_date = "2017-01-25"
}
- name = "Rodolfo Langworth"
+ name = "Sherry Casper"
secret_id = "...my_secret_id..."
- workspace_id = "e50c1666-1a1d-4913-aa7e-8d53213f3f65"
+ workspace_id = "bd6b468c-85ec-421a-9ab5-67f13c77e51f"
}
```
@@ -54,7 +53,6 @@ Required:
- `access_token` (String) Your API access token. See here. The toke is case sensitive.
- `backend_url` (String) Your Senseforce API backend URL. This is the URL shown during the Login screen. See here for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR)
- `dataset_id` (String) The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source).
-- `source_type` (String) must be one of ["senseforce"]
- `start_date` (String) UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later
Optional:
diff --git a/docs/resources/source_sentry.md b/docs/resources/source_sentry.md
index dfd8b7e3c..51da95841 100644
--- a/docs/resources/source_sentry.md
+++ b/docs/resources/source_sentry.md
@@ -19,14 +19,13 @@ resource "airbyte_source_sentry" "my_source_sentry" {
discover_fields = [
"{ \"see\": \"documentation\" }",
]
- hostname = "muted-ingredient.biz"
+ hostname = "pushy-know-how.info"
organization = "...my_organization..."
project = "...my_project..."
- source_type = "sentry"
}
- name = "Krystal Quitzon"
+ name = "Essie Schneider V"
secret_id = "...my_secret_id..."
- workspace_id = "4c59f0a5-6ceb-4cad-a29c-a79181c95671"
+ workspace_id = "4306e082-909d-497b-babb-ad3671a9ca1d"
}
```
@@ -56,7 +55,6 @@ Required:
- `auth_token` (String) Log into Sentry and then create authentication tokens.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/"
- `organization` (String) The slug of the organization the groups belong to.
- `project` (String) The name (slug) of the Project you want to sync.
-- `source_type` (String) must be one of ["sentry"]
Optional:
diff --git a/docs/resources/source_sftp.md b/docs/resources/source_sftp.md
index c922caf87..1086dac72 100644
--- a/docs/resources/source_sftp.md
+++ b/docs/resources/source_sftp.md
@@ -17,21 +17,19 @@ resource "airbyte_source_sftp" "my_source_sftp" {
configuration = {
credentials = {
source_sftp_authentication_wildcard_password_authentication = {
- auth_method = "SSH_PASSWORD_AUTH"
auth_user_password = "...my_auth_user_password..."
}
}
file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`"
- file_types = "csv,json"
+ file_types = "csv"
folder_path = "/logs/2022"
- host = "www.host.com"
+ host = "192.0.2.1"
port = 22
- source_type = "sftp"
user = "...my_user..."
}
- name = "Miss Tommy Emard"
+ name = "Bertha Williamson"
secret_id = "...my_secret_id..."
- workspace_id = "665163a3-6385-412a-b252-1b9f2e072467"
+ workspace_id = "4145562d-2757-4623-9e52-bb8adc8fd2a7"
}
```
@@ -59,8 +57,6 @@ resource "airbyte_source_sftp" "my_source_sftp" {
Required:
- `host` (String) The server host address
-- `port` (Number) The server port
-- `source_type` (String) must be one of ["sftp"]
- `user` (String) The server user
Optional:
@@ -69,6 +65,7 @@ Optional:
- `file_pattern` (String) The regular expression to specify files for sync in a chosen Folder Path
- `file_types` (String) Coma separated file types. Currently only 'csv' and 'json' types are supported.
- `folder_path` (String) The directory to search files for sync
+- `port` (Number) The server port
### Nested Schema for `configuration.credentials`
@@ -85,8 +82,6 @@ Optional:
Required:
-- `auth_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through password authentication
- `auth_user_password` (String) OS-level password for logging into the jump server host
@@ -95,8 +90,6 @@ Connect through password authentication
Required:
-- `auth_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through ssh key
- `auth_ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
@@ -105,8 +98,6 @@ Connect through ssh key
Required:
-- `auth_method` (String) must be one of ["SSH_PASSWORD_AUTH"]
-Connect through password authentication
- `auth_user_password` (String) OS-level password for logging into the jump server host
@@ -115,8 +106,6 @@ Connect through password authentication
Required:
-- `auth_method` (String) must be one of ["SSH_KEY_AUTH"]
-Connect through ssh key
- `auth_ssh_key` (String) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
diff --git a/docs/resources/source_sftp_bulk.md b/docs/resources/source_sftp_bulk.md
index 0fc7a449a..35b988755 100644
--- a/docs/resources/source_sftp_bulk.md
+++ b/docs/resources/source_sftp_bulk.md
@@ -15,23 +15,22 @@ SourceSftpBulk Resource
```terraform
resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" {
configuration = {
- file_most_recent = false
+ file_most_recent = true
file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`"
file_type = "json"
folder_path = "/logs/2022"
- host = "192.0.2.1"
+ host = "www.host.com"
password = "...my_password..."
port = 22
private_key = "...my_private_key..."
separator = ","
- source_type = "sftp-bulk"
start_date = "2017-01-25T00:00:00Z"
stream_name = "ftp_contacts"
- username = "Pearline_Bailey"
+ username = "Olin92"
}
- name = "Wm Bartoletti"
+ name = "Marie Johns"
secret_id = "...my_secret_id..."
- workspace_id = "50edf22a-94d2-40ec-90ea-41d1f465e851"
+ workspace_id = "f8929e4d-23a0-40b4-94f7-d68d64a810b2"
}
```
@@ -58,10 +57,7 @@ resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" {
Required:
-- `folder_path` (String) The directory to search files for sync
- `host` (String) The server host address
-- `port` (Number) The server port
-- `source_type` (String) must be one of ["sftp-bulk"]
- `start_date` (String) The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `stream_name` (String) The name of the stream or table you want to create
- `username` (String) The server user
@@ -72,7 +68,9 @@ Optional:
- `file_pattern` (String) The regular expression to specify files for sync in a chosen Folder Path
- `file_type` (String) must be one of ["csv", "json"]
The file type you want to sync. Currently only 'csv' and 'json' files are supported.
+- `folder_path` (String) The directory to search files for sync
- `password` (String) OS-level password for logging into the jump server host
+- `port` (Number) The server port
- `private_key` (String) The private key
- `separator` (String) The separator used in the CSV files. Define None if you want to use the Sniffer functionality
diff --git a/docs/resources/source_shopify.md b/docs/resources/source_shopify.md
index 3fe62e4f9..d0b44387f 100644
--- a/docs/resources/source_shopify.md
+++ b/docs/resources/source_shopify.md
@@ -18,16 +18,14 @@ resource "airbyte_source_shopify" "my_source_shopify" {
credentials = {
source_shopify_shopify_authorization_method_api_password = {
api_password = "...my_api_password..."
- auth_method = "api_password"
}
}
- shop = "my-store"
- source_type = "shopify"
- start_date = "2022-01-02"
+ shop = "my-store.myshopify.com"
+ start_date = "2022-06-08"
}
- name = "Randal Kris"
+ name = "Christy Kuhn"
secret_id = "...my_secret_id..."
- workspace_id = "df54fdd5-ea95-4433-98da-fb42a8d63388"
+ workspace_id = "0c47c0f9-ce33-4c0f-a94c-11e4e993d294"
}
```
@@ -55,7 +53,6 @@ resource "airbyte_source_shopify" "my_source_shopify" {
Required:
- `shop` (String) The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.
-- `source_type` (String) must be one of ["shopify"]
Optional:
@@ -78,16 +75,11 @@ Optional:
Required:
- `api_password` (String) The API Password for your private application in the `Shopify` store.
-- `auth_method` (String) must be one of ["api_password"]
### Nested Schema for `configuration.credentials.source_shopify_shopify_authorization_method_o_auth2_0`
-Required:
-
-- `auth_method` (String) must be one of ["oauth2.0"]
-
Optional:
- `access_token` (String) The Access Token for making authenticated requests.
@@ -101,16 +93,11 @@ Optional:
Required:
- `api_password` (String) The API Password for your private application in the `Shopify` store.
-- `auth_method` (String) must be one of ["api_password"]
### Nested Schema for `configuration.credentials.source_shopify_update_shopify_authorization_method_o_auth2_0`
-Required:
-
-- `auth_method` (String) must be one of ["oauth2.0"]
-
Optional:
- `access_token` (String) The Access Token for making authenticated requests.
diff --git a/docs/resources/source_shortio.md b/docs/resources/source_shortio.md
index 7ece64e90..95638a812 100644
--- a/docs/resources/source_shortio.md
+++ b/docs/resources/source_shortio.md
@@ -15,14 +15,13 @@ SourceShortio Resource
```terraform
resource "airbyte_source_shortio" "my_source_shortio" {
configuration = {
- domain_id = "...my_domain_id..."
- secret_key = "...my_secret_key..."
- source_type = "shortio"
- start_date = "2023-07-30T03:43:59.244Z"
+ domain_id = "...my_domain_id..."
+ secret_key = "...my_secret_key..."
+ start_date = "2023-07-30T03:43:59.244Z"
}
- name = "Troy Streich I"
+ name = "Valerie Cronin DDS"
secret_id = "...my_secret_id..."
- workspace_id = "9ea5f9b1-8a24-44fd-a190-39dacd38ed0d"
+ workspace_id = "b54dff6c-f9b7-49e2-b288-8b6bde25154a"
}
```
@@ -51,7 +50,6 @@ Required:
- `domain_id` (String)
- `secret_key` (String) Short.io Secret Key
-- `source_type` (String) must be one of ["shortio"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
diff --git a/docs/resources/source_slack.md b/docs/resources/source_slack.md
index 3b9897835..b93b3b27a 100644
--- a/docs/resources/source_slack.md
+++ b/docs/resources/source_slack.md
@@ -20,18 +20,16 @@ resource "airbyte_source_slack" "my_source_slack" {
]
credentials = {
source_slack_authentication_mechanism_api_token = {
- api_token = "...my_api_token..."
- option_title = "API Token Credentials"
+ api_token = "...my_api_token..."
}
}
join_channels = false
lookback_window = 7
- source_type = "slack"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Dr. Jamie Wintheiser"
+ name = "Ebony Daniel"
secret_id = "...my_secret_id..."
- workspace_id = "af15920c-90d1-4b49-81f2-bd89c8a32639"
+ workspace_id = "a49853a6-9509-435a-9536-c5004734e30b"
}
```
@@ -58,15 +56,14 @@ resource "airbyte_source_slack" "my_source_slack" {
Required:
-- `join_channels` (Boolean) Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages.
-- `lookback_window` (Number) How far into the past to look for messages in threads, default is 0 days
-- `source_type` (String) must be one of ["slack"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
Optional:
- `channel_filter` (List of String) A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter.
- `credentials` (Attributes) Choose how to authenticate into Slack (see [below for nested schema](#nestedatt--configuration--credentials))
+- `join_channels` (Boolean) Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages.
+- `lookback_window` (Number) How far into the past to look for messages in threads, default is 0 days
### Nested Schema for `configuration.credentials`
@@ -84,7 +81,6 @@ Optional:
Required:
- `api_token` (String) A Slack bot token. See the docs for instructions on how to generate it.
-- `option_title` (String) must be one of ["API Token Credentials"]
@@ -95,7 +91,6 @@ Required:
- `access_token` (String) Slack access_token. See our docs if you need help generating the token.
- `client_id` (String) Slack client_id. See our docs if you need help finding this id.
- `client_secret` (String) Slack client_secret. See our docs if you need help finding this secret.
-- `option_title` (String) must be one of ["Default OAuth2.0 authorization"]
@@ -104,7 +99,6 @@ Required:
Required:
- `api_token` (String) A Slack bot token. See the docs for instructions on how to generate it.
-- `option_title` (String) must be one of ["API Token Credentials"]
@@ -115,6 +109,5 @@ Required:
- `access_token` (String) Slack access_token. See our docs if you need help generating the token.
- `client_id` (String) Slack client_id. See our docs if you need help finding this id.
- `client_secret` (String) Slack client_secret. See our docs if you need help finding this secret.
-- `option_title` (String) must be one of ["Default OAuth2.0 authorization"]
diff --git a/docs/resources/source_smaily.md b/docs/resources/source_smaily.md
index 9094ce421..3b1d0b0ca 100644
--- a/docs/resources/source_smaily.md
+++ b/docs/resources/source_smaily.md
@@ -18,11 +18,10 @@ resource "airbyte_source_smaily" "my_source_smaily" {
api_password = "...my_api_password..."
api_subdomain = "...my_api_subdomain..."
api_username = "...my_api_username..."
- source_type = "smaily"
}
- name = "Donnie Hauck"
+ name = "Kristen Roberts"
secret_id = "...my_secret_id..."
- workspace_id = "b6902b88-1a94-4f64-b664-a8f0af8c691d"
+ workspace_id = "9e4e758a-c092-4271-99b9-5b60c98bb703"
}
```
@@ -52,6 +51,5 @@ Required:
- `api_password` (String) API user password. See https://smaily.com/help/api/general/create-api-user/
- `api_subdomain` (String) API Subdomain. See https://smaily.com/help/api/general/create-api-user/
- `api_username` (String) API user username. See https://smaily.com/help/api/general/create-api-user/
-- `source_type` (String) must be one of ["smaily"]
diff --git a/docs/resources/source_smartengage.md b/docs/resources/source_smartengage.md
index c654b4525..ee43ee2ec 100644
--- a/docs/resources/source_smartengage.md
+++ b/docs/resources/source_smartengage.md
@@ -15,12 +15,11 @@ SourceSmartengage Resource
```terraform
resource "airbyte_source_smartengage" "my_source_smartengage" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "smartengage"
+ api_key = "...my_api_key..."
}
- name = "Carmen Crist"
+ name = "Marguerite Reichel"
secret_id = "...my_secret_id..."
- workspace_id = "fbaf9476-a2ae-48dc-850c-8a3512c73784"
+ workspace_id = "61ce1bb1-cada-4a0e-b28a-3bd5563e04de"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_smartengage" "my_source_smartengage" {
Required:
- `api_key` (String) API Key
-- `source_type` (String) must be one of ["smartengage"]
diff --git a/docs/resources/source_smartsheets.md b/docs/resources/source_smartsheets.md
index ecdad7c4a..8c10cf284 100644
--- a/docs/resources/source_smartsheets.md
+++ b/docs/resources/source_smartsheets.md
@@ -18,19 +18,17 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" {
credentials = {
source_smartsheets_authorization_method_api_access_token = {
access_token = "...my_access_token..."
- auth_type = "access_token"
}
}
metadata_fields = [
- "row_access_level",
+ "sheetmodifiedAt",
]
- source_type = "smartsheets"
spreadsheet_id = "...my_spreadsheet_id..."
start_datetime = "2000-01-01T13:00:00-07:00"
}
- name = "Joann Bechtelar Jr."
+ name = "Beatrice Denesik"
secret_id = "...my_secret_id..."
- workspace_id = "e966ec73-6d43-4194-b98c-783c92398ed3"
+ workspace_id = "fdff2deb-8cbf-4267-8a92-033b17bfcc52"
}
```
@@ -58,7 +56,6 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["smartsheets"]
- `spreadsheet_id` (String) The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties
Optional:
@@ -83,10 +80,6 @@ Required:
- `access_token` (String) The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_smartsheets_authorization_method_o_auth2_0`
@@ -99,10 +92,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_smartsheets_update_authorization_method_api_access_token`
@@ -111,10 +100,6 @@ Required:
- `access_token` (String) The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_smartsheets_update_authorization_method_o_auth2_0`
@@ -127,8 +112,4 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
diff --git a/docs/resources/source_snapchat_marketing.md b/docs/resources/source_snapchat_marketing.md
index 058f57af5..c87283aa3 100644
--- a/docs/resources/source_snapchat_marketing.md
+++ b/docs/resources/source_snapchat_marketing.md
@@ -19,12 +19,11 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" {
client_secret = "...my_client_secret..."
end_date = "2022-01-30"
refresh_token = "...my_refresh_token..."
- source_type = "snapchat-marketing"
start_date = "2022-01-01"
}
- name = "Chelsea Ortiz"
+ name = "Ernestine Parker Sr."
secret_id = "...my_secret_id..."
- workspace_id = "5ca8649a-70cf-4d5d-a989-b7206451077d"
+ workspace_id = "fb0fc527-30b3-4999-8a41-e4a8985c78fa"
}
```
@@ -54,7 +53,6 @@ Required:
- `client_id` (String) The Client ID of your Snapchat developer application.
- `client_secret` (String) The Client Secret of your Snapchat developer application.
- `refresh_token` (String) Refresh Token to renew the expired Access Token.
-- `source_type` (String) must be one of ["snapchat-marketing"]
Optional:
diff --git a/docs/resources/source_snowflake.md b/docs/resources/source_snowflake.md
index e2189edc1..e1d33ed4d 100644
--- a/docs/resources/source_snowflake.md
+++ b/docs/resources/source_snowflake.md
@@ -18,7 +18,6 @@ resource "airbyte_source_snowflake" "my_source_snowflake" {
credentials = {
source_snowflake_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "OAuth"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -29,12 +28,11 @@ resource "airbyte_source_snowflake" "my_source_snowflake" {
jdbc_url_params = "...my_jdbc_url_params..."
role = "AIRBYTE_ROLE"
schema = "AIRBYTE_SCHEMA"
- source_type = "snowflake"
warehouse = "AIRBYTE_WAREHOUSE"
}
- name = "Katrina Tillman"
+ name = "Lynette Luettgen"
secret_id = "...my_secret_id..."
- workspace_id = "3d492ed1-4b8a-42c1-9545-45e955dcc185"
+ workspace_id = "df5bf91a-cb12-4108-b728-d89e351e868d"
}
```
@@ -64,7 +62,6 @@ Required:
- `database` (String) The database you created for Airbyte to access data.
- `host` (String) The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com).
- `role` (String) The role you created for Airbyte to access Snowflake.
-- `source_type` (String) must be one of ["snowflake"]
- `warehouse` (String) The warehouse you created for Airbyte to access data.
Optional:
@@ -88,7 +85,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Client ID of your Snowflake developer application.
- `client_secret` (String) The Client Secret of your Snowflake developer application.
@@ -103,7 +99,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["username/password"]
- `password` (String) The password associated with the username.
- `username` (String) The username you created to allow Airbyte to access the database.
@@ -113,7 +108,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Client ID of your Snowflake developer application.
- `client_secret` (String) The Client Secret of your Snowflake developer application.
@@ -128,7 +122,6 @@ Optional:
Required:
-- `auth_type` (String) must be one of ["username/password"]
- `password` (String) The password associated with the username.
- `username` (String) The username you created to allow Airbyte to access the database.
diff --git a/docs/resources/source_sonar_cloud.md b/docs/resources/source_sonar_cloud.md
index 4ef4699fa..4e71ab66a 100644
--- a/docs/resources/source_sonar_cloud.md
+++ b/docs/resources/source_sonar_cloud.md
@@ -20,13 +20,12 @@ resource "airbyte_source_sonar_cloud" "my_source_sonarcloud" {
]
end_date = "YYYY-MM-DD"
organization = "airbyte"
- source_type = "sonar-cloud"
start_date = "YYYY-MM-DD"
user_token = "...my_user_token..."
}
- name = "Mildred Rosenbaum"
+ name = "Wesley Paucek"
secret_id = "...my_secret_id..."
- workspace_id = "43ad2daa-784a-4ba3-9230-edf73811a115"
+ workspace_id = "4a46153e-b240-4d62-ad48-87ccaaf58e0f"
}
```
@@ -55,7 +54,6 @@ Required:
- `component_keys` (List of String) Comma-separated list of component keys.
- `organization` (String) Organization key. See here.
-- `source_type` (String) must be one of ["sonar-cloud"]
- `user_token` (String) Your User Token. See here. The token is case sensitive.
Optional:
diff --git a/docs/resources/source_spacex_api.md b/docs/resources/source_spacex_api.md
index 4fa19f065..32fef7c59 100644
--- a/docs/resources/source_spacex_api.md
+++ b/docs/resources/source_spacex_api.md
@@ -15,13 +15,12 @@ SourceSpacexAPI Resource
```terraform
resource "airbyte_source_spacex_api" "my_source_spacexapi" {
configuration = {
- id = "382bd7ed-5650-4762-9c58-f4d7396564c2"
- options = "...my_options..."
- source_type = "spacex-api"
+ id = "5c1159d6-0149-4910-aecf-c7f384ec6040"
+ options = "...my_options..."
}
- name = "Lee Batz Jr."
+ name = "Mrs. Marian Stanton"
secret_id = "...my_secret_id..."
- workspace_id = "a961d24a-7dbb-48f5-b2d8-92cf7812cb51"
+ workspace_id = "1918db5c-ccbb-4bdb-b119-64f99d67745a"
}
```
@@ -50,6 +49,5 @@ Optional:
- `id` (String)
- `options` (String)
-- `source_type` (String) must be one of ["spacex-api"]
diff --git a/docs/resources/source_square.md b/docs/resources/source_square.md
index ff8865d50..3d3a8f94e 100644
--- a/docs/resources/source_square.md
+++ b/docs/resources/source_square.md
@@ -17,18 +17,16 @@ resource "airbyte_source_square" "my_source_square" {
configuration = {
credentials = {
source_square_authentication_api_key = {
- api_key = "...my_api_key..."
- auth_type = "API Key"
+ api_key = "...my_api_key..."
}
}
- include_deleted_objects = true
+ include_deleted_objects = false
is_sandbox = false
- source_type = "square"
- start_date = "2022-02-01"
+ start_date = "2022-08-24"
}
- name = "Miss Bruce Gibson"
+ name = "Mr. Willie Kris"
secret_id = "...my_secret_id..."
- workspace_id = "548f88f8-f1bf-40bc-8e1f-206d5d831d00"
+ workspace_id = "d7a7ec19-1626-447e-a80e-4417c6f4b509"
}
```
@@ -53,15 +51,11 @@ resource "airbyte_source_square" "my_source_square" {
### Nested Schema for `configuration`
-Required:
-
-- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
-- `source_type` (String) must be one of ["square"]
-
Optional:
- `credentials` (Attributes) Choose how to authenticate to Square. (see [below for nested schema](#nestedatt--configuration--credentials))
- `include_deleted_objects` (Boolean) In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes)
+- `is_sandbox` (Boolean) Determines whether to use the sandbox or production environment.
- `start_date` (String) UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated.
@@ -80,7 +74,6 @@ Optional:
Required:
- `api_key` (String) The API key for a Square application
-- `auth_type` (String) must be one of ["API Key"]
@@ -88,7 +81,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Square-issued ID of your application
- `client_secret` (String) The Square-issued application secret for your application
- `refresh_token` (String) A refresh token generated using the above client ID and secret
@@ -100,7 +92,6 @@ Required:
Required:
- `api_key` (String) The API key for a Square application
-- `auth_type` (String) must be one of ["API Key"]
@@ -108,7 +99,6 @@ Required:
Required:
-- `auth_type` (String) must be one of ["OAuth"]
- `client_id` (String) The Square-issued ID of your application
- `client_secret` (String) The Square-issued application secret for your application
- `refresh_token` (String) A refresh token generated using the above client ID and secret
diff --git a/docs/resources/source_strava.md b/docs/resources/source_strava.md
index 0c6532b7e..54c5b074f 100644
--- a/docs/resources/source_strava.md
+++ b/docs/resources/source_strava.md
@@ -16,16 +16,14 @@ SourceStrava Resource
resource "airbyte_source_strava" "my_source_strava" {
configuration = {
athlete_id = 17831421
- auth_type = "Client"
client_id = "12345"
client_secret = "fc6243f283e51f6ca989aab298b17da125496f50"
refresh_token = "fc6243f283e51f6ca989aab298b17da125496f50"
- source_type = "strava"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Jeffrey Wintheiser"
+ name = "Vanessa Murray"
secret_id = "...my_secret_id..."
- workspace_id = "06673f3a-681c-4576-8dce-742409a215e0"
+ workspace_id = "043ef09e-61b7-45b7-a676-5eab1ad84295"
}
```
@@ -56,11 +54,6 @@ Required:
- `client_id` (String) The Client ID of your Strava developer application.
- `client_secret` (String) The Client Secret of your Strava developer application.
- `refresh_token` (String) The Refresh Token with the activity: read_all permissions.
-- `source_type` (String) must be one of ["strava"]
- `start_date` (String) UTC date and time. Any data before this date will not be replicated.
-Optional:
-
-- `auth_type` (String) must be one of ["Client"]
-
diff --git a/docs/resources/source_stripe.md b/docs/resources/source_stripe.md
index 78a2b3f52..41b24dc6a 100644
--- a/docs/resources/source_stripe.md
+++ b/docs/resources/source_stripe.md
@@ -17,14 +17,13 @@ resource "airbyte_source_stripe" "my_source_stripe" {
configuration = {
account_id = "...my_account_id..."
client_secret = "...my_client_secret..."
- lookback_window_days = 5
- slice_range = 10
- source_type = "stripe"
+ lookback_window_days = 3
+ slice_range = 180
start_date = "2017-01-25T00:00:00Z"
}
- name = "Seth Nitzsche"
+ name = "Kerry Smitham"
secret_id = "...my_secret_id..."
- workspace_id = "63e3af3d-d9dd-4a33-9cd6-3483e4a7a98e"
+ workspace_id = "b93f80b7-f557-4094-a97b-6356d5339163"
}
```
@@ -53,7 +52,6 @@ Required:
- `account_id` (String) Your Stripe account ID (starts with 'acct_', find yours here).
- `client_secret` (String) Stripe API key (usually starts with 'sk_live_'; find yours here).
-- `source_type` (String) must be one of ["stripe"]
Optional:
diff --git a/docs/resources/source_survey_sparrow.md b/docs/resources/source_survey_sparrow.md
index 4b759c695..2ccb7f214 100644
--- a/docs/resources/source_survey_sparrow.md
+++ b/docs/resources/source_survey_sparrow.md
@@ -17,18 +17,15 @@ resource "airbyte_source_survey_sparrow" "my_source_surveysparrow" {
configuration = {
access_token = "...my_access_token..."
region = {
- source_survey_sparrow_base_url_eu_based_account = {
- url_base = "https://eu-api.surveysparrow.com/v3"
- }
+ source_survey_sparrow_base_url_eu_based_account = {}
}
- source_type = "survey-sparrow"
survey_id = [
"{ \"see\": \"documentation\" }",
]
}
- name = "Hugo Kovacek"
+ name = "Jermaine White"
secret_id = "...my_secret_id..."
- workspace_id = "f02449d8-6f4b-4b20-be5d-911cbfe749ca"
+ workspace_id = "253a66e5-ad39-4192-9314-c65ed70eb17c"
}
```
@@ -56,7 +53,6 @@ resource "airbyte_source_survey_sparrow" "my_source_surveysparrow" {
Required:
- `access_token` (String) Your access token. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["survey-sparrow"]
Optional:
@@ -76,32 +72,16 @@ Optional:
### Nested Schema for `configuration.region.source_survey_sparrow_base_url_eu_based_account`
-Optional:
-
-- `url_base` (String) must be one of ["https://eu-api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_base_url_global_account`
-Optional:
-
-- `url_base` (String) must be one of ["https://api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_update_base_url_eu_based_account`
-Optional:
-
-- `url_base` (String) must be one of ["https://eu-api.surveysparrow.com/v3"]
-
### Nested Schema for `configuration.region.source_survey_sparrow_update_base_url_global_account`
-Optional:
-
-- `url_base` (String) must be one of ["https://api.surveysparrow.com/v3"]
-
diff --git a/docs/resources/source_surveymonkey.md b/docs/resources/source_surveymonkey.md
index 3d3fd7a8b..4d91f11d3 100644
--- a/docs/resources/source_surveymonkey.md
+++ b/docs/resources/source_surveymonkey.md
@@ -17,20 +17,18 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" {
configuration = {
credentials = {
access_token = "...my_access_token..."
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
}
- origin = "USA"
- source_type = "surveymonkey"
- start_date = "2021-01-01T00:00:00Z"
+ origin = "USA"
+ start_date = "2021-01-01T00:00:00Z"
survey_ids = [
"...",
]
}
- name = "Pearl Trantow"
+ name = "Jeannie Blick PhD"
secret_id = "...my_secret_id..."
- workspace_id = "b8955d41-3e13-4a48-a310-907bd354c092"
+ workspace_id = "4fbef253-f33a-4c13-9dc9-0f63794a97d5"
}
```
@@ -57,7 +55,6 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" {
Required:
-- `source_type` (String) must be one of ["surveymonkey"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
Optional:
@@ -73,7 +70,6 @@ Depending on the originating datacenter of the SurveyMonkey account, the API acc
Required:
- `access_token` (String) Access Token for making authenticated requests. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["oauth2.0"]
Optional:
diff --git a/docs/resources/source_tempo.md b/docs/resources/source_tempo.md
index cf95bc67f..43f5f5e63 100644
--- a/docs/resources/source_tempo.md
+++ b/docs/resources/source_tempo.md
@@ -15,12 +15,11 @@ SourceTempo Resource
```terraform
resource "airbyte_source_tempo" "my_source_tempo" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "tempo"
+ api_token = "...my_api_token..."
}
- name = "Edwin Haley"
+ name = "Barry Wiegand"
secret_id = "...my_secret_id..."
- workspace_id = "7f69e2c9-e6d1-40e9-9b3a-d4c6b03108d9"
+ workspace_id = "4002ca0d-0171-41f2-9a28-dde04a9ce3be"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_tempo" "my_source_tempo" {
Required:
- `api_token` (String) Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.
-- `source_type` (String) must be one of ["tempo"]
diff --git a/docs/resources/source_the_guardian_api.md b/docs/resources/source_the_guardian_api.md
index 15c04bafb..f421ccc0f 100644
--- a/docs/resources/source_the_guardian_api.md
+++ b/docs/resources/source_the_guardian_api.md
@@ -15,17 +15,16 @@ SourceTheGuardianAPI Resource
```terraform
resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "YYYY-MM-DD"
- query = "political"
- section = "media"
- source_type = "the-guardian-api"
- start_date = "YYYY-MM-DD"
- tag = "environment/recycling"
+ api_key = "...my_api_key..."
+ end_date = "YYYY-MM-DD"
+ query = "environment AND political"
+ section = "technology"
+ start_date = "YYYY-MM-DD"
+ tag = "environment/energyefficiency"
}
- name = "Pauline Kozey IV"
+ name = "Grant Gerhold I"
secret_id = "...my_secret_id..."
- workspace_id = "2b94f2ab-1fd5-4671-a9c3-26350a467143"
+ workspace_id = "7442775e-d080-474e-97a6-4885711ab94f"
}
```
@@ -53,7 +52,6 @@ resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" {
Required:
- `api_key` (String) Your API Key. See here. The key is case sensitive.
-- `source_type` (String) must be one of ["the-guardian-api"]
- `start_date` (String) Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown.
Optional:
diff --git a/docs/resources/source_tiktok_marketing.md b/docs/resources/source_tiktok_marketing.md
index 3929518fe..27767d2f1 100644
--- a/docs/resources/source_tiktok_marketing.md
+++ b/docs/resources/source_tiktok_marketing.md
@@ -15,24 +15,22 @@ SourceTiktokMarketing Resource
```terraform
resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" {
configuration = {
- attribution_window = 5
+ attribution_window = 9
credentials = {
source_tiktok_marketing_authentication_method_o_auth2_0 = {
access_token = "...my_access_token..."
advertiser_id = "...my_advertiser_id..."
app_id = "...my_app_id..."
- auth_type = "oauth2.0"
secret = "...my_secret..."
}
}
- end_date = "2021-10-08"
+ end_date = "2022-08-29"
include_deleted = false
- source_type = "tiktok-marketing"
- start_date = "2022-12-21"
+ start_date = "2022-12-05"
}
- name = "Mrs. Joey Mueller"
+ name = "Ms. Eloise Anderson"
secret_id = "...my_secret_id..."
- workspace_id = "4d93a74c-0252-4fe3-b4b4-db8b778ebb6e"
+ workspace_id = "7793827c-06dd-486b-8fbd-e6ae53955108"
}
```
@@ -63,7 +61,6 @@ Optional:
- `credentials` (Attributes) Authentication method (see [below for nested schema](#nestedatt--configuration--credentials))
- `end_date` (String) The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date.
- `include_deleted` (Boolean) Set to active if you want to include deleted data in reports.
-- `source_type` (String) must be one of ["tiktok-marketing"]
- `start_date` (String) The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated.
@@ -88,7 +85,6 @@ Required:
Optional:
- `advertiser_id` (String) The Advertiser ID to filter reports and streams. Let this empty to retrieve all.
-- `auth_type` (String) must be one of ["oauth2.0"]
@@ -99,10 +95,6 @@ Required:
- `access_token` (String) The long-term authorized access token.
- `advertiser_id` (String) The Advertiser ID which generated for the developer's Sandbox application.
-Optional:
-
-- `auth_type` (String) must be one of ["sandbox_access_token"]
-
### Nested Schema for `configuration.credentials.source_tiktok_marketing_update_authentication_method_o_auth2_0`
@@ -116,7 +108,6 @@ Required:
Optional:
- `advertiser_id` (String) The Advertiser ID to filter reports and streams. Let this empty to retrieve all.
-- `auth_type` (String) must be one of ["oauth2.0"]
@@ -127,8 +118,4 @@ Required:
- `access_token` (String) The long-term authorized access token.
- `advertiser_id` (String) The Advertiser ID which generated for the developer's Sandbox application.
-Optional:
-
-- `auth_type` (String) must be one of ["sandbox_access_token"]
-
diff --git a/docs/resources/source_todoist.md b/docs/resources/source_todoist.md
index a9ec4940e..45f48f837 100644
--- a/docs/resources/source_todoist.md
+++ b/docs/resources/source_todoist.md
@@ -15,12 +15,11 @@ SourceTodoist Resource
```terraform
resource "airbyte_source_todoist" "my_source_todoist" {
configuration = {
- source_type = "todoist"
- token = "...my_token..."
+ token = "...my_token..."
}
- name = "Hope Collins"
+ name = "Sammy Lemke"
secret_id = "...my_secret_id..."
- workspace_id = "502bafb2-cbc4-4635-95e6-5da028c3e951"
+ workspace_id = "8fddacae-8261-4af8-b9bb-4850d654be1e"
}
```
@@ -47,7 +46,6 @@ resource "airbyte_source_todoist" "my_source_todoist" {
Required:
-- `source_type` (String) must be one of ["todoist"]
- `token` (String) Your API Token. See here. The token is case sensitive.
diff --git a/docs/resources/source_trello.md b/docs/resources/source_trello.md
index 73e81dbc3..dcba6b53d 100644
--- a/docs/resources/source_trello.md
+++ b/docs/resources/source_trello.md
@@ -18,14 +18,13 @@ resource "airbyte_source_trello" "my_source_trello" {
board_ids = [
"...",
]
- key = "...my_key..."
- source_type = "trello"
- start_date = "2021-03-01T00:00:00Z"
- token = "...my_token..."
+ key = "...my_key..."
+ start_date = "2021-03-01T00:00:00Z"
+ token = "...my_token..."
}
- name = "Philip Armstrong"
+ name = "Mercedes Turcotte"
secret_id = "...my_secret_id..."
- workspace_id = "a966489d-7b78-4673-a13a-12a6b9924945"
+ workspace_id = "327e7787-5126-4eb5-a944-312d5d5e6a2d"
}
```
@@ -53,7 +52,6 @@ resource "airbyte_source_trello" "my_source_trello" {
Required:
- `key` (String) Trello API key. See the docs for instructions on how to generate it.
-- `source_type` (String) must be one of ["trello"]
- `start_date` (String) UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- `token` (String) Trello API token. See the docs for instructions on how to generate it.
diff --git a/docs/resources/source_trustpilot.md b/docs/resources/source_trustpilot.md
index 6187d6e0e..fb06dfb8f 100644
--- a/docs/resources/source_trustpilot.md
+++ b/docs/resources/source_trustpilot.md
@@ -20,16 +20,14 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" {
]
credentials = {
source_trustpilot_authorization_method_api_key = {
- auth_type = "apikey"
client_id = "...my_client_id..."
}
}
- source_type = "trustpilot"
- start_date = "%Y-%m-%dT%H:%M:%S"
+ start_date = "%Y-%m-%dT%H:%M:%S"
}
- name = "Bradley Goodwin"
+ name = "Miss Tony Schimmel"
secret_id = "...my_secret_id..."
- workspace_id = "f5c84383-6b86-4b3c-9f64-15b0449f9df1"
+ workspace_id = "98dd5412-2565-4139-b61b-0488926ab9cf"
}
```
@@ -58,7 +56,6 @@ Required:
- `business_units` (List of String) The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration.
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["trustpilot"]
- `start_date` (String) For streams with sync. method incremental the start date time to be used
@@ -78,10 +75,6 @@ Required:
- `client_id` (String) The API key of the Trustpilot API application.
-Optional:
-
-- `auth_type` (String) must be one of ["apikey"]
-
### Nested Schema for `configuration.credentials.source_trustpilot_authorization_method_o_auth_2_0`
@@ -94,10 +87,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_trustpilot_update_authorization_method_api_key`
@@ -106,10 +95,6 @@ Required:
- `client_id` (String) The API key of the Trustpilot API application.
-Optional:
-
-- `auth_type` (String) must be one of ["apikey"]
-
### Nested Schema for `configuration.credentials.source_trustpilot_update_authorization_method_o_auth_2_0`
@@ -122,8 +107,4 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
diff --git a/docs/resources/source_tvmaze_schedule.md b/docs/resources/source_tvmaze_schedule.md
index 8c7e0937d..84da2c0c3 100644
--- a/docs/resources/source_tvmaze_schedule.md
+++ b/docs/resources/source_tvmaze_schedule.md
@@ -15,15 +15,14 @@ SourceTvmazeSchedule Resource
```terraform
resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" {
configuration = {
- domestic_schedule_country_code = "US"
+ domestic_schedule_country_code = "GB"
end_date = "...my_end_date..."
- source_type = "tvmaze-schedule"
start_date = "...my_start_date..."
- web_schedule_country_code = "global"
+ web_schedule_country_code = "US"
}
- name = "Gretchen Waters"
+ name = "Willard Hand"
secret_id = "...my_secret_id..."
- workspace_id = "e78bf606-8258-494e-a763-d5c72795b785"
+ workspace_id = "cc9acc6e-7e95-4c9a-bc9f-197511d62479"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" {
Required:
- `domestic_schedule_country_code` (String) Country code for domestic TV schedule retrieval.
-- `source_type` (String) must be one of ["tvmaze-schedule"]
- `start_date` (String) Start date for TV schedule retrieval. May be in the future.
Optional:
diff --git a/docs/resources/source_twilio.md b/docs/resources/source_twilio.md
index e4b40a3ad..3f0e3272a 100644
--- a/docs/resources/source_twilio.md
+++ b/docs/resources/source_twilio.md
@@ -18,12 +18,11 @@ resource "airbyte_source_twilio" "my_source_twilio" {
account_sid = "...my_account_sid..."
auth_token = "...my_auth_token..."
lookback_window = 60
- source_type = "twilio"
start_date = "2020-10-01T00:00:00Z"
}
- name = "Andre Sporer"
+ name = "Deborah Mante Jr."
secret_id = "...my_secret_id..."
- workspace_id = "9e5635b3-3bc0-4f97-8c42-fc9f4844225e"
+ workspace_id = "1aad5e5f-9cfb-40d1-a8d3-acce90aeed10"
}
```
@@ -52,7 +51,6 @@ Required:
- `account_sid` (String) Twilio account SID
- `auth_token` (String) Twilio Auth Token.
-- `source_type` (String) must be one of ["twilio"]
- `start_date` (String) UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated.
Optional:
diff --git a/docs/resources/source_twilio_taskrouter.md b/docs/resources/source_twilio_taskrouter.md
index a0dddb445..55e2c117a 100644
--- a/docs/resources/source_twilio_taskrouter.md
+++ b/docs/resources/source_twilio_taskrouter.md
@@ -17,11 +17,10 @@ resource "airbyte_source_twilio_taskrouter" "my_source_twiliotaskrouter" {
configuration = {
account_sid = "...my_account_sid..."
auth_token = "...my_auth_token..."
- source_type = "twilio-taskrouter"
}
- name = "Cathy Ratke"
+ name = "Erik Prohaska"
secret_id = "...my_secret_id..."
- workspace_id = "6065c0ef-a6f9-43b9-8a1b-8c95be1254b7"
+ workspace_id = "82d54ce5-98cc-459e-b952-f06231c57fd8"
}
```
@@ -50,6 +49,5 @@ Required:
- `account_sid` (String) Twilio Account ID
- `auth_token` (String) Twilio Auth Token
-- `source_type` (String) must be one of ["twilio-taskrouter"]
diff --git a/docs/resources/source_twitter.md b/docs/resources/source_twitter.md
index 00876aa99..f4abf466b 100644
--- a/docs/resources/source_twitter.md
+++ b/docs/resources/source_twitter.md
@@ -15,15 +15,14 @@ SourceTwitter Resource
```terraform
resource "airbyte_source_twitter" "my_source_twitter" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "2022-05-29T22:05:47.839Z"
- query = "...my_query..."
- source_type = "twitter"
- start_date = "2022-02-11T15:55:53.597Z"
+ api_key = "...my_api_key..."
+ end_date = "2021-02-28T18:28:03.001Z"
+ query = "...my_query..."
+ start_date = "2022-09-02T14:26:59.436Z"
}
- name = "Elbert Kuhic"
+ name = "Ernesto Pacocha"
secret_id = "...my_secret_id..."
- workspace_id = "10d1f655-8c99-4c72-ad2b-c0f94087d9ca"
+ workspace_id = "e05b1e50-c144-468d-a31c-dd98f81edeee"
}
```
@@ -52,7 +51,6 @@ Required:
- `api_key` (String) App only Bearer Token. See the docs for more information on how to obtain this token.
- `query` (String) Query for matching Tweets. You can learn how to build this query by reading build a query guide .
-- `source_type` (String) must be one of ["twitter"]
Optional:
diff --git a/docs/resources/source_typeform.md b/docs/resources/source_typeform.md
index 0f4c59a15..c3a7a041c 100644
--- a/docs/resources/source_typeform.md
+++ b/docs/resources/source_typeform.md
@@ -18,22 +18,20 @@ resource "airbyte_source_typeform" "my_source_typeform" {
credentials = {
source_typeform_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-02-23T09:05:08.511Z"
+ token_expiry_date = "2022-04-17T02:08:52.624Z"
}
}
form_ids = [
"...",
]
- source_type = "typeform"
- start_date = "2021-03-01T00:00:00Z"
+ start_date = "2021-03-01T00:00:00Z"
}
- name = "Rosemarie Spencer"
+ name = "Kelly Davis"
secret_id = "...my_secret_id..."
- workspace_id = "aac9b4ca-a1cf-4e9e-95df-903907f37831"
+ workspace_id = "eaf419bc-59e0-44a8-a9e9-d149f3b04e32"
}
```
@@ -61,7 +59,6 @@ resource "airbyte_source_typeform" "my_source_typeform" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["typeform"]
Optional:
@@ -89,10 +86,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_typeform_authorization_method_private_token`
@@ -101,10 +94,6 @@ Required:
- `access_token` (String) Log into your Typeform account and then generate a personal Access Token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
### Nested Schema for `configuration.credentials.source_typeform_update_authorization_method_o_auth2_0`
@@ -117,10 +106,6 @@ Required:
- `refresh_token` (String) The key to refresh the expired access_token.
- `token_expiry_date` (String) The date-time when the access token should be refreshed.
-Optional:
-
-- `auth_type` (String) must be one of ["oauth2.0"]
-
### Nested Schema for `configuration.credentials.source_typeform_update_authorization_method_private_token`
@@ -129,8 +114,4 @@ Required:
- `access_token` (String) Log into your Typeform account and then generate a personal Access Token.
-Optional:
-
-- `auth_type` (String) must be one of ["access_token"]
-
diff --git a/docs/resources/source_us_census.md b/docs/resources/source_us_census.md
index 3a3f1131b..a2217a6bd 100644
--- a/docs/resources/source_us_census.md
+++ b/docs/resources/source_us_census.md
@@ -17,12 +17,11 @@ resource "airbyte_source_us_census" "my_source_uscensus" {
configuration = {
api_key = "...my_api_key..."
query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*"
- query_path = "data/2018/acs"
- source_type = "us-census"
+ query_path = "data/timeseries/healthins/sahie"
}
- name = "Ginger Gislason"
+ name = "Eleanor Mraz"
secret_id = "...my_secret_id..."
- workspace_id = "54a85466-597c-4502-b3c1-471d51aaa6dd"
+ workspace_id = "bc8e2c7d-0de0-4f8a-ab57-adde20e75111"
}
```
@@ -51,7 +50,6 @@ Required:
- `api_key` (String) Your API Key. Get your key here.
- `query_path` (String) The path portion of the GET request
-- `source_type` (String) must be one of ["us-census"]
Optional:
diff --git a/docs/resources/source_vantage.md b/docs/resources/source_vantage.md
index fcbfd4b8a..909f3fc2d 100644
--- a/docs/resources/source_vantage.md
+++ b/docs/resources/source_vantage.md
@@ -16,11 +16,10 @@ SourceVantage Resource
resource "airbyte_source_vantage" "my_source_vantage" {
configuration = {
access_token = "...my_access_token..."
- source_type = "vantage"
}
- name = "Corey Pacocha"
+ name = "Ismael Becker Sr."
secret_id = "...my_secret_id..."
- workspace_id = "6487c5fc-2b86-42a0-8bef-69e100157630"
+ workspace_id = "ffd3df11-978b-4385-957e-3c921cc9284a"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_vantage" "my_source_vantage" {
Required:
- `access_token` (String) Your API Access token. See here.
-- `source_type` (String) must be one of ["vantage"]
diff --git a/docs/resources/source_webflow.md b/docs/resources/source_webflow.md
index 929ea88bc..92f7f4315 100644
--- a/docs/resources/source_webflow.md
+++ b/docs/resources/source_webflow.md
@@ -15,13 +15,12 @@ SourceWebflow Resource
```terraform
resource "airbyte_source_webflow" "my_source_webflow" {
configuration = {
- api_key = "a very long hex sequence"
- site_id = "a relatively long hex sequence"
- source_type = "webflow"
+ api_key = "a very long hex sequence"
+ site_id = "a relatively long hex sequence"
}
- name = "Taylor Paucek"
+ name = "Kathleen Bins"
secret_id = "...my_secret_id..."
- workspace_id = "fded84a3-5a41-4238-a1a7-35ac26ae33be"
+ workspace_id = "c5491060-9be9-4a98-8e4b-07bcaf13ed56"
}
```
@@ -50,6 +49,5 @@ Required:
- `api_key` (String) The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api
- `site_id` (String) The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites
-- `source_type` (String) must be one of ["webflow"]
diff --git a/docs/resources/source_whisky_hunter.md b/docs/resources/source_whisky_hunter.md
index f78b5ecad..d47bf7701 100644
--- a/docs/resources/source_whisky_hunter.md
+++ b/docs/resources/source_whisky_hunter.md
@@ -14,12 +14,10 @@ SourceWhiskyHunter Resource
```terraform
resource "airbyte_source_whisky_hunter" "my_source_whiskyhunter" {
- configuration = {
- source_type = "whisky-hunter"
- }
- name = "Miss Terrence Kulas"
- secret_id = "...my_secret_id..."
- workspace_id = "f46bca11-06fe-4965-b711-d08cf88ec9f7"
+ configuration = {}
+ name = "Loretta Nikolaus"
+ secret_id = "...my_secret_id..."
+ workspace_id = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1"
}
```
@@ -44,8 +42,4 @@ resource "airbyte_source_whisky_hunter" "my_source_whiskyhunter" {
### Nested Schema for `configuration`
-Optional:
-
-- `source_type` (String) must be one of ["whisky-hunter"]
-
diff --git a/docs/resources/source_wikipedia_pageviews.md b/docs/resources/source_wikipedia_pageviews.md
index fb8f9d007..294fef95f 100644
--- a/docs/resources/source_wikipedia_pageviews.md
+++ b/docs/resources/source_wikipedia_pageviews.md
@@ -15,18 +15,17 @@ SourceWikipediaPageviews Resource
```terraform
resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" {
configuration = {
- access = "mobile-app"
- agent = "spider"
- article = "Are_You_the_One%3F"
- country = "IN"
- end = "...my_end..."
- project = "www.mediawiki.org"
- source_type = "wikipedia-pageviews"
- start = "...my_start..."
+ access = "mobile-app"
+ agent = "automated"
+ article = "Are_You_the_One%3F"
+ country = "IN"
+ end = "...my_end..."
+ project = "en.wikipedia.org"
+ start = "...my_start..."
}
- name = "Laura Murray"
+ name = "Blanca West"
secret_id = "...my_secret_id..."
- workspace_id = "6ed333bb-0ce8-4aa6-9432-a986eb7e14ca"
+ workspace_id = "22849b58-5759-4fd7-9d74-aa20ea69f1b1"
}
```
@@ -59,7 +58,6 @@ Required:
- `country` (String) The ISO 3166-1 alpha-2 code of a country for which to retrieve top articles.
- `end` (String) The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format.
- `project` (String) If you want to filter by project, use the domain of any Wikimedia project.
-- `source_type` (String) must be one of ["wikipedia-pageviews"]
- `start` (String) The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.
diff --git a/docs/resources/source_woocommerce.md b/docs/resources/source_woocommerce.md
index 6affe5809..fc7f9a552 100644
--- a/docs/resources/source_woocommerce.md
+++ b/docs/resources/source_woocommerce.md
@@ -15,15 +15,14 @@ SourceWoocommerce Resource
```terraform
resource "airbyte_source_woocommerce" "my_source_woocommerce" {
configuration = {
- api_key = "...my_api_key..."
- api_secret = "...my_api_secret..."
- shop = "...my_shop..."
- source_type = "woocommerce"
- start_date = "2021-01-01"
+ api_key = "...my_api_key..."
+ api_secret = "...my_api_secret..."
+ shop = "...my_shop..."
+ start_date = "2021-01-01"
}
- name = "Laura Lindgren III"
+ name = "Regina Skiles MD"
secret_id = "...my_secret_id..."
- workspace_id = "0097019a-48f8-48ec-a7bf-904e01105d38"
+ workspace_id = "5a0295b1-97bb-4b02-a7d6-25c3155f731c"
}
```
@@ -53,7 +52,6 @@ Required:
- `api_key` (String) Customer Key for API in WooCommerce shop
- `api_secret` (String) Customer Secret for API in WooCommerce shop
- `shop` (String) The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'.
-- `source_type` (String) must be one of ["woocommerce"]
- `start_date` (String) The date you would like to replicate data from. Format: YYYY-MM-DD
diff --git a/docs/resources/source_xero.md b/docs/resources/source_xero.md
index 4026095cf..6315e8975 100644
--- a/docs/resources/source_xero.md
+++ b/docs/resources/source_xero.md
@@ -22,13 +22,12 @@ resource "airbyte_source_xero" "my_source_xero" {
refresh_token = "...my_refresh_token..."
token_expiry_date = "...my_token_expiry_date..."
}
- source_type = "xero"
- start_date = "2022-03-01T00:00:00Z"
- tenant_id = "...my_tenant_id..."
+ start_date = "2022-03-01T00:00:00Z"
+ tenant_id = "...my_tenant_id..."
}
- name = "Roger Hudson"
+ name = "Miss Patty Schimmel"
secret_id = "...my_secret_id..."
- workspace_id = "6beb68a0-f657-4b7d-83a1-480f8de30f06"
+ workspace_id = "f166aee7-8925-4477-b387-c53022ba4aed"
}
```
@@ -56,7 +55,6 @@ resource "airbyte_source_xero" "my_source_xero" {
Required:
- `authentication` (Attributes) (see [below for nested schema](#nestedatt--configuration--authentication))
-- `source_type` (String) must be one of ["xero"]
- `start_date` (String) UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ. Any data with created_at before this data will not be synced.
- `tenant_id` (String) Enter your Xero organization's Tenant ID
diff --git a/docs/resources/source_xkcd.md b/docs/resources/source_xkcd.md
index 521fbe492..4e3471632 100644
--- a/docs/resources/source_xkcd.md
+++ b/docs/resources/source_xkcd.md
@@ -14,12 +14,10 @@ SourceXkcd Resource
```terraform
resource "airbyte_source_xkcd" "my_source_xkcd" {
- configuration = {
- source_type = "xkcd"
- }
- name = "Mr. Laurence Littel"
- secret_id = "...my_secret_id..."
- workspace_id = "18d97e15-2297-4510-9a80-312292cc61c2"
+ configuration = {}
+ name = "Violet Marquardt"
+ secret_id = "...my_secret_id..."
+ workspace_id = "663b6d13-c6e3-4bbb-93bd-413d75c6693a"
}
```
@@ -44,8 +42,4 @@ resource "airbyte_source_xkcd" "my_source_xkcd" {
### Nested Schema for `configuration`
-Optional:
-
-- `source_type` (String) must be one of ["xkcd"]
-
diff --git a/docs/resources/source_yandex_metrica.md b/docs/resources/source_yandex_metrica.md
index c51ceb07f..cd4f96059 100644
--- a/docs/resources/source_yandex_metrica.md
+++ b/docs/resources/source_yandex_metrica.md
@@ -15,15 +15,14 @@ SourceYandexMetrica Resource
```terraform
resource "airbyte_source_yandex_metrica" "my_source_yandexmetrica" {
configuration = {
- auth_token = "...my_auth_token..."
- counter_id = "...my_counter_id..."
- end_date = "2022-01-01"
- source_type = "yandex-metrica"
- start_date = "2022-01-01"
+ auth_token = "...my_auth_token..."
+ counter_id = "...my_counter_id..."
+ end_date = "2022-01-01"
+ start_date = "2022-01-01"
}
- name = "Dominic Marvin"
+ name = "Emanuel Bernier"
secret_id = "...my_secret_id..."
- workspace_id = "e102da2d-e35f-48e0-9bf3-3eaab45402ac"
+ workspace_id = "50e4c312-0d77-4a56-aac7-96fdac1f48b8"
}
```
@@ -52,7 +51,6 @@ Required:
- `auth_token` (String) Your Yandex Metrica API access token
- `counter_id` (String) Counter ID
-- `source_type` (String) must be one of ["yandex-metrica"]
- `start_date` (String) Starting point for your data replication, in format of "YYYY-MM-DD".
Optional:
diff --git a/docs/resources/source_yotpo.md b/docs/resources/source_yotpo.md
index 0b4f4c155..188a6e4f4 100644
--- a/docs/resources/source_yotpo.md
+++ b/docs/resources/source_yotpo.md
@@ -17,13 +17,12 @@ resource "airbyte_source_yotpo" "my_source_yotpo" {
configuration = {
access_token = "...my_access_token..."
app_key = "...my_app_key..."
- email = "Ibrahim74@gmail.com"
- source_type = "yotpo"
+ email = "Justyn.Johnson@hotmail.com"
start_date = "2022-03-01T00:00:00.000Z"
}
- name = "Clark McGlynn"
+ name = "Dr. April Sanford"
secret_id = "...my_secret_id..."
- workspace_id = "61aae5eb-5f0c-4492-b574-4d08a2267aae"
+ workspace_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef"
}
```
@@ -52,8 +51,10 @@ Required:
- `access_token` (String) Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication)
- `app_key` (String) App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)
-- `email` (String) Email address registered with yotpo.
-- `source_type` (String) must be one of ["yotpo"]
- `start_date` (String) Date time filter for incremental filter, Specify which date to extract from.
+Optional:
+
+- `email` (String) Email address registered with yotpo.
+
diff --git a/docs/resources/source_younium.md b/docs/resources/source_younium.md
index 187ae007c..ebcba9601 100644
--- a/docs/resources/source_younium.md
+++ b/docs/resources/source_younium.md
@@ -17,13 +17,12 @@ resource "airbyte_source_younium" "my_source_younium" {
configuration = {
legal_entity = "...my_legal_entity..."
password = "...my_password..."
- playground = true
- source_type = "younium"
- username = "Jairo.Monahan79"
+ playground = false
+ username = "Jacquelyn91"
}
- name = "Martha Orn"
+ name = "Calvin Ratke"
secret_id = "...my_secret_id..."
- workspace_id = "1becb83d-2378-4ae3-bfc2-3d9450a986a4"
+ workspace_id = "5ea1fa63-f6c0-4fac-9403-cfd915cc53ae"
}
```
@@ -52,7 +51,6 @@ Required:
- `legal_entity` (String) Legal Entity that data should be pulled from
- `password` (String) Account password for younium account API key
-- `source_type` (String) must be one of ["younium"]
- `username` (String) Username for Younium account
Optional:
diff --git a/docs/resources/source_youtube_analytics.md b/docs/resources/source_youtube_analytics.md
index c3833c756..dca3a6958 100644
--- a/docs/resources/source_youtube_analytics.md
+++ b/docs/resources/source_youtube_analytics.md
@@ -16,15 +16,15 @@ SourceYoutubeAnalytics Resource
resource "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" {
configuration = {
credentials = {
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
- source_type = "youtube-analytics"
}
- name = "Tommy Rippin"
+ name = "Lucia Bergstrom"
secret_id = "...my_secret_id..."
- workspace_id = "707f06b2-8ecc-4864-9238-6f62c969c4cc"
+ workspace_id = "7b350ebb-3981-4c89-b963-f1e6164cc878"
}
```
@@ -52,7 +52,6 @@ resource "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" {
Required:
- `credentials` (Attributes) (see [below for nested schema](#nestedatt--configuration--credentials))
-- `source_type` (String) must be one of ["youtube-analytics"]
### Nested Schema for `configuration.credentials`
diff --git a/docs/resources/source_zendesk_chat.md b/docs/resources/source_zendesk_chat.md
index 45c2cc0b7..714a88464 100644
--- a/docs/resources/source_zendesk_chat.md
+++ b/docs/resources/source_zendesk_chat.md
@@ -18,16 +18,14 @@ resource "airbyte_source_zendesk_chat" "my_source_zendeskchat" {
credentials = {
source_zendesk_chat_authorization_method_access_token = {
access_token = "...my_access_token..."
- credentials = "access_token"
}
}
- source_type = "zendesk-chat"
- start_date = "2021-02-01T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2021-02-01T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Mabel Lebsack MD"
+ name = "Kelly Kris"
secret_id = "...my_secret_id..."
- workspace_id = "3fd3c81d-a10f-48c2-bdf9-31da3edb51fa"
+ workspace_id = "8933f773-8d63-4dc7-b7f8-b16c6167f1e8"
}
```
@@ -54,7 +52,6 @@ resource "airbyte_source_zendesk_chat" "my_source_zendeskchat" {
Required:
-- `source_type` (String) must be one of ["zendesk-chat"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z.
Optional:
@@ -78,16 +75,11 @@ Optional:
Required:
- `access_token` (String) The Access Token to make authenticated requests.
-- `credentials` (String) must be one of ["access_token"]
### Nested Schema for `configuration.credentials.source_zendesk_chat_authorization_method_o_auth2_0`
-Required:
-
-- `credentials` (String) must be one of ["oauth2.0"]
-
Optional:
- `access_token` (String) Access Token for making authenticated requests.
@@ -102,16 +94,11 @@ Optional:
Required:
- `access_token` (String) The Access Token to make authenticated requests.
-- `credentials` (String) must be one of ["access_token"]
### Nested Schema for `configuration.credentials.source_zendesk_chat_update_authorization_method_o_auth2_0`
-Required:
-
-- `credentials` (String) must be one of ["oauth2.0"]
-
Optional:
- `access_token` (String) Access Token for making authenticated requests.
diff --git a/docs/resources/source_zendesk_sunshine.md b/docs/resources/source_zendesk_sunshine.md
index 625122394..6403a3c7f 100644
--- a/docs/resources/source_zendesk_sunshine.md
+++ b/docs/resources/source_zendesk_sunshine.md
@@ -17,18 +17,16 @@ resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" {
configuration = {
credentials = {
source_zendesk_sunshine_authorization_method_api_token = {
- api_token = "...my_api_token..."
- auth_method = "api_token"
- email = "Leonor_Funk@hotmail.com"
+ api_token = "...my_api_token..."
+ email = "Adonis17@hotmail.com"
}
}
- source_type = "zendesk-sunshine"
- start_date = "2021-01-01T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2021-01-01T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Mrs. Edith Hermiston"
+ name = "Miss Irene Brekke"
secret_id = "...my_secret_id..."
- workspace_id = "726d1532-1b83-42a5-ad69-180ff60eb9a6"
+ workspace_id = "c8f204e6-a775-4647-ab6b-abc0f9b18b2e"
}
```
@@ -55,7 +53,6 @@ resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" {
Required:
-- `source_type` (String) must be one of ["zendesk-sunshine"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z.
- `subdomain` (String) The subdomain for your Zendesk Account.
@@ -79,7 +76,6 @@ Optional:
Required:
- `api_token` (String) API Token. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account
@@ -89,7 +85,6 @@ Required:
Required:
- `access_token` (String) Long-term access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
@@ -100,7 +95,6 @@ Required:
Required:
- `api_token` (String) API Token. See the docs for information on how to generate this key.
-- `auth_method` (String) must be one of ["api_token"]
- `email` (String) The user email for your Zendesk account
@@ -110,7 +104,6 @@ Required:
Required:
- `access_token` (String) Long-term access Token for making authenticated requests.
-- `auth_method` (String) must be one of ["oauth2.0"]
- `client_id` (String) The Client ID of your OAuth application.
- `client_secret` (String) The Client Secret of your OAuth application.
diff --git a/docs/resources/source_zendesk_support.md b/docs/resources/source_zendesk_support.md
index 88d61152d..ca3e13ce2 100644
--- a/docs/resources/source_zendesk_support.md
+++ b/docs/resources/source_zendesk_support.md
@@ -17,19 +17,18 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" {
configuration = {
credentials = {
source_zendesk_support_authentication_api_token = {
- api_token = "...my_api_token..."
- credentials = "api_token"
- email = "Ezequiel.Lindgren56@yahoo.com"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ api_token = "...my_api_token..."
+ email = "Yolanda.Strosin35@yahoo.com"
}
}
- ignore_pagination = true
- source_type = "zendesk-support"
+ ignore_pagination = false
start_date = "2020-10-15T00:00:00Z"
subdomain = "...my_subdomain..."
}
- name = "Alexander Friesen"
+ name = "Miss Jodi Berge"
secret_id = "...my_secret_id..."
- workspace_id = "82dbec75-c68c-4606-9946-8ce304d8849b"
+ workspace_id = "c447712b-4a02-4088-b0aa-beffb8d97651"
}
```
@@ -56,7 +55,6 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" {
Required:
-- `source_type` (String) must be one of ["zendesk-support"]
- `subdomain` (String) This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain.
Optional:
@@ -86,7 +84,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `credentials` (String) must be one of ["api_token"]
@@ -101,7 +98,6 @@ Optional:
- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The OAuth client's ID. See this guide for more information.
- `client_secret` (String) The OAuth client secret. See this guide for more information.
-- `credentials` (String) must be one of ["oauth2.0"]
@@ -115,7 +111,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `credentials` (String) must be one of ["api_token"]
@@ -130,6 +125,5 @@ Optional:
- `additional_properties` (String) Parsed as JSON.
- `client_id` (String) The OAuth client's ID. See this guide for more information.
- `client_secret` (String) The OAuth client secret. See this guide for more information.
-- `credentials` (String) must be one of ["oauth2.0"]
diff --git a/docs/resources/source_zendesk_talk.md b/docs/resources/source_zendesk_talk.md
index e75284df5..9e691521b 100644
--- a/docs/resources/source_zendesk_talk.md
+++ b/docs/resources/source_zendesk_talk.md
@@ -17,18 +17,17 @@ resource "airbyte_source_zendesk_talk" "my_source_zendesktalk" {
configuration = {
credentials = {
source_zendesk_talk_authentication_api_token = {
- api_token = "...my_api_token..."
- auth_type = "api_token"
- email = "Kacie27@hotmail.com"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ api_token = "...my_api_token..."
+ email = "Gabriella.Mills28@gmail.com"
}
}
- source_type = "zendesk-talk"
- start_date = "2020-10-15T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2020-10-15T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Jackie Welch"
+ name = "Shawna Davis"
secret_id = "...my_secret_id..."
- workspace_id = "bb0c69e3-72db-4134-8ba9-f78a5c0ed7aa"
+ workspace_id = "1a4e4668-49f7-4bbe-aaef-524043cb4c47"
}
```
@@ -55,7 +54,6 @@ resource "airbyte_source_zendesk_talk" "my_source_zendesktalk" {
Required:
-- `source_type` (String) must be one of ["zendesk-talk"]
- `start_date` (String) The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
- `subdomain` (String) This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain.
@@ -84,7 +82,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["api_token"]
@@ -97,7 +94,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) Client ID
- `client_secret` (String) Client Secret
@@ -113,7 +109,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["api_token"]
@@ -126,7 +121,6 @@ Required:
Optional:
- `additional_properties` (String) Parsed as JSON.
-- `auth_type` (String) must be one of ["oauth2.0"]
- `client_id` (String) Client ID
- `client_secret` (String) Client Secret
diff --git a/docs/resources/source_zenloop.md b/docs/resources/source_zenloop.md
index 46ba116d7..751ce75fe 100644
--- a/docs/resources/source_zenloop.md
+++ b/docs/resources/source_zenloop.md
@@ -17,13 +17,12 @@ resource "airbyte_source_zenloop" "my_source_zenloop" {
configuration = {
api_token = "...my_api_token..."
date_from = "2021-10-24T03:30:30Z"
- source_type = "zenloop"
survey_group_id = "...my_survey_group_id..."
survey_id = "...my_survey_id..."
}
- name = "Ricardo Champlin"
+ name = "Kellie Lebsack"
secret_id = "...my_secret_id..."
- workspace_id = "7261fb0c-58d2-47b5-9996-b5b4b50eef71"
+ workspace_id = "bd591517-4a55-43fd-a41d-af7626ef51c5"
}
```
@@ -51,7 +50,6 @@ resource "airbyte_source_zenloop" "my_source_zenloop" {
Required:
- `api_token` (String) Zenloop API Token. You can get the API token in settings page here
-- `source_type` (String) must be one of ["zenloop"]
Optional:
diff --git a/docs/resources/source_zoho_crm.md b/docs/resources/source_zoho_crm.md
index 3bc56397a..d29cbe41c 100644
--- a/docs/resources/source_zoho_crm.md
+++ b/docs/resources/source_zoho_crm.md
@@ -17,16 +17,15 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- dc_region = "US"
+ dc_region = "JP"
edition = "Enterprise"
- environment = "Developer"
+ environment = "Production"
refresh_token = "...my_refresh_token..."
- source_type = "zoho-crm"
- start_datetime = "2000-01-01T13:00+00:00"
+ start_datetime = "2000-01-01"
}
- name = "Kenneth Fisher"
+ name = "Miss Gene Schinner"
secret_id = "...my_secret_id..."
- workspace_id = "b1710688-deeb-4ef8-97f3-dd0ccd33f11b"
+ workspace_id = "93e76e9f-def5-441f-86ca-13b1e89c1488"
}
```
@@ -57,15 +56,14 @@ Required:
- `client_secret` (String) OAuth2.0 Client Secret
- `dc_region` (String) must be one of ["US", "AU", "EU", "IN", "CN", "JP"]
Please choose the region of your Data Center location. More info by this Link
-- `edition` (String) must be one of ["Free", "Standard", "Professional", "Enterprise", "Ultimate"]
-Choose your Edition of Zoho CRM to determine API Concurrency Limits
- `environment` (String) must be one of ["Production", "Developer", "Sandbox"]
Please choose the environment
- `refresh_token` (String) OAuth2.0 Refresh Token
-- `source_type` (String) must be one of ["zoho-crm"]
Optional:
+- `edition` (String) must be one of ["Free", "Standard", "Professional", "Enterprise", "Ultimate"]
+Choose your Edition of Zoho CRM to determine API Concurrency Limits
- `start_datetime` (String) ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM`
diff --git a/docs/resources/source_zoom.md b/docs/resources/source_zoom.md
index 188b05b34..4124f7ac1 100644
--- a/docs/resources/source_zoom.md
+++ b/docs/resources/source_zoom.md
@@ -15,12 +15,11 @@ SourceZoom Resource
```terraform
resource "airbyte_source_zoom" "my_source_zoom" {
configuration = {
- jwt_token = "...my_jwt_token..."
- source_type = "zoom"
+ jwt_token = "...my_jwt_token..."
}
- name = "Alexis Gutmann IV"
+ name = "Kenny Oberbrunner Sr."
secret_id = "...my_secret_id..."
- workspace_id = "0aa10418-6ec7-459e-82f3-702c5c8e2d30"
+ workspace_id = "d9d92226-9c9d-4648-b0bc-cdd2e95af6ed"
}
```
@@ -48,6 +47,5 @@ resource "airbyte_source_zoom" "my_source_zoom" {
Required:
- `jwt_token` (String) JWT Token
-- `source_type` (String) must be one of ["zoom"]
diff --git a/docs/resources/source_zuora.md b/docs/resources/source_zuora.md
index d1174e7d4..f876a60c6 100644
--- a/docs/resources/source_zuora.md
+++ b/docs/resources/source_zuora.md
@@ -17,15 +17,14 @@ resource "airbyte_source_zuora" "my_source_zuora" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- data_query = "Unlimited"
- source_type = "zuora"
+ data_query = "Live"
start_date = "...my_start_date..."
- tenant_endpoint = "US Performance Test"
- window_in_days = "200"
+ tenant_endpoint = "EU Production"
+ window_in_days = "30"
}
- name = "Joan Bednar"
+ name = "Johnnie Carter III"
secret_id = "...my_secret_id..."
- workspace_id = "a44707bf-375b-4442-8282-1fdb2f69e592"
+ workspace_id = "0113c2d3-cb5e-4aa6-8b86-a42dbbb853ec"
}
```
@@ -54,15 +53,14 @@ Required:
- `client_id` (String) Your OAuth user Client ID
- `client_secret` (String) Your OAuth user Client Secret
-- `data_query` (String) must be one of ["Live", "Unlimited"]
-Choose between `Live`, or `Unlimited` - the optimized, replicated database at 12 hours freshness for high volume extraction Link
-- `source_type` (String) must be one of ["zuora"]
- `start_date` (String) Start Date in format: YYYY-MM-DD
- `tenant_endpoint` (String) must be one of ["US Production", "US Cloud Production", "US API Sandbox", "US Cloud API Sandbox", "US Central Sandbox", "US Performance Test", "EU Production", "EU API Sandbox", "EU Central Sandbox"]
Please choose the right endpoint where your Tenant is located. More info by this Link
Optional:
+- `data_query` (String) must be one of ["Live", "Unlimited"]
+Choose between `Live`, or `Unlimited` - the optimized, replicated database at 12 hours freshness for high volume extraction Link
- `window_in_days` (String) The amount of days for each data-chunk begining from start_date. Bigger the value - faster the fetch. (0.1 - as for couple of hours, 1 - as for a Day; 364 - as for a Year).
diff --git a/docs/resources/workspace.md b/docs/resources/workspace.md
index a3c6ca178..d006cfbfc 100644
--- a/docs/resources/workspace.md
+++ b/docs/resources/workspace.md
@@ -14,7 +14,7 @@ Workspace Resource
```terraform
resource "airbyte_workspace" "my_workspace" {
- name = "Glenda Schiller DDS"
+ name = "Jeannette Hayes"
}
```
diff --git a/examples/README.md b/examples/README.md
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_connection/data-source.tf b/examples/data-sources/airbyte_connection/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_aws_datalake/data-source.tf b/examples/data-sources/airbyte_destination_aws_datalake/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_azure_blob_storage/data-source.tf b/examples/data-sources/airbyte_destination_azure_blob_storage/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_bigquery/data-source.tf b/examples/data-sources/airbyte_destination_bigquery/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_bigquery_denormalized/data-source.tf b/examples/data-sources/airbyte_destination_bigquery_denormalized/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_clickhouse/data-source.tf b/examples/data-sources/airbyte_destination_clickhouse/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_convex/data-source.tf b/examples/data-sources/airbyte_destination_convex/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_cumulio/data-source.tf b/examples/data-sources/airbyte_destination_cumulio/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_databend/data-source.tf b/examples/data-sources/airbyte_destination_databend/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_databricks/data-source.tf b/examples/data-sources/airbyte_destination_databricks/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_dev_null/data-source.tf b/examples/data-sources/airbyte_destination_dev_null/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_dynamodb/data-source.tf b/examples/data-sources/airbyte_destination_dynamodb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_elasticsearch/data-source.tf b/examples/data-sources/airbyte_destination_elasticsearch/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_firebolt/data-source.tf b/examples/data-sources/airbyte_destination_firebolt/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_firestore/data-source.tf b/examples/data-sources/airbyte_destination_firestore/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_gcs/data-source.tf b/examples/data-sources/airbyte_destination_gcs/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_google_sheets/data-source.tf b/examples/data-sources/airbyte_destination_google_sheets/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_keen/data-source.tf b/examples/data-sources/airbyte_destination_keen/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_kinesis/data-source.tf b/examples/data-sources/airbyte_destination_kinesis/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_langchain/data-source.tf b/examples/data-sources/airbyte_destination_langchain/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_milvus/data-source.tf b/examples/data-sources/airbyte_destination_milvus/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_mongodb/data-source.tf b/examples/data-sources/airbyte_destination_mongodb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_mssql/data-source.tf b/examples/data-sources/airbyte_destination_mssql/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_mysql/data-source.tf b/examples/data-sources/airbyte_destination_mysql/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_oracle/data-source.tf b/examples/data-sources/airbyte_destination_oracle/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_pinecone/data-source.tf b/examples/data-sources/airbyte_destination_pinecone/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_postgres/data-source.tf b/examples/data-sources/airbyte_destination_postgres/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_pubsub/data-source.tf b/examples/data-sources/airbyte_destination_pubsub/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_redis/data-source.tf b/examples/data-sources/airbyte_destination_redis/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_redshift/data-source.tf b/examples/data-sources/airbyte_destination_redshift/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_s3/data-source.tf b/examples/data-sources/airbyte_destination_s3/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_s3_glue/data-source.tf b/examples/data-sources/airbyte_destination_s3_glue/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_sftp_json/data-source.tf b/examples/data-sources/airbyte_destination_sftp_json/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_snowflake/data-source.tf b/examples/data-sources/airbyte_destination_snowflake/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_timeplus/data-source.tf b/examples/data-sources/airbyte_destination_timeplus/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_typesense/data-source.tf b/examples/data-sources/airbyte_destination_typesense/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_vertica/data-source.tf b/examples/data-sources/airbyte_destination_vertica/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_destination_xata/data-source.tf b/examples/data-sources/airbyte_destination_xata/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_aha/data-source.tf b/examples/data-sources/airbyte_source_aha/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_aircall/data-source.tf b/examples/data-sources/airbyte_source_aircall/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_airtable/data-source.tf b/examples/data-sources/airbyte_source_airtable/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_alloydb/data-source.tf b/examples/data-sources/airbyte_source_alloydb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_amazon_ads/data-source.tf b/examples/data-sources/airbyte_source_amazon_ads/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_amazon_seller_partner/data-source.tf b/examples/data-sources/airbyte_source_amazon_seller_partner/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_amazon_sqs/data-source.tf b/examples/data-sources/airbyte_source_amazon_sqs/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_amplitude/data-source.tf b/examples/data-sources/airbyte_source_amplitude/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_apify_dataset/data-source.tf b/examples/data-sources/airbyte_source_apify_dataset/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_appfollow/data-source.tf b/examples/data-sources/airbyte_source_appfollow/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_asana/data-source.tf b/examples/data-sources/airbyte_source_asana/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_auth0/data-source.tf b/examples/data-sources/airbyte_source_auth0/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_aws_cloudtrail/data-source.tf b/examples/data-sources/airbyte_source_aws_cloudtrail/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_azure_blob_storage/data-source.tf b/examples/data-sources/airbyte_source_azure_blob_storage/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_azure_table/data-source.tf b/examples/data-sources/airbyte_source_azure_table/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_bamboo_hr/data-source.tf b/examples/data-sources/airbyte_source_bamboo_hr/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_bigcommerce/data-source.tf b/examples/data-sources/airbyte_source_bigcommerce/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_bigquery/data-source.tf b/examples/data-sources/airbyte_source_bigquery/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_bing_ads/data-source.tf b/examples/data-sources/airbyte_source_bing_ads/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_braintree/data-source.tf b/examples/data-sources/airbyte_source_braintree/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_braze/data-source.tf b/examples/data-sources/airbyte_source_braze/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_chargebee/data-source.tf b/examples/data-sources/airbyte_source_chargebee/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_chartmogul/data-source.tf b/examples/data-sources/airbyte_source_chartmogul/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_clickhouse/data-source.tf b/examples/data-sources/airbyte_source_clickhouse/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_clickup_api/data-source.tf b/examples/data-sources/airbyte_source_clickup_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_clockify/data-source.tf b/examples/data-sources/airbyte_source_clockify/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_close_com/data-source.tf b/examples/data-sources/airbyte_source_close_com/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_coda/data-source.tf b/examples/data-sources/airbyte_source_coda/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_coin_api/data-source.tf b/examples/data-sources/airbyte_source_coin_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_coinmarketcap/data-source.tf b/examples/data-sources/airbyte_source_coinmarketcap/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_configcat/data-source.tf b/examples/data-sources/airbyte_source_configcat/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_confluence/data-source.tf b/examples/data-sources/airbyte_source_confluence/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_convex/data-source.tf b/examples/data-sources/airbyte_source_convex/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_datascope/data-source.tf b/examples/data-sources/airbyte_source_datascope/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_delighted/data-source.tf b/examples/data-sources/airbyte_source_delighted/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_dixa/data-source.tf b/examples/data-sources/airbyte_source_dixa/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_dockerhub/data-source.tf b/examples/data-sources/airbyte_source_dockerhub/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_dremio/data-source.tf b/examples/data-sources/airbyte_source_dremio/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_dynamodb/data-source.tf b/examples/data-sources/airbyte_source_dynamodb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_e2e_test_cloud/data-source.tf b/examples/data-sources/airbyte_source_e2e_test_cloud/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_emailoctopus/data-source.tf b/examples/data-sources/airbyte_source_emailoctopus/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_exchange_rates/data-source.tf b/examples/data-sources/airbyte_source_exchange_rates/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_facebook_marketing/data-source.tf b/examples/data-sources/airbyte_source_facebook_marketing/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_facebook_pages/data-source.tf b/examples/data-sources/airbyte_source_facebook_pages/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_faker/data-source.tf b/examples/data-sources/airbyte_source_faker/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_fauna/data-source.tf b/examples/data-sources/airbyte_source_fauna/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_file_secure/data-source.tf b/examples/data-sources/airbyte_source_file_secure/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_firebolt/data-source.tf b/examples/data-sources/airbyte_source_firebolt/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_freshcaller/data-source.tf b/examples/data-sources/airbyte_source_freshcaller/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_freshdesk/data-source.tf b/examples/data-sources/airbyte_source_freshdesk/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_freshsales/data-source.tf b/examples/data-sources/airbyte_source_freshsales/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_gainsight_px/data-source.tf b/examples/data-sources/airbyte_source_gainsight_px/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_gcs/data-source.tf b/examples/data-sources/airbyte_source_gcs/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_getlago/data-source.tf b/examples/data-sources/airbyte_source_getlago/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_github/data-source.tf b/examples/data-sources/airbyte_source_github/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_gitlab/data-source.tf b/examples/data-sources/airbyte_source_gitlab/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_glassfrog/data-source.tf b/examples/data-sources/airbyte_source_glassfrog/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_gnews/data-source.tf b/examples/data-sources/airbyte_source_gnews/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_ads/data-source.tf b/examples/data-sources/airbyte_source_google_ads/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_analytics_data_api/data-source.tf b/examples/data-sources/airbyte_source_google_analytics_data_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_analytics_v4/data-source.tf b/examples/data-sources/airbyte_source_google_analytics_v4/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_directory/data-source.tf b/examples/data-sources/airbyte_source_google_directory/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_pagespeed_insights/data-source.tf b/examples/data-sources/airbyte_source_google_pagespeed_insights/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_search_console/data-source.tf b/examples/data-sources/airbyte_source_google_search_console/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_sheets/data-source.tf b/examples/data-sources/airbyte_source_google_sheets/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_webfonts/data-source.tf b/examples/data-sources/airbyte_source_google_webfonts/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_google_workspace_admin_reports/data-source.tf b/examples/data-sources/airbyte_source_google_workspace_admin_reports/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_greenhouse/data-source.tf b/examples/data-sources/airbyte_source_greenhouse/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_gridly/data-source.tf b/examples/data-sources/airbyte_source_gridly/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_harvest/data-source.tf b/examples/data-sources/airbyte_source_harvest/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_hubplanner/data-source.tf b/examples/data-sources/airbyte_source_hubplanner/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_hubspot/data-source.tf b/examples/data-sources/airbyte_source_hubspot/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_insightly/data-source.tf b/examples/data-sources/airbyte_source_insightly/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_instagram/data-source.tf b/examples/data-sources/airbyte_source_instagram/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_instatus/data-source.tf b/examples/data-sources/airbyte_source_instatus/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_intercom/data-source.tf b/examples/data-sources/airbyte_source_intercom/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_ip2whois/data-source.tf b/examples/data-sources/airbyte_source_ip2whois/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_iterable/data-source.tf b/examples/data-sources/airbyte_source_iterable/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_jira/data-source.tf b/examples/data-sources/airbyte_source_jira/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_k6_cloud/data-source.tf b/examples/data-sources/airbyte_source_k6_cloud/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_klarna/data-source.tf b/examples/data-sources/airbyte_source_klarna/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_klaviyo/data-source.tf b/examples/data-sources/airbyte_source_klaviyo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_kustomer_singer/data-source.tf b/examples/data-sources/airbyte_source_kustomer_singer/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_kyve/data-source.tf b/examples/data-sources/airbyte_source_kyve/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_launchdarkly/data-source.tf b/examples/data-sources/airbyte_source_launchdarkly/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_lemlist/data-source.tf b/examples/data-sources/airbyte_source_lemlist/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_lever_hiring/data-source.tf b/examples/data-sources/airbyte_source_lever_hiring/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_linkedin_ads/data-source.tf b/examples/data-sources/airbyte_source_linkedin_ads/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_linkedin_pages/data-source.tf b/examples/data-sources/airbyte_source_linkedin_pages/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_linnworks/data-source.tf b/examples/data-sources/airbyte_source_linnworks/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_lokalise/data-source.tf b/examples/data-sources/airbyte_source_lokalise/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mailchimp/data-source.tf b/examples/data-sources/airbyte_source_mailchimp/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mailgun/data-source.tf b/examples/data-sources/airbyte_source_mailgun/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mailjet_sms/data-source.tf b/examples/data-sources/airbyte_source_mailjet_sms/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_marketo/data-source.tf b/examples/data-sources/airbyte_source_marketo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_metabase/data-source.tf b/examples/data-sources/airbyte_source_metabase/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_microsoft_teams/data-source.tf b/examples/data-sources/airbyte_source_microsoft_teams/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mixpanel/data-source.tf b/examples/data-sources/airbyte_source_mixpanel/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_monday/data-source.tf b/examples/data-sources/airbyte_source_monday/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mongodb/data-source.tf b/examples/data-sources/airbyte_source_mongodb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf b/examples/data-sources/airbyte_source_mongodb_internal_poc/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mssql/data-source.tf b/examples/data-sources/airbyte_source_mssql/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_my_hours/data-source.tf b/examples/data-sources/airbyte_source_my_hours/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_mysql/data-source.tf b/examples/data-sources/airbyte_source_mysql/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_netsuite/data-source.tf b/examples/data-sources/airbyte_source_netsuite/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_notion/data-source.tf b/examples/data-sources/airbyte_source_notion/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_nytimes/data-source.tf b/examples/data-sources/airbyte_source_nytimes/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_okta/data-source.tf b/examples/data-sources/airbyte_source_okta/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_omnisend/data-source.tf b/examples/data-sources/airbyte_source_omnisend/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_onesignal/data-source.tf b/examples/data-sources/airbyte_source_onesignal/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_oracle/data-source.tf b/examples/data-sources/airbyte_source_oracle/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_orb/data-source.tf b/examples/data-sources/airbyte_source_orb/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_orbit/data-source.tf b/examples/data-sources/airbyte_source_orbit/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_outbrain_amplify/data-source.tf b/examples/data-sources/airbyte_source_outbrain_amplify/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_outreach/data-source.tf b/examples/data-sources/airbyte_source_outreach/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_paypal_transaction/data-source.tf b/examples/data-sources/airbyte_source_paypal_transaction/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_paystack/data-source.tf b/examples/data-sources/airbyte_source_paystack/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pendo/data-source.tf b/examples/data-sources/airbyte_source_pendo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_persistiq/data-source.tf b/examples/data-sources/airbyte_source_persistiq/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pexels_api/data-source.tf b/examples/data-sources/airbyte_source_pexels_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pinterest/data-source.tf b/examples/data-sources/airbyte_source_pinterest/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pipedrive/data-source.tf b/examples/data-sources/airbyte_source_pipedrive/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pocket/data-source.tf b/examples/data-sources/airbyte_source_pocket/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pokeapi/data-source.tf b/examples/data-sources/airbyte_source_pokeapi/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_polygon_stock_api/data-source.tf b/examples/data-sources/airbyte_source_polygon_stock_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_postgres/data-source.tf b/examples/data-sources/airbyte_source_postgres/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_posthog/data-source.tf b/examples/data-sources/airbyte_source_posthog/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_postmarkapp/data-source.tf b/examples/data-sources/airbyte_source_postmarkapp/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_prestashop/data-source.tf b/examples/data-sources/airbyte_source_prestashop/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_punk_api/data-source.tf b/examples/data-sources/airbyte_source_punk_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_pypi/data-source.tf b/examples/data-sources/airbyte_source_pypi/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_qualaroo/data-source.tf b/examples/data-sources/airbyte_source_qualaroo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_quickbooks/data-source.tf b/examples/data-sources/airbyte_source_quickbooks/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_railz/data-source.tf b/examples/data-sources/airbyte_source_railz/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_recharge/data-source.tf b/examples/data-sources/airbyte_source_recharge/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_recreation/data-source.tf b/examples/data-sources/airbyte_source_recreation/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_recruitee/data-source.tf b/examples/data-sources/airbyte_source_recruitee/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_recurly/data-source.tf b/examples/data-sources/airbyte_source_recurly/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_redshift/data-source.tf b/examples/data-sources/airbyte_source_redshift/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_retently/data-source.tf b/examples/data-sources/airbyte_source_retently/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_rki_covid/data-source.tf b/examples/data-sources/airbyte_source_rki_covid/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_rss/data-source.tf b/examples/data-sources/airbyte_source_rss/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_s3/data-source.tf b/examples/data-sources/airbyte_source_s3/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_salesforce/data-source.tf b/examples/data-sources/airbyte_source_salesforce/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_salesloft/data-source.tf b/examples/data-sources/airbyte_source_salesloft/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sap_fieldglass/data-source.tf b/examples/data-sources/airbyte_source_sap_fieldglass/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_secoda/data-source.tf b/examples/data-sources/airbyte_source_secoda/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sendgrid/data-source.tf b/examples/data-sources/airbyte_source_sendgrid/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sendinblue/data-source.tf b/examples/data-sources/airbyte_source_sendinblue/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_senseforce/data-source.tf b/examples/data-sources/airbyte_source_senseforce/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sentry/data-source.tf b/examples/data-sources/airbyte_source_sentry/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sftp/data-source.tf b/examples/data-sources/airbyte_source_sftp/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sftp_bulk/data-source.tf b/examples/data-sources/airbyte_source_sftp_bulk/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_shopify/data-source.tf b/examples/data-sources/airbyte_source_shopify/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_shortio/data-source.tf b/examples/data-sources/airbyte_source_shortio/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_slack/data-source.tf b/examples/data-sources/airbyte_source_slack/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_smaily/data-source.tf b/examples/data-sources/airbyte_source_smaily/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_smartengage/data-source.tf b/examples/data-sources/airbyte_source_smartengage/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_smartsheets/data-source.tf b/examples/data-sources/airbyte_source_smartsheets/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_snapchat_marketing/data-source.tf b/examples/data-sources/airbyte_source_snapchat_marketing/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_snowflake/data-source.tf b/examples/data-sources/airbyte_source_snowflake/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_sonar_cloud/data-source.tf b/examples/data-sources/airbyte_source_sonar_cloud/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_spacex_api/data-source.tf b/examples/data-sources/airbyte_source_spacex_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_square/data-source.tf b/examples/data-sources/airbyte_source_square/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_strava/data-source.tf b/examples/data-sources/airbyte_source_strava/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_stripe/data-source.tf b/examples/data-sources/airbyte_source_stripe/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_survey_sparrow/data-source.tf b/examples/data-sources/airbyte_source_survey_sparrow/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_surveymonkey/data-source.tf b/examples/data-sources/airbyte_source_surveymonkey/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_tempo/data-source.tf b/examples/data-sources/airbyte_source_tempo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_the_guardian_api/data-source.tf b/examples/data-sources/airbyte_source_the_guardian_api/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_tiktok_marketing/data-source.tf b/examples/data-sources/airbyte_source_tiktok_marketing/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_todoist/data-source.tf b/examples/data-sources/airbyte_source_todoist/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_trello/data-source.tf b/examples/data-sources/airbyte_source_trello/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_trustpilot/data-source.tf b/examples/data-sources/airbyte_source_trustpilot/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_tvmaze_schedule/data-source.tf b/examples/data-sources/airbyte_source_tvmaze_schedule/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_twilio/data-source.tf b/examples/data-sources/airbyte_source_twilio/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_twilio_taskrouter/data-source.tf b/examples/data-sources/airbyte_source_twilio_taskrouter/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_twitter/data-source.tf b/examples/data-sources/airbyte_source_twitter/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_typeform/data-source.tf b/examples/data-sources/airbyte_source_typeform/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_us_census/data-source.tf b/examples/data-sources/airbyte_source_us_census/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_vantage/data-source.tf b/examples/data-sources/airbyte_source_vantage/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_webflow/data-source.tf b/examples/data-sources/airbyte_source_webflow/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_whisky_hunter/data-source.tf b/examples/data-sources/airbyte_source_whisky_hunter/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_wikipedia_pageviews/data-source.tf b/examples/data-sources/airbyte_source_wikipedia_pageviews/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_woocommerce/data-source.tf b/examples/data-sources/airbyte_source_woocommerce/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_xero/data-source.tf b/examples/data-sources/airbyte_source_xero/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_xkcd/data-source.tf b/examples/data-sources/airbyte_source_xkcd/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_yandex_metrica/data-source.tf b/examples/data-sources/airbyte_source_yandex_metrica/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_yotpo/data-source.tf b/examples/data-sources/airbyte_source_yotpo/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_younium/data-source.tf b/examples/data-sources/airbyte_source_younium/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_youtube_analytics/data-source.tf b/examples/data-sources/airbyte_source_youtube_analytics/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zendesk_chat/data-source.tf b/examples/data-sources/airbyte_source_zendesk_chat/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zendesk_sunshine/data-source.tf b/examples/data-sources/airbyte_source_zendesk_sunshine/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zendesk_support/data-source.tf b/examples/data-sources/airbyte_source_zendesk_support/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zendesk_talk/data-source.tf b/examples/data-sources/airbyte_source_zendesk_talk/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zenloop/data-source.tf b/examples/data-sources/airbyte_source_zenloop/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zoho_crm/data-source.tf b/examples/data-sources/airbyte_source_zoho_crm/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zoom/data-source.tf b/examples/data-sources/airbyte_source_zoom/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_source_zuora/data-source.tf b/examples/data-sources/airbyte_source_zuora/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/data-sources/airbyte_workspace/data-source.tf b/examples/data-sources/airbyte_workspace/data-source.tf
old mode 100755
new mode 100644
diff --git a/examples/pokeapi/example.tf b/examples/pokeapi/example.tf
index 802373ce6..5fedbb67e 100644
--- a/examples/pokeapi/example.tf
+++ b/examples/pokeapi/example.tf
@@ -55,7 +55,7 @@ resource "airbyte_workspace" "my_workspace" {
}
resource "airbyte_source_pokeapi" "kido" {
- name = "bulbasaur"
+ name = "new"
workspace_id = airbyte_workspace.my_workspace.workspace_id
configuration = {
pokemon_name = "bulbasaur"
@@ -67,13 +67,11 @@ resource "airbyte_destination_google_sheets" "output" {
name = "test_new_output"
workspace_id = airbyte_workspace.my_workspace.workspace_id
configuration = {
- source_type = "googlesheets"
credentials = {
client_id = var.google_client_id
client_secret = var.google_client_secret
refresh_token = var.google_client_refresh_token
}
- destination_type = "google-sheets"
spreadsheet_id = var.google_spreadsheet_id
}
}
diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf
old mode 100755
new mode 100644
diff --git a/examples/resources/airbyte_connection/resource.tf b/examples/resources/airbyte_connection/resource.tf
old mode 100755
new mode 100644
index bdbe1cce8..fbbe4073f
--- a/examples/resources/airbyte_connection/resource.tf
+++ b/examples/resources/airbyte_connection/resource.tf
@@ -5,7 +5,7 @@ resource "airbyte_connection" "my_connection" {
cursor_field = [
"...",
]
- name = "Terrence Rau"
+ name = "Cecil Johnson"
primary_key = [
[
"...",
@@ -15,18 +15,18 @@ resource "airbyte_connection" "my_connection" {
},
]
}
- data_residency = "us"
- destination_id = "d69a674e-0f46-47cc-8796-ed151a05dfc2"
- name = "Wilfred Wolff"
- namespace_definition = "custom_format"
+ data_residency = "auto"
+ destination_id = "e362083e-afc8-4559-94e0-a570f6dd427d"
+ name = "Melvin O'Connell"
+ namespace_definition = "source"
namespace_format = SOURCE_NAMESPACE
- non_breaking_schema_updates_behavior = "disable_connection"
+ non_breaking_schema_updates_behavior = "propagate_columns"
prefix = "...my_prefix..."
schedule = {
basic_timing = "...my_basic_timing..."
cron_expression = "...my_cron_expression..."
- schedule_type = "cron"
+ schedule_type = "manual"
}
- source_id = "ca1ba928-fc81-4674-acb7-39205929396f"
+ source_id = "78358423-25b6-4c7b-bfd2-fd307d60cb97"
status = "deprecated"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_aws_datalake/resource.tf b/examples/resources/airbyte_destination_aws_datalake/resource.tf
old mode 100755
new mode 100644
index 06650d0bf..4f64e7546
--- a/examples/resources/airbyte_destination_aws_datalake/resource.tf
+++ b/examples/resources/airbyte_destination_aws_datalake/resource.tf
@@ -5,25 +5,23 @@ resource "airbyte_destination_aws_datalake" "my_destination_awsdatalake" {
bucket_prefix = "...my_bucket_prefix..."
credentials = {
destination_aws_datalake_authentication_mode_iam_role = {
- credentials_title = "IAM Role"
- role_arn = "...my_role_arn..."
+ role_arn = "...my_role_arn..."
}
}
- destination_type = "aws-datalake"
format = {
destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json = {
compression_codec = "GZIP"
format_type = "JSONL"
}
}
- glue_catalog_float_as_decimal = true
+ glue_catalog_float_as_decimal = false
lakeformation_database_default_tag_key = "pii_level"
lakeformation_database_default_tag_values = "private,public"
lakeformation_database_name = "...my_lakeformation_database_name..."
- lakeformation_governed_tables = true
- partitioning = "DAY"
- region = "ap-southeast-1"
+ lakeformation_governed_tables = false
+ partitioning = "YEAR/MONTH/DAY"
+ region = "eu-west-1"
}
- name = "Dr. Rickey Boyle"
- workspace_id = "aa2352c5-9559-407a-bf1a-3a2fa9467739"
+ name = "Rosa Harris"
+ workspace_id = "0f2a9b0d-e149-47ac-8629-f5a79ed4a852"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_azure_blob_storage/resource.tf b/examples/resources/airbyte_destination_azure_blob_storage/resource.tf
old mode 100755
new mode 100644
index e95267fb3..1ac74aec7
--- a/examples/resources/airbyte_destination_azure_blob_storage/resource.tf
+++ b/examples/resources/airbyte_destination_azure_blob_storage/resource.tf
@@ -6,14 +6,12 @@ resource "airbyte_destination_azure_blob_storage" "my_destination_azureblobstora
azure_blob_storage_endpoint_domain_name = "blob.core.windows.net"
azure_blob_storage_output_buffer_size = 5
azure_blob_storage_spill_size = 500
- destination_type = "azure-blob-storage"
format = {
destination_azure_blob_storage_output_format_csv_comma_separated_values = {
- flattening = "No flattening"
- format_type = "CSV"
+ flattening = "No flattening"
}
}
}
- name = "Matt Hamill"
- workspace_id = "3f5ad019-da1f-4fe7-8f09-7b0074f15471"
+ name = "Aaron Wisozk"
+ workspace_id = "fb9aea60-f386-4615-a68b-5c3f592b38ac"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_bigquery/resource.tf b/examples/resources/airbyte_destination_bigquery/resource.tf
old mode 100755
new mode 100644
index 52238cfc1..026937b6c
--- a/examples/resources/airbyte_destination_bigquery/resource.tf
+++ b/examples/resources/airbyte_destination_bigquery/resource.tf
@@ -3,13 +3,11 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" {
big_query_client_buffer_size_mb = 15
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
- dataset_location = "australia-southeast2"
- destination_type = "bigquery"
+ dataset_location = "asia-south1"
loading_method = {
destination_bigquery_loading_method_gcs_staging = {
credential = {
destination_bigquery_loading_method_gcs_staging_credential_hmac_key = {
- credential_type = "HMAC_KEY"
hmac_key_access_id = "1234567890abcdefghij1234"
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
@@ -18,13 +16,12 @@ resource "airbyte_destination_bigquery" "my_destination_bigquery" {
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
keep_files_in_gcs_bucket = "Delete all tmp files from GCS"
- method = "GCS Staging"
}
}
project_id = "...my_project_id..."
raw_data_dataset = "...my_raw_data_dataset..."
- transformation_priority = "batch"
+ transformation_priority = "interactive"
}
- name = "Edna Pouros"
- workspace_id = "d488e1e9-1e45-40ad-aabd-44269802d502"
+ name = "Otis Hackett"
+ workspace_id = "6bf4ba0e-7ac6-43cd-aaeb-b5cd76c9fd07"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_bigquery_denormalized/resource.tf b/examples/resources/airbyte_destination_bigquery_denormalized/resource.tf
old mode 100755
new mode 100644
index 510a75b11..43f1e77c9
--- a/examples/resources/airbyte_destination_bigquery_denormalized/resource.tf
+++ b/examples/resources/airbyte_destination_bigquery_denormalized/resource.tf
@@ -3,13 +3,11 @@ resource "airbyte_destination_bigquery_denormalized" "my_destination_bigqueryden
big_query_client_buffer_size_mb = 15
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
- dataset_location = "europe-west7"
- destination_type = "bigquery-denormalized"
+ dataset_location = "europe-west9"
loading_method = {
destination_bigquery_denormalized_loading_method_gcs_staging = {
credential = {
destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key = {
- credential_type = "HMAC_KEY"
hmac_key_access_id = "1234567890abcdefghij1234"
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
@@ -18,11 +16,10 @@ resource "airbyte_destination_bigquery_denormalized" "my_destination_bigqueryden
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
keep_files_in_gcs_bucket = "Keep all tmp files in GCS"
- method = "GCS Staging"
}
}
project_id = "...my_project_id..."
}
- name = "Francisco Windler"
- workspace_id = "c969e9a3-efa7-47df-b14c-d66ae395efb9"
+ name = "Frankie Runolfsson"
+ workspace_id = "cb44c87d-9163-4ca2-a92d-142842c5e975"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_clickhouse/resource.tf b/examples/resources/airbyte_destination_clickhouse/resource.tf
old mode 100755
new mode 100644
index 0f5974c9e..7c628f1de
--- a/examples/resources/airbyte_destination_clickhouse/resource.tf
+++ b/examples/resources/airbyte_destination_clickhouse/resource.tf
@@ -1,18 +1,15 @@
resource "airbyte_destination_clickhouse" "my_destination_clickhouse" {
configuration = {
- database = "...my_database..."
- destination_type = "clickhouse"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 8123
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 8123
tunnel_method = {
- destination_clickhouse_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_clickhouse_ssh_tunnel_method_no_tunnel = {}
}
- username = "Magdalena_Kuvalis"
+ username = "Derick.Auer8"
}
- name = "Sandy Huels"
- workspace_id = "97074ba4-469b-46e2-9419-59890afa563e"
+ name = "Stanley Schaefer"
+ workspace_id = "933cc05b-91a7-42d2-b00d-cd43ac809ede"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_convex/resource.tf b/examples/resources/airbyte_destination_convex/resource.tf
old mode 100755
new mode 100644
index be190f800..67dfdf661
--- a/examples/resources/airbyte_destination_convex/resource.tf
+++ b/examples/resources/airbyte_destination_convex/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_destination_convex" "my_destination_convex" {
configuration = {
- access_key = "...my_access_key..."
- deployment_url = "https://murky-swan-635.convex.cloud"
- destination_type = "convex"
+ access_key = "...my_access_key..."
+ deployment_url = "https://cluttered-owl-337.convex.cloud"
}
- name = "Joyce Kertzmann"
- workspace_id = "4c8b711e-5b7f-4d2e-9028-921cddc69260"
+ name = "Alton Bernier"
+ workspace_id = "5e15759d-85e2-4c27-a398-b4688adb4265"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_cumulio/resource.tf b/examples/resources/airbyte_destination_cumulio/resource.tf
old mode 100755
new mode 100644
index 328e8df4d..c62589047
--- a/examples/resources/airbyte_destination_cumulio/resource.tf
+++ b/examples/resources/airbyte_destination_cumulio/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_destination_cumulio" "my_destination_cumulio" {
configuration = {
- api_host = "...my_api_host..."
- api_key = "...my_api_key..."
- api_token = "...my_api_token..."
- destination_type = "cumulio"
+ api_host = "...my_api_host..."
+ api_key = "...my_api_key..."
+ api_token = "...my_api_token..."
}
- name = "Ebony Predovic"
- workspace_id = "6b0d5f0d-30c5-4fbb-a587-053202c73d5f"
+ name = "Pat Fadel"
+ workspace_id = "fa18b5ab-2eb4-4f41-a22e-39b661a09af7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_databend/resource.tf b/examples/resources/airbyte_destination_databend/resource.tf
old mode 100755
new mode 100644
index b42cdb76b..97429fb30
--- a/examples/resources/airbyte_destination_databend/resource.tf
+++ b/examples/resources/airbyte_destination_databend/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_destination_databend" "my_destination_databend" {
configuration = {
- database = "...my_database..."
- destination_type = "databend"
- host = "...my_host..."
- password = "...my_password..."
- port = 443
- table = "default"
- username = "Leo.Purdy"
+ database = "...my_database..."
+ host = "...my_host..."
+ password = "...my_password..."
+ port = 443
+ table = "default"
+ username = "Casimir70"
}
- name = "Bobby Kutch V"
- workspace_id = "b3fe49a8-d9cb-4f48-a333-23f9b77f3a41"
+ name = "Sheri Howell"
+ workspace_id = "5d335e03-abeb-4b71-b58e-872ec68b6d2a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_databricks/resource.tf b/examples/resources/airbyte_destination_databricks/resource.tf
old mode 100755
new mode 100644
index 33aed18f4..2aec0be86
--- a/examples/resources/airbyte_destination_databricks/resource.tf
+++ b/examples/resources/airbyte_destination_databricks/resource.tf
@@ -2,20 +2,17 @@ resource "airbyte_destination_databricks" "my_destination_databricks" {
configuration = {
accept_terms = false
data_source = {
- destination_databricks_data_source_recommended_managed_tables = {
- data_source_type = "MANAGED_TABLES_STORAGE"
- }
+ destination_databricks_data_source_recommended_managed_tables = {}
}
database = "...my_database..."
databricks_http_path = "sql/protocolvx/o/1234567489/0000-1111111-abcd90"
databricks_personal_access_token = "dapi0123456789abcdefghij0123456789AB"
databricks_port = "443"
databricks_server_hostname = "abc-12345678-wxyz.cloud.databricks.com"
- destination_type = "databricks"
- enable_schema_evolution = true
+ enable_schema_evolution = false
purge_staging_data = false
schema = "default"
}
- name = "Bertha Thompson"
- workspace_id = "69280d1b-a77a-489e-bf73-7ae4203ce5e6"
+ name = "Willis Haley"
+ workspace_id = "941566f2-2fd3-40a2-8af8-c1d27b3e573c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_dev_null/resource.tf b/examples/resources/airbyte_destination_dev_null/resource.tf
old mode 100755
new mode 100644
index 2f870d3a4..59afb4fdd
--- a/examples/resources/airbyte_destination_dev_null/resource.tf
+++ b/examples/resources/airbyte_destination_dev_null/resource.tf
@@ -1,12 +1,9 @@
resource "airbyte_destination_dev_null" "my_destination_devnull" {
configuration = {
- destination_type = "dev-null"
test_destination = {
- destination_dev_null_test_destination_silent = {
- test_destination_type = "SILENT"
- }
+ destination_dev_null_test_destination_silent = {}
}
}
- name = "Rene Hane"
- workspace_id = "a0d446ce-2af7-4a73-8f3b-e453f870b326"
+ name = "Tasha Rodriguez"
+ workspace_id = "23613d23-ce87-4529-baec-4aa100bb2392"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_dynamodb/resource.tf b/examples/resources/airbyte_destination_dynamodb/resource.tf
old mode 100755
new mode 100644
index 51f90ef97..0bf177bb2
--- a/examples/resources/airbyte_destination_dynamodb/resource.tf
+++ b/examples/resources/airbyte_destination_dynamodb/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_destination_dynamodb" "my_destination_dynamodb" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "dynamodb"
dynamodb_endpoint = "http://localhost:9000"
- dynamodb_region = "eu-south-1"
+ dynamodb_region = "us-west-2"
dynamodb_table_name_prefix = "airbyte_sync"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Joanna Kohler"
- workspace_id = "29cdb1a8-422b-4b67-9d23-22715bf0cbb1"
+ name = "Penny Boyer"
+ workspace_id = "8452de7c-35eb-492a-9e95-2da293962c00"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_elasticsearch/resource.tf b/examples/resources/airbyte_destination_elasticsearch/resource.tf
old mode 100755
new mode 100644
index fb426e449..c7127bc69
--- a/examples/resources/airbyte_destination_elasticsearch/resource.tf
+++ b/examples/resources/airbyte_destination_elasticsearch/resource.tf
@@ -4,14 +4,12 @@ resource "airbyte_destination_elasticsearch" "my_destination_elasticsearch" {
destination_elasticsearch_authentication_method_api_key_secret = {
api_key_id = "...my_api_key_id..."
api_key_secret = "...my_api_key_secret..."
- method = "secret"
}
}
- ca_certificate = "...my_ca_certificate..."
- destination_type = "elasticsearch"
- endpoint = "...my_endpoint..."
- upsert = true
+ ca_certificate = "...my_ca_certificate..."
+ endpoint = "...my_endpoint..."
+ upsert = false
}
- name = "Carolyn Rohan"
- workspace_id = "90f3443a-1108-4e0a-9cf4-b921879fce95"
+ name = "Frankie Rohan"
+ workspace_id = "7c884619-6559-498a-a24e-ec560fc4948d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_firebolt/resource.tf b/examples/resources/airbyte_destination_firebolt/resource.tf
old mode 100755
new mode 100644
index 9ef3dbd3c..ff8ea6bea
--- a/examples/resources/airbyte_destination_firebolt/resource.tf
+++ b/examples/resources/airbyte_destination_firebolt/resource.tf
@@ -1,15 +1,13 @@
resource "airbyte_destination_firebolt" "my_destination_firebolt" {
configuration = {
- account = "...my_account..."
- database = "...my_database..."
- destination_type = "firebolt"
- engine = "...my_engine..."
- host = "api.app.firebolt.io"
+ account = "...my_account..."
+ database = "...my_database..."
+ engine = "...my_engine..."
+ host = "api.app.firebolt.io"
loading_method = {
destination_firebolt_loading_method_external_table_via_s3 = {
aws_key_id = "...my_aws_key_id..."
aws_key_secret = "...my_aws_key_secret..."
- method = "S3"
s3_bucket = "...my_s3_bucket..."
s3_region = "us-east-1"
}
@@ -17,6 +15,6 @@ resource "airbyte_destination_firebolt" "my_destination_firebolt" {
password = "...my_password..."
username = "username@email.com"
}
- name = "Roman Kulas"
- workspace_id = "c7abd74d-d39c-40f5-92cf-f7c70a45626d"
+ name = "Luz Stark"
+ workspace_id = "158c7e04-c579-4843-8bfb-b5605d7306cf"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_firestore/resource.tf b/examples/resources/airbyte_destination_firestore/resource.tf
old mode 100755
new mode 100644
index 27edf3869..e0f8d1df4
--- a/examples/resources/airbyte_destination_firestore/resource.tf
+++ b/examples/resources/airbyte_destination_firestore/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_destination_firestore" "my_destination_firestore" {
configuration = {
credentials_json = "...my_credentials_json..."
- destination_type = "firestore"
project_id = "...my_project_id..."
}
- name = "Paula Jacobs I"
- workspace_id = "f16d9f5f-ce6c-4556-946c-3e250fb008c4"
+ name = "Shane Weimann MD"
+ workspace_id = "fc11e74f-736d-47a9-93e9-8a4c049945ed"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_gcs/resource.tf b/examples/resources/airbyte_destination_gcs/resource.tf
old mode 100755
new mode 100644
index 0b8651aa1..635da9925
--- a/examples/resources/airbyte_destination_gcs/resource.tf
+++ b/examples/resources/airbyte_destination_gcs/resource.tf
@@ -7,7 +7,6 @@ resource "airbyte_destination_gcs" "my_destination_gcs" {
hmac_key_secret = "1234567890abcdefghij1234567890ABCDEFGHIJ"
}
}
- destination_type = "gcs"
format = {
destination_gcs_output_format_avro_apache_avro = {
compression_codec = {
@@ -20,8 +19,8 @@ resource "airbyte_destination_gcs" "my_destination_gcs" {
}
gcs_bucket_name = "airbyte_sync"
gcs_bucket_path = "data_sync/test"
- gcs_bucket_region = "us-west1"
+ gcs_bucket_region = "eu"
}
- name = "Miss Dennis Friesen"
- workspace_id = "c366c8dd-6b14-4429-8747-4778a7bd466d"
+ name = "Lorena Mills"
+ workspace_id = "416d119e-802e-4071-a9d4-644f9dd3d54c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_google_sheets/resource.tf b/examples/resources/airbyte_destination_google_sheets/resource.tf
old mode 100755
new mode 100644
index 4a1cf9bba..54c279836
--- a/examples/resources/airbyte_destination_google_sheets/resource.tf
+++ b/examples/resources/airbyte_destination_google_sheets/resource.tf
@@ -5,9 +5,8 @@ resource "airbyte_destination_google_sheets" "my_destination_googlesheets" {
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
- destination_type = "google-sheets"
- spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"
+ spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit"
}
- name = "Mr. Irma Schaefer"
- workspace_id = "b3cdca42-5190-44e5-a3c7-e0bc7178e479"
+ name = "Jody Wuckert"
+ workspace_id = "2ef1e01e-f574-477c-9e2c-85c904a203ff"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_keen/resource.tf b/examples/resources/airbyte_destination_keen/resource.tf
old mode 100755
new mode 100644
index d7ed98c5e..d1e510382
--- a/examples/resources/airbyte_destination_keen/resource.tf
+++ b/examples/resources/airbyte_destination_keen/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_destination_keen" "my_destination_keen" {
configuration = {
- api_key = "ABCDEFGHIJKLMNOPRSTUWXYZ"
- destination_type = "keen"
- infer_timestamp = false
- project_id = "58b4acc22ba938934e888322e"
+ api_key = "ABCDEFGHIJKLMNOPRSTUWXYZ"
+ infer_timestamp = true
+ project_id = "58b4acc22ba938934e888322e"
}
- name = "Todd Oberbrunner DDS"
- workspace_id = "688282aa-4825-462f-a22e-9817ee17cbe6"
+ name = "Marlene Ondricka"
+ workspace_id = "112db1ee-ca9f-491e-b58c-33257456993f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_kinesis/resource.tf b/examples/resources/airbyte_destination_kinesis/resource.tf
old mode 100755
new mode 100644
index c2e703465..2b84740a2
--- a/examples/resources/airbyte_destination_kinesis/resource.tf
+++ b/examples/resources/airbyte_destination_kinesis/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_destination_kinesis" "my_destination_kinesis" {
configuration = {
- access_key = "...my_access_key..."
- buffer_size = 1
- destination_type = "kinesis"
- endpoint = "kinesis.us‑west‑1.amazonaws.com"
- private_key = "...my_private_key..."
- region = "us‑west‑1"
- shard_count = 9
+ access_key = "...my_access_key..."
+ buffer_size = 0
+ endpoint = "kinesis.us‑west‑1.amazonaws.com"
+ private_key = "...my_private_key..."
+ region = "us‑west‑1"
+ shard_count = 4
}
- name = "Opal Kozey"
- workspace_id = "5bc0ab3c-20c4-4f37-89fd-871f99dd2efd"
+ name = "Kristin Lowe"
+ workspace_id = "40d1987e-d52c-4bff-8185-8935bdfe2750"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_langchain/resource.tf b/examples/resources/airbyte_destination_langchain/resource.tf
old mode 100755
new mode 100644
index 2954d8c7f..749eedec3
--- a/examples/resources/airbyte_destination_langchain/resource.tf
+++ b/examples/resources/airbyte_destination_langchain/resource.tf
@@ -1,26 +1,22 @@
resource "airbyte_destination_langchain" "my_destination_langchain" {
configuration = {
- destination_type = "langchain"
embedding = {
- destination_langchain_embedding_fake = {
- mode = "fake"
- }
+ destination_langchain_embedding_fake = {}
}
indexing = {
- destination_langchain_indexing_chroma_local_persistance_ = {
+ destination_langchain_indexing_chroma_local_persistance = {
collection_name = "...my_collection_name..."
destination_path = "/local/my_chroma_db"
- mode = "chroma_local"
}
}
processing = {
- chunk_overlap = 0
- chunk_size = 1
+ chunk_overlap = 3
+ chunk_size = 2
text_fields = [
"...",
]
}
}
- name = "Hattie Nader"
- workspace_id = "1e674bdb-04f1-4575-a082-d68ea19f1d17"
+ name = "Randal Goyette"
+ workspace_id = "07f993ef-ae2d-4caf-8658-9dab1153f466"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_milvus/resource.tf b/examples/resources/airbyte_destination_milvus/resource.tf
old mode 100755
new mode 100644
index 5530c8c8f..828240d41
--- a/examples/resources/airbyte_destination_milvus/resource.tf
+++ b/examples/resources/airbyte_destination_milvus/resource.tf
@@ -1,28 +1,25 @@
resource "airbyte_destination_milvus" "my_destination_milvus" {
configuration = {
- destination_type = "milvus"
embedding = {
destination_milvus_embedding_cohere = {
cohere_key = "...my_cohere_key..."
- mode = "cohere"
}
}
indexing = {
auth = {
destination_milvus_indexing_authentication_api_token = {
- mode = "token"
token = "...my_token..."
}
}
collection = "...my_collection..."
db = "...my_db..."
- host = "https://my-instance.zone.zillizcloud.com"
+ host = "tcp://my-local-milvus:19530"
text_field = "...my_text_field..."
vector_field = "...my_vector_field..."
}
processing = {
- chunk_overlap = 3
- chunk_size = 0
+ chunk_overlap = 4
+ chunk_size = 6
metadata_fields = [
"...",
]
@@ -31,6 +28,6 @@ resource "airbyte_destination_milvus" "my_destination_milvus" {
]
}
}
- name = "Sherry Morar IV"
- workspace_id = "086a1840-394c-4260-b1f9-3f5f0642dac7"
+ name = "Kelli Bashirian"
+ workspace_id = "5aa0db79-7942-4be7-a5f1-f78855663545"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_mongodb/resource.tf b/examples/resources/airbyte_destination_mongodb/resource.tf
old mode 100755
new mode 100644
index 6370f8749..750218794
--- a/examples/resources/airbyte_destination_mongodb/resource.tf
+++ b/examples/resources/airbyte_destination_mongodb/resource.tf
@@ -2,13 +2,11 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" {
configuration = {
auth_type = {
destination_mongodb_authorization_type_login_password = {
- authorization = "login/password"
- password = "...my_password..."
- username = "Lucienne.Yundt"
+ password = "...my_password..."
+ username = "Jarrell.Schuppe"
}
}
- database = "...my_database..."
- destination_type = "mongodb"
+ database = "...my_database..."
instance_type = {
destination_mongodb_mongo_db_instance_type_mongo_db_atlas = {
cluster_url = "...my_cluster_url..."
@@ -16,11 +14,9 @@ resource "airbyte_destination_mongodb" "my_destination_mongodb" {
}
}
tunnel_method = {
- destination_mongodb_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mongodb_ssh_tunnel_method_no_tunnel = {}
}
}
- name = "Robyn Schmitt I"
- workspace_id = "aa63aae8-d678-464d-bb67-5fd5e60b375e"
+ name = "Eloise Stark"
+ workspace_id = "5e758afd-2ad3-48ed-bed0-e5e2212dc7d0"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_mssql/resource.tf b/examples/resources/airbyte_destination_mssql/resource.tf
old mode 100755
new mode 100644
index bfb5a45f1..47d19d73b
--- a/examples/resources/airbyte_destination_mssql/resource.tf
+++ b/examples/resources/airbyte_destination_mssql/resource.tf
@@ -1,24 +1,19 @@
resource "airbyte_destination_mssql" "my_destination_mssql" {
configuration = {
- database = "...my_database..."
- destination_type = "mssql"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 1433
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 1433
+ schema = "public"
ssl_method = {
- destination_mssql_ssl_method_encrypted_trust_server_certificate_ = {
- ssl_method = "encrypted_trust_server_certificate"
- }
+ destination_mssql_ssl_method_encrypted_trust_server_certificate = {}
}
tunnel_method = {
- destination_mssql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mssql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Desiree_Yost"
+ username = "Destini.Wehner"
}
- name = "Bert Treutel DVM"
- workspace_id = "33317fe3-5b60-4eb1-aa42-6555ba3c2874"
+ name = "Lewis Tromp"
+ workspace_id = "4b4ecb39-7d06-4456-aefb-7ef5d37ea6e5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_mysql/resource.tf b/examples/resources/airbyte_destination_mysql/resource.tf
old mode 100755
new mode 100644
index 8827abfb9..6df20c46d
--- a/examples/resources/airbyte_destination_mysql/resource.tf
+++ b/examples/resources/airbyte_destination_mysql/resource.tf
@@ -1,18 +1,15 @@
resource "airbyte_destination_mysql" "my_destination_mysql" {
configuration = {
- database = "...my_database..."
- destination_type = "mysql"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 3306
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 3306
tunnel_method = {
- destination_mysql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_mysql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Sheldon.Smitham"
+ username = "Millie80"
}
- name = "Guy Luettgen"
- workspace_id = "a8d8f5c0-b2f2-4fb7-b194-a276b26916fe"
+ name = "Colleen Langworth"
+ workspace_id = "a3ea494c-4202-4097-9cad-1afa4145a8ea"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_oracle/resource.tf b/examples/resources/airbyte_destination_oracle/resource.tf
old mode 100755
new mode 100644
index b0db9a2ae..300fa180f
--- a/examples/resources/airbyte_destination_oracle/resource.tf
+++ b/examples/resources/airbyte_destination_oracle/resource.tf
@@ -1,19 +1,16 @@
resource "airbyte_destination_oracle" "my_destination_oracle" {
configuration = {
- destination_type = "oracle"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 1521
- schema = "airbyte"
- sid = "...my_sid..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 1521
+ schema = "airbyte"
+ sid = "...my_sid..."
tunnel_method = {
- destination_oracle_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_oracle_ssh_tunnel_method_no_tunnel = {}
}
- username = "Viviane_Aufderhar"
+ username = "Herminio18"
}
- name = "Tammy Medhurst"
- workspace_id = "3698f447-f603-4e8b-845e-80ca55efd20e"
+ name = "Ashley Wisoky"
+ workspace_id = "c0130565-53a4-4e50-8dde-3bcff11f630f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_pinecone/resource.tf b/examples/resources/airbyte_destination_pinecone/resource.tf
old mode 100755
new mode 100644
index 0e6dcbdd4..c5064a3dd
--- a/examples/resources/airbyte_destination_pinecone/resource.tf
+++ b/examples/resources/airbyte_destination_pinecone/resource.tf
@@ -1,10 +1,8 @@
resource "airbyte_destination_pinecone" "my_destination_pinecone" {
configuration = {
- destination_type = "pinecone"
embedding = {
destination_pinecone_embedding_cohere = {
cohere_key = "...my_cohere_key..."
- mode = "cohere"
}
}
indexing = {
@@ -13,8 +11,8 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" {
pinecone_key = "...my_pinecone_key..."
}
processing = {
- chunk_overlap = 2
- chunk_size = 3
+ chunk_overlap = 7
+ chunk_size = 6
metadata_fields = [
"...",
]
@@ -23,6 +21,6 @@ resource "airbyte_destination_pinecone" "my_destination_pinecone" {
]
}
}
- name = "Cecelia Braun"
- workspace_id = "8b6a89fb-e3a5-4aa8-a482-4d0ab4075088"
+ name = "Peggy Renner"
+ workspace_id = "88e15f86-8bf0-4372-97dc-d66bcb9a13f0"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_postgres/resource.tf b/examples/resources/airbyte_destination_postgres/resource.tf
old mode 100755
new mode 100644
index 21400b6a8..7dd261f37
--- a/examples/resources/airbyte_destination_postgres/resource.tf
+++ b/examples/resources/airbyte_destination_postgres/resource.tf
@@ -1,24 +1,19 @@
resource "airbyte_destination_postgres" "my_destination_postgres" {
configuration = {
- database = "...my_database..."
- destination_type = "postgres"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5432
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5432
+ schema = "public"
ssl_mode = {
- destination_postgres_ssl_modes_allow = {
- mode = "allow"
- }
+ destination_postgres_ssl_modes_allow = {}
}
tunnel_method = {
- destination_postgres_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_postgres_ssh_tunnel_method_no_tunnel = {}
}
- username = "Foster.Borer"
+ username = "Tremayne.OConnell"
}
- name = "Karen Kautzer"
- workspace_id = "904f3b11-94b8-4abf-a03a-79f9dfe0ab7d"
+ name = "Howard Franecki"
+ workspace_id = "4a59e7bf-d1d4-496b-914d-08d4a7d5d4b2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_pubsub/resource.tf b/examples/resources/airbyte_destination_pubsub/resource.tf
old mode 100755
new mode 100644
index 0aa235ea2..a725c2e63
--- a/examples/resources/airbyte_destination_pubsub/resource.tf
+++ b/examples/resources/airbyte_destination_pubsub/resource.tf
@@ -1,15 +1,14 @@
resource "airbyte_destination_pubsub" "my_destination_pubsub" {
configuration = {
- batching_delay_threshold = 7
- batching_element_count_threshold = 5
- batching_enabled = true
- batching_request_bytes_threshold = 3
+ batching_delay_threshold = 9
+ batching_element_count_threshold = 10
+ batching_enabled = false
+ batching_request_bytes_threshold = 4
credentials_json = "...my_credentials_json..."
- destination_type = "pubsub"
- ordering_enabled = true
+ ordering_enabled = false
project_id = "...my_project_id..."
topic_id = "...my_topic_id..."
}
- name = "Phil Boyer"
- workspace_id = "f86bc173-d689-4eee-9526-f8d986e881ea"
+ name = "Eddie Conroy"
+ workspace_id = "2f48f6e5-43a0-4f0f-b9a6-c151a78cf13c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_redis/resource.tf b/examples/resources/airbyte_destination_redis/resource.tf
old mode 100755
new mode 100644
index f4b410ea8..7bedd6fc5
--- a/examples/resources/airbyte_destination_redis/resource.tf
+++ b/examples/resources/airbyte_destination_redis/resource.tf
@@ -1,23 +1,18 @@
resource "airbyte_destination_redis" "my_destination_redis" {
configuration = {
- cache_type = "hash"
- destination_type = "redis"
- host = "localhost,127.0.0.1"
- password = "...my_password..."
- port = 9
- ssl = false
+ cache_type = "hash"
+ host = "localhost,127.0.0.1"
+ password = "...my_password..."
+ port = 2
+ ssl = true
ssl_mode = {
- destination_redis_ssl_modes_disable = {
- mode = "disable"
- }
+ destination_redis_ssl_modes_disable = {}
}
tunnel_method = {
- destination_redis_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_redis_ssh_tunnel_method_no_tunnel = {}
}
- username = "Vivianne.Baumbach3"
+ username = "Kathryne_Monahan22"
}
- name = "Bonnie Halvorson"
- workspace_id = "f94e29e9-73e9-422a-97a1-5be3e060807e"
+ name = "Gerard Ratke"
+ workspace_id = "3d3987f0-9ed8-432d-98dd-dbef1f87bb50"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_redshift/resource.tf b/examples/resources/airbyte_destination_redshift/resource.tf
old mode 100755
new mode 100644
index 069b130b6..70cddf00b
--- a/examples/resources/airbyte_destination_redshift/resource.tf
+++ b/examples/resources/airbyte_destination_redshift/resource.tf
@@ -1,38 +1,33 @@
resource "airbyte_destination_redshift" "my_destination_redshift" {
configuration = {
- database = "...my_database..."
- destination_type = "redshift"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5439
- schema = "public"
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5439
+ schema = "public"
tunnel_method = {
- destination_redshift_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_redshift_ssh_tunnel_method_no_tunnel = {}
}
uploading_method = {
destination_redshift_uploading_method_s3_staging = {
access_key_id = "...my_access_key_id..."
encryption = {
destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption = {
- encryption_type = "aes_cbc_envelope"
key_encrypting_key = "...my_key_encrypting_key..."
}
}
file_buffer_count = 10
- file_name_pattern = "{timestamp}"
- method = "S3 Staging"
- purge_staging_data = false
+ file_name_pattern = "{sync_id}"
+ purge_staging_data = true
s3_bucket_name = "airbyte.staging"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "us-west-2"
+ s3_bucket_region = "ap-northeast-2"
secret_access_key = "...my_secret_access_key..."
}
}
- username = "Margarette_Rau"
+ username = "Lucinda.Heathcote"
}
- name = "Mrs. Geraldine Zulauf"
- workspace_id = "7a60ff2a-54a3-41e9-8764-a3e865e7956f"
+ name = "Samantha O'Reilly"
+ workspace_id = "180123f0-d76f-4b78-bf74-fa22de12791b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_s3/resource.tf b/examples/resources/airbyte_destination_s3/resource.tf
old mode 100755
new mode 100644
index 4f2f1b546..31f9a6914
--- a/examples/resources/airbyte_destination_s3/resource.tf
+++ b/examples/resources/airbyte_destination_s3/resource.tf
@@ -1,8 +1,7 @@
resource "airbyte_destination_s3" "my_destination_s3" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "s3"
- file_name_pattern = "{timestamp}"
+ file_name_pattern = "{date:yyyy_MM}"
format = {
destination_s3_output_format_avro_apache_avro = {
compression_codec = {
@@ -15,11 +14,11 @@ resource "airbyte_destination_s3" "my_destination_s3" {
}
s3_bucket_name = "airbyte_sync"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "us-west-1"
+ s3_bucket_region = "us-gov-west-1"
s3_endpoint = "http://localhost:9000"
s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Joyce O'Kon"
- workspace_id = "9da660ff-57bf-4aad-8f9e-fc1b4512c103"
+ name = "Shannon Goldner Jr."
+ workspace_id = "0749774a-e87c-4308-92ff-b0f41f82248d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_s3_glue/resource.tf b/examples/resources/airbyte_destination_s3_glue/resource.tf
old mode 100755
new mode 100644
index 50a910473..aacfe66e7
--- a/examples/resources/airbyte_destination_s3_glue/resource.tf
+++ b/examples/resources/airbyte_destination_s3_glue/resource.tf
@@ -1,8 +1,7 @@
resource "airbyte_destination_s3_glue" "my_destination_s3glue" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
- destination_type = "s3-glue"
- file_name_pattern = "{date}"
+ file_name_pattern = "{timestamp}"
format = {
destination_s3_glue_output_format_json_lines_newline_delimited_json = {
compression = {
@@ -18,11 +17,11 @@ resource "airbyte_destination_s3_glue" "my_destination_s3glue" {
glue_serialization_library = "org.openx.data.jsonserde.JsonSerDe"
s3_bucket_name = "airbyte_sync"
s3_bucket_path = "data_sync/test"
- s3_bucket_region = "ca-central-1"
+ s3_bucket_region = "us-west-1"
s3_endpoint = "http://localhost:9000"
s3_path_format = "${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
}
- name = "Edmund Daugherty"
- workspace_id = "15199ebf-d0e9-4fe6-8632-ca3aed011799"
+ name = "Manuel Dickens"
+ workspace_id = "bd87b5cc-e361-4485-8333-df23c5e509f4"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_sftp_json/resource.tf b/examples/resources/airbyte_destination_sftp_json/resource.tf
old mode 100755
new mode 100644
index 81c008f85..0cc135740
--- a/examples/resources/airbyte_destination_sftp_json/resource.tf
+++ b/examples/resources/airbyte_destination_sftp_json/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_destination_sftp_json" "my_destination_sftpjson" {
configuration = {
destination_path = "/json_data"
- destination_type = "sftp-json"
host = "...my_host..."
password = "...my_password..."
port = 22
- username = "Dayton98"
+ username = "Christop6"
}
- name = "Terence Beer"
- workspace_id = "71778ff6-1d01-4747-a360-a15db6a66065"
+ name = "Matthew Friesen"
+ workspace_id = "78c254cd-184f-4d11-ae75-f1c50c9ec767"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_snowflake/resource.tf b/examples/resources/airbyte_destination_snowflake/resource.tf
old mode 100755
new mode 100644
index 53828d8f3..dc495e85c
--- a/examples/resources/airbyte_destination_snowflake/resource.tf
+++ b/examples/resources/airbyte_destination_snowflake/resource.tf
@@ -2,21 +2,19 @@ resource "airbyte_destination_snowflake" "my_destination_snowflake" {
configuration = {
credentials = {
destination_snowflake_authorization_method_key_pair_authentication = {
- auth_type = "Key Pair Authentication"
private_key = "...my_private_key..."
private_key_password = "...my_private_key_password..."
}
}
- database = "AIRBYTE_DATABASE"
- destination_type = "snowflake"
- host = "accountname.snowflakecomputing.com"
- jdbc_url_params = "...my_jdbc_url_params..."
- raw_data_schema = "...my_raw_data_schema..."
- role = "AIRBYTE_ROLE"
- schema = "AIRBYTE_SCHEMA"
- username = "AIRBYTE_USER"
- warehouse = "AIRBYTE_WAREHOUSE"
+ database = "AIRBYTE_DATABASE"
+ host = "accountname.us-east-2.aws.snowflakecomputing.com"
+ jdbc_url_params = "...my_jdbc_url_params..."
+ raw_data_schema = "...my_raw_data_schema..."
+ role = "AIRBYTE_ROLE"
+ schema = "AIRBYTE_SCHEMA"
+ username = "AIRBYTE_USER"
+ warehouse = "AIRBYTE_WAREHOUSE"
}
- name = "Shaun Osinski"
- workspace_id = "851d6c64-5b08-4b61-891b-aa0fe1ade008"
+ name = "Van Leuschke"
+ workspace_id = "e4a6f8bb-810e-4d64-af80-2e7b2183b2bc"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_timeplus/resource.tf b/examples/resources/airbyte_destination_timeplus/resource.tf
old mode 100755
new mode 100644
index 993ad14c9..182c13d18
--- a/examples/resources/airbyte_destination_timeplus/resource.tf
+++ b/examples/resources/airbyte_destination_timeplus/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_destination_timeplus" "my_destination_timeplus" {
configuration = {
- apikey = "...my_apikey..."
- destination_type = "timeplus"
- endpoint = "https://us.timeplus.cloud/workspace_id"
+ apikey = "...my_apikey..."
+ endpoint = "https://us.timeplus.cloud/workspace_id"
}
- name = "Ruben Williamson"
- workspace_id = "5f350d8c-db5a-4341-8143-010421813d52"
+ name = "Johanna Kemmer"
+ workspace_id = "7afdacad-2c14-4cf1-ba66-83bb76cbdd42"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_typesense/resource.tf b/examples/resources/airbyte_destination_typesense/resource.tf
old mode 100755
new mode 100644
index 8ac02039f..f8929361f
--- a/examples/resources/airbyte_destination_typesense/resource.tf
+++ b/examples/resources/airbyte_destination_typesense/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_destination_typesense" "my_destination_typesense" {
configuration = {
- api_key = "...my_api_key..."
- batch_size = 0
- destination_type = "typesense"
- host = "...my_host..."
- port = "...my_port..."
- protocol = "...my_protocol..."
+ api_key = "...my_api_key..."
+ batch_size = 8
+ host = "...my_host..."
+ port = "...my_port..."
+ protocol = "...my_protocol..."
}
- name = "Conrad Rutherford"
- workspace_id = "e253b668-451c-46c6-a205-e16deab3fec9"
+ name = "Marjorie Prohaska"
+ workspace_id = "603cc8cd-887e-4760-b813-ef7fc0d176e5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_vertica/resource.tf b/examples/resources/airbyte_destination_vertica/resource.tf
old mode 100755
new mode 100644
index 17bdfbd5c..4d9c1c436
--- a/examples/resources/airbyte_destination_vertica/resource.tf
+++ b/examples/resources/airbyte_destination_vertica/resource.tf
@@ -1,19 +1,16 @@
resource "airbyte_destination_vertica" "my_destination_vertica" {
configuration = {
- database = "...my_database..."
- destination_type = "vertica"
- host = "...my_host..."
- jdbc_url_params = "...my_jdbc_url_params..."
- password = "...my_password..."
- port = 5433
- schema = "...my_schema..."
+ database = "...my_database..."
+ host = "...my_host..."
+ jdbc_url_params = "...my_jdbc_url_params..."
+ password = "...my_password..."
+ port = 5433
+ schema = "...my_schema..."
tunnel_method = {
- destination_vertica_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ destination_vertica_ssh_tunnel_method_no_tunnel = {}
}
- username = "Jackson.Kuvalis"
+ username = "Douglas32"
}
- name = "Ida Lubowitz"
- workspace_id = "73a8418d-1623-409f-b092-9921aefb9f58"
+ name = "Mr. Bobbie Wolf"
+ workspace_id = "2182d15e-f4e8-495c-9212-618452d1432f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_destination_xata/resource.tf b/examples/resources/airbyte_destination_xata/resource.tf
old mode 100755
new mode 100644
index 082cbbe68..e4a8b06ed
--- a/examples/resources/airbyte_destination_xata/resource.tf
+++ b/examples/resources/airbyte_destination_xata/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_destination_xata" "my_destination_xata" {
configuration = {
- api_key = "...my_api_key..."
- db_url = "https://my-workspace-abc123.us-east-1.xata.sh/db/nyc-taxi-fares:main"
- destination_type = "xata"
+ api_key = "...my_api_key..."
+ db_url = "https://my-workspace-abc123.us-east-1.xata.sh/db/nyc-taxi-fares:main"
}
- name = "Oscar Smith"
- workspace_id = "e68e4be0-5601-43f5-9da7-57a59ecfef66"
+ name = "Shannon Kuvalis"
+ workspace_id = "fec4ca4c-8c4b-4f88-a725-c3c6bc39a6d3"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_aha/resource.tf b/examples/resources/airbyte_source_aha/resource.tf
old mode 100755
new mode 100644
index f1b3af875..1e3c7a2ef
--- a/examples/resources/airbyte_source_aha/resource.tf
+++ b/examples/resources/airbyte_source_aha/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_aha" "my_source_aha" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "aha"
- url = "...my_url..."
+ api_key = "...my_api_key..."
+ url = "...my_url..."
}
- name = "Van Bergnaum"
+ name = "Melvin Marks"
secret_id = "...my_secret_id..."
- workspace_id = "a3383c2b-eb47-4737-bc8d-72f64d1db1f2"
+ workspace_id = "39ea0e10-1659-40e1-a2bc-7de0ff637374"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_aircall/resource.tf b/examples/resources/airbyte_source_aircall/resource.tf
old mode 100755
new mode 100644
index 190aa852c..2fde4fa05
--- a/examples/resources/airbyte_source_aircall/resource.tf
+++ b/examples/resources/airbyte_source_aircall/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_aircall" "my_source_aircall" {
configuration = {
- api_id = "...my_api_id..."
- api_token = "...my_api_token..."
- source_type = "aircall"
- start_date = "2022-03-01T00:00:00.000Z"
+ api_id = "...my_api_id..."
+ api_token = "...my_api_token..."
+ start_date = "2022-03-01T00:00:00.000Z"
}
- name = "Martha Bashirian"
+ name = "Kari Flatley"
secret_id = "...my_secret_id..."
- workspace_id = "1e96349e-1cf9-4e06-a3a4-37000ae6b6bc"
+ workspace_id = "c2cd950e-36ac-4c1e-af12-915604b55b32"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_airtable/resource.tf b/examples/resources/airbyte_source_airtable/resource.tf
old mode 100755
new mode 100644
index 07c584229..64af46fe4
--- a/examples/resources/airbyte_source_airtable/resource.tf
+++ b/examples/resources/airbyte_source_airtable/resource.tf
@@ -3,16 +3,14 @@ resource "airbyte_source_airtable" "my_source_airtable" {
credentials = {
source_airtable_authentication_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-08-01T09:41:55.270Z"
+ token_expiry_date = "2022-02-15T01:33:45.237Z"
}
}
- source_type = "airtable"
}
- name = "Tommie Klocko"
+ name = "Vicki Smitham"
secret_id = "...my_secret_id..."
- workspace_id = "eac55a97-41d3-4113-9296-5bb8a7202611"
+ workspace_id = "48e4e42a-5305-40a9-afbc-66c913a5b780"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_alloydb/resource.tf b/examples/resources/airbyte_source_alloydb/resource.tf
old mode 100755
new mode 100644
index 813b5dd16..88ac3a2bc
--- a/examples/resources/airbyte_source_alloydb/resource.tf
+++ b/examples/resources/airbyte_source_alloydb/resource.tf
@@ -6,33 +6,30 @@ resource "airbyte_source_alloydb" "my_source_alloydb" {
password = "...my_password..."
port = 5432
replication_method = {
- source_alloydb_replication_method_logical_replication_cdc_ = {
- initial_waiting_seconds = 2
- lsn_commit_behaviour = "While reading Data"
- method = "CDC"
+ source_alloydb_replication_method_logical_replication_cdc = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ initial_waiting_seconds = 1
+ lsn_commit_behaviour = "After loading Data in the destination"
plugin = "pgoutput"
publication = "...my_publication..."
- queue_size = 10
+ queue_size = 4
replication_slot = "...my_replication_slot..."
}
}
schemas = [
"...",
]
- source_type = "alloydb"
ssl_mode = {
source_alloydb_ssl_modes_allow = {
- mode = "allow"
+ additional_properties = "{ \"see\": \"documentation\" }"
}
}
tunnel_method = {
- source_alloydb_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_alloydb_ssh_tunnel_method_no_tunnel = {}
}
- username = "Ashlynn_Emard"
+ username = "Mackenzie83"
}
- name = "Wilbert Crona"
+ name = "Robin Kuhn"
secret_id = "...my_secret_id..."
- workspace_id = "9b1abda8-c070-4e10-84cb-0672d1ad879e"
+ workspace_id = "3598ffb0-4292-44fa-aae5-018c31937409"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_amazon_ads/resource.tf b/examples/resources/airbyte_source_amazon_ads/resource.tf
old mode 100755
new mode 100644
index 6a42f262d..dc2cfd965
--- a/examples/resources/airbyte_source_amazon_ads/resource.tf
+++ b/examples/resources/airbyte_source_amazon_ads/resource.tf
@@ -1,27 +1,25 @@
resource "airbyte_source_amazon_ads" "my_source_amazonads" {
configuration = {
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- look_back_window = 10
+ look_back_window = 3
marketplace_ids = [
"...",
]
profiles = [
- 6,
+ 10,
]
refresh_token = "...my_refresh_token..."
- region = "EU"
+ region = "FE"
report_record_types = [
- "asins_targets",
+ "asins",
]
- source_type = "amazon-ads"
- start_date = "2022-10-10"
+ start_date = "2022-10-10"
state_filter = [
"archived",
]
}
- name = "Dan Towne"
+ name = "Brett Wisozk IV"
secret_id = "...my_secret_id..."
- workspace_id = "d02bae0b-e2d7-4822-99e3-ea4b5197f924"
+ workspace_id = "64a856a0-4170-4ff8-966d-c32335977b07"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_amazon_seller_partner/resource.tf b/examples/resources/airbyte_source_amazon_seller_partner/resource.tf
old mode 100755
new mode 100644
index 189c56620..a30e25f73
--- a/examples/resources/airbyte_source_amazon_seller_partner/resource.tf
+++ b/examples/resources/airbyte_source_amazon_seller_partner/resource.tf
@@ -1,23 +1,21 @@
resource "airbyte_source_amazon_seller_partner" "my_source_amazonsellerpartner" {
configuration = {
- advanced_stream_options = "{\"GET_SALES_AND_TRAFFIC_REPORT\": {\"availability_sla_days\": 3}}"
- auth_type = "oauth2.0"
+ advanced_stream_options = "{\"GET_SOME_REPORT\": {\"custom\": \"true\"}}"
aws_access_key = "...my_aws_access_key..."
- aws_environment = "PRODUCTION"
+ aws_environment = "SANDBOX"
aws_secret_key = "...my_aws_secret_key..."
lwa_app_id = "...my_lwa_app_id..."
lwa_client_secret = "...my_lwa_client_secret..."
- max_wait_seconds = 1980
- period_in_days = 5
+ max_wait_seconds = 500
+ period_in_days = 1
refresh_token = "...my_refresh_token..."
- region = "SA"
+ region = "IT"
replication_end_date = "2017-01-25T00:00:00Z"
replication_start_date = "2017-01-25T00:00:00Z"
report_options = "{\"GET_SOME_REPORT\": {\"custom\": \"true\"}}"
role_arn = "...my_role_arn..."
- source_type = "amazon-seller-partner"
}
- name = "Phyllis Quitzon"
+ name = "Linda Kutch"
secret_id = "...my_secret_id..."
- workspace_id = "5c537c64-54ef-4b0b-b489-6c3ca5acfbe2"
+ workspace_id = "58c67348-eaa4-4356-b389-ad49dbc4fabb"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_amazon_sqs/resource.tf b/examples/resources/airbyte_source_amazon_sqs/resource.tf
old mode 100755
new mode 100644
index 9721a2135..43552a739
--- a/examples/resources/airbyte_source_amazon_sqs/resource.tf
+++ b/examples/resources/airbyte_source_amazon_sqs/resource.tf
@@ -6,12 +6,11 @@ resource "airbyte_source_amazon_sqs" "my_source_amazonsqs" {
max_batch_size = 5
max_wait_time = 5
queue_url = "https://sqs.eu-west-1.amazonaws.com/1234567890/my-example-queue"
- region = "ap-southeast-2"
+ region = "eu-central-1"
secret_key = "hu+qE5exxxxT6o/ZrKsxxxxxxBhxxXLexxxxxVKz"
- source_type = "amazon-sqs"
visibility_timeout = 15
}
- name = "Cathy Kirlin"
+ name = "Mr. Myrtle Crona"
secret_id = "...my_secret_id..."
- workspace_id = "29177dea-c646-4ecb-9734-09e3eb1e5a2b"
+ workspace_id = "b4de2c1a-7f28-48ad-bcde-3c9d6fa94b74"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_amplitude/resource.tf b/examples/resources/airbyte_source_amplitude/resource.tf
old mode 100755
new mode 100644
index 4266cd121..d5ed9ca2e
--- a/examples/resources/airbyte_source_amplitude/resource.tf
+++ b/examples/resources/airbyte_source_amplitude/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_amplitude" "my_source_amplitude" {
configuration = {
api_key = "...my_api_key..."
- data_region = "Standard Server"
- request_time_range = 1
+ data_region = "EU Residency Server"
+ request_time_range = 6
secret_key = "...my_secret_key..."
- source_type = "amplitude"
start_date = "2021-01-25T00:00:00Z"
}
- name = "Robin Bednar"
+ name = "Priscilla Wunsch"
secret_id = "...my_secret_id..."
- workspace_id = "116db995-45fc-495f-a889-70e189dbb30f"
+ workspace_id = "ce1dfc1b-2798-4db1-9e64-b83f63d34837"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_apify_dataset/resource.tf b/examples/resources/airbyte_source_apify_dataset/resource.tf
old mode 100755
new mode 100644
index 282254900..ec97c1d0f
--- a/examples/resources/airbyte_source_apify_dataset/resource.tf
+++ b/examples/resources/airbyte_source_apify_dataset/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_apify_dataset" "my_source_apifydataset" {
configuration = {
- clean = true
- dataset_id = "...my_dataset_id..."
- source_type = "apify-dataset"
- token = "Personal API tokens"
+ clean = false
+ dataset_id = "...my_dataset_id..."
+ token = "Personal API tokens"
}
- name = "Dale Ferry"
+ name = "Eric King"
secret_id = "...my_secret_id..."
- workspace_id = "055b197c-d44e-42f5-ad82-d3513bb6f48b"
+ workspace_id = "c9d4f32d-3e19-42a8-a43c-0f29f7cbd12b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_appfollow/resource.tf b/examples/resources/airbyte_source_appfollow/resource.tf
old mode 100755
new mode 100644
index 1870408d1..8fc3319c4
--- a/examples/resources/airbyte_source_appfollow/resource.tf
+++ b/examples/resources/airbyte_source_appfollow/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_appfollow" "my_source_appfollow" {
configuration = {
- api_secret = "...my_api_secret..."
- source_type = "appfollow"
+ api_secret = "...my_api_secret..."
}
- name = "Regina Huel"
+ name = "Ruby Becker"
secret_id = "...my_secret_id..."
- workspace_id = "db35ff2e-4b27-4537-a8cd-9e7319c177d5"
+ workspace_id = "3801c367-8d42-4b62-94a3-1a29aaf3c680"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_asana/resource.tf b/examples/resources/airbyte_source_asana/resource.tf
old mode 100755
new mode 100644
index 24081f27a..55f50ec04
--- a/examples/resources/airbyte_source_asana/resource.tf
+++ b/examples/resources/airbyte_source_asana/resource.tf
@@ -1,16 +1,14 @@
resource "airbyte_source_asana" "my_source_asana" {
configuration = {
credentials = {
- source_asana_authentication_mechanism_authenticate_via_asana_oauth_ = {
+ source_asana_authentication_mechanism_authenticate_via_asana_oauth = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- option_title = "OAuth Credentials"
refresh_token = "...my_refresh_token..."
}
}
- source_type = "asana"
}
- name = "Jill Wintheiser"
+ name = "Melissa VonRueden"
secret_id = "...my_secret_id..."
- workspace_id = "b114eeb5-2ff7-485f-8378-14d4c98e0c2b"
+ workspace_id = "15370422-95e6-4e54-9c30-616586b73990"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_auth0/resource.tf b/examples/resources/airbyte_source_auth0/resource.tf
old mode 100755
new mode 100644
index 91e63dcbc..f372f632e
--- a/examples/resources/airbyte_source_auth0/resource.tf
+++ b/examples/resources/airbyte_source_auth0/resource.tf
@@ -4,13 +4,11 @@ resource "airbyte_source_auth0" "my_source_auth0" {
credentials = {
source_auth0_authentication_method_o_auth2_access_token = {
access_token = "...my_access_token..."
- auth_type = "oauth2_access_token"
}
}
- source_type = "auth0"
- start_date = "2023-08-05T00:43:59.244Z"
+ start_date = "2023-08-05T00:43:59.244Z"
}
- name = "Willard McLaughlin"
+ name = "Merle Nicolas"
secret_id = "...my_secret_id..."
- workspace_id = "75dad636-c600-4503-98bb-31180f739ae9"
+ workspace_id = "beba7dc7-cde8-4f8d-8392-aab15fb458ba"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf
old mode 100755
new mode 100644
index 524f4ccc9..fa97d1241
--- a/examples/resources/airbyte_source_aws_cloudtrail/resource.tf
+++ b/examples/resources/airbyte_source_aws_cloudtrail/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_aws_cloudtrail" "my_source_awscloudtrail" {
aws_key_id = "...my_aws_key_id..."
aws_region_name = "...my_aws_region_name..."
aws_secret_key = "...my_aws_secret_key..."
- source_type = "aws-cloudtrail"
start_date = "2021-01-01"
}
- name = "Nellie Waters"
+ name = "Ernesto Koelpin"
secret_id = "...my_secret_id..."
- workspace_id = "09e28103-31f3-4981-94c7-00b607f3c93c"
+ workspace_id = "1d5852a4-59de-4520-8e34-20a295e5c099"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_azure_blob_storage/resource.tf b/examples/resources/airbyte_source_azure_blob_storage/resource.tf
old mode 100755
new mode 100644
index cbf51bfc3..245107de6
--- a/examples/resources/airbyte_source_azure_blob_storage/resource.tf
+++ b/examples/resources/airbyte_source_azure_blob_storage/resource.tf
@@ -7,13 +7,10 @@ resource "airbyte_source_azure_blob_storage" "my_source_azureblobstorage" {
azure_blob_storage_endpoint = "blob.core.windows.net"
azure_blob_storage_schema_inference_limit = 500
format = {
- source_azure_blob_storage_input_format_json_lines_newline_delimited_json = {
- format_type = "JSONL"
- }
+ source_azure_blob_storage_input_format_json_lines_newline_delimited_json = {}
}
- source_type = "azure-blob-storage"
}
- name = "Patty Mraz"
+ name = "Margie Kutch"
secret_id = "...my_secret_id..."
- workspace_id = "3f2ceda7-e23f-4225-b411-faf4b7544e47"
+ workspace_id = "187a0987-5344-412b-8321-7acbe2ad9f31"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_azure_table/resource.tf b/examples/resources/airbyte_source_azure_table/resource.tf
old mode 100755
new mode 100644
index f8b67a2aa..6b3254b7e
--- a/examples/resources/airbyte_source_azure_table/resource.tf
+++ b/examples/resources/airbyte_source_azure_table/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_azure_table" "my_source_azuretable" {
configuration = {
- source_type = "azure-table"
storage_access_key = "...my_storage_access_key..."
storage_account_name = "...my_storage_account_name..."
- storage_endpoint_suffix = "core.windows.net"
+ storage_endpoint_suffix = "core.chinacloudapi.cn"
}
- name = "Ian Baumbach"
+ name = "Lucille Lubowitz"
secret_id = "...my_secret_id..."
- workspace_id = "57a5b404-63a7-4d57-9f14-00e764ad7334"
+ workspace_id = "c7b23d6b-848f-4403-86c0-4b193fb28918"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_bamboo_hr/resource.tf b/examples/resources/airbyte_source_bamboo_hr/resource.tf
old mode 100755
new mode 100644
index 034bf7c8c..9e77be34f
--- a/examples/resources/airbyte_source_bamboo_hr/resource.tf
+++ b/examples/resources/airbyte_source_bamboo_hr/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_bamboo_hr" "my_source_bamboohr" {
api_key = "...my_api_key..."
custom_reports_fields = "...my_custom_reports_fields..."
custom_reports_include_default_fields = true
- source_type = "bamboo-hr"
subdomain = "...my_subdomain..."
}
- name = "Ralph Rau"
+ name = "Olga Crooks"
secret_id = "...my_secret_id..."
- workspace_id = "1b36a080-88d1-400e-bada-200ef0422eb2"
+ workspace_id = "6ed560cd-3f9e-41f9-aaf9-a8e2157a8560"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_bigcommerce/resource.tf b/examples/resources/airbyte_source_bigcommerce/resource.tf
old mode 100755
new mode 100644
index 8235355de..66c336df7
--- a/examples/resources/airbyte_source_bigcommerce/resource.tf
+++ b/examples/resources/airbyte_source_bigcommerce/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_bigcommerce" "my_source_bigcommerce" {
configuration = {
access_token = "...my_access_token..."
- source_type = "bigcommerce"
start_date = "2021-01-01"
store_hash = "...my_store_hash..."
}
- name = "Beth Gleason"
+ name = "Max Mills"
secret_id = "...my_secret_id..."
- workspace_id = "9ab8366c-723f-4fda-9e06-bee4825c1fc0"
+ workspace_id = "7fd0c202-086d-4396-9e60-f942f937a3c5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_bigquery/resource.tf b/examples/resources/airbyte_source_bigquery/resource.tf
old mode 100755
new mode 100644
index c9122f490..2792c8e35
--- a/examples/resources/airbyte_source_bigquery/resource.tf
+++ b/examples/resources/airbyte_source_bigquery/resource.tf
@@ -3,9 +3,8 @@ resource "airbyte_source_bigquery" "my_source_bigquery" {
credentials_json = "...my_credentials_json..."
dataset_id = "...my_dataset_id..."
project_id = "...my_project_id..."
- source_type = "bigquery"
}
- name = "Joe Bradtke"
+ name = "Greg Bayer"
secret_id = "...my_secret_id..."
- workspace_id = "80bff918-544e-4c42-9efc-ce8f1977773e"
+ workspace_id = "d11c7ed1-7b1d-45b0-8289-a0dc02329a5c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_bing_ads/resource.tf b/examples/resources/airbyte_source_bing_ads/resource.tf
old mode 100755
new mode 100644
index 7633b99ea..b2e74cbcb
--- a/examples/resources/airbyte_source_bing_ads/resource.tf
+++ b/examples/resources/airbyte_source_bing_ads/resource.tf
@@ -1,16 +1,14 @@
resource "airbyte_source_bing_ads" "my_source_bingads" {
configuration = {
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
developer_token = "...my_developer_token..."
- lookback_window = 4
+ lookback_window = 7
refresh_token = "...my_refresh_token..."
- reports_start_date = "2022-08-23"
- source_type = "bing-ads"
+ reports_start_date = "2021-04-13"
tenant_id = "...my_tenant_id..."
}
- name = "Kathryn Nitzsche"
+ name = "Alfred Littel"
secret_id = "...my_secret_id..."
- workspace_id = "408f05e3-d48f-4daf-b13a-1f5fd94259c0"
+ workspace_id = "495eab20-ebb3-405f-b624-c43900725fa3"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_braintree/resource.tf b/examples/resources/airbyte_source_braintree/resource.tf
old mode 100755
new mode 100644
index e67333ee3..716b990bb
--- a/examples/resources/airbyte_source_braintree/resource.tf
+++ b/examples/resources/airbyte_source_braintree/resource.tf
@@ -4,10 +4,9 @@ resource "airbyte_source_braintree" "my_source_braintree" {
merchant_id = "...my_merchant_id..."
private_key = "...my_private_key..."
public_key = "...my_public_key..."
- source_type = "braintree"
- start_date = "2020-12-30"
+ start_date = "2020"
}
- name = "Henrietta Nienow"
+ name = "Traci Volkman"
secret_id = "...my_secret_id..."
- workspace_id = "4f3b756c-11f6-4c37-a512-6243835bbc05"
+ workspace_id = "2f8e06ef-6fed-4365-9e7d-5496735da213"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_braze/resource.tf b/examples/resources/airbyte_source_braze/resource.tf
old mode 100755
new mode 100644
index ffaee2c2e..f57f6564a
--- a/examples/resources/airbyte_source_braze/resource.tf
+++ b/examples/resources/airbyte_source_braze/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_braze" "my_source_braze" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "braze"
- start_date = "2022-09-06"
- url = "...my_url..."
+ api_key = "...my_api_key..."
+ start_date = "2021-06-06"
+ url = "...my_url..."
}
- name = "Rosie Glover"
+ name = "Alberta Langosh"
secret_id = "...my_secret_id..."
- workspace_id = "efc5fde1-0a0c-4e21-a9e5-10019c6dc5e3"
+ workspace_id = "fef8f538-76e3-4de3-8a86-e4df19faac84"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_chargebee/resource.tf b/examples/resources/airbyte_source_chargebee/resource.tf
old mode 100755
new mode 100644
index 20c68d417..25d932baa
--- a/examples/resources/airbyte_source_chargebee/resource.tf
+++ b/examples/resources/airbyte_source_chargebee/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_chargebee" "my_source_chargebee" {
configuration = {
- product_catalog = "1.0"
+ product_catalog = "2.0"
site = "airbyte-test"
site_api_key = "...my_site_api_key..."
- source_type = "chargebee"
start_date = "2021-01-25T00:00:00Z"
}
- name = "Viola Morissette"
+ name = "Marcus Jaskolski"
secret_id = "...my_secret_id..."
- workspace_id = "fbbe6949-fb2b-4b4e-8ae6-c3d5db3adebd"
+ workspace_id = "3644196a-04bb-4966-ae7d-15e7eedd4643"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_chartmogul/resource.tf b/examples/resources/airbyte_source_chartmogul/resource.tf
old mode 100755
new mode 100644
index 26786c0bb..08b3f2ad7
--- a/examples/resources/airbyte_source_chartmogul/resource.tf
+++ b/examples/resources/airbyte_source_chartmogul/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_chartmogul" "my_source_chartmogul" {
configuration = {
- api_key = "...my_api_key..."
- interval = "week"
- source_type = "chartmogul"
- start_date = "2017-01-25T00:00:00Z"
+ api_key = "...my_api_key..."
+ interval = "week"
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Neal Gorczany"
+ name = "Tyler Lind"
secret_id = "...my_secret_id..."
- workspace_id = "06a8aa94-c026-444c-b5e9-d9a4578adc1a"
+ workspace_id = "dc13c292-fcfa-4b73-b9ba-5d3045674ad2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_clickhouse/resource.tf b/examples/resources/airbyte_source_clickhouse/resource.tf
old mode 100755
new mode 100644
index 60847903f..873e0fa50
--- a/examples/resources/airbyte_source_clickhouse/resource.tf
+++ b/examples/resources/airbyte_source_clickhouse/resource.tf
@@ -1,18 +1,15 @@
resource "airbyte_source_clickhouse" "my_source_clickhouse" {
configuration = {
- database = "default"
- host = "...my_host..."
- password = "...my_password..."
- port = 8123
- source_type = "clickhouse"
+ database = "default"
+ host = "...my_host..."
+ password = "...my_password..."
+ port = 8123
tunnel_method = {
- source_clickhouse_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_clickhouse_ssh_tunnel_method_no_tunnel = {}
}
- username = "Gerry81"
+ username = "Sarah.Rolfson7"
}
- name = "Mr. Simon Altenwerth"
+ name = "Adrian Williamson"
secret_id = "...my_secret_id..."
- workspace_id = "c802e2ec-09ff-48f0-b816-ff3477c13e90"
+ workspace_id = "13664c8a-b088-4c24-8e91-396f3407545d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_clickup_api/resource.tf b/examples/resources/airbyte_source_clickup_api/resource.tf
old mode 100755
new mode 100644
index f07e8ffae..598afb467
--- a/examples/resources/airbyte_source_clickup_api/resource.tf
+++ b/examples/resources/airbyte_source_clickup_api/resource.tf
@@ -4,11 +4,10 @@ resource "airbyte_source_clickup_api" "my_source_clickupapi" {
folder_id = "...my_folder_id..."
include_closed_tasks = true
list_id = "...my_list_id..."
- source_type = "clickup-api"
space_id = "...my_space_id..."
team_id = "...my_team_id..."
}
- name = "Mr. Jack Gottlieb"
+ name = "Karen Jacobs"
secret_id = "...my_secret_id..."
- workspace_id = "b0960a66-8151-4a47-aaf9-23c5949f83f3"
+ workspace_id = "d04e6080-39bc-47eb-8732-a47524bb490a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_clockify/resource.tf b/examples/resources/airbyte_source_clockify/resource.tf
old mode 100755
new mode 100644
index 6e40ed5d1..d94d1fd65
--- a/examples/resources/airbyte_source_clockify/resource.tf
+++ b/examples/resources/airbyte_source_clockify/resource.tf
@@ -2,10 +2,9 @@ resource "airbyte_source_clockify" "my_source_clockify" {
configuration = {
api_key = "...my_api_key..."
api_url = "...my_api_url..."
- source_type = "clockify"
workspace_id = "...my_workspace_id..."
}
- name = "Angela Schaefer"
+ name = "Jessie Hansen"
secret_id = "...my_secret_id..."
- workspace_id = "76ffb901-c6ec-4bb4-a243-cf789ffafeda"
+ workspace_id = "d11902ba-1888-4602-b1ad-193af491985c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_close_com/resource.tf b/examples/resources/airbyte_source_close_com/resource.tf
old mode 100755
new mode 100644
index c353f6aa5..6e65747eb
--- a/examples/resources/airbyte_source_close_com/resource.tf
+++ b/examples/resources/airbyte_source_close_com/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_close_com" "my_source_closecom" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "close-com"
- start_date = "2021-01-01"
+ api_key = "...my_api_key..."
+ start_date = "2021-01-01"
}
- name = "Ronnie Nikolaus"
+ name = "Luis Fahey"
secret_id = "...my_secret_id..."
- workspace_id = "e0ac184c-2b9c-4247-8883-73a40e1942f3"
+ workspace_id = "e7edb401-c239-4e69-86f2-1d654173cccb"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_coda/resource.tf b/examples/resources/airbyte_source_coda/resource.tf
old mode 100755
new mode 100644
index ad3f1aa2b..f945394c4
--- a/examples/resources/airbyte_source_coda/resource.tf
+++ b/examples/resources/airbyte_source_coda/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_coda" "my_source_coda" {
configuration = {
- auth_token = "...my_auth_token..."
- source_type = "coda"
+ auth_token = "...my_auth_token..."
}
- name = "Lila Harris II"
+ name = "Miss Forrest Heaney"
secret_id = "...my_secret_id..."
- workspace_id = "5756f5d5-6d0b-4d0a-b2df-e13db4f62cba"
+ workspace_id = "caa62e55-7cba-40d3-b800-2a5767fcf379"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_coin_api/resource.tf b/examples/resources/airbyte_source_coin_api/resource.tf
old mode 100755
new mode 100644
index 20698fb64..664062110
--- a/examples/resources/airbyte_source_coin_api/resource.tf
+++ b/examples/resources/airbyte_source_coin_api/resource.tf
@@ -2,14 +2,13 @@ resource "airbyte_source_coin_api" "my_source_coinapi" {
configuration = {
api_key = "...my_api_key..."
end_date = "2019-01-01T00:00:00"
- environment = "sandbox"
- limit = 10
- period = "2MTH"
- source_type = "coin-api"
+ environment = "production"
+ limit = 7
+ period = "5SEC"
start_date = "2019-01-01T00:00:00"
symbol_id = "...my_symbol_id..."
}
- name = "Francis Boyle"
+ name = "Rebecca Brekke"
secret_id = "...my_secret_id..."
- workspace_id = "bc0b80a6-924d-43b2-acfc-c8f895010f5d"
+ workspace_id = "e8db1144-f7f4-4dcb-a810-858467e5cd33"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_coinmarketcap/resource.tf b/examples/resources/airbyte_source_coinmarketcap/resource.tf
old mode 100755
new mode 100644
index 4169d481c..1ee29b940
--- a/examples/resources/airbyte_source_coinmarketcap/resource.tf
+++ b/examples/resources/airbyte_source_coinmarketcap/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_coinmarketcap" "my_source_coinmarketcap" {
configuration = {
- api_key = "...my_api_key..."
- data_type = "historical"
- source_type = "coinmarketcap"
+ api_key = "...my_api_key..."
+ data_type = "latest"
symbols = [
"...",
]
}
- name = "Meredith Kassulke"
+ name = "Olga Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "1804e54c-82f1-468a-b63c-8873e484380b"
+ workspace_id = "cc3fde33-4f78-46aa-a3aa-f527fe19eb1b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_configcat/resource.tf b/examples/resources/airbyte_source_configcat/resource.tf
old mode 100755
new mode 100644
index 1e2c23e89..9c28f1779
--- a/examples/resources/airbyte_source_configcat/resource.tf
+++ b/examples/resources/airbyte_source_configcat/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_configcat" "my_source_configcat" {
configuration = {
- password = "...my_password..."
- source_type = "configcat"
- username = "Art_Wiegand"
+ password = "...my_password..."
+ username = "Uriah_MacGyver16"
}
- name = "Lowell Oberbrunner"
+ name = "Crystal Mueller"
secret_id = "...my_secret_id..."
- workspace_id = "5a60a04c-495c-4c69-9171-b51c1bdb1cf4"
+ workspace_id = "7597e801-e676-489a-86f3-96c7c6bf7372"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_confluence/resource.tf b/examples/resources/airbyte_source_confluence/resource.tf
old mode 100755
new mode 100644
index 3234b7a6e..00b2fe6b4
--- a/examples/resources/airbyte_source_confluence/resource.tf
+++ b/examples/resources/airbyte_source_confluence/resource.tf
@@ -3,9 +3,8 @@ resource "airbyte_source_confluence" "my_source_confluence" {
api_token = "...my_api_token..."
domain_name = "...my_domain_name..."
email = "abc@example.com"
- source_type = "confluence"
}
- name = "Jody Will"
+ name = "Terry Beer"
secret_id = "...my_secret_id..."
- workspace_id = "ccca99bc-7fc0-4b2d-8e10-873e42b006d6"
+ workspace_id = "f1e30360-fc0e-4aa5-8681-bc3adb090c01"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_convex/resource.tf b/examples/resources/airbyte_source_convex/resource.tf
old mode 100755
new mode 100644
index ea4e9c71d..49c84daff
--- a/examples/resources/airbyte_source_convex/resource.tf
+++ b/examples/resources/airbyte_source_convex/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_convex" "my_source_convex" {
configuration = {
access_key = "...my_access_key..."
deployment_url = "https://murky-swan-635.convex.cloud"
- source_type = "convex"
}
- name = "Guy Kovacek"
+ name = "Leroy Cormier Jr."
secret_id = "...my_secret_id..."
- workspace_id = "a8581a58-208c-454f-afa9-c95f2eac5565"
+ workspace_id = "1e265eeb-c230-4b15-894c-c21854edb75e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_datascope/resource.tf b/examples/resources/airbyte_source_datascope/resource.tf
old mode 100755
new mode 100644
index e590aad92..b6dee2cf8
--- a/examples/resources/airbyte_source_datascope/resource.tf
+++ b/examples/resources/airbyte_source_datascope/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_datascope" "my_source_datascope" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "datascope"
- start_date = "dd/mm/YYYY HH:MM"
+ api_key = "...my_api_key..."
+ start_date = "dd/mm/YYYY HH:MM"
}
- name = "Danny Bahringer"
+ name = "Antonia Bradtke"
secret_id = "...my_secret_id..."
- workspace_id = "fee81206-e281-43fa-8a41-c480d3f2132a"
+ workspace_id = "ddc2da36-2faf-41b2-8fe2-6cb1bb0550b4"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_delighted/resource.tf b/examples/resources/airbyte_source_delighted/resource.tf
old mode 100755
new mode 100644
index 17c514f7c..3ea53ff8e
--- a/examples/resources/airbyte_source_delighted/resource.tf
+++ b/examples/resources/airbyte_source_delighted/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_delighted" "my_source_delighted" {
configuration = {
- api_key = "...my_api_key..."
- since = "2022-05-30 04:50:23"
- source_type = "delighted"
+ api_key = "...my_api_key..."
+ since = "2022-05-30 04:50:23"
}
- name = "Sarah Collier"
+ name = "Katherine Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "14f4cc6f-18bf-4962-9a6a-4f77a87ee3e4"
+ workspace_id = "7f29336e-2378-418d-9537-3da8d6eef047"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_dixa/resource.tf b/examples/resources/airbyte_source_dixa/resource.tf
old mode 100755
new mode 100644
index 80cc2652d..7032ad988
--- a/examples/resources/airbyte_source_dixa/resource.tf
+++ b/examples/resources/airbyte_source_dixa/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_dixa" "my_source_dixa" {
configuration = {
- api_token = "...my_api_token..."
- batch_size = 31
- source_type = "dixa"
- start_date = "YYYY-MM-DD"
+ api_token = "...my_api_token..."
+ batch_size = 1
+ start_date = "YYYY-MM-DD"
}
- name = "Brittany Cole"
+ name = "Edith Abshire"
secret_id = "...my_secret_id..."
- workspace_id = "5b34418e-3bb9-41c8-9975-e0e8419d8f84"
+ workspace_id = "bc2dbf18-8dfa-4bd5-b111-ac61dffa69fe"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_dockerhub/resource.tf b/examples/resources/airbyte_source_dockerhub/resource.tf
old mode 100755
new mode 100644
index 7c3860795..64c37dbb3
--- a/examples/resources/airbyte_source_dockerhub/resource.tf
+++ b/examples/resources/airbyte_source_dockerhub/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_dockerhub" "my_source_dockerhub" {
configuration = {
docker_username = "airbyte"
- source_type = "dockerhub"
}
- name = "Joe Haag"
+ name = "Rebecca Gerlach"
secret_id = "...my_secret_id..."
- workspace_id = "3e07edcc-4aa5-4f3c-abd9-05a972e05672"
+ workspace_id = "3e9a244d-7bc1-4a5a-ae1c-c19313722140"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_dremio/resource.tf b/examples/resources/airbyte_source_dremio/resource.tf
old mode 100755
new mode 100644
index b46396f97..3b03247a6
--- a/examples/resources/airbyte_source_dremio/resource.tf
+++ b/examples/resources/airbyte_source_dremio/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_dremio" "my_source_dremio" {
configuration = {
- api_key = "...my_api_key..."
- base_url = "...my_base_url..."
- source_type = "dremio"
+ api_key = "...my_api_key..."
+ base_url = "...my_base_url..."
}
- name = "Aaron Connelly"
+ name = "Bessie Towne"
secret_id = "...my_secret_id..."
- workspace_id = "2d309470-bf7a-44fa-87cf-535a6fae54eb"
+ workspace_id = "1b638bd6-48d5-4481-8afe-b93d4bbde9f2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_dynamodb/resource.tf b/examples/resources/airbyte_source_dynamodb/resource.tf
old mode 100755
new mode 100644
index c50483ed3..c73848794
--- a/examples/resources/airbyte_source_dynamodb/resource.tf
+++ b/examples/resources/airbyte_source_dynamodb/resource.tf
@@ -2,12 +2,11 @@ resource "airbyte_source_dynamodb" "my_source_dynamodb" {
configuration = {
access_key_id = "A012345678910EXAMPLE"
endpoint = "https://{aws_dynamo_db_url}.com"
- region = "us-gov-west-1"
+ region = "eu-west-1"
reserved_attribute_names = "name, field_name, field-name"
secret_access_key = "a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY"
- source_type = "dynamodb"
}
- name = "Sandra Rowe Sr."
+ name = "Daryl Bartoletti"
secret_id = "...my_secret_id..."
- workspace_id = "f023b75d-2367-4fe1-a0cc-8df79f0a396d"
+ workspace_id = "3fe4ad28-2938-4c45-a756-44517930ed8d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_e2e_test_cloud/resource.tf b/examples/resources/airbyte_source_e2e_test_cloud/resource.tf
old mode 100755
new mode 100644
index 9c1ae62bb..0ba939073
--- a/examples/resources/airbyte_source_e2e_test_cloud/resource.tf
+++ b/examples/resources/airbyte_source_e2e_test_cloud/resource.tf
@@ -1,18 +1,15 @@
resource "airbyte_source_e2e_test_cloud" "my_source_e2etestcloud" {
configuration = {
- max_messages = 6
- message_interval_ms = 0
+ max_messages = 3
+ message_interval_ms = 2
mock_catalog = {
source_e2e_test_cloud_mock_catalog_multi_schema = {
stream_schemas = "...my_stream_schemas..."
- type = "MULTI_STREAM"
}
}
- seed = 42
- source_type = "e2e-test-cloud"
- type = "CONTINUOUS_FEED"
+ seed = 42
}
- name = "Gertrude Grant"
+ name = "Angel Pagac"
secret_id = "...my_secret_id..."
- workspace_id = "c15dfbac-e188-4b1c-8ee2-c8c6ce611fee"
+ workspace_id = "a6ef9fc3-c374-44fd-a52e-57aa673d2825"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_emailoctopus/resource.tf b/examples/resources/airbyte_source_emailoctopus/resource.tf
old mode 100755
new mode 100644
index c745d15ff..1905fa0aa
--- a/examples/resources/airbyte_source_emailoctopus/resource.tf
+++ b/examples/resources/airbyte_source_emailoctopus/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_emailoctopus" "my_source_emailoctopus" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "emailoctopus"
+ api_key = "...my_api_key..."
}
- name = "Gregory Satterfield"
+ name = "Elijah Abbott"
secret_id = "...my_secret_id..."
- workspace_id = "bdb6eec7-4378-4ba2-9317-747dc915ad2c"
+ workspace_id = "20e39e10-d6ef-409f-b849-b0bdf3d5ca96"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_exchange_rates/resource.tf b/examples/resources/airbyte_source_exchange_rates/resource.tf
old mode 100755
new mode 100644
index dd195c09e..8fc3916d7
--- a/examples/resources/airbyte_source_exchange_rates/resource.tf
+++ b/examples/resources/airbyte_source_exchange_rates/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_exchange_rates" "my_source_exchangerates" {
access_key = "...my_access_key..."
base = "USD"
ignore_weekends = false
- source_type = "exchange-rates"
start_date = "YYYY-MM-DD"
}
- name = "Mrs. Leslie Klocko"
+ name = "Eleanor O'Conner PhD"
secret_id = "...my_secret_id..."
- workspace_id = "c0f5ae2f-3a6b-4700-8787-56143f5a6c98"
+ workspace_id = "23c3d11f-f934-4df0-9756-d8b0d90daf91"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_facebook_marketing/resource.tf b/examples/resources/airbyte_source_facebook_marketing/resource.tf
old mode 100755
new mode 100644
index 9bb332c63..7c448dea0
--- a/examples/resources/airbyte_source_facebook_marketing/resource.tf
+++ b/examples/resources/airbyte_source_facebook_marketing/resource.tf
@@ -2,39 +2,38 @@ resource "airbyte_source_facebook_marketing" "my_source_facebookmarketing" {
configuration = {
access_token = "...my_access_token..."
account_id = "111111111111111"
- action_breakdowns_allow_empty = true
+ action_breakdowns_allow_empty = false
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
custom_insights = [
{
action_breakdowns = [
- "action_destination",
+ "action_device",
]
- action_report_time = "conversion"
+ action_report_time = "mixed"
breakdowns = [
- "frequency_value",
+ "platform_position",
]
end_date = "2017-01-26T00:00:00Z"
fields = [
- "account_name",
+ "place_page_name",
]
- insights_lookback_window = 6
- level = "ad"
- name = "Jesus Batz"
+ insights_lookback_window = 5
+ level = "campaign"
+ name = "Delia Dicki"
start_date = "2017-01-25T00:00:00Z"
time_increment = 8
},
]
end_date = "2017-01-26T00:00:00Z"
fetch_thumbnail_images = false
- include_deleted = true
- insights_lookback_window = 4
- max_batch_size = 7
- page_size = 3
- source_type = "facebook-marketing"
+ include_deleted = false
+ insights_lookback_window = 1
+ max_batch_size = 9
+ page_size = 1
start_date = "2017-01-25T00:00:00Z"
}
- name = "Ms. Wilbert McGlynn"
+ name = "Willis Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "04f926ba-d255-4381-9b47-4b0ed20e5624"
+ workspace_id = "f001ddb3-cf07-44d6-a7d2-01b0d069bb26"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_facebook_pages/resource.tf b/examples/resources/airbyte_source_facebook_pages/resource.tf
old mode 100755
new mode 100644
index cd4d30448..1a0896bbf
--- a/examples/resources/airbyte_source_facebook_pages/resource.tf
+++ b/examples/resources/airbyte_source_facebook_pages/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_facebook_pages" "my_source_facebookpages" {
configuration = {
access_token = "...my_access_token..."
page_id = "...my_page_id..."
- source_type = "facebook-pages"
}
- name = "Moses Wuckert"
+ name = "Leslie Reinger"
secret_id = "...my_secret_id..."
- workspace_id = "39a910ab-dcab-4626-b669-6e1ec00221b3"
+ workspace_id = "25aa9f8c-7d41-4070-88d9-ffe8959afeef"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_faker/resource.tf b/examples/resources/airbyte_source_faker/resource.tf
old mode 100755
new mode 100644
index 5f5e8e89b..9e2d7c158
--- a/examples/resources/airbyte_source_faker/resource.tf
+++ b/examples/resources/airbyte_source_faker/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_faker" "my_source_faker" {
configuration = {
always_updated = false
- count = 3
- parallelism = 9
- records_per_slice = 5
- seed = 6
- source_type = "faker"
+ count = 6
+ parallelism = 10
+ records_per_slice = 7
+ seed = 9
}
- name = "Delbert Reynolds"
+ name = "Kerry Hickle"
secret_id = "...my_secret_id..."
- workspace_id = "cfda8d0c-549e-4f03-8049-78a61fa1cf20"
+ workspace_id = "690efc6e-828b-41d2-9db5-daa9ea927cae"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_fauna/resource.tf b/examples/resources/airbyte_source_fauna/resource.tf
old mode 100755
new mode 100644
index d5047d592..34af03789
--- a/examples/resources/airbyte_source_fauna/resource.tf
+++ b/examples/resources/airbyte_source_fauna/resource.tf
@@ -2,19 +2,16 @@ resource "airbyte_source_fauna" "my_source_fauna" {
configuration = {
collection = {
deletions = {
- source_fauna_collection_deletion_mode_disabled = {
- deletion_mode = "ignore"
- }
+ source_fauna_collection_deletion_mode_disabled = {}
}
- page_size = 4
+ page_size = 5
}
- domain = "...my_domain..."
- port = 5
- scheme = "...my_scheme..."
- secret = "...my_secret..."
- source_type = "fauna"
+ domain = "...my_domain..."
+ port = 7
+ scheme = "...my_scheme..."
+ secret = "...my_secret..."
}
- name = "Irvin Klein"
+ name = "Sherri Ruecker"
secret_id = "...my_secret_id..."
- workspace_id = "1ffc71dc-a163-4f2a-bc80-a97ff334cddf"
+ workspace_id = "e6b85628-652e-40ff-83c2-1b517b16f1f8"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_file_secure/resource.tf b/examples/resources/airbyte_source_file_secure/resource.tf
old mode 100755
new mode 100644
index 3a1bb2009..910e02240
--- a/examples/resources/airbyte_source_file_secure/resource.tf
+++ b/examples/resources/airbyte_source_file_secure/resource.tf
@@ -6,15 +6,13 @@ resource "airbyte_source_file_secure" "my_source_filesecure" {
source_file_secure_storage_provider_az_blob_azure_blob_storage = {
sas_token = "...my_sas_token..."
shared_key = "...my_shared_key..."
- storage = "AzBlob"
storage_account = "...my_storage_account..."
}
}
- reader_options = "{\"sep\": \" \"}"
- source_type = "file-secure"
+ reader_options = "{}"
url = "gs://my-google-bucket/data.csv"
}
- name = "Freddie Von V"
+ name = "Guadalupe Senger I"
secret_id = "...my_secret_id..."
- workspace_id = "76c6ab21-d29d-4fc9-8d6f-ecd799390066"
+ workspace_id = "7451945c-4336-4052-aae8-aa3c4f287913"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_firebolt/resource.tf b/examples/resources/airbyte_source_firebolt/resource.tf
old mode 100755
new mode 100644
index 5c5ed6ec8..28ab6b190
--- a/examples/resources/airbyte_source_firebolt/resource.tf
+++ b/examples/resources/airbyte_source_firebolt/resource.tf
@@ -1,14 +1,13 @@
resource "airbyte_source_firebolt" "my_source_firebolt" {
configuration = {
- account = "...my_account..."
- database = "...my_database..."
- engine = "...my_engine..."
- host = "api.app.firebolt.io"
- password = "...my_password..."
- source_type = "firebolt"
- username = "username@email.com"
+ account = "...my_account..."
+ database = "...my_database..."
+ engine = "...my_engine..."
+ host = "api.app.firebolt.io"
+ password = "...my_password..."
+ username = "username@email.com"
}
- name = "Donna Abshire"
+ name = "Willie Bayer"
secret_id = "...my_secret_id..."
- workspace_id = "5338cec0-86fa-421e-9152-cb3119167b8e"
+ workspace_id = "1180fb2a-875a-41ca-990e-95bd1182a17e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_freshcaller/resource.tf b/examples/resources/airbyte_source_freshcaller/resource.tf
old mode 100755
new mode 100644
index ffed3f24c..2f610e1b5
--- a/examples/resources/airbyte_source_freshcaller/resource.tf
+++ b/examples/resources/airbyte_source_freshcaller/resource.tf
@@ -2,12 +2,11 @@ resource "airbyte_source_freshcaller" "my_source_freshcaller" {
configuration = {
api_key = "...my_api_key..."
domain = "snaptravel"
- requests_per_minute = 2
- source_type = "freshcaller"
+ requests_per_minute = 7
start_date = "2022-01-01T12:00:00Z"
- sync_lag_minutes = 9
+ sync_lag_minutes = 10
}
- name = "Kenneth Friesen IV"
+ name = "Carmen Strosin"
secret_id = "...my_secret_id..."
- workspace_id = "d6d364ff-d455-4906-9126-3d48e935c2c9"
+ workspace_id = "a73356f3-9bea-45e2-889f-0e8905c8543b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_freshdesk/resource.tf b/examples/resources/airbyte_source_freshdesk/resource.tf
old mode 100755
new mode 100644
index 150e6b282..726709bb5
--- a/examples/resources/airbyte_source_freshdesk/resource.tf
+++ b/examples/resources/airbyte_source_freshdesk/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_freshdesk" "my_source_freshdesk" {
configuration = {
api_key = "...my_api_key..."
domain = "myaccount.freshdesk.com"
- requests_per_minute = 10
- source_type = "freshdesk"
+ requests_per_minute = 6
start_date = "2020-12-01T00:00:00Z"
}
- name = "Dale Altenwerth"
+ name = "Kendra Pfeffer"
secret_id = "...my_secret_id..."
- workspace_id = "3e43202d-7216-4576-9066-41870d9d21f9"
+ workspace_id = "dcadad29-38da-4576-9e78-80f00a30ddef"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_freshsales/resource.tf b/examples/resources/airbyte_source_freshsales/resource.tf
old mode 100755
new mode 100644
index c3410eb5d..50deedcce
--- a/examples/resources/airbyte_source_freshsales/resource.tf
+++ b/examples/resources/airbyte_source_freshsales/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_freshsales" "my_source_freshsales" {
configuration = {
api_key = "...my_api_key..."
domain_name = "mydomain.myfreshworks.com"
- source_type = "freshsales"
}
- name = "Gustavo Adams DDS"
+ name = "Dr. Rex Monahan"
secret_id = "...my_secret_id..."
- workspace_id = "4ecc11a0-8364-4290-a8b8-502a55e7f73b"
+ workspace_id = "7f8f441b-58df-4c55-9a0b-ee1c5ff22338"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_gainsight_px/resource.tf b/examples/resources/airbyte_source_gainsight_px/resource.tf
old mode 100755
new mode 100644
index 6eb739429..e9183c970
--- a/examples/resources/airbyte_source_gainsight_px/resource.tf
+++ b/examples/resources/airbyte_source_gainsight_px/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_gainsight_px" "my_source_gainsightpx" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "gainsight-px"
+ api_key = "...my_api_key..."
}
- name = "Hugh Goodwin"
+ name = "Phillip Beatty"
secret_id = "...my_secret_id..."
- workspace_id = "320a319f-4bad-4f94-bc9a-867bc4242666"
+ workspace_id = "261684e7-3ef6-402c-915f-597cf5896557"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_gcs/resource.tf b/examples/resources/airbyte_source_gcs/resource.tf
old mode 100755
new mode 100644
index cb82ef849..a24e54f31
--- a/examples/resources/airbyte_source_gcs/resource.tf
+++ b/examples/resources/airbyte_source_gcs/resource.tf
@@ -3,9 +3,8 @@ resource "airbyte_source_gcs" "my_source_gcs" {
gcs_bucket = "...my_gcs_bucket..."
gcs_path = "...my_gcs_path..."
service_account = "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }"
- source_type = "gcs"
}
- name = "Olga Blanda"
+ name = "Elias Botsford"
secret_id = "...my_secret_id..."
- workspace_id = "dca8ef51-fcb4-4c59-bec1-2cdaad0ec7af"
+ workspace_id = "cd6b10d6-388d-44fd-bb9a-f007bc04191b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_getlago/resource.tf b/examples/resources/airbyte_source_getlago/resource.tf
old mode 100755
new mode 100644
index 0904859da..ec2f965a7
--- a/examples/resources/airbyte_source_getlago/resource.tf
+++ b/examples/resources/airbyte_source_getlago/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_getlago" "my_source_getlago" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "getlago"
+ api_key = "...my_api_key..."
}
- name = "Irving Rohan"
+ name = "Kelvin Bahringer"
secret_id = "...my_secret_id..."
- workspace_id = "0df448a4-7f93-490c-9888-0983dabf9ef3"
+ workspace_id = "f07c5466-21bd-4ba9-8354-f51ed0a8181e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_github/resource.tf b/examples/resources/airbyte_source_github/resource.tf
old mode 100755
new mode 100644
index 02416c44e..89678f311
--- a/examples/resources/airbyte_source_github/resource.tf
+++ b/examples/resources/airbyte_source_github/resource.tf
@@ -6,15 +6,13 @@ resource "airbyte_source_github" "my_source_github" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- option_title = "OAuth Credentials"
}
}
- repository = "airbytehq/airbyte"
- requests_per_hour = 10
- source_type = "github"
+ repository = "airbytehq/*"
+ requests_per_hour = 9
start_date = "2021-03-01T00:00:00Z"
}
- name = "Van Kuhlman IV"
+ name = "Gustavo Mertz"
secret_id = "...my_secret_id..."
- workspace_id = "9af4d357-24cd-4b0f-8d28-1187d56844ed"
+ workspace_id = "e7b2f5ca-6ecd-4faf-ab05-210208e036b2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_gitlab/resource.tf b/examples/resources/airbyte_source_gitlab/resource.tf
old mode 100755
new mode 100644
index c2a93e727..70d784a95
--- a/examples/resources/airbyte_source_gitlab/resource.tf
+++ b/examples/resources/airbyte_source_gitlab/resource.tf
@@ -1,22 +1,20 @@
resource "airbyte_source_gitlab" "my_source_gitlab" {
configuration = {
- api_url = "https://gitlab.company.org"
+ api_url = "https://gitlab.com"
credentials = {
source_gitlab_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-06-26T03:36:42.239Z"
+ token_expiry_date = "2021-05-15T22:42:10.955Z"
}
}
- groups = "airbyte.io"
- projects = "airbyte.io/documentation"
- source_type = "gitlab"
- start_date = "2021-03-01T00:00:00Z"
+ groups = "airbyte.io"
+ projects = "airbyte.io/documentation"
+ start_date = "2021-03-01T00:00:00Z"
}
- name = "Frank Keeling"
+ name = "Troy Johnston"
secret_id = "...my_secret_id..."
- workspace_id = "628bdfc2-032b-46c8-b992-3b7e13584f7a"
+ workspace_id = "963e10b1-b394-4b84-acdf-8db6a4f7e237"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_glassfrog/resource.tf b/examples/resources/airbyte_source_glassfrog/resource.tf
old mode 100755
new mode 100644
index 919fbfcdd..c2f7d71d5
--- a/examples/resources/airbyte_source_glassfrog/resource.tf
+++ b/examples/resources/airbyte_source_glassfrog/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_glassfrog" "my_source_glassfrog" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "glassfrog"
+ api_key = "...my_api_key..."
}
- name = "Carl Davis"
+ name = "Julie Quitzon"
secret_id = "...my_secret_id..."
- workspace_id = "891f82ce-1157-4172-b053-77dcfa89df97"
+ workspace_id = "0f5d38a1-edcb-436c-9a3d-51cbc15623ec"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_gnews/resource.tf b/examples/resources/airbyte_source_gnews/resource.tf
old mode 100755
new mode 100644
index cf35bf01a..51b434f0c
--- a/examples/resources/airbyte_source_gnews/resource.tf
+++ b/examples/resources/airbyte_source_gnews/resource.tf
@@ -1,23 +1,22 @@
resource "airbyte_source_gnews" "my_source_gnews" {
configuration = {
api_key = "...my_api_key..."
- country = "ie"
+ country = "it"
end_date = "2022-08-21 16:27:09"
in = [
- "content",
+ "title",
]
- language = "fr"
+ language = "he"
nullable = [
- "description",
+ "title",
]
- query = "Apple AND NOT iPhone"
- sortby = "publishedAt"
- source_type = "gnews"
+ query = "(Windows 7) AND (Windows 10)"
+ sortby = "relevance"
start_date = "2022-08-21 16:27:09"
- top_headlines_query = "Apple AND NOT iPhone"
- top_headlines_topic = "business"
+ top_headlines_query = "Apple OR Microsoft"
+ top_headlines_topic = "science"
}
- name = "Katrina Considine"
+ name = "Dr. Lynne Wuckert DVM"
secret_id = "...my_secret_id..."
- workspace_id = "c3ddc5f1-11de-4a10-a6d5-41a4d190feb2"
+ workspace_id = "20de16b8-da7b-4814-bf85-1cf99c7fd70e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_ads/resource.tf b/examples/resources/airbyte_source_google_ads/resource.tf
old mode 100755
new mode 100644
index 325505c0b..a774f5eb8
--- a/examples/resources/airbyte_source_google_ads/resource.tf
+++ b/examples/resources/airbyte_source_google_ads/resource.tf
@@ -17,10 +17,9 @@ resource "airbyte_source_google_ads" "my_source_googleads" {
customer_id = "6783948572,5839201945"
end_date = "2017-01-30"
login_customer_id = "7349206847"
- source_type = "google-ads"
start_date = "2017-01-25"
}
- name = "Dr. Forrest Roob"
+ name = "Leland Will"
secret_id = "...my_secret_id..."
- workspace_id = "bddb4847-08fb-44e3-91e6-bc158c4c4e54"
+ workspace_id = "64874e62-c58d-4879-afd4-8887cb19c48e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_analytics_data_api/resource.tf b/examples/resources/airbyte_source_google_analytics_data_api/resource.tf
old mode 100755
new mode 100644
index 817811e0b..f19e525fa
--- a/examples/resources/airbyte_source_google_analytics_data_api/resource.tf
+++ b/examples/resources/airbyte_source_google_analytics_data_api/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsdataapi" {
configuration = {
credentials = {
- source_google_analytics_data_api_credentials_authenticate_via_google_oauth_ = {
+ source_google_analytics_data_api_credentials_authenticate_via_google_oauth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -12,10 +11,9 @@ resource "airbyte_source_google_analytics_data_api" "my_source_googleanalyticsda
custom_reports = "...my_custom_reports..."
date_ranges_start_date = "2021-01-01"
property_id = "5729978930"
- source_type = "google-analytics-data-api"
- window_in_days = 364
+ window_in_days = 60
}
- name = "Juanita Collier"
+ name = "Robin Shanahan"
secret_id = "...my_secret_id..."
- workspace_id = "0e9b200c-e78a-41bd-8fb7-a0a116ce723d"
+ workspace_id = "d007e52a-2e43-496e-b403-ea2d50959a4f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_analytics_v4/resource.tf b/examples/resources/airbyte_source_google_analytics_v4/resource.tf
old mode 100755
new mode 100644
index 013f62889..316bc04ba
--- a/examples/resources/airbyte_source_google_analytics_v4/resource.tf
+++ b/examples/resources/airbyte_source_google_analytics_v4/resource.tf
@@ -1,21 +1,19 @@
resource "airbyte_source_google_analytics_v4" "my_source_googleanalyticsv4" {
configuration = {
credentials = {
- source_google_analytics_v4_credentials_authenticate_via_google_oauth_ = {
+ source_google_analytics_v4_credentials_authenticate_via_google_oauth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
}
custom_reports = "...my_custom_reports..."
- source_type = "google-analytics-v4"
start_date = "2020-06-01"
view_id = "...my_view_id..."
- window_in_days = 120
+ window_in_days = 30
}
- name = "Dr. Doug Dibbert"
+ name = "Christopher Kulas"
secret_id = "...my_secret_id..."
- workspace_id = "af725b29-1220-430d-83f5-aeb7799d22e8"
+ workspace_id = "6bd0cbf5-314e-4ea0-ba21-aa37367271c7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_directory/resource.tf b/examples/resources/airbyte_source_google_directory/resource.tf
old mode 100755
new mode 100644
index 8e6f6a292..f8107f2a6
--- a/examples/resources/airbyte_source_google_directory/resource.tf
+++ b/examples/resources/airbyte_source_google_directory/resource.tf
@@ -2,14 +2,12 @@ resource "airbyte_source_google_directory" "my_source_googledirectory" {
configuration = {
credentials = {
source_google_directory_google_credentials_service_account_key = {
- credentials_json = "...my_credentials_json..."
- credentials_title = "Service accounts"
- email = "Ayla.Zulauf@hotmail.com"
+ credentials_json = "...my_credentials_json..."
+ email = "Lucio_Medhurst61@yahoo.com"
}
}
- source_type = "google-directory"
}
- name = "Mrs. Allen Lockman"
+ name = "Patricia Feeney"
secret_id = "...my_secret_id..."
- workspace_id = "dc42c876-c2c2-4dfb-8cfc-1c76230f841f"
+ workspace_id = "323c7d78-45b7-4f88-82a1-9738b218b704"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf
old mode 100755
new mode 100644
index fc20bedc4..d3b2e9b1c
--- a/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf
+++ b/examples/resources/airbyte_source_google_pagespeed_insights/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin
configuration = {
api_key = "...my_api_key..."
categories = [
- "pwa",
+ "performance",
]
- source_type = "google-pagespeed-insights"
strategies = [
"desktop",
]
@@ -12,7 +11,7 @@ resource "airbyte_source_google_pagespeed_insights" "my_source_googlepagespeedin
"...",
]
}
- name = "Kristopher Dare"
+ name = "Miss Horace Champlin"
secret_id = "...my_secret_id..."
- workspace_id = "db14db6b-e5a6-4859-98e2-2ae20da16fc2"
+ workspace_id = "9cfd9baf-3821-4deb-b264-dad9e5fb5312"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_search_console/resource.tf b/examples/resources/airbyte_source_google_search_console/resource.tf
old mode 100755
new mode 100644
index c4f5686bf..6c7426998
--- a/examples/resources/airbyte_source_google_search_console/resource.tf
+++ b/examples/resources/airbyte_source_google_search_console/resource.tf
@@ -3,7 +3,6 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
authorization = {
source_google_search_console_authentication_type_o_auth = {
access_token = "...my_access_token..."
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -13,9 +12,9 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
custom_reports_array = [
{
dimensions = [
- "page",
+ "device",
]
- name = "Heidi Bernier"
+ name = "Toni Botsford"
},
]
data_state = "all"
@@ -23,10 +22,9 @@ resource "airbyte_source_google_search_console" "my_source_googlesearchconsole"
site_urls = [
"...",
]
- source_type = "google-search-console"
- start_date = "2022-07-11"
+ start_date = "2021-10-13"
}
- name = "Jordan Hilll"
+ name = "Dana Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "90439d22-2465-4694-a240-7084f7ab37ce"
+ workspace_id = "a51fb73f-472f-42e8-bbfe-18227a33308d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_sheets/resource.tf b/examples/resources/airbyte_source_google_sheets/resource.tf
old mode 100755
new mode 100644
index 0cf171cfe..08605156e
--- a/examples/resources/airbyte_source_google_sheets/resource.tf
+++ b/examples/resources/airbyte_source_google_sheets/resource.tf
@@ -1,18 +1,16 @@
resource "airbyte_source_google_sheets" "my_source_googlesheets" {
configuration = {
credentials = {
- source_google_sheets_authentication_authenticate_via_google_o_auth_ = {
- auth_type = "Client"
+ source_google_sheets_authentication_authenticate_via_google_o_auth = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
}
- names_conversion = true
- source_type = "google-sheets"
+ names_conversion = false
spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit"
}
- name = "Irene Davis"
+ name = "Suzanne Hintz"
secret_id = "...my_secret_id..."
- workspace_id = "194db554-10ad-4c66-9af9-0a26c7cdc981"
+ workspace_id = "9be62599-f17b-45c6-9c8d-2f7dd6ee9c7e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_webfonts/resource.tf b/examples/resources/airbyte_source_google_webfonts/resource.tf
old mode 100755
new mode 100644
index aa77478b4..089d55182
--- a/examples/resources/airbyte_source_google_webfonts/resource.tf
+++ b/examples/resources/airbyte_source_google_webfonts/resource.tf
@@ -4,9 +4,8 @@ resource "airbyte_source_google_webfonts" "my_source_googlewebfonts" {
api_key = "...my_api_key..."
pretty_print = "...my_pretty_print..."
sort = "...my_sort..."
- source_type = "google-webfonts"
}
- name = "Donald Hyatt"
+ name = "Ms. Eva Barton Sr."
secret_id = "...my_secret_id..."
- workspace_id = "81d6bb33-cfaa-4348-831b-f407ee4fcf0c"
+ workspace_id = "82195430-f896-44a3-a1f4-31fb3aad078a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_google_workspace_admin_reports/resource.tf b/examples/resources/airbyte_source_google_workspace_admin_reports/resource.tf
old mode 100755
new mode 100644
index 68d8d1824..176e0b242
--- a/examples/resources/airbyte_source_google_workspace_admin_reports/resource.tf
+++ b/examples/resources/airbyte_source_google_workspace_admin_reports/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_google_workspace_admin_reports" "my_source_googleworkspaceadminreports" {
configuration = {
credentials_json = "...my_credentials_json..."
- email = "Bridgette_Rohan@gmail.com"
- lookback = 10
- source_type = "google-workspace-admin-reports"
+ email = "Golden96@gmail.com"
+ lookback = 8
}
- name = "Samantha Huels"
+ name = "Lewis Murphy"
secret_id = "...my_secret_id..."
- workspace_id = "398a0dc7-6632-44cc-b06c-8ca12d025292"
+ workspace_id = "dd854e0c-39c2-42fe-97df-57adf10725ff"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_greenhouse/resource.tf b/examples/resources/airbyte_source_greenhouse/resource.tf
old mode 100755
new mode 100644
index 6d269f662..387182db7
--- a/examples/resources/airbyte_source_greenhouse/resource.tf
+++ b/examples/resources/airbyte_source_greenhouse/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_greenhouse" "my_source_greenhouse" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "greenhouse"
+ api_key = "...my_api_key..."
}
- name = "Patricia Pouros"
+ name = "Faith Boyer"
secret_id = "...my_secret_id..."
- workspace_id = "5722dd89-5b8b-4cf2-8db9-59693352f745"
+ workspace_id = "7e8fd2f1-93d4-4f9a-b29a-2f8317dec4e3"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_gridly/resource.tf b/examples/resources/airbyte_source_gridly/resource.tf
old mode 100755
new mode 100644
index 688646912..45f981f01
--- a/examples/resources/airbyte_source_gridly/resource.tf
+++ b/examples/resources/airbyte_source_gridly/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_gridly" "my_source_gridly" {
configuration = {
- api_key = "...my_api_key..."
- grid_id = "...my_grid_id..."
- source_type = "gridly"
+ api_key = "...my_api_key..."
+ grid_id = "...my_grid_id..."
}
- name = "Josephine McCullough"
+ name = "Mr. Kenny Rohan"
secret_id = "...my_secret_id..."
- workspace_id = "d78de3b6-e938-49f5-abb7-f662550a2838"
+ workspace_id = "cb908523-df16-4a0c-8499-1982a682b0a7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_harvest/resource.tf b/examples/resources/airbyte_source_harvest/resource.tf
old mode 100755
new mode 100644
index d86bbd45a..a36b048de
--- a/examples/resources/airbyte_source_harvest/resource.tf
+++ b/examples/resources/airbyte_source_harvest/resource.tf
@@ -2,18 +2,17 @@ resource "airbyte_source_harvest" "my_source_harvest" {
configuration = {
account_id = "...my_account_id..."
credentials = {
- source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth_ = {
- auth_type = "Client"
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
}
replication_end_date = "2017-01-25T00:00:00Z"
replication_start_date = "2017-01-25T00:00:00Z"
- source_type = "harvest"
}
- name = "Rodney Orn"
+ name = "Joan Jerde"
secret_id = "...my_secret_id..."
- workspace_id = "2315bba6-5016-44e0-af5b-f6ae591bc8bd"
+ workspace_id = "2127f33f-8652-4b25-91b0-23ec1224a7ff"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_hubplanner/resource.tf b/examples/resources/airbyte_source_hubplanner/resource.tf
old mode 100755
new mode 100644
index a1b471fa7..047ae5cb7
--- a/examples/resources/airbyte_source_hubplanner/resource.tf
+++ b/examples/resources/airbyte_source_hubplanner/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_hubplanner" "my_source_hubplanner" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "hubplanner"
+ api_key = "...my_api_key..."
}
- name = "Cary Emmerich Sr."
+ name = "Clarence Hodkiewicz"
secret_id = "...my_secret_id..."
- workspace_id = "b63c205f-da84-4077-8a68-a9a35d086b6f"
+ workspace_id = "c187087d-37ac-499f-9785-1612305e0c1f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_hubspot/resource.tf b/examples/resources/airbyte_source_hubspot/resource.tf
old mode 100755
new mode 100644
index 4eaa75fe6..53c375a6a
--- a/examples/resources/airbyte_source_hubspot/resource.tf
+++ b/examples/resources/airbyte_source_hubspot/resource.tf
@@ -2,16 +2,14 @@ resource "airbyte_source_hubspot" "my_source_hubspot" {
configuration = {
credentials = {
source_hubspot_authentication_o_auth = {
- client_id = "123456789000"
- client_secret = "secret"
- credentials_title = "OAuth Credentials"
- refresh_token = "refresh_token"
+ client_id = "123456789000"
+ client_secret = "secret"
+ refresh_token = "refresh_token"
}
}
- source_type = "hubspot"
- start_date = "2017-01-25T00:00:00Z"
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Mr. Tomas Wisozk DVM"
+ name = "Darlene Stroman"
secret_id = "...my_secret_id..."
- workspace_id = "9f443b42-57b9-492c-8dbd-a6a61efa2198"
+ workspace_id = "bd757e59-4698-41cb-8608-691686308ead"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_insightly/resource.tf b/examples/resources/airbyte_source_insightly/resource.tf
old mode 100755
new mode 100644
index 582ee7125..23a39b92d
--- a/examples/resources/airbyte_source_insightly/resource.tf
+++ b/examples/resources/airbyte_source_insightly/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_insightly" "my_source_insightly" {
configuration = {
- source_type = "insightly"
- start_date = "2021-03-01T00:00:00Z"
- token = "...my_token..."
+ start_date = "2021-03-01T00:00:00Z"
+ token = "...my_token..."
}
- name = "Dana Lindgren"
+ name = "Allan Feeney"
secret_id = "...my_secret_id..."
- workspace_id = "0a9eba47-f7d3-4ef0-8964-0d6a1831c87a"
+ workspace_id = "69be0c12-ece5-49b9-bbae-f8e47490588d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_instagram/resource.tf b/examples/resources/airbyte_source_instagram/resource.tf
old mode 100755
new mode 100644
index 53a8e0460..87e9fe5f8
--- a/examples/resources/airbyte_source_instagram/resource.tf
+++ b/examples/resources/airbyte_source_instagram/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_instagram" "my_source_instagram" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- source_type = "instagram"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Mae Hoppe"
+ name = "Bobbie Dickinson"
secret_id = "...my_secret_id..."
- workspace_id = "f1ad837a-e80c-41c1-9c95-ba998678fa3f"
+ workspace_id = "74a681ee-a74b-487a-9fb1-87d33223d80b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_instatus/resource.tf b/examples/resources/airbyte_source_instatus/resource.tf
old mode 100755
new mode 100644
index 23ad265ef..62406cf58
--- a/examples/resources/airbyte_source_instatus/resource.tf
+++ b/examples/resources/airbyte_source_instatus/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_instatus" "my_source_instatus" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "instatus"
+ api_key = "...my_api_key..."
}
- name = "Bobbie Johnston"
+ name = "Jackie Miller"
secret_id = "...my_secret_id..."
- workspace_id = "1af388ce-0361-4444-8c79-77a0ef2f5360"
+ workspace_id = "2d2f4597-4a2e-4bc3-a80a-bb376bce66a7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_intercom/resource.tf b/examples/resources/airbyte_source_intercom/resource.tf
old mode 100755
new mode 100644
index 9ebb6836e..c6101b76a
--- a/examples/resources/airbyte_source_intercom/resource.tf
+++ b/examples/resources/airbyte_source_intercom/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_intercom" "my_source_intercom" {
access_token = "...my_access_token..."
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- source_type = "intercom"
start_date = "2020-11-16T00:00:00Z"
}
- name = "Darnell Watsica"
+ name = "Dr. Bradford Davis"
secret_id = "...my_secret_id..."
- workspace_id = "934152ed-7e25-43f4-8157-deaa7170f445"
+ workspace_id = "3e9aab71-454c-4b24-9893-e1da46c4f685"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_ip2whois/resource.tf b/examples/resources/airbyte_source_ip2whois/resource.tf
old mode 100755
new mode 100644
index 0dbb1423d..656ea6c71
--- a/examples/resources/airbyte_source_ip2whois/resource.tf
+++ b/examples/resources/airbyte_source_ip2whois/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_ip2whois" "my_source_ip2whois" {
configuration = {
- api_key = "...my_api_key..."
- domain = "www.facebook.com"
- source_type = "ip2whois"
+ api_key = "...my_api_key..."
+ domain = "www.facebook.com"
}
- name = "Leland Wisoky"
+ name = "Mr. Helen Heidenreich MD"
secret_id = "...my_secret_id..."
- workspace_id = "7aaf9bba-d185-4fe4-b1d6-bf5c838fbb8c"
+ workspace_id = "8862473b-7573-4910-8618-e91445d83c49"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_iterable/resource.tf b/examples/resources/airbyte_source_iterable/resource.tf
old mode 100755
new mode 100644
index 6482f729a..2d088b91e
--- a/examples/resources/airbyte_source_iterable/resource.tf
+++ b/examples/resources/airbyte_source_iterable/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_iterable" "my_source_iterable" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "iterable"
- start_date = "2021-04-01T00:00:00Z"
+ api_key = "...my_api_key..."
+ start_date = "2021-04-01T00:00:00Z"
}
- name = "Archie Jaskolski"
+ name = "Miguel McLaughlin"
secret_id = "...my_secret_id..."
- workspace_id = "c4b425e9-9e62-434c-9f7b-79dfeb77a5c3"
+ workspace_id = "517f0e32-c2e3-402e-ade9-2b3e43098446"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_jira/resource.tf b/examples/resources/airbyte_source_jira/resource.tf
old mode 100755
new mode 100644
index a8ae76693..386b52767
--- a/examples/resources/airbyte_source_jira/resource.tf
+++ b/examples/resources/airbyte_source_jira/resource.tf
@@ -1,18 +1,17 @@
resource "airbyte_source_jira" "my_source_jira" {
configuration = {
api_token = "...my_api_token..."
- domain = ".jira.com"
- email = "Eldridge_Reichert@hotmail.com"
- enable_experimental_streams = false
- expand_issue_changelog = false
+ domain = "jira..com"
+ email = "Karlee_Fadel@yahoo.com"
+ enable_experimental_streams = true
+ expand_issue_changelog = true
projects = [
"...",
]
render_fields = false
- source_type = "jira"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Olive Windler"
+ name = "Ida Rath"
secret_id = "...my_secret_id..."
- workspace_id = "0a54b475-f16f-456d-b85a-3c4ac631b99e"
+ workspace_id = "8621a877-d2e6-425c-9d80-ba5ff53c6fc1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_k6_cloud/resource.tf b/examples/resources/airbyte_source_k6_cloud/resource.tf
old mode 100755
new mode 100644
index 0e9669348..b2f4b2aba
--- a/examples/resources/airbyte_source_k6_cloud/resource.tf
+++ b/examples/resources/airbyte_source_k6_cloud/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_k6_cloud" "my_source_k6cloud" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "k6-cloud"
+ api_token = "...my_api_token..."
}
- name = "Ella Runolfsdottir"
+ name = "Jacquelyn Nolan"
secret_id = "...my_secret_id..."
- workspace_id = "8f9fdb94-10f6-43bb-b817-837b01afdd78"
+ workspace_id = "a827c3d3-49f4-444d-8a85-89d8494dcfae"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_klarna/resource.tf b/examples/resources/airbyte_source_klarna/resource.tf
old mode 100755
new mode 100644
index 512bb119f..eac6550db
--- a/examples/resources/airbyte_source_klarna/resource.tf
+++ b/examples/resources/airbyte_source_klarna/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_klarna" "my_source_klarna" {
configuration = {
- password = "...my_password..."
- playground = true
- region = "us"
- source_type = "klarna"
- username = "Chase50"
+ password = "...my_password..."
+ playground = false
+ region = "eu"
+ username = "Elwyn21"
}
- name = "Caleb Rau"
+ name = "Edward Boyer"
secret_id = "...my_secret_id..."
- workspace_id = "873f5033-f19d-4bf1-a5ce-4152eab9cd7e"
+ workspace_id = "f446900c-8feb-4a7b-85cf-ea08abdda328"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_klaviyo/resource.tf b/examples/resources/airbyte_source_klaviyo/resource.tf
old mode 100755
new mode 100644
index 1367f888c..ce6d29937
--- a/examples/resources/airbyte_source_klaviyo/resource.tf
+++ b/examples/resources/airbyte_source_klaviyo/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_klaviyo" "my_source_klaviyo" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "klaviyo"
- start_date = "2017-01-25T00:00:00Z"
+ api_key = "...my_api_key..."
+ start_date = "2017-01-25T00:00:00Z"
}
- name = "Charlotte Muller"
+ name = "Jimmy Kilback"
secret_id = "...my_secret_id..."
- workspace_id = "0e123b78-47ec-459e-9f67-f3c4cce4b6d7"
+ workspace_id = "06663420-a6a3-4ab4-9447-55b910e5c999"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_kustomer_singer/resource.tf b/examples/resources/airbyte_source_kustomer_singer/resource.tf
old mode 100755
new mode 100644
index c4813b3f9..db6f87b8c
--- a/examples/resources/airbyte_source_kustomer_singer/resource.tf
+++ b/examples/resources/airbyte_source_kustomer_singer/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_kustomer_singer" "my_source_kustomersinger" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "kustomer-singer"
- start_date = "2019-01-01T00:00:00Z"
+ api_token = "...my_api_token..."
+ start_date = "2019-01-01T00:00:00Z"
}
- name = "Bobbie Jacobs"
+ name = "Alberto McKenzie"
secret_id = "...my_secret_id..."
- workspace_id = "3c574750-1357-4e44-b51f-8b084c3197e1"
+ workspace_id = "d0e8f2a3-7cc1-4fbe-8883-da2fecd2cab2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_kyve/resource.tf b/examples/resources/airbyte_source_kyve/resource.tf
old mode 100755
new mode 100644
index f9f9e84a0..c79715a25
--- a/examples/resources/airbyte_source_kyve/resource.tf
+++ b/examples/resources/airbyte_source_kyve/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_kyve" "my_source_kyve" {
configuration = {
- max_pages = 6
- page_size = 2
- pool_ids = "0,1"
- source_type = "kyve"
- start_ids = "0"
- url_base = "https://api.korellia.kyve.network/"
+ max_pages = 6
+ page_size = 10
+ pool_ids = "0"
+ start_ids = "0,0"
+ url_base = "https://api.beta.kyve.network/"
}
- name = "Gail Homenick"
+ name = "Lisa Barrows"
secret_id = "...my_secret_id..."
- workspace_id = "94874c2d-5cc4-4972-a33e-66bd8fe5d00b"
+ workspace_id = "3cc123e8-783d-450d-8d2b-80c50dc344f6"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_launchdarkly/resource.tf b/examples/resources/airbyte_source_launchdarkly/resource.tf
old mode 100755
new mode 100644
index c6a3e6f9a..e0b0b2834
--- a/examples/resources/airbyte_source_launchdarkly/resource.tf
+++ b/examples/resources/airbyte_source_launchdarkly/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_launchdarkly" "my_source_launchdarkly" {
configuration = {
access_token = "...my_access_token..."
- source_type = "launchdarkly"
}
- name = "Darren Monahan"
+ name = "Rosalie Reynolds PhD"
secret_id = "...my_secret_id..."
- workspace_id = "20387320-590c-4cc1-8964-00313b3e5044"
+ workspace_id = "9a05e994-ace4-41dc-9b42-f2a228e88647"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_lemlist/resource.tf b/examples/resources/airbyte_source_lemlist/resource.tf
old mode 100755
new mode 100644
index f30eccca4..5f01ca75d
--- a/examples/resources/airbyte_source_lemlist/resource.tf
+++ b/examples/resources/airbyte_source_lemlist/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_lemlist" "my_source_lemlist" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "lemlist"
+ api_key = "...my_api_key..."
}
- name = "Gene Herman"
+ name = "Benjamin Stroman"
secret_id = "...my_secret_id..."
- workspace_id = "72dc4077-d0cc-43f4-88ef-c15ceb4d6e1e"
+ workspace_id = "7506042c-1c65-4661-b248-5a060238eba1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_lever_hiring/resource.tf b/examples/resources/airbyte_source_lever_hiring/resource.tf
old mode 100755
new mode 100644
index 62eb79581..492ef4921
--- a/examples/resources/airbyte_source_lever_hiring/resource.tf
+++ b/examples/resources/airbyte_source_lever_hiring/resource.tf
@@ -1,16 +1,14 @@
resource "airbyte_source_lever_hiring" "my_source_leverhiring" {
configuration = {
credentials = {
- source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key_ = {
- api_key = "...my_api_key..."
- auth_type = "Api Key"
+ source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key = {
+ api_key = "...my_api_key..."
}
}
- environment = "Sandbox"
- source_type = "lever-hiring"
+ environment = "Production"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Donald Wuckert"
+ name = "Joyce Shields"
secret_id = "...my_secret_id..."
- workspace_id = "aedf2aca-b58b-4991-8926-ddb589461e74"
+ workspace_id = "00cfe1ba-68d3-4405-82b9-6029febd39e6"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_linkedin_ads/resource.tf b/examples/resources/airbyte_source_linkedin_ads/resource.tf
old mode 100755
new mode 100644
index cf38a588a..e8760474c
--- a/examples/resources/airbyte_source_linkedin_ads/resource.tf
+++ b/examples/resources/airbyte_source_linkedin_ads/resource.tf
@@ -1,25 +1,23 @@
resource "airbyte_source_linkedin_ads" "my_source_linkedinads" {
configuration = {
account_ids = [
- 1,
+ 6,
]
ad_analytics_reports = [
{
- name = "Kara Rohan"
- pivot_by = "MEMBER_REGION_V2"
- time_granularity = "MONTHLY"
+ name = "Cary Bernier"
+ pivot_by = "CAMPAIGN"
+ time_granularity = "YEARLY"
},
]
credentials = {
source_linkedin_ads_authentication_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- source_type = "linkedin-ads"
- start_date = "2021-05-17"
+ start_date = "2021-05-17"
}
- name = "Elsa Adams"
+ name = "Jonathon Huels"
secret_id = "...my_secret_id..."
- workspace_id = "930b69f7-ac2f-472f-8850-090491160820"
+ workspace_id = "ff332bdf-1457-475f-8bb8-1a7466bf78b3"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_linkedin_pages/resource.tf b/examples/resources/airbyte_source_linkedin_pages/resource.tf
old mode 100755
new mode 100644
index 60a09bbc6..cb2eeb0fc
--- a/examples/resources/airbyte_source_linkedin_pages/resource.tf
+++ b/examples/resources/airbyte_source_linkedin_pages/resource.tf
@@ -3,13 +3,11 @@ resource "airbyte_source_linkedin_pages" "my_source_linkedinpages" {
credentials = {
source_linkedin_pages_authentication_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- org_id = "123456789"
- source_type = "linkedin-pages"
+ org_id = "123456789"
}
- name = "Tracey Kutch"
+ name = "Allan Stamm"
secret_id = "...my_secret_id..."
- workspace_id = "c66183bf-e965-49eb-80ec-16faf75b0b53"
+ workspace_id = "e547fc7c-1cb5-43c3-9168-9ddb3b3d7401"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_linnworks/resource.tf b/examples/resources/airbyte_source_linnworks/resource.tf
old mode 100755
new mode 100644
index 72d488706..1d74a5c92
--- a/examples/resources/airbyte_source_linnworks/resource.tf
+++ b/examples/resources/airbyte_source_linnworks/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_linnworks" "my_source_linnworks" {
configuration = {
application_id = "...my_application_id..."
application_secret = "...my_application_secret..."
- source_type = "linnworks"
- start_date = "2022-05-04T07:21:12.859Z"
+ start_date = "2022-05-21T06:55:58.730Z"
token = "...my_token..."
}
- name = "Antonia Muller"
+ name = "Roosevelt Dibbert"
secret_id = "...my_secret_id..."
- workspace_id = "cbaaf445-2c48-442c-9b2a-d32dafe81a88"
+ workspace_id = "2cb41644-2d85-4f5b-a382-e70e18a8172f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_lokalise/resource.tf b/examples/resources/airbyte_source_lokalise/resource.tf
old mode 100755
new mode 100644
index f14863c27..c57126db8
--- a/examples/resources/airbyte_source_lokalise/resource.tf
+++ b/examples/resources/airbyte_source_lokalise/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_lokalise" "my_source_lokalise" {
configuration = {
- api_key = "...my_api_key..."
- project_id = "...my_project_id..."
- source_type = "lokalise"
+ api_key = "...my_api_key..."
+ project_id = "...my_project_id..."
}
- name = "Bernard Gottlieb"
+ name = "Chris Cronin"
secret_id = "...my_secret_id..."
- workspace_id = "573fecd4-7353-4f63-8820-9379aa69cd5f"
+ workspace_id = "1c9f9cba-a542-4e6e-8809-61d84c3fbc24"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mailchimp/resource.tf b/examples/resources/airbyte_source_mailchimp/resource.tf
old mode 100755
new mode 100644
index aa2a83969..15e4bb2ab
--- a/examples/resources/airbyte_source_mailchimp/resource.tf
+++ b/examples/resources/airbyte_source_mailchimp/resource.tf
@@ -3,13 +3,11 @@ resource "airbyte_source_mailchimp" "my_source_mailchimp" {
campaign_id = "...my_campaign_id..."
credentials = {
source_mailchimp_authentication_api_key = {
- apikey = "...my_apikey..."
- auth_type = "apikey"
+ apikey = "...my_apikey..."
}
}
- source_type = "mailchimp"
}
- name = "Benny Williamson"
+ name = "Dr. Everett Keebler"
secret_id = "...my_secret_id..."
- workspace_id = "da18a782-2bf9-4589-8e68-61adb55f9e5d"
+ workspace_id = "e85198c1-16e7-4265-81ee-6770fa8ec1ba"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mailgun/resource.tf b/examples/resources/airbyte_source_mailgun/resource.tf
old mode 100755
new mode 100644
index 351a2840a..51ec48124
--- a/examples/resources/airbyte_source_mailgun/resource.tf
+++ b/examples/resources/airbyte_source_mailgun/resource.tf
@@ -2,10 +2,9 @@ resource "airbyte_source_mailgun" "my_source_mailgun" {
configuration = {
domain_region = "...my_domain_region..."
private_key = "...my_private_key..."
- source_type = "mailgun"
start_date = "2023-08-01T00:00:00Z"
}
- name = "Sheri Mayert"
+ name = "Whitney Streich"
secret_id = "...my_secret_id..."
- workspace_id = "8f7502bf-dc34-4508-81f1-764456379f3f"
+ workspace_id = "57a40e88-51a3-4541-ba6f-5d90d5a8a349"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mailjet_sms/resource.tf b/examples/resources/airbyte_source_mailjet_sms/resource.tf
old mode 100755
new mode 100644
index 0b4b039c5..42faf1baf
--- a/examples/resources/airbyte_source_mailjet_sms/resource.tf
+++ b/examples/resources/airbyte_source_mailjet_sms/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_mailjet_sms" "my_source_mailjetsms" {
configuration = {
- end_date = 1666281656
- source_type = "mailjet-sms"
- start_date = 1666261656
- token = "...my_token..."
+ end_date = 1666281656
+ start_date = 1666261656
+ token = "...my_token..."
}
- name = "Dr. Eloise Cronin"
+ name = "Marlene Crist"
secret_id = "...my_secret_id..."
- workspace_id = "62657b36-fc6b-49f5-87ce-525c67641a83"
+ workspace_id = "ff3818db-e50f-4cb3-aa78-173abb82e6a7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_marketo/resource.tf b/examples/resources/airbyte_source_marketo/resource.tf
old mode 100755
new mode 100644
index 52094c4a2..4e8cbb184
--- a/examples/resources/airbyte_source_marketo/resource.tf
+++ b/examples/resources/airbyte_source_marketo/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_marketo" "my_source_marketo" {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
domain_url = "https://000-AAA-000.mktorest.com"
- source_type = "marketo"
start_date = "2020-09-25T00:00:00Z"
}
- name = "Jerome Berge"
+ name = "Merle McCullough"
secret_id = "...my_secret_id..."
- workspace_id = "b4c21ccb-423a-4bcd-891f-aabdd88e71f6"
+ workspace_id = "6d74638d-1409-4463-9cf5-dd4a0c05f536"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_metabase/resource.tf b/examples/resources/airbyte_source_metabase/resource.tf
old mode 100755
new mode 100644
index 8e677b990..2a7632e03
--- a/examples/resources/airbyte_source_metabase/resource.tf
+++ b/examples/resources/airbyte_source_metabase/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_metabase" "my_source_metabase" {
instance_api_url = "https://localhost:3000/api/"
password = "...my_password..."
session_token = "...my_session_token..."
- source_type = "metabase"
- username = "Peyton.Green"
+ username = "Tyrell_Jacobson73"
}
- name = "Tammy Sporer"
+ name = "Malcolm Lindgren"
secret_id = "...my_secret_id..."
- workspace_id = "71e7fd07-4009-4ef8-929d-e1dd7097b5da"
+ workspace_id = "f6afbf36-5d68-47e0-87e3-905b6a417fae"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_microsoft_teams/resource.tf b/examples/resources/airbyte_source_microsoft_teams/resource.tf
old mode 100755
new mode 100644
index c1781a88b..2bb6d1b92
--- a/examples/resources/airbyte_source_microsoft_teams/resource.tf
+++ b/examples/resources/airbyte_source_microsoft_teams/resource.tf
@@ -2,16 +2,14 @@ resource "airbyte_source_microsoft_teams" "my_source_microsoftteams" {
configuration = {
credentials = {
source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft = {
- auth_type = "Token"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
tenant_id = "...my_tenant_id..."
}
}
- period = "D7"
- source_type = "microsoft-teams"
+ period = "D7"
}
- name = "Brandy Ryan"
+ name = "Randall Wunsch"
secret_id = "...my_secret_id..."
- workspace_id = "fa6c78a2-16e1-49ba-beca-6191498140b6"
+ workspace_id = "b7e8dc37-1ecb-4ee1-8511-b439ed171c9d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mixpanel/resource.tf b/examples/resources/airbyte_source_mixpanel/resource.tf
old mode 100755
new mode 100644
index 0e0998645..94acce263
--- a/examples/resources/airbyte_source_mixpanel/resource.tf
+++ b/examples/resources/airbyte_source_mixpanel/resource.tf
@@ -1,22 +1,20 @@
resource "airbyte_source_mixpanel" "my_source_mixpanel" {
configuration = {
- attribution_window = 2
+ attribution_window = 6
credentials = {
source_mixpanel_authentication_wildcard_project_secret = {
- api_secret = "...my_api_secret..."
- option_title = "Project Secret"
+ api_secret = "...my_api_secret..."
}
}
date_window_size = 10
end_date = "2021-11-16"
- project_id = 7
- project_timezone = "UTC"
- region = "US"
+ project_id = 3
+ project_timezone = "US/Pacific"
+ region = "EU"
select_properties_by_default = true
- source_type = "mixpanel"
start_date = "2021-11-16"
}
- name = "Donald Ernser"
+ name = "Peggy Cormier"
secret_id = "...my_secret_id..."
- workspace_id = "f37e4aa8-6855-4596-a732-aa5dcb6682cb"
+ workspace_id = "a41c80b2-3345-4c94-9a95-559f5a34ff68"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_monday/resource.tf b/examples/resources/airbyte_source_monday/resource.tf
old mode 100755
new mode 100644
index ffbd6efed..23dcc8377
--- a/examples/resources/airbyte_source_monday/resource.tf
+++ b/examples/resources/airbyte_source_monday/resource.tf
@@ -3,12 +3,10 @@ resource "airbyte_source_monday" "my_source_monday" {
credentials = {
source_monday_authorization_method_api_token = {
api_token = "...my_api_token..."
- auth_type = "api_token"
}
}
- source_type = "monday"
}
- name = "Shirley Wisoky"
+ name = "Traci Lynch"
secret_id = "...my_secret_id..."
- workspace_id = "fd5fb6e9-1b9a-49f7-8846-e2c3309db053"
+ workspace_id = "8e9f7431-721e-4422-bfd5-1b66ec345b5c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mongodb/resource.tf b/examples/resources/airbyte_source_mongodb/resource.tf
old mode 100755
new mode 100644
index 6fdbef3dc..65c2750e3
--- a/examples/resources/airbyte_source_mongodb/resource.tf
+++ b/examples/resources/airbyte_source_mongodb/resource.tf
@@ -4,15 +4,14 @@ resource "airbyte_source_mongodb" "my_source_mongodb" {
database = "...my_database..."
instance_type = {
source_mongodb_mongo_db_instance_type_mongo_db_atlas = {
- cluster_url = "...my_cluster_url..."
- instance = "atlas"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ cluster_url = "...my_cluster_url..."
}
}
- password = "...my_password..."
- source_type = "mongodb"
- user = "...my_user..."
+ password = "...my_password..."
+ user = "...my_user..."
}
- name = "Doreen Mayer"
+ name = "Shelley Parker"
secret_id = "...my_secret_id..."
- workspace_id = "5ca006f5-392c-411a-a5a8-bf92f97428ad"
+ workspace_id = "4726a8cd-9c5a-4ad4-bafd-a11e10d002e1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf b/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf
old mode 100755
new mode 100644
index 600385cb2..22e358ec8
--- a/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf
+++ b/examples/resources/airbyte_source_mongodb_internal_poc/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_mongodb_internal_poc" "my_source_mongodbinternalpoc" {
configuration = {
auth_source = "admin"
- connection_string = "mongodb://example1.host.com:27017,example2.host.com:27017,example3.host.com:27017"
+ connection_string = "mongodb://example.host.com:27017"
password = "...my_password..."
replica_set = "...my_replica_set..."
- source_type = "mongodb-internal-poc"
user = "...my_user..."
}
- name = "Eduardo Weissnat"
+ name = "Victoria Wiegand"
secret_id = "...my_secret_id..."
- workspace_id = "f8221125-359d-4983-87f7-a79cd72cd248"
+ workspace_id = "a1e39a63-be20-49ca-a593-eb808ec8c0a1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mssql/resource.tf b/examples/resources/airbyte_source_mssql/resource.tf
old mode 100755
new mode 100644
index 215a27ace..97a27cc08
--- a/examples/resources/airbyte_source_mssql/resource.tf
+++ b/examples/resources/airbyte_source_mssql/resource.tf
@@ -6,30 +6,24 @@ resource "airbyte_source_mssql" "my_source_mssql" {
password = "...my_password..."
port = 1433
replication_method = {
- source_mssql_update_method_read_changes_using_change_data_capture_cdc_ = {
- data_to_sync = "New Changes Only"
- initial_waiting_seconds = 7
- method = "CDC"
+ source_mssql_update_method_read_changes_using_change_data_capture_cdc = {
+ data_to_sync = "Existing and New"
+ initial_waiting_seconds = 0
snapshot_isolation = "Snapshot"
}
}
schemas = [
"...",
]
- source_type = "mssql"
ssl_method = {
- source_mssql_ssl_method_encrypted_trust_server_certificate_ = {
- ssl_method = "encrypted_trust_server_certificate"
- }
+ source_mssql_ssl_method_encrypted_trust_server_certificate = {}
}
tunnel_method = {
- source_mssql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_mssql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Bobbie60"
+ username = "Jaylon.Block"
}
- name = "Clarence Murazik"
+ name = "Mercedes Abernathy"
secret_id = "...my_secret_id..."
- workspace_id = "1ef5725f-1169-4ac1-a41d-8a23c23e34f2"
+ workspace_id = "f4b5e4c1-9596-4433-a1d5-1484aac586d0"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_my_hours/resource.tf b/examples/resources/airbyte_source_my_hours/resource.tf
old mode 100755
new mode 100644
index f07121f85..e83ef360b
--- a/examples/resources/airbyte_source_my_hours/resource.tf
+++ b/examples/resources/airbyte_source_my_hours/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_my_hours" "my_source_myhours" {
email = "john@doe.com"
logs_batch_size = 30
password = "...my_password..."
- source_type = "my-hours"
- start_date = "2016-01-01"
+ start_date = "%Y-%m-%d"
}
- name = "Elsa Kerluke"
+ name = "Stacey Herzog"
secret_id = "...my_secret_id..."
- workspace_id = "922151fe-1712-4099-853e-9f543d854439"
+ workspace_id = "57a2c261-8fe1-4b91-9cce-8e649d7675fb"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_mysql/resource.tf b/examples/resources/airbyte_source_mysql/resource.tf
old mode 100755
new mode 100644
index 06257c92b..24a8c4158
--- a/examples/resources/airbyte_source_mysql/resource.tf
+++ b/examples/resources/airbyte_source_mysql/resource.tf
@@ -6,26 +6,20 @@ resource "airbyte_source_mysql" "my_source_mysql" {
password = "...my_password..."
port = 3306
replication_method = {
- source_mysql_update_method_read_changes_using_binary_log_cdc_ = {
- initial_waiting_seconds = 10
- method = "CDC"
+ source_mysql_update_method_read_changes_using_binary_log_cdc = {
+ initial_waiting_seconds = 5
server_time_zone = "...my_server_time_zone..."
}
}
- source_type = "mysql"
ssl_mode = {
- source_mysql_ssl_modes_preferred = {
- mode = "preferred"
- }
+ source_mysql_ssl_modes_preferred = {}
}
tunnel_method = {
- source_mysql_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_mysql_ssh_tunnel_method_no_tunnel = {}
}
- username = "Carley25"
+ username = "Bernadette63"
}
- name = "Ruth Goodwin"
+ name = "Ricardo O'Keefe"
secret_id = "...my_secret_id..."
- workspace_id = "bc154188-c2f5-46e8-9da7-832eabd617c3"
+ workspace_id = "c65536a2-05f1-4e4d-b09e-a5800594fbd8"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_netsuite/resource.tf b/examples/resources/airbyte_source_netsuite/resource.tf
old mode 100755
new mode 100644
index 7f15f2723..1af6ea104
--- a/examples/resources/airbyte_source_netsuite/resource.tf
+++ b/examples/resources/airbyte_source_netsuite/resource.tf
@@ -6,13 +6,12 @@ resource "airbyte_source_netsuite" "my_source_netsuite" {
"...",
]
realm = "...my_realm..."
- source_type = "netsuite"
start_datetime = "2017-01-25T00:00:00Z"
token_key = "...my_token_key..."
token_secret = "...my_token_secret..."
- window_in_days = 7
+ window_in_days = 4
}
- name = "Miss Meredith Hand"
+ name = "Sylvia Bernhard"
secret_id = "...my_secret_id..."
- workspace_id = "4bf01bad-8706-4d46-882b-fbdc41ff5d4e"
+ workspace_id = "ace02f96-b833-4556-b7e4-181b36cf1afc"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_notion/resource.tf b/examples/resources/airbyte_source_notion/resource.tf
old mode 100755
new mode 100644
index a197d16f1..6f21a2dce
--- a/examples/resources/airbyte_source_notion/resource.tf
+++ b/examples/resources/airbyte_source_notion/resource.tf
@@ -2,14 +2,12 @@ resource "airbyte_source_notion" "my_source_notion" {
configuration = {
credentials = {
source_notion_authenticate_using_access_token = {
- auth_type = "token"
- token = "...my_token..."
+ token = "...my_token..."
}
}
- source_type = "notion"
- start_date = "2020-11-16T00:00:00.000Z"
+ start_date = "2020-11-16T00:00:00.000Z"
}
- name = "Francisco Yost"
+ name = "Alyssa Douglas"
secret_id = "...my_secret_id..."
- workspace_id = "cb35d176-38f1-4edb-b835-9ecc5cb860f8"
+ workspace_id = "9cbeca1c-7573-4a5b-bba8-2d4c0a2cef78"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_nytimes/resource.tf b/examples/resources/airbyte_source_nytimes/resource.tf
old mode 100755
new mode 100644
index e6a87e50d..afac7320e
--- a/examples/resources/airbyte_source_nytimes/resource.tf
+++ b/examples/resources/airbyte_source_nytimes/resource.tf
@@ -1,13 +1,12 @@
resource "airbyte_source_nytimes" "my_source_nytimes" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "1851-01"
- period = "7"
- share_type = "facebook"
- source_type = "nytimes"
- start_date = "2022-08"
+ api_key = "...my_api_key..."
+ end_date = "2022-08"
+ period = "7"
+ share_type = "facebook"
+ start_date = "2022-08"
}
- name = "Mr. Emily Macejkovic"
+ name = "Arturo O'Keefe"
secret_id = "...my_secret_id..."
- workspace_id = "4fe44472-97cd-43b1-9d3b-bce247b7684e"
+ workspace_id = "04a9e0dd-c315-46b2-bfd5-d6c69da5497a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_okta/resource.tf b/examples/resources/airbyte_source_okta/resource.tf
old mode 100755
new mode 100644
index 68b9ac0e9..50ab76151
--- a/examples/resources/airbyte_source_okta/resource.tf
+++ b/examples/resources/airbyte_source_okta/resource.tf
@@ -3,14 +3,12 @@ resource "airbyte_source_okta" "my_source_okta" {
credentials = {
source_okta_authorization_method_api_token = {
api_token = "...my_api_token..."
- auth_type = "api_token"
}
}
- domain = "...my_domain..."
- source_type = "okta"
- start_date = "2022-07-22T00:00:00Z"
+ domain = "...my_domain..."
+ start_date = "2022-07-22T00:00:00Z"
}
- name = "Mr. Emmett Heidenreich"
+ name = "Dr. Gilberto Koss"
secret_id = "...my_secret_id..."
- workspace_id = "6d71cffb-d0eb-474b-8421-953b44bd3c43"
+ workspace_id = "dea586a0-9709-4edc-af2c-4357e7eb149e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_omnisend/resource.tf b/examples/resources/airbyte_source_omnisend/resource.tf
old mode 100755
new mode 100644
index cfbc86e3a..8e8831d5e
--- a/examples/resources/airbyte_source_omnisend/resource.tf
+++ b/examples/resources/airbyte_source_omnisend/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_omnisend" "my_source_omnisend" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "omnisend"
+ api_key = "...my_api_key..."
}
- name = "Lynn Miller"
+ name = "Shawna Treutel"
secret_id = "...my_secret_id..."
- workspace_id = "3e5953c0-0113-4986-baa4-1e6c31cc2f1f"
+ workspace_id = "76bd271d-6f7a-477e-91b0-4b8d52e6bc1e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_onesignal/resource.tf b/examples/resources/airbyte_source_onesignal/resource.tf
old mode 100755
new mode 100644
index feb38ab1a..e3eb97ecd
--- a/examples/resources/airbyte_source_onesignal/resource.tf
+++ b/examples/resources/airbyte_source_onesignal/resource.tf
@@ -8,11 +8,10 @@ resource "airbyte_source_onesignal" "my_source_onesignal" {
},
]
outcome_names = "os__session_duration.count,os__click.count,CustomOutcomeName.sum"
- source_type = "onesignal"
start_date = "2020-11-16T00:00:00Z"
user_auth_key = "...my_user_auth_key..."
}
- name = "Joan Schaefer"
+ name = "Mattie Bode"
secret_id = "...my_secret_id..."
- workspace_id = "41ffbe9c-bd79-45ee-a5e0-76cc7abf616e"
+ workspace_id = "c2e9642f-3c2f-4e19-832e-dfee92bc3373"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_oracle/resource.tf b/examples/resources/airbyte_source_oracle/resource.tf
old mode 100755
new mode 100644
index 457d7de4a..05584491c
--- a/examples/resources/airbyte_source_oracle/resource.tf
+++ b/examples/resources/airbyte_source_oracle/resource.tf
@@ -2,32 +2,27 @@ resource "airbyte_source_oracle" "my_source_oracle" {
configuration = {
connection_data = {
source_oracle_connect_by_service_name = {
- connection_type = "service_name"
- service_name = "...my_service_name..."
+ service_name = "...my_service_name..."
}
}
encryption = {
- source_oracle_encryption_native_network_encryption_nne_ = {
+ source_oracle_encryption_native_network_encryption_nne = {
encryption_algorithm = "RC4_56"
- encryption_method = "client_nne"
}
}
host = "...my_host..."
jdbc_url_params = "...my_jdbc_url_params..."
password = "...my_password..."
- port = 4
+ port = 9
schemas = [
"...",
]
- source_type = "oracle"
tunnel_method = {
- source_oracle_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_oracle_ssh_tunnel_method_no_tunnel = {}
}
- username = "Oswaldo42"
+ username = "Carolina_Schamberger"
}
- name = "Cheryl McKenzie"
+ name = "Jeannie Conroy"
secret_id = "...my_secret_id..."
- workspace_id = "b90f2e09-d19d-42fc-af9e-2e105944b935"
+ workspace_id = "f975a7b1-02e5-4487-915a-2f449e5b0b68"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_orb/resource.tf b/examples/resources/airbyte_source_orb/resource.tf
old mode 100755
new mode 100644
index 5a3a772ce..9e4c126bb
--- a/examples/resources/airbyte_source_orb/resource.tf
+++ b/examples/resources/airbyte_source_orb/resource.tf
@@ -5,15 +5,14 @@ resource "airbyte_source_orb" "my_source_orb" {
numeric_event_properties_keys = [
"...",
]
- plan_id = "...my_plan_id..."
- source_type = "orb"
- start_date = "2022-03-01T00:00:00Z"
+ plan_id = "...my_plan_id..."
+ start_date = "2022-03-01T00:00:00Z"
string_event_properties_keys = [
"...",
]
subscription_usage_grouping_key = "...my_subscription_usage_grouping_key..."
}
- name = "Josephine Kilback"
+ name = "Marta Renner"
secret_id = "...my_secret_id..."
- workspace_id = "2f90849d-6aed-44ae-8b75-37cd9222c9ff"
+ workspace_id = "99e2f7dc-2833-4c76-bbd5-5f566b4ade04"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_orbit/resource.tf b/examples/resources/airbyte_source_orbit/resource.tf
old mode 100755
new mode 100644
index 0564ed716..36b5065d3
--- a/examples/resources/airbyte_source_orbit/resource.tf
+++ b/examples/resources/airbyte_source_orbit/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_orbit" "my_source_orbit" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "orbit"
- start_date = "...my_start_date..."
- workspace = "...my_workspace..."
+ api_token = "...my_api_token..."
+ start_date = "...my_start_date..."
+ workspace = "...my_workspace..."
}
- name = "Jo Greenholt V"
+ name = "Willard Towne"
secret_id = "...my_secret_id..."
- workspace_id = "abfa2e76-1f0c-4a4d-856e-f1031e6899f0"
+ workspace_id = "0fd8ad91-61a0-45c5-a889-977eae086e3c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_outbrain_amplify/resource.tf b/examples/resources/airbyte_source_outbrain_amplify/resource.tf
old mode 100755
new mode 100644
index 3d11879df..5236daf4b
--- a/examples/resources/airbyte_source_outbrain_amplify/resource.tf
+++ b/examples/resources/airbyte_source_outbrain_amplify/resource.tf
@@ -3,16 +3,14 @@ resource "airbyte_source_outbrain_amplify" "my_source_outbrainamplify" {
credentials = {
source_outbrain_amplify_authentication_method_access_token = {
access_token = "...my_access_token..."
- type = "access_token"
}
}
end_date = "...my_end_date..."
- geo_location_breakdown = "subregion"
- report_granularity = "daily"
- source_type = "outbrain-amplify"
+ geo_location_breakdown = "country"
+ report_granularity = "monthly"
start_date = "...my_start_date..."
}
- name = "Cynthia Boyer"
+ name = "Robin Ankunding"
secret_id = "...my_secret_id..."
- workspace_id = "2cd55cc0-584a-4184-976d-971fc820c65b"
+ workspace_id = "ab840e56-112c-41fd-a021-0a5cfbec2876"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_outreach/resource.tf b/examples/resources/airbyte_source_outreach/resource.tf
old mode 100755
new mode 100644
index 379b400ed..109ad229b
--- a/examples/resources/airbyte_source_outreach/resource.tf
+++ b/examples/resources/airbyte_source_outreach/resource.tf
@@ -4,10 +4,9 @@ resource "airbyte_source_outreach" "my_source_outreach" {
client_secret = "...my_client_secret..."
redirect_uri = "...my_redirect_uri..."
refresh_token = "...my_refresh_token..."
- source_type = "outreach"
start_date = "2020-11-16T00:00:00Z"
}
- name = "Kim Kirlin"
+ name = "Mr. Amber Wintheiser"
secret_id = "...my_secret_id..."
- workspace_id = "8e0cc885-187e-44de-84af-28c5dddb46aa"
+ workspace_id = "c84028fb-b0cd-4dcf-802e-3e6016546635"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_paypal_transaction/resource.tf b/examples/resources/airbyte_source_paypal_transaction/resource.tf
old mode 100755
new mode 100644
index 9f3533fc0..58958dd01
--- a/examples/resources/airbyte_source_paypal_transaction/resource.tf
+++ b/examples/resources/airbyte_source_paypal_transaction/resource.tf
@@ -2,12 +2,11 @@ resource "airbyte_source_paypal_transaction" "my_source_paypaltransaction" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- is_sandbox = false
+ is_sandbox = true
refresh_token = "...my_refresh_token..."
- source_type = "paypal-transaction"
start_date = "2021-06-11T23:59:59+00:00"
}
- name = "Ernestine Little"
+ name = "Daniel Graham"
secret_id = "...my_secret_id..."
- workspace_id = "da013191-1296-4466-85c1-d81f29042f56"
+ workspace_id = "6c5d5cf5-0fbf-4713-864e-d5bf6d67306c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_paystack/resource.tf b/examples/resources/airbyte_source_paystack/resource.tf
old mode 100755
new mode 100644
index dbca94488..ade5758e1
--- a/examples/resources/airbyte_source_paystack/resource.tf
+++ b/examples/resources/airbyte_source_paystack/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_paystack" "my_source_paystack" {
configuration = {
- lookback_window_days = 6
+ lookback_window_days = 8
secret_key = "...my_secret_key..."
- source_type = "paystack"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Dr. Boyd Wilderman"
+ name = "Elias Kautzer"
secret_id = "...my_secret_id..."
- workspace_id = "2216cbe0-71bc-4163-a279-a3b084da9925"
+ workspace_id = "faeff480-df14-43ee-90f8-279e427b2c34"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pendo/resource.tf b/examples/resources/airbyte_source_pendo/resource.tf
old mode 100755
new mode 100644
index d4cc1314e..757ebc93e
--- a/examples/resources/airbyte_source_pendo/resource.tf
+++ b/examples/resources/airbyte_source_pendo/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_pendo" "my_source_pendo" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "pendo"
+ api_key = "...my_api_key..."
}
- name = "Estelle Bechtelar"
+ name = "Leigh Bruen"
secret_id = "...my_secret_id..."
- workspace_id = "40847a74-2d84-4496-8bde-ecf6b99bc635"
+ workspace_id = "b428b10c-62ae-4eab-aa16-bc0f1be55677"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_persistiq/resource.tf b/examples/resources/airbyte_source_persistiq/resource.tf
old mode 100755
new mode 100644
index 54a89064e..cf80dd948
--- a/examples/resources/airbyte_source_persistiq/resource.tf
+++ b/examples/resources/airbyte_source_persistiq/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_persistiq" "my_source_persistiq" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "persistiq"
+ api_key = "...my_api_key..."
}
- name = "Nicole Vandervort"
+ name = "Bessie Ernser"
secret_id = "...my_secret_id..."
- workspace_id = "df55c294-c060-4b06-a128-7764eef6d0c6"
+ workspace_id = "c6ca7fcd-ac63-4878-94b6-9c42e8b9a534"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pexels_api/resource.tf b/examples/resources/airbyte_source_pexels_api/resource.tf
old mode 100755
new mode 100644
index 18312ed96..25ee5db53
--- a/examples/resources/airbyte_source_pexels_api/resource.tf
+++ b/examples/resources/airbyte_source_pexels_api/resource.tf
@@ -3,12 +3,11 @@ resource "airbyte_source_pexels_api" "my_source_pexelsapi" {
api_key = "...my_api_key..."
color = "orange"
locale = "en-US"
- orientation = "landscape"
+ orientation = "square"
query = "oceans"
size = "small"
- source_type = "pexels-api"
}
- name = "Arnold Dooley"
+ name = "Genevieve Corwin"
secret_id = "...my_secret_id..."
- workspace_id = "63457150-9a8e-4870-93c5-a1f9c242c7b6"
+ workspace_id = "4eff211a-dfc7-421d-91f8-0239a929660c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pinterest/resource.tf b/examples/resources/airbyte_source_pinterest/resource.tf
old mode 100755
new mode 100644
index 76a69a918..7898dad89
--- a/examples/resources/airbyte_source_pinterest/resource.tf
+++ b/examples/resources/airbyte_source_pinterest/resource.tf
@@ -3,16 +3,14 @@ resource "airbyte_source_pinterest" "my_source_pinterest" {
credentials = {
source_pinterest_authorization_method_access_token = {
access_token = "...my_access_token..."
- auth_method = "access_token"
}
}
- source_type = "pinterest"
- start_date = "2022-07-28"
+ start_date = "2022-07-28"
status = [
- "ACTIVE",
+ "ARCHIVED",
]
}
- name = "Nathan Bauch"
+ name = "Walter Bode"
secret_id = "...my_secret_id..."
- workspace_id = "3df5b671-9890-4f42-a4bb-438d85b26059"
+ workspace_id = "8c1cd3af-e5ef-4853-81e2-2d9fe1bd2224"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pipedrive/resource.tf b/examples/resources/airbyte_source_pipedrive/resource.tf
old mode 100755
new mode 100644
index 7ca558813..1040126f8
--- a/examples/resources/airbyte_source_pipedrive/resource.tf
+++ b/examples/resources/airbyte_source_pipedrive/resource.tf
@@ -2,12 +2,10 @@ resource "airbyte_source_pipedrive" "my_source_pipedrive" {
configuration = {
authorization = {
api_token = "...my_api_token..."
- auth_type = "Token"
}
replication_start_date = "2017-01-25T00:00:00Z"
- source_type = "pipedrive"
}
- name = "Rhonda Hammes"
+ name = "Sophia Kerluke III"
secret_id = "...my_secret_id..."
- workspace_id = "c2059c9c-3f56-47e0-a252-765b1d62fcda"
+ workspace_id = "be306a4e-8399-4441-ba7c-75d4c70b5882"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pocket/resource.tf b/examples/resources/airbyte_source_pocket/resource.tf
old mode 100755
new mode 100644
index 48fd04c0a..57aa35725
--- a/examples/resources/airbyte_source_pocket/resource.tf
+++ b/examples/resources/airbyte_source_pocket/resource.tf
@@ -5,15 +5,14 @@ resource "airbyte_source_pocket" "my_source_pocket" {
content_type = "image"
detail_type = "complete"
domain = "...my_domain..."
- favorite = true
+ favorite = false
search = "...my_search..."
since = "2022-10-20 14:14:14"
- sort = "site"
- source_type = "pocket"
- state = "unread"
+ sort = "newest"
+ state = "archive"
tag = "...my_tag..."
}
- name = "Christina Bode"
+ name = "Deanna Kunde"
secret_id = "...my_secret_id..."
- workspace_id = "e2239e8f-25cd-40d1-9d95-9f439e39266c"
+ workspace_id = "fdf7e2fa-4a63-4623-a34b-ba48ed6d0eaf"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pokeapi/resource.tf b/examples/resources/airbyte_source_pokeapi/resource.tf
old mode 100755
new mode 100644
index f8a819bee..a927b06c0
--- a/examples/resources/airbyte_source_pokeapi/resource.tf
+++ b/examples/resources/airbyte_source_pokeapi/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_pokeapi" "my_source_pokeapi" {
configuration = {
- pokemon_name = "snorlax"
- source_type = "pokeapi"
+ pokemon_name = "luxray"
}
- name = "Jeremiah Hahn"
+ name = "Dean Gutkowski"
secret_id = "...my_secret_id..."
- workspace_id = "aa2b2411-3695-4d1e-a698-fcc4596217c2"
+ workspace_id = "c369f9cb-0a3d-4d00-87da-ef770c81f95c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_polygon_stock_api/resource.tf b/examples/resources/airbyte_source_polygon_stock_api/resource.tf
old mode 100755
new mode 100644
index 5bdd339ea..dbae7b96b
--- a/examples/resources/airbyte_source_polygon_stock_api/resource.tf
+++ b/examples/resources/airbyte_source_polygon_stock_api/resource.tf
@@ -1,17 +1,16 @@
resource "airbyte_source_polygon_stock_api" "my_source_polygonstockapi" {
configuration = {
- adjusted = "false"
+ adjusted = "true"
api_key = "...my_api_key..."
end_date = "2020-10-14"
- limit = 100
+ limit = 120
multiplier = 1
sort = "asc"
- source_type = "polygon-stock-api"
start_date = "2020-10-14"
stocks_ticker = "IBM"
timespan = "day"
}
- name = "Mary Fisher"
+ name = "Shari Jerde"
secret_id = "...my_secret_id..."
- workspace_id = "fb5971e9-8190-4557-b89c-edbac7fda395"
+ workspace_id = "c5cd0a4f-da52-4f69-943b-8620d9bb5048"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_postgres/resource.tf b/examples/resources/airbyte_source_postgres/resource.tf
old mode 100755
new mode 100644
index 2bc80bb59..5b5b499e7
--- a/examples/resources/airbyte_source_postgres/resource.tf
+++ b/examples/resources/airbyte_source_postgres/resource.tf
@@ -6,27 +6,22 @@ resource "airbyte_source_postgres" "my_source_postgres" {
password = "...my_password..."
port = 5432
replication_method = {
- source_postgres_update_method_detect_changes_with_xmin_system_column = {
- method = "Xmin"
- }
+ source_postgres_update_method_detect_changes_with_xmin_system_column = {}
}
schemas = [
"...",
]
- source_type = "postgres"
ssl_mode = {
source_postgres_ssl_modes_allow = {
- mode = "allow"
+ additional_properties = "{ \"see\": \"documentation\" }"
}
}
tunnel_method = {
- source_postgres_ssh_tunnel_method_no_tunnel = {
- tunnel_method = "NO_TUNNEL"
- }
+ source_postgres_ssh_tunnel_method_no_tunnel = {}
}
- username = "Edwardo.Streich"
+ username = "Luigi_Murray"
}
- name = "Roosevelt Cummings"
+ name = "Arlene O'Kon V"
secret_id = "...my_secret_id..."
- workspace_id = "480632b9-954b-46fa-a206-369828553cb1"
+ workspace_id = "fd2caf83-f045-4910-a7c5-70570b889169"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_posthog/resource.tf b/examples/resources/airbyte_source_posthog/resource.tf
old mode 100755
new mode 100644
index 84b31ca82..cf8e0f8b3
--- a/examples/resources/airbyte_source_posthog/resource.tf
+++ b/examples/resources/airbyte_source_posthog/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_posthog" "my_source_posthog" {
configuration = {
api_key = "...my_api_key..."
base_url = "https://posthog.example.com"
- events_time_step = 30
- source_type = "posthog"
+ events_time_step = 5
start_date = "2021-01-01T00:00:00Z"
}
- name = "Terence Wisozk"
+ name = "Freda Kulas"
secret_id = "...my_secret_id..."
- workspace_id = "21ec2053-b749-4366-ac8e-e0f2bf19588d"
+ workspace_id = "fcaa386d-a1d2-4ddf-8351-c49c68690051"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_postmarkapp/resource.tf b/examples/resources/airbyte_source_postmarkapp/resource.tf
old mode 100755
new mode 100644
index 2ddf60220..276e14ced
--- a/examples/resources/airbyte_source_postmarkapp/resource.tf
+++ b/examples/resources/airbyte_source_postmarkapp/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_postmarkapp" "my_source_postmarkapp" {
configuration = {
- source_type = "postmarkapp"
x_postmark_account_token = "...my_x_postmark_account_token..."
x_postmark_server_token = "...my_x_postmark_server_token..."
}
- name = "Mr. Sharon Swift"
+ name = "Danielle Borer"
secret_id = "...my_secret_id..."
- workspace_id = "3deba297-be3e-490b-840d-f868fd52405c"
+ workspace_id = "5e4d38a3-0ea5-46cd-ba27-fbf6225b4bae"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_prestashop/resource.tf b/examples/resources/airbyte_source_prestashop/resource.tf
old mode 100755
new mode 100644
index d880d5bf5..324b72282
--- a/examples/resources/airbyte_source_prestashop/resource.tf
+++ b/examples/resources/airbyte_source_prestashop/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_prestashop" "my_source_prestashop" {
configuration = {
- access_key = "...my_access_key..."
- source_type = "prestashop"
- start_date = "2022-01-01"
- url = "...my_url..."
+ access_key = "...my_access_key..."
+ start_date = "2022-01-01"
+ url = "...my_url..."
}
- name = "Evelyn Stracke"
+ name = "Anna Collier Sr."
secret_id = "...my_secret_id..."
- workspace_id = "2f4f127f-b0e0-4bf1-b821-7978d0acca77"
+ workspace_id = "3e87b490-ecc6-4bf7-9161-16fc803c8311"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_punk_api/resource.tf b/examples/resources/airbyte_source_punk_api/resource.tf
old mode 100755
new mode 100644
index c2c285f0b..e15d85064
--- a/examples/resources/airbyte_source_punk_api/resource.tf
+++ b/examples/resources/airbyte_source_punk_api/resource.tf
@@ -3,9 +3,8 @@ resource "airbyte_source_punk_api" "my_source_punkapi" {
brewed_after = "MM-YYYY"
brewed_before = "MM-YYYY"
id = 22
- source_type = "punk-api"
}
- name = "Darnell Turcotte"
+ name = "Richard Heller"
secret_id = "...my_secret_id..."
- workspace_id = "540ef53a-34a1-4b8f-a997-31adc05d85ae"
+ workspace_id = "2040e069-282d-4d6a-92cb-01cbd9faeeda"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_pypi/resource.tf b/examples/resources/airbyte_source_pypi/resource.tf
old mode 100755
new mode 100644
index 05cdc7664..c62c7d718
--- a/examples/resources/airbyte_source_pypi/resource.tf
+++ b/examples/resources/airbyte_source_pypi/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_pypi" "my_source_pypi" {
configuration = {
project_name = "sampleproject"
- source_type = "pypi"
version = "1.2.0"
}
- name = "Antonia Wintheiser"
+ name = "Darlene Legros"
secret_id = "...my_secret_id..."
- workspace_id = "0fb38742-90d3-4365-a1ec-a16ef89451bd"
+ workspace_id = "527913ed-fcf9-4c90-98e6-9d20ee3e4cb5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_qualaroo/resource.tf b/examples/resources/airbyte_source_qualaroo/resource.tf
old mode 100755
new mode 100644
index b83094854..d1935a1a5
--- a/examples/resources/airbyte_source_qualaroo/resource.tf
+++ b/examples/resources/airbyte_source_qualaroo/resource.tf
@@ -1,14 +1,13 @@
resource "airbyte_source_qualaroo" "my_source_qualaroo" {
configuration = {
- key = "...my_key..."
- source_type = "qualaroo"
- start_date = "2021-03-01T00:00:00.000Z"
+ key = "...my_key..."
+ start_date = "2021-03-01T00:00:00.000Z"
survey_ids = [
"...",
]
token = "...my_token..."
}
- name = "Sue Thompson"
+ name = "Rosalie Hoppe"
secret_id = "...my_secret_id..."
- workspace_id = "b518c4da-1fad-4355-92f0-6d4e5b72f0f5"
+ workspace_id = "e2f08eb7-6e35-41ce-b20d-e4cfc332b42c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_quickbooks/resource.tf b/examples/resources/airbyte_source_quickbooks/resource.tf
old mode 100755
new mode 100644
index 0a783e7b6..e71614e9e
--- a/examples/resources/airbyte_source_quickbooks/resource.tf
+++ b/examples/resources/airbyte_source_quickbooks/resource.tf
@@ -3,19 +3,17 @@ resource "airbyte_source_quickbooks" "my_source_quickbooks" {
credentials = {
source_quickbooks_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
realm_id = "...my_realm_id..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2022-06-15T23:02:57.447Z"
+ token_expiry_date = "2022-06-02T21:27:50.594Z"
}
}
- sandbox = false
- source_type = "quickbooks"
- start_date = "2021-03-20T00:00:00Z"
+ sandbox = true
+ start_date = "2021-03-20T00:00:00Z"
}
- name = "William Gottlieb"
+ name = "Ms. Rodolfo Kerluke"
secret_id = "...my_secret_id..."
- workspace_id = "e00a1d6e-b943-4464-9d03-084fbba5ccef"
+ workspace_id = "e714fbf0-cfd3-4aed-94ef-24d0de80e3db"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_railz/resource.tf b/examples/resources/airbyte_source_railz/resource.tf
old mode 100755
new mode 100644
index bf3d3dabd..bd39e0e5e
--- a/examples/resources/airbyte_source_railz/resource.tf
+++ b/examples/resources/airbyte_source_railz/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_railz" "my_source_railz" {
configuration = {
- client_id = "...my_client_id..."
- secret_key = "...my_secret_key..."
- source_type = "railz"
- start_date = "...my_start_date..."
+ client_id = "...my_client_id..."
+ secret_key = "...my_secret_key..."
+ start_date = "...my_start_date..."
}
- name = "Clyde Schmeler Jr."
+ name = "Mr. Steven Hills Sr."
secret_id = "...my_secret_id..."
- workspace_id = "fe51e528-a45a-4c82-b85f-8bc2caba8da4"
+ workspace_id = "5d2de4b8-db33-4d2b-ba27-b0b342a10fbc"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_recharge/resource.tf b/examples/resources/airbyte_source_recharge/resource.tf
old mode 100755
new mode 100644
index fceba1a03..6c4411866
--- a/examples/resources/airbyte_source_recharge/resource.tf
+++ b/examples/resources/airbyte_source_recharge/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_recharge" "my_source_recharge" {
configuration = {
access_token = "...my_access_token..."
- source_type = "recharge"
start_date = "2021-05-14T00:00:00Z"
}
- name = "Angel Stokes"
+ name = "Ms. Grant Krajcik I"
secret_id = "...my_secret_id..."
- workspace_id = "7ff4711a-a1bc-474b-86ce-cc74f77b4848"
+ workspace_id = "9037c7ee-f972-4df3-814a-349fde89ab27"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_recreation/resource.tf b/examples/resources/airbyte_source_recreation/resource.tf
old mode 100755
new mode 100644
index 90e04ebbc..6ae6fbc18
--- a/examples/resources/airbyte_source_recreation/resource.tf
+++ b/examples/resources/airbyte_source_recreation/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_recreation" "my_source_recreation" {
configuration = {
apikey = "...my_apikey..."
query_campsites = "...my_query_campsites..."
- source_type = "recreation"
}
- name = "Taylor Kertzmann"
+ name = "Krista Reilly"
secret_id = "...my_secret_id..."
- workspace_id = "f0441d2c-3b80-4809-8373-e060459bebba"
+ workspace_id = "00caee12-c4e6-45b5-be54-a27b617a012e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_recruitee/resource.tf b/examples/resources/airbyte_source_recruitee/resource.tf
old mode 100755
new mode 100644
index 6efcdbe0e..d00271b32
--- a/examples/resources/airbyte_source_recruitee/resource.tf
+++ b/examples/resources/airbyte_source_recruitee/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_recruitee" "my_source_recruitee" {
configuration = {
- api_key = "...my_api_key..."
- company_id = 9
- source_type = "recruitee"
+ api_key = "...my_api_key..."
+ company_id = 4
}
- name = "Mrs. Tina White"
+ name = "Van Jakubowski"
secret_id = "...my_secret_id..."
- workspace_id = "6bcf1525-58da-4a95-be6c-d02756c354aa"
+ workspace_id = "1922df28-3a61-4431-ba52-314031fd7b82"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_recurly/resource.tf b/examples/resources/airbyte_source_recurly/resource.tf
old mode 100755
new mode 100644
index f3ce9d851..ff3eab7e6
--- a/examples/resources/airbyte_source_recurly/resource.tf
+++ b/examples/resources/airbyte_source_recurly/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_recurly" "my_source_recurly" {
configuration = {
- api_key = "...my_api_key..."
- begin_time = "2021-12-01T00:00:00"
- end_time = "2021-12-01T00:00:00"
- source_type = "recurly"
+ api_key = "...my_api_key..."
+ begin_time = "2021-12-01T00:00:00"
+ end_time = "2021-12-01T00:00:00"
}
- name = "Josephine Dibbert"
+ name = "Ms. Jeffery Russel"
secret_id = "...my_secret_id..."
- workspace_id = "7e1763c5-208c-423e-9802-d82f0d45eb4a"
+ workspace_id = "c1950da3-1ebe-4cd9-b5a7-5a7c5fc21d72"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_redshift/resource.tf b/examples/resources/airbyte_source_redshift/resource.tf
old mode 100755
new mode 100644
index 8db6f068a..6a20a0a8f
--- a/examples/resources/airbyte_source_redshift/resource.tf
+++ b/examples/resources/airbyte_source_redshift/resource.tf
@@ -8,10 +8,9 @@ resource "airbyte_source_redshift" "my_source_redshift" {
schemas = [
"...",
]
- source_type = "redshift"
- username = "Nelda.Jaskolski"
+ username = "Montana1"
}
- name = "Clay Hintz"
+ name = "Duane Kirlin"
secret_id = "...my_secret_id..."
- workspace_id = "c18edc7f-787e-432e-84b3-d3ed0c5670ef"
+ workspace_id = "b731c6d5-241e-4982-9d4f-c03242ccd276"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_retently/resource.tf b/examples/resources/airbyte_source_retently/resource.tf
old mode 100755
new mode 100644
index 611cccff5..899b1ad84
--- a/examples/resources/airbyte_source_retently/resource.tf
+++ b/examples/resources/airbyte_source_retently/resource.tf
@@ -1,16 +1,15 @@
resource "airbyte_source_retently" "my_source_retently" {
configuration = {
credentials = {
- source_retently_authentication_mechanism_authenticate_via_retently_o_auth_ = {
- auth_type = "Client"
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ source_retently_authentication_mechanism_authenticate_via_retently_o_auth = {
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
}
- source_type = "retently"
}
- name = "Kelly Pfeffer"
+ name = "Rosie Baumbach"
secret_id = "...my_secret_id..."
- workspace_id = "c9f1cc50-3f6c-439b-8d0a-6290f957f385"
+ workspace_id = "0eb91c3d-f259-4349-952d-c8258f30a271"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_rki_covid/resource.tf b/examples/resources/airbyte_source_rki_covid/resource.tf
old mode 100755
new mode 100644
index e33e2377d..a709eca7c
--- a/examples/resources/airbyte_source_rki_covid/resource.tf
+++ b/examples/resources/airbyte_source_rki_covid/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_rki_covid" "my_source_rkicovid" {
configuration = {
- source_type = "rki-covid"
- start_date = "...my_start_date..."
+ start_date = "...my_start_date..."
}
- name = "Penny Morissette"
+ name = "Mr. Earl Rempel"
secret_id = "...my_secret_id..."
- workspace_id = "7ef807aa-e03f-433c-a79f-b9de4032ba26"
+ workspace_id = "c7045956-c03e-4c7b-8b68-fdfc0692b4fd"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_rss/resource.tf b/examples/resources/airbyte_source_rss/resource.tf
old mode 100755
new mode 100644
index 55fce02f1..44d7816aa
--- a/examples/resources/airbyte_source_rss/resource.tf
+++ b/examples/resources/airbyte_source_rss/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_rss" "my_source_rss" {
configuration = {
- source_type = "rss"
- url = "...my_url..."
+ url = "...my_url..."
}
- name = "Gustavo Donnelly"
+ name = "Colleen Frami"
secret_id = "...my_secret_id..."
- workspace_id = "ba9216bc-b415-4835-8736-41723133edc0"
+ workspace_id = "9a8d0acc-9948-4b00-a105-9fac1d6c9b0f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_s3/resource.tf b/examples/resources/airbyte_source_s3/resource.tf
old mode 100755
new mode 100644
index c1afe122c..6daa24c32
--- a/examples/resources/airbyte_source_s3/resource.tf
+++ b/examples/resources/airbyte_source_s3/resource.tf
@@ -6,9 +6,7 @@ resource "airbyte_source_s3" "my_source_s3" {
dataset = "...my_dataset..."
endpoint = "...my_endpoint..."
format = {
- source_s3_file_format_avro = {
- filetype = "avro"
- }
+ source_s3_file_format_avro = {}
}
path_pattern = "**"
provider = {
@@ -19,17 +17,15 @@ resource "airbyte_source_s3" "my_source_s3" {
path_prefix = "...my_path_prefix..."
start_date = "2021-01-01T00:00:00Z"
}
- schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}"
- source_type = "s3"
- start_date = "2021-01-01T00:00:00.000000Z"
+ schema = "{\"column_1\": \"number\", \"column_2\": \"string\", \"column_3\": \"array\", \"column_4\": \"object\", \"column_5\": \"boolean\"}"
+ start_date = "2021-01-01T00:00:00.000000Z"
streams = [
{
- days_to_sync_if_history_is_full = 1
+ days_to_sync_if_history_is_full = 6
file_type = "...my_file_type..."
format = {
source_s3_file_based_stream_config_format_avro_format = {
double_as_string = true
- filetype = "avro"
}
}
globs = [
@@ -37,14 +33,14 @@ resource "airbyte_source_s3" "my_source_s3" {
]
input_schema = "...my_input_schema..."
legacy_prefix = "...my_legacy_prefix..."
- name = "Flora Rempel"
+ name = "Pearl Batz"
primary_key = "...my_primary_key..."
schemaless = false
- validation_policy = "Skip Record"
+ validation_policy = "Emit Record"
},
]
}
- name = "Jacqueline Kiehn"
+ name = "Rudolph Roberts"
secret_id = "...my_secret_id..."
- workspace_id = "2c22c553-5049-45c5-9bb3-c57c1e4981e8"
+ workspace_id = "d8aaea00-f0c4-4c84-b89e-625bae876a32"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_salesforce/resource.tf b/examples/resources/airbyte_source_salesforce/resource.tf
old mode 100755
new mode 100644
index b29e447e6..adac7cb93
--- a/examples/resources/airbyte_source_salesforce/resource.tf
+++ b/examples/resources/airbyte_source_salesforce/resource.tf
@@ -1,21 +1,19 @@
resource "airbyte_source_salesforce" "my_source_salesforce" {
configuration = {
- auth_type = "Client"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- force_use_bulk_api = true
- is_sandbox = false
+ force_use_bulk_api = false
+ is_sandbox = true
refresh_token = "...my_refresh_token..."
- source_type = "salesforce"
start_date = "2021-07-25"
streams_criteria = [
{
- criteria = "not contains"
+ criteria = "starts with"
value = "...my_value..."
},
]
}
- name = "Gregg Boyer Sr."
+ name = "Joel Powlowski"
secret_id = "...my_secret_id..."
- workspace_id = "ebde64bf-cc54-469d-8015-dfa796206bef"
+ workspace_id = "e953bf2d-efea-42fd-945f-48d363139855"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_salesloft/resource.tf b/examples/resources/airbyte_source_salesloft/resource.tf
old mode 100755
new mode 100644
index 6d96366c6..0ff99ae75
--- a/examples/resources/airbyte_source_salesloft/resource.tf
+++ b/examples/resources/airbyte_source_salesloft/resource.tf
@@ -2,14 +2,12 @@ resource "airbyte_source_salesloft" "my_source_salesloft" {
configuration = {
credentials = {
source_salesloft_credentials_authenticate_via_api_key = {
- api_key = "...my_api_key..."
- auth_type = "api_key"
+ api_key = "...my_api_key..."
}
}
- source_type = "salesloft"
- start_date = "2020-11-16T00:00:00Z"
+ start_date = "2020-11-16T00:00:00Z"
}
- name = "Lynda Dicki"
+ name = "Dr. Johnny Hauck"
secret_id = "...my_secret_id..."
- workspace_id = "2c1aa010-e9aa-4c2e-9135-586d18f9f97a"
+ workspace_id = "206afb3a-724a-460d-8013-4e58876cb030"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sap_fieldglass/resource.tf b/examples/resources/airbyte_source_sap_fieldglass/resource.tf
old mode 100755
new mode 100644
index 3b2ad185a..c9ead0d5c
--- a/examples/resources/airbyte_source_sap_fieldglass/resource.tf
+++ b/examples/resources/airbyte_source_sap_fieldglass/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_sap_fieldglass" "my_source_sapfieldglass" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "sap-fieldglass"
+ api_key = "...my_api_key..."
}
- name = "Juana Williamson"
+ name = "Raymond D'Amore"
secret_id = "...my_secret_id..."
- workspace_id = "2bf7d67c-a84a-4d99-b41d-61243531870c"
+ workspace_id = "e06a57c7-c577-4af1-a5ba-ddd2747bbc7f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_secoda/resource.tf b/examples/resources/airbyte_source_secoda/resource.tf
old mode 100755
new mode 100644
index f66c05253..753286f05
--- a/examples/resources/airbyte_source_secoda/resource.tf
+++ b/examples/resources/airbyte_source_secoda/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_secoda" "my_source_secoda" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "secoda"
+ api_key = "...my_api_key..."
}
- name = "Brett Leannon I"
+ name = "Hazel Blick V"
secret_id = "...my_secret_id..."
- workspace_id = "ad421bd4-3d1f-40cb-8a00-03eb22d9b3a7"
+ workspace_id = "ce4fe165-bc48-440e-bfb5-df25477f370b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sendgrid/resource.tf b/examples/resources/airbyte_source_sendgrid/resource.tf
old mode 100755
new mode 100644
index 3a300d8e5..3cca5e70a
--- a/examples/resources/airbyte_source_sendgrid/resource.tf
+++ b/examples/resources/airbyte_source_sendgrid/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_sendgrid" "my_source_sendgrid" {
configuration = {
- apikey = "...my_apikey..."
- source_type = "sendgrid"
- start_time = "2020-01-01T01:01:01Z"
+ apikey = "...my_apikey..."
+ start_time = "2020-01-01T01:01:01Z"
}
- name = "Shari Pfannerstill"
+ name = "Adrienne Leannon"
secret_id = "...my_secret_id..."
- workspace_id = "41c57d1f-edc2-4050-938d-c3ce185472f9"
+ workspace_id = "fb0cb9d8-dfc2-47a8-872c-3eb5dc55714d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sendinblue/resource.tf b/examples/resources/airbyte_source_sendinblue/resource.tf
old mode 100755
new mode 100644
index 13be2f4c8..22efc5acd
--- a/examples/resources/airbyte_source_sendinblue/resource.tf
+++ b/examples/resources/airbyte_source_sendinblue/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_sendinblue" "my_source_sendinblue" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "sendinblue"
+ api_key = "...my_api_key..."
}
- name = "Terence Kassulke III"
+ name = "Charles Koss"
secret_id = "...my_secret_id..."
- workspace_id = "6a8be344-4eac-48b3-a287-5c6c1fe606d0"
+ workspace_id = "69873338-6b53-4a47-9a08-05ff1793bf9b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_senseforce/resource.tf b/examples/resources/airbyte_source_senseforce/resource.tf
old mode 100755
new mode 100644
index 11adf0994..2fab1c400
--- a/examples/resources/airbyte_source_senseforce/resource.tf
+++ b/examples/resources/airbyte_source_senseforce/resource.tf
@@ -4,10 +4,9 @@ resource "airbyte_source_senseforce" "my_source_senseforce" {
backend_url = "https://galaxyapi.senseforce.io"
dataset_id = "8f418098-ca28-4df5-9498-0df9fe78eda7"
slice_range = 10
- source_type = "senseforce"
start_date = "2017-01-25"
}
- name = "Rodolfo Langworth"
+ name = "Sherry Casper"
secret_id = "...my_secret_id..."
- workspace_id = "e50c1666-1a1d-4913-aa7e-8d53213f3f65"
+ workspace_id = "bd6b468c-85ec-421a-9ab5-67f13c77e51f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sentry/resource.tf b/examples/resources/airbyte_source_sentry/resource.tf
old mode 100755
new mode 100644
index 9620c2f19..454e5b63c
--- a/examples/resources/airbyte_source_sentry/resource.tf
+++ b/examples/resources/airbyte_source_sentry/resource.tf
@@ -4,12 +4,11 @@ resource "airbyte_source_sentry" "my_source_sentry" {
discover_fields = [
"{ \"see\": \"documentation\" }",
]
- hostname = "muted-ingredient.biz"
+ hostname = "pushy-know-how.info"
organization = "...my_organization..."
project = "...my_project..."
- source_type = "sentry"
}
- name = "Krystal Quitzon"
+ name = "Essie Schneider V"
secret_id = "...my_secret_id..."
- workspace_id = "4c59f0a5-6ceb-4cad-a29c-a79181c95671"
+ workspace_id = "4306e082-909d-497b-babb-ad3671a9ca1d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sftp/resource.tf b/examples/resources/airbyte_source_sftp/resource.tf
old mode 100755
new mode 100644
index c0b68b795..2c939e94e
--- a/examples/resources/airbyte_source_sftp/resource.tf
+++ b/examples/resources/airbyte_source_sftp/resource.tf
@@ -2,19 +2,17 @@ resource "airbyte_source_sftp" "my_source_sftp" {
configuration = {
credentials = {
source_sftp_authentication_wildcard_password_authentication = {
- auth_method = "SSH_PASSWORD_AUTH"
auth_user_password = "...my_auth_user_password..."
}
}
file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`"
- file_types = "csv,json"
+ file_types = "csv"
folder_path = "/logs/2022"
- host = "www.host.com"
+ host = "192.0.2.1"
port = 22
- source_type = "sftp"
user = "...my_user..."
}
- name = "Miss Tommy Emard"
+ name = "Bertha Williamson"
secret_id = "...my_secret_id..."
- workspace_id = "665163a3-6385-412a-b252-1b9f2e072467"
+ workspace_id = "4145562d-2757-4623-9e52-bb8adc8fd2a7"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sftp_bulk/resource.tf b/examples/resources/airbyte_source_sftp_bulk/resource.tf
old mode 100755
new mode 100644
index 64ae1edc4..f4274cf7d
--- a/examples/resources/airbyte_source_sftp_bulk/resource.tf
+++ b/examples/resources/airbyte_source_sftp_bulk/resource.tf
@@ -1,20 +1,19 @@
resource "airbyte_source_sftp_bulk" "my_source_sftpbulk" {
configuration = {
- file_most_recent = false
+ file_most_recent = true
file_pattern = "log-([0-9]{4})([0-9]{2})([0-9]{2}) - This will filter files which `log-yearmmdd`"
file_type = "json"
folder_path = "/logs/2022"
- host = "192.0.2.1"
+ host = "www.host.com"
password = "...my_password..."
port = 22
private_key = "...my_private_key..."
separator = ","
- source_type = "sftp-bulk"
start_date = "2017-01-25T00:00:00Z"
stream_name = "ftp_contacts"
- username = "Pearline_Bailey"
+ username = "Olin92"
}
- name = "Wm Bartoletti"
+ name = "Marie Johns"
secret_id = "...my_secret_id..."
- workspace_id = "50edf22a-94d2-40ec-90ea-41d1f465e851"
+ workspace_id = "f8929e4d-23a0-40b4-94f7-d68d64a810b2"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_shopify/resource.tf b/examples/resources/airbyte_source_shopify/resource.tf
old mode 100755
new mode 100644
index d986b5622..ad52b9ce1
--- a/examples/resources/airbyte_source_shopify/resource.tf
+++ b/examples/resources/airbyte_source_shopify/resource.tf
@@ -3,14 +3,12 @@ resource "airbyte_source_shopify" "my_source_shopify" {
credentials = {
source_shopify_shopify_authorization_method_api_password = {
api_password = "...my_api_password..."
- auth_method = "api_password"
}
}
- shop = "my-store"
- source_type = "shopify"
- start_date = "2022-01-02"
+ shop = "my-store.myshopify.com"
+ start_date = "2022-06-08"
}
- name = "Randal Kris"
+ name = "Christy Kuhn"
secret_id = "...my_secret_id..."
- workspace_id = "df54fdd5-ea95-4433-98da-fb42a8d63388"
+ workspace_id = "0c47c0f9-ce33-4c0f-a94c-11e4e993d294"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_shortio/resource.tf b/examples/resources/airbyte_source_shortio/resource.tf
old mode 100755
new mode 100644
index bc9768ca7..2984a8ac2
--- a/examples/resources/airbyte_source_shortio/resource.tf
+++ b/examples/resources/airbyte_source_shortio/resource.tf
@@ -1,11 +1,10 @@
resource "airbyte_source_shortio" "my_source_shortio" {
configuration = {
- domain_id = "...my_domain_id..."
- secret_key = "...my_secret_key..."
- source_type = "shortio"
- start_date = "2023-07-30T03:43:59.244Z"
+ domain_id = "...my_domain_id..."
+ secret_key = "...my_secret_key..."
+ start_date = "2023-07-30T03:43:59.244Z"
}
- name = "Troy Streich I"
+ name = "Valerie Cronin DDS"
secret_id = "...my_secret_id..."
- workspace_id = "9ea5f9b1-8a24-44fd-a190-39dacd38ed0d"
+ workspace_id = "b54dff6c-f9b7-49e2-b288-8b6bde25154a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_slack/resource.tf b/examples/resources/airbyte_source_slack/resource.tf
old mode 100755
new mode 100644
index 19d0d7616..1c3b45c2f
--- a/examples/resources/airbyte_source_slack/resource.tf
+++ b/examples/resources/airbyte_source_slack/resource.tf
@@ -5,16 +5,14 @@ resource "airbyte_source_slack" "my_source_slack" {
]
credentials = {
source_slack_authentication_mechanism_api_token = {
- api_token = "...my_api_token..."
- option_title = "API Token Credentials"
+ api_token = "...my_api_token..."
}
}
join_channels = false
lookback_window = 7
- source_type = "slack"
start_date = "2017-01-25T00:00:00Z"
}
- name = "Dr. Jamie Wintheiser"
+ name = "Ebony Daniel"
secret_id = "...my_secret_id..."
- workspace_id = "af15920c-90d1-4b49-81f2-bd89c8a32639"
+ workspace_id = "a49853a6-9509-435a-9536-c5004734e30b"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_smaily/resource.tf b/examples/resources/airbyte_source_smaily/resource.tf
old mode 100755
new mode 100644
index bdf367829..88ddfb4b3
--- a/examples/resources/airbyte_source_smaily/resource.tf
+++ b/examples/resources/airbyte_source_smaily/resource.tf
@@ -3,9 +3,8 @@ resource "airbyte_source_smaily" "my_source_smaily" {
api_password = "...my_api_password..."
api_subdomain = "...my_api_subdomain..."
api_username = "...my_api_username..."
- source_type = "smaily"
}
- name = "Donnie Hauck"
+ name = "Kristen Roberts"
secret_id = "...my_secret_id..."
- workspace_id = "b6902b88-1a94-4f64-b664-a8f0af8c691d"
+ workspace_id = "9e4e758a-c092-4271-99b9-5b60c98bb703"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_smartengage/resource.tf b/examples/resources/airbyte_source_smartengage/resource.tf
old mode 100755
new mode 100644
index 3d73a1f37..6b543617f
--- a/examples/resources/airbyte_source_smartengage/resource.tf
+++ b/examples/resources/airbyte_source_smartengage/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_smartengage" "my_source_smartengage" {
configuration = {
- api_key = "...my_api_key..."
- source_type = "smartengage"
+ api_key = "...my_api_key..."
}
- name = "Carmen Crist"
+ name = "Marguerite Reichel"
secret_id = "...my_secret_id..."
- workspace_id = "fbaf9476-a2ae-48dc-850c-8a3512c73784"
+ workspace_id = "61ce1bb1-cada-4a0e-b28a-3bd5563e04de"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_smartsheets/resource.tf b/examples/resources/airbyte_source_smartsheets/resource.tf
old mode 100755
new mode 100644
index addba7c24..e3851744b
--- a/examples/resources/airbyte_source_smartsheets/resource.tf
+++ b/examples/resources/airbyte_source_smartsheets/resource.tf
@@ -3,17 +3,15 @@ resource "airbyte_source_smartsheets" "my_source_smartsheets" {
credentials = {
source_smartsheets_authorization_method_api_access_token = {
access_token = "...my_access_token..."
- auth_type = "access_token"
}
}
metadata_fields = [
- "row_access_level",
+ "sheetmodifiedAt",
]
- source_type = "smartsheets"
spreadsheet_id = "...my_spreadsheet_id..."
start_datetime = "2000-01-01T13:00:00-07:00"
}
- name = "Joann Bechtelar Jr."
+ name = "Beatrice Denesik"
secret_id = "...my_secret_id..."
- workspace_id = "e966ec73-6d43-4194-b98c-783c92398ed3"
+ workspace_id = "fdff2deb-8cbf-4267-8a92-033b17bfcc52"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_snapchat_marketing/resource.tf b/examples/resources/airbyte_source_snapchat_marketing/resource.tf
old mode 100755
new mode 100644
index ed5f2884d..f92affb30
--- a/examples/resources/airbyte_source_snapchat_marketing/resource.tf
+++ b/examples/resources/airbyte_source_snapchat_marketing/resource.tf
@@ -4,10 +4,9 @@ resource "airbyte_source_snapchat_marketing" "my_source_snapchatmarketing" {
client_secret = "...my_client_secret..."
end_date = "2022-01-30"
refresh_token = "...my_refresh_token..."
- source_type = "snapchat-marketing"
start_date = "2022-01-01"
}
- name = "Chelsea Ortiz"
+ name = "Ernestine Parker Sr."
secret_id = "...my_secret_id..."
- workspace_id = "5ca8649a-70cf-4d5d-a989-b7206451077d"
+ workspace_id = "fb0fc527-30b3-4999-8a41-e4a8985c78fa"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_snowflake/resource.tf b/examples/resources/airbyte_source_snowflake/resource.tf
old mode 100755
new mode 100644
index 15f3db7ca..6e4d223fe
--- a/examples/resources/airbyte_source_snowflake/resource.tf
+++ b/examples/resources/airbyte_source_snowflake/resource.tf
@@ -3,7 +3,6 @@ resource "airbyte_source_snowflake" "my_source_snowflake" {
credentials = {
source_snowflake_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "OAuth"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
@@ -14,10 +13,9 @@ resource "airbyte_source_snowflake" "my_source_snowflake" {
jdbc_url_params = "...my_jdbc_url_params..."
role = "AIRBYTE_ROLE"
schema = "AIRBYTE_SCHEMA"
- source_type = "snowflake"
warehouse = "AIRBYTE_WAREHOUSE"
}
- name = "Katrina Tillman"
+ name = "Lynette Luettgen"
secret_id = "...my_secret_id..."
- workspace_id = "3d492ed1-4b8a-42c1-9545-45e955dcc185"
+ workspace_id = "df5bf91a-cb12-4108-b728-d89e351e868d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_sonar_cloud/resource.tf b/examples/resources/airbyte_source_sonar_cloud/resource.tf
old mode 100755
new mode 100644
index 0de15f144..f97a1f7bf
--- a/examples/resources/airbyte_source_sonar_cloud/resource.tf
+++ b/examples/resources/airbyte_source_sonar_cloud/resource.tf
@@ -5,11 +5,10 @@ resource "airbyte_source_sonar_cloud" "my_source_sonarcloud" {
]
end_date = "YYYY-MM-DD"
organization = "airbyte"
- source_type = "sonar-cloud"
start_date = "YYYY-MM-DD"
user_token = "...my_user_token..."
}
- name = "Mildred Rosenbaum"
+ name = "Wesley Paucek"
secret_id = "...my_secret_id..."
- workspace_id = "43ad2daa-784a-4ba3-9230-edf73811a115"
+ workspace_id = "4a46153e-b240-4d62-ad48-87ccaaf58e0f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_spacex_api/resource.tf b/examples/resources/airbyte_source_spacex_api/resource.tf
old mode 100755
new mode 100644
index 8824f13ee..ee946d116
--- a/examples/resources/airbyte_source_spacex_api/resource.tf
+++ b/examples/resources/airbyte_source_spacex_api/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_spacex_api" "my_source_spacexapi" {
configuration = {
- id = "382bd7ed-5650-4762-9c58-f4d7396564c2"
- options = "...my_options..."
- source_type = "spacex-api"
+ id = "5c1159d6-0149-4910-aecf-c7f384ec6040"
+ options = "...my_options..."
}
- name = "Lee Batz Jr."
+ name = "Mrs. Marian Stanton"
secret_id = "...my_secret_id..."
- workspace_id = "a961d24a-7dbb-48f5-b2d8-92cf7812cb51"
+ workspace_id = "1918db5c-ccbb-4bdb-b119-64f99d67745a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_square/resource.tf b/examples/resources/airbyte_source_square/resource.tf
old mode 100755
new mode 100644
index 61c86f490..9237143f8
--- a/examples/resources/airbyte_source_square/resource.tf
+++ b/examples/resources/airbyte_source_square/resource.tf
@@ -2,16 +2,14 @@ resource "airbyte_source_square" "my_source_square" {
configuration = {
credentials = {
source_square_authentication_api_key = {
- api_key = "...my_api_key..."
- auth_type = "API Key"
+ api_key = "...my_api_key..."
}
}
- include_deleted_objects = true
+ include_deleted_objects = false
is_sandbox = false
- source_type = "square"
- start_date = "2022-02-01"
+ start_date = "2022-08-24"
}
- name = "Miss Bruce Gibson"
+ name = "Mr. Willie Kris"
secret_id = "...my_secret_id..."
- workspace_id = "548f88f8-f1bf-40bc-8e1f-206d5d831d00"
+ workspace_id = "d7a7ec19-1626-447e-a80e-4417c6f4b509"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_strava/resource.tf b/examples/resources/airbyte_source_strava/resource.tf
old mode 100755
new mode 100644
index 9f3ccc201..dd110e32c
--- a/examples/resources/airbyte_source_strava/resource.tf
+++ b/examples/resources/airbyte_source_strava/resource.tf
@@ -1,14 +1,12 @@
resource "airbyte_source_strava" "my_source_strava" {
configuration = {
athlete_id = 17831421
- auth_type = "Client"
client_id = "12345"
client_secret = "fc6243f283e51f6ca989aab298b17da125496f50"
refresh_token = "fc6243f283e51f6ca989aab298b17da125496f50"
- source_type = "strava"
start_date = "2021-03-01T00:00:00Z"
}
- name = "Jeffrey Wintheiser"
+ name = "Vanessa Murray"
secret_id = "...my_secret_id..."
- workspace_id = "06673f3a-681c-4576-8dce-742409a215e0"
+ workspace_id = "043ef09e-61b7-45b7-a676-5eab1ad84295"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_stripe/resource.tf b/examples/resources/airbyte_source_stripe/resource.tf
old mode 100755
new mode 100644
index 2d22ec1b8..af319c950
--- a/examples/resources/airbyte_source_stripe/resource.tf
+++ b/examples/resources/airbyte_source_stripe/resource.tf
@@ -2,12 +2,11 @@ resource "airbyte_source_stripe" "my_source_stripe" {
configuration = {
account_id = "...my_account_id..."
client_secret = "...my_client_secret..."
- lookback_window_days = 5
- slice_range = 10
- source_type = "stripe"
+ lookback_window_days = 3
+ slice_range = 180
start_date = "2017-01-25T00:00:00Z"
}
- name = "Seth Nitzsche"
+ name = "Kerry Smitham"
secret_id = "...my_secret_id..."
- workspace_id = "63e3af3d-d9dd-4a33-9cd6-3483e4a7a98e"
+ workspace_id = "b93f80b7-f557-4094-a97b-6356d5339163"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_survey_sparrow/resource.tf b/examples/resources/airbyte_source_survey_sparrow/resource.tf
old mode 100755
new mode 100644
index 7c5f90d2e..201d8f008
--- a/examples/resources/airbyte_source_survey_sparrow/resource.tf
+++ b/examples/resources/airbyte_source_survey_sparrow/resource.tf
@@ -2,16 +2,13 @@ resource "airbyte_source_survey_sparrow" "my_source_surveysparrow" {
configuration = {
access_token = "...my_access_token..."
region = {
- source_survey_sparrow_base_url_eu_based_account = {
- url_base = "https://eu-api.surveysparrow.com/v3"
- }
+ source_survey_sparrow_base_url_eu_based_account = {}
}
- source_type = "survey-sparrow"
survey_id = [
"{ \"see\": \"documentation\" }",
]
}
- name = "Hugo Kovacek"
+ name = "Jermaine White"
secret_id = "...my_secret_id..."
- workspace_id = "f02449d8-6f4b-4b20-be5d-911cbfe749ca"
+ workspace_id = "253a66e5-ad39-4192-9314-c65ed70eb17c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_surveymonkey/resource.tf b/examples/resources/airbyte_source_surveymonkey/resource.tf
old mode 100755
new mode 100644
index a6b11652b..17e7ee6cf
--- a/examples/resources/airbyte_source_surveymonkey/resource.tf
+++ b/examples/resources/airbyte_source_surveymonkey/resource.tf
@@ -2,18 +2,16 @@ resource "airbyte_source_surveymonkey" "my_source_surveymonkey" {
configuration = {
credentials = {
access_token = "...my_access_token..."
- auth_method = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
}
- origin = "USA"
- source_type = "surveymonkey"
- start_date = "2021-01-01T00:00:00Z"
+ origin = "USA"
+ start_date = "2021-01-01T00:00:00Z"
survey_ids = [
"...",
]
}
- name = "Pearl Trantow"
+ name = "Jeannie Blick PhD"
secret_id = "...my_secret_id..."
- workspace_id = "b8955d41-3e13-4a48-a310-907bd354c092"
+ workspace_id = "4fbef253-f33a-4c13-9dc9-0f63794a97d5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_tempo/resource.tf b/examples/resources/airbyte_source_tempo/resource.tf
old mode 100755
new mode 100644
index 03e5b4828..a6bfb5ac1
--- a/examples/resources/airbyte_source_tempo/resource.tf
+++ b/examples/resources/airbyte_source_tempo/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_tempo" "my_source_tempo" {
configuration = {
- api_token = "...my_api_token..."
- source_type = "tempo"
+ api_token = "...my_api_token..."
}
- name = "Edwin Haley"
+ name = "Barry Wiegand"
secret_id = "...my_secret_id..."
- workspace_id = "7f69e2c9-e6d1-40e9-9b3a-d4c6b03108d9"
+ workspace_id = "4002ca0d-0171-41f2-9a28-dde04a9ce3be"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_the_guardian_api/resource.tf b/examples/resources/airbyte_source_the_guardian_api/resource.tf
old mode 100755
new mode 100644
index 678d3a191..cc1db3177
--- a/examples/resources/airbyte_source_the_guardian_api/resource.tf
+++ b/examples/resources/airbyte_source_the_guardian_api/resource.tf
@@ -1,14 +1,13 @@
resource "airbyte_source_the_guardian_api" "my_source_theguardianapi" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "YYYY-MM-DD"
- query = "political"
- section = "media"
- source_type = "the-guardian-api"
- start_date = "YYYY-MM-DD"
- tag = "environment/recycling"
+ api_key = "...my_api_key..."
+ end_date = "YYYY-MM-DD"
+ query = "environment AND political"
+ section = "technology"
+ start_date = "YYYY-MM-DD"
+ tag = "environment/energyefficiency"
}
- name = "Pauline Kozey IV"
+ name = "Grant Gerhold I"
secret_id = "...my_secret_id..."
- workspace_id = "2b94f2ab-1fd5-4671-a9c3-26350a467143"
+ workspace_id = "7442775e-d080-474e-97a6-4885711ab94f"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_tiktok_marketing/resource.tf b/examples/resources/airbyte_source_tiktok_marketing/resource.tf
old mode 100755
new mode 100644
index 21a1160b5..b730e07c3
--- a/examples/resources/airbyte_source_tiktok_marketing/resource.tf
+++ b/examples/resources/airbyte_source_tiktok_marketing/resource.tf
@@ -1,21 +1,19 @@
resource "airbyte_source_tiktok_marketing" "my_source_tiktokmarketing" {
configuration = {
- attribution_window = 5
+ attribution_window = 9
credentials = {
source_tiktok_marketing_authentication_method_o_auth2_0 = {
access_token = "...my_access_token..."
advertiser_id = "...my_advertiser_id..."
app_id = "...my_app_id..."
- auth_type = "oauth2.0"
secret = "...my_secret..."
}
}
- end_date = "2021-10-08"
+ end_date = "2022-08-29"
include_deleted = false
- source_type = "tiktok-marketing"
- start_date = "2022-12-21"
+ start_date = "2022-12-05"
}
- name = "Mrs. Joey Mueller"
+ name = "Ms. Eloise Anderson"
secret_id = "...my_secret_id..."
- workspace_id = "4d93a74c-0252-4fe3-b4b4-db8b778ebb6e"
+ workspace_id = "7793827c-06dd-486b-8fbd-e6ae53955108"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_todoist/resource.tf b/examples/resources/airbyte_source_todoist/resource.tf
old mode 100755
new mode 100644
index 0400ee0c2..ffc8a7001
--- a/examples/resources/airbyte_source_todoist/resource.tf
+++ b/examples/resources/airbyte_source_todoist/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_todoist" "my_source_todoist" {
configuration = {
- source_type = "todoist"
- token = "...my_token..."
+ token = "...my_token..."
}
- name = "Hope Collins"
+ name = "Sammy Lemke"
secret_id = "...my_secret_id..."
- workspace_id = "502bafb2-cbc4-4635-95e6-5da028c3e951"
+ workspace_id = "8fddacae-8261-4af8-b9bb-4850d654be1e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_trello/resource.tf b/examples/resources/airbyte_source_trello/resource.tf
old mode 100755
new mode 100644
index ef2bb2452..8c8339d27
--- a/examples/resources/airbyte_source_trello/resource.tf
+++ b/examples/resources/airbyte_source_trello/resource.tf
@@ -3,12 +3,11 @@ resource "airbyte_source_trello" "my_source_trello" {
board_ids = [
"...",
]
- key = "...my_key..."
- source_type = "trello"
- start_date = "2021-03-01T00:00:00Z"
- token = "...my_token..."
+ key = "...my_key..."
+ start_date = "2021-03-01T00:00:00Z"
+ token = "...my_token..."
}
- name = "Philip Armstrong"
+ name = "Mercedes Turcotte"
secret_id = "...my_secret_id..."
- workspace_id = "a966489d-7b78-4673-a13a-12a6b9924945"
+ workspace_id = "327e7787-5126-4eb5-a944-312d5d5e6a2d"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_trustpilot/resource.tf b/examples/resources/airbyte_source_trustpilot/resource.tf
old mode 100755
new mode 100644
index fcfc79005..0cb8f3cf1
--- a/examples/resources/airbyte_source_trustpilot/resource.tf
+++ b/examples/resources/airbyte_source_trustpilot/resource.tf
@@ -5,14 +5,12 @@ resource "airbyte_source_trustpilot" "my_source_trustpilot" {
]
credentials = {
source_trustpilot_authorization_method_api_key = {
- auth_type = "apikey"
client_id = "...my_client_id..."
}
}
- source_type = "trustpilot"
- start_date = "%Y-%m-%dT%H:%M:%S"
+ start_date = "%Y-%m-%dT%H:%M:%S"
}
- name = "Bradley Goodwin"
+ name = "Miss Tony Schimmel"
secret_id = "...my_secret_id..."
- workspace_id = "f5c84383-6b86-4b3c-9f64-15b0449f9df1"
+ workspace_id = "98dd5412-2565-4139-b61b-0488926ab9cf"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf
old mode 100755
new mode 100644
index ce39a3b63..2a5f35d1f
--- a/examples/resources/airbyte_source_tvmaze_schedule/resource.tf
+++ b/examples/resources/airbyte_source_tvmaze_schedule/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_tvmaze_schedule" "my_source_tvmazeschedule" {
configuration = {
- domestic_schedule_country_code = "US"
+ domestic_schedule_country_code = "GB"
end_date = "...my_end_date..."
- source_type = "tvmaze-schedule"
start_date = "...my_start_date..."
- web_schedule_country_code = "global"
+ web_schedule_country_code = "US"
}
- name = "Gretchen Waters"
+ name = "Willard Hand"
secret_id = "...my_secret_id..."
- workspace_id = "e78bf606-8258-494e-a763-d5c72795b785"
+ workspace_id = "cc9acc6e-7e95-4c9a-bc9f-197511d62479"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_twilio/resource.tf b/examples/resources/airbyte_source_twilio/resource.tf
old mode 100755
new mode 100644
index 8d0453266..29c8eb3d0
--- a/examples/resources/airbyte_source_twilio/resource.tf
+++ b/examples/resources/airbyte_source_twilio/resource.tf
@@ -3,10 +3,9 @@ resource "airbyte_source_twilio" "my_source_twilio" {
account_sid = "...my_account_sid..."
auth_token = "...my_auth_token..."
lookback_window = 60
- source_type = "twilio"
start_date = "2020-10-01T00:00:00Z"
}
- name = "Andre Sporer"
+ name = "Deborah Mante Jr."
secret_id = "...my_secret_id..."
- workspace_id = "9e5635b3-3bc0-4f97-8c42-fc9f4844225e"
+ workspace_id = "1aad5e5f-9cfb-40d1-a8d3-acce90aeed10"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_twilio_taskrouter/resource.tf b/examples/resources/airbyte_source_twilio_taskrouter/resource.tf
old mode 100755
new mode 100644
index 3586436da..19fa10ded
--- a/examples/resources/airbyte_source_twilio_taskrouter/resource.tf
+++ b/examples/resources/airbyte_source_twilio_taskrouter/resource.tf
@@ -2,9 +2,8 @@ resource "airbyte_source_twilio_taskrouter" "my_source_twiliotaskrouter" {
configuration = {
account_sid = "...my_account_sid..."
auth_token = "...my_auth_token..."
- source_type = "twilio-taskrouter"
}
- name = "Cathy Ratke"
+ name = "Erik Prohaska"
secret_id = "...my_secret_id..."
- workspace_id = "6065c0ef-a6f9-43b9-8a1b-8c95be1254b7"
+ workspace_id = "82d54ce5-98cc-459e-b952-f06231c57fd8"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_twitter/resource.tf b/examples/resources/airbyte_source_twitter/resource.tf
old mode 100755
new mode 100644
index 32d6dcd9b..ce5b938e9
--- a/examples/resources/airbyte_source_twitter/resource.tf
+++ b/examples/resources/airbyte_source_twitter/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_twitter" "my_source_twitter" {
configuration = {
- api_key = "...my_api_key..."
- end_date = "2022-05-29T22:05:47.839Z"
- query = "...my_query..."
- source_type = "twitter"
- start_date = "2022-02-11T15:55:53.597Z"
+ api_key = "...my_api_key..."
+ end_date = "2021-02-28T18:28:03.001Z"
+ query = "...my_query..."
+ start_date = "2022-09-02T14:26:59.436Z"
}
- name = "Elbert Kuhic"
+ name = "Ernesto Pacocha"
secret_id = "...my_secret_id..."
- workspace_id = "10d1f655-8c99-4c72-ad2b-c0f94087d9ca"
+ workspace_id = "e05b1e50-c144-468d-a31c-dd98f81edeee"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_typeform/resource.tf b/examples/resources/airbyte_source_typeform/resource.tf
old mode 100755
new mode 100644
index 82cc96196..049507c96
--- a/examples/resources/airbyte_source_typeform/resource.tf
+++ b/examples/resources/airbyte_source_typeform/resource.tf
@@ -3,20 +3,18 @@ resource "airbyte_source_typeform" "my_source_typeform" {
credentials = {
source_typeform_authorization_method_o_auth2_0 = {
access_token = "...my_access_token..."
- auth_type = "oauth2.0"
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
- token_expiry_date = "2021-02-23T09:05:08.511Z"
+ token_expiry_date = "2022-04-17T02:08:52.624Z"
}
}
form_ids = [
"...",
]
- source_type = "typeform"
- start_date = "2021-03-01T00:00:00Z"
+ start_date = "2021-03-01T00:00:00Z"
}
- name = "Rosemarie Spencer"
+ name = "Kelly Davis"
secret_id = "...my_secret_id..."
- workspace_id = "aac9b4ca-a1cf-4e9e-95df-903907f37831"
+ workspace_id = "eaf419bc-59e0-44a8-a9e9-d149f3b04e32"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_us_census/resource.tf b/examples/resources/airbyte_source_us_census/resource.tf
old mode 100755
new mode 100644
index 3761f849f..cf59448a5
--- a/examples/resources/airbyte_source_us_census/resource.tf
+++ b/examples/resources/airbyte_source_us_census/resource.tf
@@ -2,10 +2,9 @@ resource "airbyte_source_us_census" "my_source_uscensus" {
configuration = {
api_key = "...my_api_key..."
query_params = "get=MOVEDIN,GEOID1,GEOID2,MOVEDOUT,FULL1_NAME,FULL2_NAME,MOVEDNET&for=county:*"
- query_path = "data/2018/acs"
- source_type = "us-census"
+ query_path = "data/timeseries/healthins/sahie"
}
- name = "Ginger Gislason"
+ name = "Eleanor Mraz"
secret_id = "...my_secret_id..."
- workspace_id = "54a85466-597c-4502-b3c1-471d51aaa6dd"
+ workspace_id = "bc8e2c7d-0de0-4f8a-ab57-adde20e75111"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_vantage/resource.tf b/examples/resources/airbyte_source_vantage/resource.tf
old mode 100755
new mode 100644
index 23c9ccef6..17825fdc7
--- a/examples/resources/airbyte_source_vantage/resource.tf
+++ b/examples/resources/airbyte_source_vantage/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_vantage" "my_source_vantage" {
configuration = {
access_token = "...my_access_token..."
- source_type = "vantage"
}
- name = "Corey Pacocha"
+ name = "Ismael Becker Sr."
secret_id = "...my_secret_id..."
- workspace_id = "6487c5fc-2b86-42a0-8bef-69e100157630"
+ workspace_id = "ffd3df11-978b-4385-957e-3c921cc9284a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_webflow/resource.tf b/examples/resources/airbyte_source_webflow/resource.tf
old mode 100755
new mode 100644
index c667b4b1d..7628df079
--- a/examples/resources/airbyte_source_webflow/resource.tf
+++ b/examples/resources/airbyte_source_webflow/resource.tf
@@ -1,10 +1,9 @@
resource "airbyte_source_webflow" "my_source_webflow" {
configuration = {
- api_key = "a very long hex sequence"
- site_id = "a relatively long hex sequence"
- source_type = "webflow"
+ api_key = "a very long hex sequence"
+ site_id = "a relatively long hex sequence"
}
- name = "Taylor Paucek"
+ name = "Kathleen Bins"
secret_id = "...my_secret_id..."
- workspace_id = "fded84a3-5a41-4238-a1a7-35ac26ae33be"
+ workspace_id = "c5491060-9be9-4a98-8e4b-07bcaf13ed56"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_whisky_hunter/resource.tf b/examples/resources/airbyte_source_whisky_hunter/resource.tf
old mode 100755
new mode 100644
index 296450e92..43ce734c5
--- a/examples/resources/airbyte_source_whisky_hunter/resource.tf
+++ b/examples/resources/airbyte_source_whisky_hunter/resource.tf
@@ -1,8 +1,6 @@
resource "airbyte_source_whisky_hunter" "my_source_whiskyhunter" {
- configuration = {
- source_type = "whisky-hunter"
- }
- name = "Miss Terrence Kulas"
- secret_id = "...my_secret_id..."
- workspace_id = "f46bca11-06fe-4965-b711-d08cf88ec9f7"
+ configuration = {}
+ name = "Loretta Nikolaus"
+ secret_id = "...my_secret_id..."
+ workspace_id = "9e7c8aee-eb09-4ffd-b753-fe46a1403ba1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf b/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf
old mode 100755
new mode 100644
index 8646b4062..18efa081f
--- a/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf
+++ b/examples/resources/airbyte_source_wikipedia_pageviews/resource.tf
@@ -1,15 +1,14 @@
resource "airbyte_source_wikipedia_pageviews" "my_source_wikipediapageviews" {
configuration = {
- access = "mobile-app"
- agent = "spider"
- article = "Are_You_the_One%3F"
- country = "IN"
- end = "...my_end..."
- project = "www.mediawiki.org"
- source_type = "wikipedia-pageviews"
- start = "...my_start..."
+ access = "mobile-app"
+ agent = "automated"
+ article = "Are_You_the_One%3F"
+ country = "IN"
+ end = "...my_end..."
+ project = "en.wikipedia.org"
+ start = "...my_start..."
}
- name = "Laura Murray"
+ name = "Blanca West"
secret_id = "...my_secret_id..."
- workspace_id = "6ed333bb-0ce8-4aa6-9432-a986eb7e14ca"
+ workspace_id = "22849b58-5759-4fd7-9d74-aa20ea69f1b1"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_woocommerce/resource.tf b/examples/resources/airbyte_source_woocommerce/resource.tf
old mode 100755
new mode 100644
index 3dc16611e..ad9c6ee75
--- a/examples/resources/airbyte_source_woocommerce/resource.tf
+++ b/examples/resources/airbyte_source_woocommerce/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_woocommerce" "my_source_woocommerce" {
configuration = {
- api_key = "...my_api_key..."
- api_secret = "...my_api_secret..."
- shop = "...my_shop..."
- source_type = "woocommerce"
- start_date = "2021-01-01"
+ api_key = "...my_api_key..."
+ api_secret = "...my_api_secret..."
+ shop = "...my_shop..."
+ start_date = "2021-01-01"
}
- name = "Laura Lindgren III"
+ name = "Regina Skiles MD"
secret_id = "...my_secret_id..."
- workspace_id = "0097019a-48f8-48ec-a7bf-904e01105d38"
+ workspace_id = "5a0295b1-97bb-4b02-a7d6-25c3155f731c"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_xero/resource.tf b/examples/resources/airbyte_source_xero/resource.tf
old mode 100755
new mode 100644
index d6c017113..44b4240d8
--- a/examples/resources/airbyte_source_xero/resource.tf
+++ b/examples/resources/airbyte_source_xero/resource.tf
@@ -7,11 +7,10 @@ resource "airbyte_source_xero" "my_source_xero" {
refresh_token = "...my_refresh_token..."
token_expiry_date = "...my_token_expiry_date..."
}
- source_type = "xero"
- start_date = "2022-03-01T00:00:00Z"
- tenant_id = "...my_tenant_id..."
+ start_date = "2022-03-01T00:00:00Z"
+ tenant_id = "...my_tenant_id..."
}
- name = "Roger Hudson"
+ name = "Miss Patty Schimmel"
secret_id = "...my_secret_id..."
- workspace_id = "6beb68a0-f657-4b7d-83a1-480f8de30f06"
+ workspace_id = "f166aee7-8925-4477-b387-c53022ba4aed"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_xkcd/resource.tf b/examples/resources/airbyte_source_xkcd/resource.tf
old mode 100755
new mode 100644
index 4c5088013..8367cb553
--- a/examples/resources/airbyte_source_xkcd/resource.tf
+++ b/examples/resources/airbyte_source_xkcd/resource.tf
@@ -1,8 +1,6 @@
resource "airbyte_source_xkcd" "my_source_xkcd" {
- configuration = {
- source_type = "xkcd"
- }
- name = "Mr. Laurence Littel"
- secret_id = "...my_secret_id..."
- workspace_id = "18d97e15-2297-4510-9a80-312292cc61c2"
+ configuration = {}
+ name = "Violet Marquardt"
+ secret_id = "...my_secret_id..."
+ workspace_id = "663b6d13-c6e3-4bbb-93bd-413d75c6693a"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_yandex_metrica/resource.tf b/examples/resources/airbyte_source_yandex_metrica/resource.tf
old mode 100755
new mode 100644
index 63c10201a..a7666be5d
--- a/examples/resources/airbyte_source_yandex_metrica/resource.tf
+++ b/examples/resources/airbyte_source_yandex_metrica/resource.tf
@@ -1,12 +1,11 @@
resource "airbyte_source_yandex_metrica" "my_source_yandexmetrica" {
configuration = {
- auth_token = "...my_auth_token..."
- counter_id = "...my_counter_id..."
- end_date = "2022-01-01"
- source_type = "yandex-metrica"
- start_date = "2022-01-01"
+ auth_token = "...my_auth_token..."
+ counter_id = "...my_counter_id..."
+ end_date = "2022-01-01"
+ start_date = "2022-01-01"
}
- name = "Dominic Marvin"
+ name = "Emanuel Bernier"
secret_id = "...my_secret_id..."
- workspace_id = "e102da2d-e35f-48e0-9bf3-3eaab45402ac"
+ workspace_id = "50e4c312-0d77-4a56-aac7-96fdac1f48b8"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_yotpo/resource.tf b/examples/resources/airbyte_source_yotpo/resource.tf
old mode 100755
new mode 100644
index 8f2d3e22c..4036c2cab
--- a/examples/resources/airbyte_source_yotpo/resource.tf
+++ b/examples/resources/airbyte_source_yotpo/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_yotpo" "my_source_yotpo" {
configuration = {
access_token = "...my_access_token..."
app_key = "...my_app_key..."
- email = "Ibrahim74@gmail.com"
- source_type = "yotpo"
+ email = "Justyn.Johnson@hotmail.com"
start_date = "2022-03-01T00:00:00.000Z"
}
- name = "Clark McGlynn"
+ name = "Dr. April Sanford"
secret_id = "...my_secret_id..."
- workspace_id = "61aae5eb-5f0c-4492-b574-4d08a2267aae"
+ workspace_id = "1ce49a8f-c7f8-4e24-a726-45cfb2449eef"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_younium/resource.tf b/examples/resources/airbyte_source_younium/resource.tf
old mode 100755
new mode 100644
index 3ebeaeb4e..bf691cb8d
--- a/examples/resources/airbyte_source_younium/resource.tf
+++ b/examples/resources/airbyte_source_younium/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_younium" "my_source_younium" {
configuration = {
legal_entity = "...my_legal_entity..."
password = "...my_password..."
- playground = true
- source_type = "younium"
- username = "Jairo.Monahan79"
+ playground = false
+ username = "Jacquelyn91"
}
- name = "Martha Orn"
+ name = "Calvin Ratke"
secret_id = "...my_secret_id..."
- workspace_id = "1becb83d-2378-4ae3-bfc2-3d9450a986a4"
+ workspace_id = "5ea1fa63-f6c0-4fac-9403-cfd915cc53ae"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_youtube_analytics/resource.tf b/examples/resources/airbyte_source_youtube_analytics/resource.tf
old mode 100755
new mode 100644
index c2dc84e6b..58a55b9e2
--- a/examples/resources/airbyte_source_youtube_analytics/resource.tf
+++ b/examples/resources/airbyte_source_youtube_analytics/resource.tf
@@ -1,13 +1,13 @@
resource "airbyte_source_youtube_analytics" "my_source_youtubeanalytics" {
configuration = {
credentials = {
- client_id = "...my_client_id..."
- client_secret = "...my_client_secret..."
- refresh_token = "...my_refresh_token..."
+ additional_properties = "{ \"see\": \"documentation\" }"
+ client_id = "...my_client_id..."
+ client_secret = "...my_client_secret..."
+ refresh_token = "...my_refresh_token..."
}
- source_type = "youtube-analytics"
}
- name = "Tommy Rippin"
+ name = "Lucia Bergstrom"
secret_id = "...my_secret_id..."
- workspace_id = "707f06b2-8ecc-4864-9238-6f62c969c4cc"
+ workspace_id = "7b350ebb-3981-4c89-b963-f1e6164cc878"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zendesk_chat/resource.tf b/examples/resources/airbyte_source_zendesk_chat/resource.tf
old mode 100755
new mode 100644
index 92b8327b0..7b0b516a5
--- a/examples/resources/airbyte_source_zendesk_chat/resource.tf
+++ b/examples/resources/airbyte_source_zendesk_chat/resource.tf
@@ -3,14 +3,12 @@ resource "airbyte_source_zendesk_chat" "my_source_zendeskchat" {
credentials = {
source_zendesk_chat_authorization_method_access_token = {
access_token = "...my_access_token..."
- credentials = "access_token"
}
}
- source_type = "zendesk-chat"
- start_date = "2021-02-01T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2021-02-01T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Mabel Lebsack MD"
+ name = "Kelly Kris"
secret_id = "...my_secret_id..."
- workspace_id = "3fd3c81d-a10f-48c2-bdf9-31da3edb51fa"
+ workspace_id = "8933f773-8d63-4dc7-b7f8-b16c6167f1e8"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zendesk_sunshine/resource.tf b/examples/resources/airbyte_source_zendesk_sunshine/resource.tf
old mode 100755
new mode 100644
index 1ec0edb61..b4b5cc7e1
--- a/examples/resources/airbyte_source_zendesk_sunshine/resource.tf
+++ b/examples/resources/airbyte_source_zendesk_sunshine/resource.tf
@@ -2,16 +2,14 @@ resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" {
configuration = {
credentials = {
source_zendesk_sunshine_authorization_method_api_token = {
- api_token = "...my_api_token..."
- auth_method = "api_token"
- email = "Leonor_Funk@hotmail.com"
+ api_token = "...my_api_token..."
+ email = "Adonis17@hotmail.com"
}
}
- source_type = "zendesk-sunshine"
- start_date = "2021-01-01T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2021-01-01T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Mrs. Edith Hermiston"
+ name = "Miss Irene Brekke"
secret_id = "...my_secret_id..."
- workspace_id = "726d1532-1b83-42a5-ad69-180ff60eb9a6"
+ workspace_id = "c8f204e6-a775-4647-ab6b-abc0f9b18b2e"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zendesk_support/resource.tf b/examples/resources/airbyte_source_zendesk_support/resource.tf
old mode 100755
new mode 100644
index 795dc3b22..9c1fb837a
--- a/examples/resources/airbyte_source_zendesk_support/resource.tf
+++ b/examples/resources/airbyte_source_zendesk_support/resource.tf
@@ -2,17 +2,16 @@ resource "airbyte_source_zendesk_support" "my_source_zendesksupport" {
configuration = {
credentials = {
source_zendesk_support_authentication_api_token = {
- api_token = "...my_api_token..."
- credentials = "api_token"
- email = "Ezequiel.Lindgren56@yahoo.com"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ api_token = "...my_api_token..."
+ email = "Yolanda.Strosin35@yahoo.com"
}
}
- ignore_pagination = true
- source_type = "zendesk-support"
+ ignore_pagination = false
start_date = "2020-10-15T00:00:00Z"
subdomain = "...my_subdomain..."
}
- name = "Alexander Friesen"
+ name = "Miss Jodi Berge"
secret_id = "...my_secret_id..."
- workspace_id = "82dbec75-c68c-4606-9946-8ce304d8849b"
+ workspace_id = "c447712b-4a02-4088-b0aa-beffb8d97651"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zendesk_talk/resource.tf b/examples/resources/airbyte_source_zendesk_talk/resource.tf
old mode 100755
new mode 100644
index 86c3f87c4..b5b70df2a
--- a/examples/resources/airbyte_source_zendesk_talk/resource.tf
+++ b/examples/resources/airbyte_source_zendesk_talk/resource.tf
@@ -2,16 +2,15 @@ resource "airbyte_source_zendesk_talk" "my_source_zendesktalk" {
configuration = {
credentials = {
source_zendesk_talk_authentication_api_token = {
- api_token = "...my_api_token..."
- auth_type = "api_token"
- email = "Kacie27@hotmail.com"
+ additional_properties = "{ \"see\": \"documentation\" }"
+ api_token = "...my_api_token..."
+ email = "Gabriella.Mills28@gmail.com"
}
}
- source_type = "zendesk-talk"
- start_date = "2020-10-15T00:00:00Z"
- subdomain = "...my_subdomain..."
+ start_date = "2020-10-15T00:00:00Z"
+ subdomain = "...my_subdomain..."
}
- name = "Jackie Welch"
+ name = "Shawna Davis"
secret_id = "...my_secret_id..."
- workspace_id = "bb0c69e3-72db-4134-8ba9-f78a5c0ed7aa"
+ workspace_id = "1a4e4668-49f7-4bbe-aaef-524043cb4c47"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zenloop/resource.tf b/examples/resources/airbyte_source_zenloop/resource.tf
old mode 100755
new mode 100644
index 0f6d18eb5..623dd946f
--- a/examples/resources/airbyte_source_zenloop/resource.tf
+++ b/examples/resources/airbyte_source_zenloop/resource.tf
@@ -2,11 +2,10 @@ resource "airbyte_source_zenloop" "my_source_zenloop" {
configuration = {
api_token = "...my_api_token..."
date_from = "2021-10-24T03:30:30Z"
- source_type = "zenloop"
survey_group_id = "...my_survey_group_id..."
survey_id = "...my_survey_id..."
}
- name = "Ricardo Champlin"
+ name = "Kellie Lebsack"
secret_id = "...my_secret_id..."
- workspace_id = "7261fb0c-58d2-47b5-9996-b5b4b50eef71"
+ workspace_id = "bd591517-4a55-43fd-a41d-af7626ef51c5"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zoho_crm/resource.tf b/examples/resources/airbyte_source_zoho_crm/resource.tf
old mode 100755
new mode 100644
index 9aebdfb91..3fbb89e8f
--- a/examples/resources/airbyte_source_zoho_crm/resource.tf
+++ b/examples/resources/airbyte_source_zoho_crm/resource.tf
@@ -2,14 +2,13 @@ resource "airbyte_source_zoho_crm" "my_source_zohocrm" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- dc_region = "US"
+ dc_region = "JP"
edition = "Enterprise"
- environment = "Developer"
+ environment = "Production"
refresh_token = "...my_refresh_token..."
- source_type = "zoho-crm"
- start_datetime = "2000-01-01T13:00+00:00"
+ start_datetime = "2000-01-01"
}
- name = "Kenneth Fisher"
+ name = "Miss Gene Schinner"
secret_id = "...my_secret_id..."
- workspace_id = "b1710688-deeb-4ef8-97f3-dd0ccd33f11b"
+ workspace_id = "93e76e9f-def5-441f-86ca-13b1e89c1488"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zoom/resource.tf b/examples/resources/airbyte_source_zoom/resource.tf
old mode 100755
new mode 100644
index bfac92c45..7cf1a179e
--- a/examples/resources/airbyte_source_zoom/resource.tf
+++ b/examples/resources/airbyte_source_zoom/resource.tf
@@ -1,9 +1,8 @@
resource "airbyte_source_zoom" "my_source_zoom" {
configuration = {
- jwt_token = "...my_jwt_token..."
- source_type = "zoom"
+ jwt_token = "...my_jwt_token..."
}
- name = "Alexis Gutmann IV"
+ name = "Kenny Oberbrunner Sr."
secret_id = "...my_secret_id..."
- workspace_id = "0aa10418-6ec7-459e-82f3-702c5c8e2d30"
+ workspace_id = "d9d92226-9c9d-4648-b0bc-cdd2e95af6ed"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_source_zuora/resource.tf b/examples/resources/airbyte_source_zuora/resource.tf
old mode 100755
new mode 100644
index d1e679297..ba51ab2ef
--- a/examples/resources/airbyte_source_zuora/resource.tf
+++ b/examples/resources/airbyte_source_zuora/resource.tf
@@ -2,13 +2,12 @@ resource "airbyte_source_zuora" "my_source_zuora" {
configuration = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
- data_query = "Unlimited"
- source_type = "zuora"
+ data_query = "Live"
start_date = "...my_start_date..."
- tenant_endpoint = "US Performance Test"
- window_in_days = "200"
+ tenant_endpoint = "EU Production"
+ window_in_days = "30"
}
- name = "Joan Bednar"
+ name = "Johnnie Carter III"
secret_id = "...my_secret_id..."
- workspace_id = "a44707bf-375b-4442-8282-1fdb2f69e592"
+ workspace_id = "0113c2d3-cb5e-4aa6-8b86-a42dbbb853ec"
}
\ No newline at end of file
diff --git a/examples/resources/airbyte_workspace/resource.tf b/examples/resources/airbyte_workspace/resource.tf
old mode 100755
new mode 100644
index e67208f35..9d1704feb
--- a/examples/resources/airbyte_workspace/resource.tf
+++ b/examples/resources/airbyte_workspace/resource.tf
@@ -1,3 +1,3 @@
resource "airbyte_workspace" "my_workspace" {
- name = "Glenda Schiller DDS"
+ name = "Jeannette Hayes"
}
\ No newline at end of file
diff --git a/files.gen b/files.gen
index d389f8a38..1ede6d76c 100755
--- a/files.gen
+++ b/files.gen
@@ -5,687 +5,6 @@ internal/sdk/sources.go
internal/sdk/streams.go
internal/sdk/workspaces.go
internal/sdk/sdk.go
-internal/provider/type_stream_configuration.go
-internal/provider/type_stream_configurations.go
-internal/provider/type_connection_schedule.go
-internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go
-internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go
-internal/provider/type_destination_aws_datalake_authentication_mode.go
-internal/provider/type_destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json.go
-internal/provider/type_destination_aws_datalake_output_format_wildcard_parquet_columnar_storage.go
-internal/provider/type_destination_aws_datalake_output_format_wildcard.go
-internal/provider/type_destination_aws_datalake.go
-internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go
-internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_azure_blob_storage_output_format.go
-internal/provider/type_destination_azure_blob_storage.go
-internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go
-internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential.go
-internal/provider/type_destination_bigquery_loading_method_gcs_staging.go
-internal/provider/type_destination_bigquery_loading_method_standard_inserts.go
-internal/provider/type_destination_bigquery_update_loading_method_gcs_staging_credential.go
-internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go
-internal/provider/type_destination_bigquery_loading_method.go
-internal/provider/type_destination_bigquery.go
-internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging_credential.go
-internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go
-internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging_credential.go
-internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go
-internal/provider/type_destination_bigquery_denormalized_loading_method.go
-internal/provider/type_destination_bigquery_denormalized.go
-internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go
-internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go
-internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go
-internal/provider/type_destination_clickhouse_ssh_tunnel_method.go
-internal/provider/type_destination_clickhouse.go
-internal/provider/type_destination_convex.go
-internal/provider/type_destination_cumulio.go
-internal/provider/type_destination_databend.go
-internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go
-internal/provider/type_destination_databricks_data_source_amazon_s3.go
-internal/provider/type_destination_databricks_data_source_azure_blob_storage.go
-internal/provider/type_destination_databricks_update_data_source_amazon_s3.go
-internal/provider/type_destination_databricks_data_source1.go
-internal/provider/type_destination_databricks.go
-internal/provider/type_destination_dev_null_test_destination_silent.go
-internal/provider/type_destination_dev_null_test_destination.go
-internal/provider/type_destination_dev_null.go
-internal/provider/type_destination_dynamodb.go
-internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go
-internal/provider/type_destination_elasticsearch_authentication_method_username_password.go
-internal/provider/type_destination_elasticsearch_authentication_method.go
-internal/provider/type_destination_elasticsearch.go
-internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go
-internal/provider/type_destination_firebolt_loading_method_sql_inserts.go
-internal/provider/type_destination_firebolt_loading_method.go
-internal/provider/type_destination_firebolt.go
-internal/provider/type_destination_firestore.go
-internal/provider/type_destination_gcs_authentication.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_bzip2.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_deflate.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_no_compression.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_snappy.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_xz.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_zstandard.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec.go
-internal/provider/type_destination_gcs_output_format_avro_apache_avro.go
-internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_gzip.go
-internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_no_compression.go
-internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression.go
-internal/provider/type_destination_gcs_output_format_csv_comma_separated_values.go
-internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip.go
-internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression.go
-internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_gcs_output_format_parquet_columnar_storage.go
-internal/provider/type_destination_gcs_update_output_format_avro_apache_avro_compression_codec.go
-internal/provider/type_destination_gcs_update_output_format_avro_apache_avro.go
-internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values_compression.go
-internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values.go
-internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_gcs_output_format.go
-internal/provider/type_destination_gcs.go
-internal/provider/type_destination_google_sheets_authentication_via_google_o_auth.go
-internal/provider/type_destination_google_sheets.go
-internal/provider/type_destination_keen.go
-internal/provider/type_destination_kinesis.go
-internal/provider/type_destination_langchain_embedding_fake.go
-internal/provider/type_destination_langchain_embedding_open_ai.go
-internal/provider/type_destination_langchain_embedding.go
-internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go
-internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go
-internal/provider/type_destination_langchain_indexing_pinecone.go
-internal/provider/type_destination_langchain_indexing.go
-internal/provider/type_destination_langchain_processing_config_model.go
-internal/provider/type_destination_langchain.go
-internal/provider/type_destination_milvus_embedding_cohere.go
-internal/provider/type_destination_milvus_embedding_from_field.go
-internal/provider/type_destination_milvus_embedding.go
-internal/provider/type_destination_milvus_indexing_authentication_api_token.go
-internal/provider/type_destination_milvus_indexing_authentication_no_auth.go
-internal/provider/type_destination_milvus_indexing_authentication_username_password.go
-internal/provider/type_destination_milvus_indexing_authentication.go
-internal/provider/type_destination_milvus_indexing.go
-internal/provider/type_destination_milvus_processing_config_model.go
-internal/provider/type_destination_milvus.go
-internal/provider/type_destination_mongodb_authorization_type_login_password.go
-internal/provider/type_destination_mongodb_authorization_type_none.go
-internal/provider/type_destination_mongodb_authorization_type.go
-internal/provider/type_destination_mongodb_mongo_db_instance_type_mongo_db_atlas.go
-internal/provider/type_destination_mongodb_mongo_db_instance_type_replica_set.go
-internal/provider/type_destination_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
-internal/provider/type_destination_mongodb_mongo_db_instance_type.go
-internal/provider/type_destination_mongodb_ssh_tunnel_method.go
-internal/provider/type_destination_mongodb.go
-internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go
-internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go
-internal/provider/type_destination_mssql_ssl_method.go
-internal/provider/type_destination_mssql_ssh_tunnel_method.go
-internal/provider/type_destination_mssql.go
-internal/provider/type_destination_mysql_ssh_tunnel_method.go
-internal/provider/type_destination_mysql.go
-internal/provider/type_destination_oracle_ssh_tunnel_method.go
-internal/provider/type_destination_oracle.go
-internal/provider/type_destination_pinecone_embedding.go
-internal/provider/type_destination_pinecone_indexing.go
-internal/provider/type_destination_pinecone.go
-internal/provider/type_destination_postgres_ssl_modes_allow.go
-internal/provider/type_destination_postgres_ssl_modes_disable.go
-internal/provider/type_destination_postgres_ssl_modes_prefer.go
-internal/provider/type_destination_postgres_ssl_modes_require.go
-internal/provider/type_destination_postgres_ssl_modes_verify_ca.go
-internal/provider/type_destination_postgres_ssl_modes_verify_full.go
-internal/provider/type_destination_postgres_ssl_modes.go
-internal/provider/type_destination_postgres_ssh_tunnel_method.go
-internal/provider/type_destination_postgres.go
-internal/provider/type_destination_pubsub.go
-internal/provider/type_destination_redis_ssl_modes.go
-internal/provider/type_destination_redis_ssh_tunnel_method.go
-internal/provider/type_destination_redis.go
-internal/provider/type_destination_redshift_ssh_tunnel_method.go
-internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go
-internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go
-internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption.go
-internal/provider/type_destination_redshift_uploading_method_s3_staging.go
-internal/provider/type_destination_redshift_uploading_method_standard.go
-internal/provider/type_destination_redshift_update_uploading_method_s3_staging_encryption.go
-internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go
-internal/provider/type_destination_redshift_uploading_method.go
-internal/provider/type_destination_redshift.go
-internal/provider/type_destination_s3_output_format_avro_apache_avro_compression_codec.go
-internal/provider/type_destination_s3_output_format_avro_apache_avro.go
-internal/provider/type_destination_s3_output_format_csv_comma_separated_values_compression.go
-internal/provider/type_destination_s3_output_format_csv_comma_separated_values.go
-internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_s3_output_format_parquet_columnar_storage.go
-internal/provider/type_destination_s3_update_output_format_avro_apache_avro_compression_codec.go
-internal/provider/type_destination_s3_update_output_format_avro_apache_avro.go
-internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values_compression.go
-internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values.go
-internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_s3_output_format.go
-internal/provider/type_destination_s3.go
-internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression.go
-internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json.go
-internal/provider/type_destination_s3_glue_output_format.go
-internal/provider/type_destination_s3_glue.go
-internal/provider/type_destination_sftp_json.go
-internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go
-internal/provider/type_destination_snowflake_authorization_method_o_auth20.go
-internal/provider/type_destination_snowflake_authorization_method_username_and_password.go
-internal/provider/type_destination_snowflake_authorization_method.go
-internal/provider/type_destination_snowflake.go
-internal/provider/type_destination_timeplus.go
-internal/provider/type_destination_typesense.go
-internal/provider/type_destination_vertica_ssh_tunnel_method.go
-internal/provider/type_destination_vertica.go
-internal/provider/type_destination_xata.go
-internal/provider/type_source_aha.go
-internal/provider/type_source_aircall.go
-internal/provider/type_source_airtable_authentication_o_auth20.go
-internal/provider/type_source_airtable_authentication_personal_access_token.go
-internal/provider/type_source_airtable_authentication.go
-internal/provider/type_source_airtable.go
-internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go
-internal/provider/type_source_alloydb_replication_method_standard.go
-internal/provider/type_source_alloydb_replication_method_standard_xmin.go
-internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc.go
-internal/provider/type_source_alloydb_replication_method.go
-internal/provider/type_source_alloydb_ssl_modes_allow.go
-internal/provider/type_source_alloydb_ssl_modes_disable.go
-internal/provider/type_source_alloydb_ssl_modes_prefer.go
-internal/provider/type_source_alloydb_ssl_modes_require.go
-internal/provider/type_source_alloydb_ssl_modes_verify_ca.go
-internal/provider/type_source_alloydb_ssl_modes_verify_full.go
-internal/provider/type_source_alloydb_update_ssl_modes_allow.go
-internal/provider/type_source_alloydb_update_ssl_modes_disable.go
-internal/provider/type_source_alloydb_update_ssl_modes_prefer.go
-internal/provider/type_source_alloydb_update_ssl_modes_require.go
-internal/provider/type_source_alloydb_update_ssl_modes_verify_ca.go
-internal/provider/type_source_alloydb_update_ssl_modes_verify_full.go
-internal/provider/type_source_alloydb_ssl_modes.go
-internal/provider/type_source_alloydb_ssh_tunnel_method.go
-internal/provider/type_source_alloydb.go
-internal/provider/type_source_amazon_ads.go
-internal/provider/type_source_amazon_seller_partner.go
-internal/provider/type_source_amazon_sqs.go
-internal/provider/type_source_amplitude.go
-internal/provider/type_source_apify_dataset.go
-internal/provider/type_source_appfollow.go
-internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go
-internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go
-internal/provider/type_source_asana_authentication_mechanism.go
-internal/provider/type_source_asana.go
-internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go
-internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go
-internal/provider/type_source_auth0_authentication_method.go
-internal/provider/type_source_auth0.go
-internal/provider/type_source_aws_cloudtrail.go
-internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go
-internal/provider/type_source_azure_blob_storage_input_format.go
-internal/provider/type_source_azure_blob_storage.go
-internal/provider/type_source_azure_table.go
-internal/provider/type_source_bamboo_hr.go
-internal/provider/type_source_bigcommerce.go
-internal/provider/type_source_bigquery.go
-internal/provider/type_source_bing_ads.go
-internal/provider/type_source_braintree.go
-internal/provider/type_source_braze.go
-internal/provider/type_source_chargebee.go
-internal/provider/type_source_chartmogul.go
-internal/provider/type_source_clickhouse_ssh_tunnel_method.go
-internal/provider/type_source_clickhouse.go
-internal/provider/type_source_clickup_api.go
-internal/provider/type_source_clockify.go
-internal/provider/type_source_close_com.go
-internal/provider/type_source_coda.go
-internal/provider/type_source_coin_api.go
-internal/provider/type_source_coinmarketcap.go
-internal/provider/type_source_configcat.go
-internal/provider/type_source_confluence.go
-internal/provider/type_source_convex.go
-internal/provider/type_source_datascope.go
-internal/provider/type_source_delighted.go
-internal/provider/type_source_dixa.go
-internal/provider/type_source_dockerhub.go
-internal/provider/type_source_dremio.go
-internal/provider/type_source_dynamodb.go
-internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go
-internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go
-internal/provider/type_source_e2e_test_cloud_mock_catalog.go
-internal/provider/type_source_e2e_test_cloud.go
-internal/provider/type_source_emailoctopus.go
-internal/provider/type_source_exchange_rates.go
-internal/provider/type_source_facebook_marketing_insight_config.go
-internal/provider/type_source_facebook_marketing.go
-internal/provider/type_source_facebook_pages.go
-internal/provider/type_source_faker.go
-internal/provider/type_source_fauna_collection_deletion_mode_disabled.go
-internal/provider/type_source_fauna_collection_deletion_mode_enabled.go
-internal/provider/type_source_fauna_collection_deletion_mode.go
-internal/provider/type_source_fauna_collection.go
-internal/provider/type_source_fauna.go
-internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go
-internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go
-internal/provider/type_source_file_secure_storage_provider_https_public_web.go
-internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go
-internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go
-internal/provider/type_source_file_secure_storage_provider_sftp_secure_file_transfer_protocol.go
-internal/provider/type_source_file_secure_storage_provider_ssh_secure_shell.go
-internal/provider/type_source_file_secure_storage_provider.go
-internal/provider/type_source_file_secure.go
-internal/provider/type_source_firebolt.go
-internal/provider/type_source_freshcaller.go
-internal/provider/type_source_freshdesk.go
-internal/provider/type_source_freshsales.go
-internal/provider/type_source_gainsight_px.go
-internal/provider/type_source_gcs.go
-internal/provider/type_source_getlago.go
-internal/provider/type_source_github_authentication_o_auth.go
-internal/provider/type_source_github_authentication_personal_access_token.go
-internal/provider/type_source_github_authentication.go
-internal/provider/type_source_github.go
-internal/provider/type_source_gitlab_authorization_method_o_auth20.go
-internal/provider/type_source_gitlab_authorization_method_private_token.go
-internal/provider/type_source_gitlab_authorization_method.go
-internal/provider/type_source_gitlab.go
-internal/provider/type_source_glassfrog.go
-internal/provider/type_source_gnews.go
-internal/provider/type_source_google_ads_google_credentials.go
-internal/provider/type_source_google_ads_custom_queries.go
-internal/provider/type_source_google_ads.go
-internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go
-internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go
-internal/provider/type_source_google_analytics_data_api_credentials.go
-internal/provider/type_source_google_analytics_data_api.go
-internal/provider/type_source_google_analytics_v4_credentials.go
-internal/provider/type_source_google_analytics_v4.go
-internal/provider/type_source_google_directory_google_credentials_service_account_key.go
-internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go
-internal/provider/type_source_google_directory_google_credentials.go
-internal/provider/type_source_google_directory.go
-internal/provider/type_source_google_pagespeed_insights.go
-internal/provider/type_source_google_search_console_authentication_type_o_auth.go
-internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go
-internal/provider/type_source_google_search_console_authentication_type.go
-internal/provider/type_source_google_search_console_custom_report_config.go
-internal/provider/type_source_google_search_console.go
-internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go
-internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go
-internal/provider/type_source_google_sheets_authentication.go
-internal/provider/type_source_google_sheets.go
-internal/provider/type_source_google_webfonts.go
-internal/provider/type_source_google_workspace_admin_reports.go
-internal/provider/type_source_greenhouse.go
-internal/provider/type_source_gridly.go
-internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go
-internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go
-internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth.go
-internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token.go
-internal/provider/type_source_harvest_authentication_mechanism.go
-internal/provider/type_source_harvest.go
-internal/provider/type_source_hubplanner.go
-internal/provider/type_source_hubspot_authentication_o_auth.go
-internal/provider/type_source_hubspot_authentication_private_app.go
-internal/provider/type_source_hubspot_authentication.go
-internal/provider/type_source_hubspot.go
-internal/provider/type_source_insightly.go
-internal/provider/type_source_instagram.go
-internal/provider/type_source_instatus.go
-internal/provider/type_source_intercom.go
-internal/provider/type_source_ip2whois.go
-internal/provider/type_source_iterable.go
-internal/provider/type_source_jira.go
-internal/provider/type_source_k6_cloud.go
-internal/provider/type_source_klarna.go
-internal/provider/type_source_klaviyo.go
-internal/provider/type_source_kustomer_singer.go
-internal/provider/type_source_kyve.go
-internal/provider/type_source_launchdarkly.go
-internal/provider/type_source_lemlist.go
-internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go
-internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go
-internal/provider/type_source_lever_hiring_authentication_mechanism.go
-internal/provider/type_source_lever_hiring.go
-internal/provider/type_source_linkedin_ads_ad_analytics_report_configuration.go
-internal/provider/type_source_linkedin_ads_authentication_access_token.go
-internal/provider/type_source_linkedin_ads_authentication_o_auth20.go
-internal/provider/type_source_linkedin_ads_authentication.go
-internal/provider/type_source_linkedin_ads.go
-internal/provider/type_source_linkedin_pages_authentication.go
-internal/provider/type_source_linkedin_pages.go
-internal/provider/type_source_linnworks.go
-internal/provider/type_source_lokalise.go
-internal/provider/type_source_mailchimp_authentication_api_key.go
-internal/provider/type_source_mailchimp_authentication_o_auth20.go
-internal/provider/type_source_mailchimp_authentication.go
-internal/provider/type_source_mailchimp.go
-internal/provider/type_source_mailgun.go
-internal/provider/type_source_mailjet_sms.go
-internal/provider/type_source_marketo.go
-internal/provider/type_source_metabase.go
-internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go
-internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go
-internal/provider/type_source_microsoft_teams_authentication_mechanism.go
-internal/provider/type_source_microsoft_teams.go
-internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go
-internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go
-internal/provider/type_source_mixpanel_authentication_wildcard.go
-internal/provider/type_source_mixpanel.go
-internal/provider/type_source_monday_authorization_method_api_token.go
-internal/provider/type_source_monday_authorization_method_o_auth20.go
-internal/provider/type_source_monday_authorization_method.go
-internal/provider/type_source_monday.go
-internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go
-internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go
-internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
-internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas.go
-internal/provider/type_source_mongodb_mongo_db_instance_type.go
-internal/provider/type_source_mongodb.go
-internal/provider/type_source_mongodb_internal_poc.go
-internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go
-internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go
-internal/provider/type_source_mssql_update_method.go
-internal/provider/type_source_mssql_ssl_method.go
-internal/provider/type_source_mssql_ssh_tunnel_method.go
-internal/provider/type_source_mssql.go
-internal/provider/type_source_my_hours.go
-internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go
-internal/provider/type_source_mysql_update_method.go
-internal/provider/type_source_mysql_ssl_modes_preferred.go
-internal/provider/type_source_mysql_ssl_modes_required.go
-internal/provider/type_source_mysql_ssl_modes_verify_ca.go
-internal/provider/type_source_mysql_ssl_modes_verify_identity.go
-internal/provider/type_source_mysql_ssl_modes.go
-internal/provider/type_source_mysql_ssh_tunnel_method.go
-internal/provider/type_source_mysql.go
-internal/provider/type_source_netsuite.go
-internal/provider/type_source_notion_authenticate_using_access_token.go
-internal/provider/type_source_notion_authenticate_using_o_auth20.go
-internal/provider/type_source_notion_authenticate_using.go
-internal/provider/type_source_notion.go
-internal/provider/type_source_nytimes.go
-internal/provider/type_source_okta_authorization_method_o_auth20.go
-internal/provider/type_source_okta_authorization_method.go
-internal/provider/type_source_okta.go
-internal/provider/type_source_omnisend.go
-internal/provider/type_source_onesignal_applications.go
-internal/provider/type_source_onesignal.go
-internal/provider/type_source_oracle_connect_by_service_name.go
-internal/provider/type_source_oracle_connect_by_system_idsid.go
-internal/provider/type_source_oracle_connect_by.go
-internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go
-internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go
-internal/provider/type_source_oracle_encryption.go
-internal/provider/type_source_oracle_ssh_tunnel_method.go
-internal/provider/type_source_oracle.go
-internal/provider/type_source_orb.go
-internal/provider/type_source_orbit.go
-internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go
-internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go
-internal/provider/type_source_outbrain_amplify_authentication_method.go
-internal/provider/type_source_outbrain_amplify.go
-internal/provider/type_source_outreach.go
-internal/provider/type_source_paypal_transaction.go
-internal/provider/type_source_paystack.go
-internal/provider/type_source_pendo.go
-internal/provider/type_source_persistiq.go
-internal/provider/type_source_pexels_api.go
-internal/provider/type_source_pinterest_authorization_method_o_auth20.go
-internal/provider/type_source_pinterest_authorization_method.go
-internal/provider/type_source_pinterest.go
-internal/provider/type_source_pipedrive_api_key_authentication.go
-internal/provider/type_source_pipedrive.go
-internal/provider/type_source_pocket.go
-internal/provider/type_source_pokeapi.go
-internal/provider/type_source_polygon_stock_api.go
-internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go
-internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go
-internal/provider/type_source_postgres_update_method_scan_changes_with_user_defined_cursor.go
-internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc.go
-internal/provider/type_source_postgres_update_method.go
-internal/provider/type_source_postgres_ssl_modes_allow.go
-internal/provider/type_source_postgres_ssl_modes_disable.go
-internal/provider/type_source_postgres_ssl_modes_prefer.go
-internal/provider/type_source_postgres_ssl_modes_require.go
-internal/provider/type_source_postgres_ssl_modes_verify_ca.go
-internal/provider/type_source_postgres_ssl_modes_verify_full.go
-internal/provider/type_source_postgres_update_ssl_modes_allow.go
-internal/provider/type_source_postgres_update_ssl_modes_disable.go
-internal/provider/type_source_postgres_update_ssl_modes_prefer.go
-internal/provider/type_source_postgres_update_ssl_modes_require.go
-internal/provider/type_source_postgres_update_ssl_modes_verify_ca.go
-internal/provider/type_source_postgres_update_ssl_modes_verify_full.go
-internal/provider/type_source_postgres_ssl_modes.go
-internal/provider/type_source_postgres_ssh_tunnel_method.go
-internal/provider/type_source_postgres.go
-internal/provider/type_source_posthog.go
-internal/provider/type_source_postmarkapp.go
-internal/provider/type_source_prestashop.go
-internal/provider/type_source_punk_api.go
-internal/provider/type_source_pypi.go
-internal/provider/type_source_qualaroo.go
-internal/provider/type_source_quickbooks_authorization_method_o_auth20.go
-internal/provider/type_source_quickbooks_authorization_method.go
-internal/provider/type_source_quickbooks.go
-internal/provider/type_source_railz.go
-internal/provider/type_source_recharge.go
-internal/provider/type_source_recreation.go
-internal/provider/type_source_recruitee.go
-internal/provider/type_source_recurly.go
-internal/provider/type_source_redshift.go
-internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go
-internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go
-internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth.go
-internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token.go
-internal/provider/type_source_retently_authentication_mechanism.go
-internal/provider/type_source_retently.go
-internal/provider/type_source_rki_covid.go
-internal/provider/type_source_rss.go
-internal/provider/type_source_s3_file_format_avro.go
-internal/provider/type_source_s3_file_format_csv.go
-internal/provider/type_source_s3_file_format_jsonl.go
-internal/provider/type_source_s3_file_format_parquet.go
-internal/provider/type_source_s3_file_format.go
-internal/provider/type_source_s3_s3_amazon_web_services.go
-internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go
-internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go
-internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv.go
-internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go
-internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go
-internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go
-internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go
-internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go
-internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go
-internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go
-internal/provider/type_source_s3_file_based_stream_config_format.go
-internal/provider/type_source_s3_file_based_stream_config.go
-internal/provider/type_source_s3.go
-internal/provider/type_source_salesforce_streams_criteria.go
-internal/provider/type_source_salesforce.go
-internal/provider/type_source_salesloft_credentials_authenticate_via_api_key.go
-internal/provider/type_source_salesloft_credentials.go
-internal/provider/type_source_salesloft.go
-internal/provider/type_source_sap_fieldglass.go
-internal/provider/type_source_secoda.go
-internal/provider/type_source_sendgrid.go
-internal/provider/type_source_sendinblue.go
-internal/provider/type_source_senseforce.go
-internal/provider/type_source_sentry.go
-internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go
-internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go
-internal/provider/type_source_sftp_authentication_wildcard.go
-internal/provider/type_source_sftp.go
-internal/provider/type_source_sftp_bulk.go
-internal/provider/type_source_shopify_shopify_authorization_method_api_password.go
-internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go
-internal/provider/type_source_shopify_shopify_authorization_method.go
-internal/provider/type_source_shopify.go
-internal/provider/type_source_shortio.go
-internal/provider/type_source_slack_authentication_mechanism_api_token.go
-internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go
-internal/provider/type_source_slack_authentication_mechanism.go
-internal/provider/type_source_slack.go
-internal/provider/type_source_smaily.go
-internal/provider/type_source_smartengage.go
-internal/provider/type_source_smartsheets_authorization_method.go
-internal/provider/type_source_smartsheets.go
-internal/provider/type_source_snapchat_marketing.go
-internal/provider/type_source_snowflake_authorization_method_o_auth20.go
-internal/provider/type_source_snowflake_authorization_method_username_and_password.go
-internal/provider/type_source_snowflake_authorization_method.go
-internal/provider/type_source_snowflake.go
-internal/provider/type_source_sonar_cloud.go
-internal/provider/type_source_spacex_api.go
-internal/provider/type_source_square_authentication_api_key.go
-internal/provider/type_source_square_authentication_oauth_authentication.go
-internal/provider/type_source_square_authentication.go
-internal/provider/type_source_square.go
-internal/provider/type_source_strava.go
-internal/provider/type_source_stripe.go
-internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go
-internal/provider/type_source_surveymonkey.go
-internal/provider/type_source_survey_sparrow_base_urleu_based_account.go
-internal/provider/type_source_survey_sparrow_base_url_global_account.go
-internal/provider/type_source_survey_sparrow_base_url.go
-internal/provider/type_source_survey_sparrow.go
-internal/provider/type_source_tempo.go
-internal/provider/type_source_the_guardian_api.go
-internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go
-internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go
-internal/provider/type_source_tiktok_marketing_authentication_method.go
-internal/provider/type_source_tiktok_marketing.go
-internal/provider/type_source_todoist.go
-internal/provider/type_source_trello.go
-internal/provider/type_source_trustpilot_authorization_method_api_key.go
-internal/provider/type_source_trustpilot_authorization_method.go
-internal/provider/type_source_trustpilot.go
-internal/provider/type_source_tvmaze_schedule.go
-internal/provider/type_source_twilio.go
-internal/provider/type_source_twilio_taskrouter.go
-internal/provider/type_source_twitter.go
-internal/provider/type_source_typeform_authorization_method.go
-internal/provider/type_source_typeform.go
-internal/provider/type_source_us_census.go
-internal/provider/type_source_vantage.go
-internal/provider/type_source_webflow.go
-internal/provider/type_source_whisky_hunter.go
-internal/provider/type_source_wikipedia_pageviews.go
-internal/provider/type_source_woocommerce.go
-internal/provider/type_source_xero_authenticate_via_xero_o_auth.go
-internal/provider/type_source_xero.go
-internal/provider/type_source_xkcd.go
-internal/provider/type_source_yandex_metrica.go
-internal/provider/type_source_yotpo.go
-internal/provider/type_source_younium.go
-internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go
-internal/provider/type_source_youtube_analytics.go
-internal/provider/type_source_zendesk_chat_authorization_method_access_token.go
-internal/provider/type_source_zendesk_chat_authorization_method_o_auth20.go
-internal/provider/type_source_zendesk_chat_authorization_method.go
-internal/provider/type_source_zendesk_chat.go
-internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go
-internal/provider/type_source_zendesk_sunshine_authorization_method_o_auth20.go
-internal/provider/type_source_zendesk_sunshine_authorization_method.go
-internal/provider/type_source_zendesk_sunshine.go
-internal/provider/type_source_zendesk_support_authentication_api_token.go
-internal/provider/type_source_zendesk_support_authentication_o_auth20.go
-internal/provider/type_source_zendesk_support_update_authentication_api_token.go
-internal/provider/type_source_zendesk_support_update_authentication_o_auth20.go
-internal/provider/type_source_zendesk_support_authentication.go
-internal/provider/type_source_zendesk_support.go
-internal/provider/type_source_zendesk_talk_authentication_api_token.go
-internal/provider/type_source_zendesk_talk_authentication_o_auth20.go
-internal/provider/type_source_zendesk_talk_update_authentication_api_token.go
-internal/provider/type_source_zendesk_talk_update_authentication_o_auth20.go
-internal/provider/type_source_zendesk_talk_authentication.go
-internal/provider/type_source_zendesk_talk.go
-internal/provider/type_source_zenloop.go
-internal/provider/type_source_zoho_crm.go
-internal/provider/type_source_zoom.go
-internal/provider/type_source_zuora.go
-internal/provider/type_destination_aws_datalake1.go
-internal/provider/type_destination_databricks_data_source_amazon_s31.go
-internal/provider/type_destination_databricks_update_data_source_amazon_s31.go
-internal/provider/type_destination_databricks_data_source2.go
-internal/provider/type_destination_databricks1.go
-internal/provider/type_destination_dynamodb1.go
-internal/provider/type_destination_redshift_uploading_method_s3_staging1.go
-internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go
-internal/provider/type_destination_redshift_uploading_method1.go
-internal/provider/type_destination_redshift1.go
-internal/provider/type_destination_s31.go
-internal/provider/type_destination_s3_glue1.go
-internal/provider/type_source_alloydb_replication_method_logical_replication_cdc1.go
-internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc1.go
-internal/provider/type_source_alloydb_replication_method1.go
-internal/provider/type_source_alloydb_ssl_modes_allow1.go
-internal/provider/type_source_alloydb_ssl_modes_disable1.go
-internal/provider/type_source_alloydb_ssl_modes_prefer1.go
-internal/provider/type_source_alloydb_ssl_modes_require1.go
-internal/provider/type_source_alloydb_ssl_modes_verify_ca1.go
-internal/provider/type_source_alloydb_ssl_modes_verify_full1.go
-internal/provider/type_source_alloydb_update_ssl_modes_allow1.go
-internal/provider/type_source_alloydb_update_ssl_modes_disable1.go
-internal/provider/type_source_alloydb_update_ssl_modes_prefer1.go
-internal/provider/type_source_alloydb_update_ssl_modes_require1.go
-internal/provider/type_source_alloydb_update_ssl_modes_verify_ca1.go
-internal/provider/type_source_alloydb_update_ssl_modes_verify_full1.go
-internal/provider/type_source_alloydb_ssl_modes1.go
-internal/provider/type_source_alloydb1.go
-internal/provider/type_source_dynamodb1.go
-internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth1.go
-internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token1.go
-internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth1.go
-internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token1.go
-internal/provider/type_source_harvest_authentication_mechanism1.go
-internal/provider/type_source_harvest1.go
-internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas1.go
-internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas1.go
-internal/provider/type_source_mongodb_mongo_db_instance_type1.go
-internal/provider/type_source_mongodb1.go
-internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc1.go
-internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc1.go
-internal/provider/type_source_postgres_update_method1.go
-internal/provider/type_source_postgres_ssl_modes_allow1.go
-internal/provider/type_source_postgres_ssl_modes_disable1.go
-internal/provider/type_source_postgres_ssl_modes_prefer1.go
-internal/provider/type_source_postgres_ssl_modes_require1.go
-internal/provider/type_source_postgres_ssl_modes_verify_ca1.go
-internal/provider/type_source_postgres_ssl_modes_verify_full1.go
-internal/provider/type_source_postgres_update_ssl_modes_allow1.go
-internal/provider/type_source_postgres_update_ssl_modes_disable1.go
-internal/provider/type_source_postgres_update_ssl_modes_prefer1.go
-internal/provider/type_source_postgres_update_ssl_modes_require1.go
-internal/provider/type_source_postgres_update_ssl_modes_verify_ca1.go
-internal/provider/type_source_postgres_update_ssl_modes_verify_full1.go
-internal/provider/type_source_postgres_ssl_modes1.go
-internal/provider/type_source_postgres1.go
-internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth1.go
-internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token1.go
-internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth1.go
-internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token1.go
-internal/provider/type_source_retently_authentication_mechanism1.go
-internal/provider/type_source_retently1.go
-internal/provider/type_source_youtube_analytics_authenticate_via_o_auth201.go
-internal/provider/type_source_youtube_analytics1.go
-internal/provider/type_source_zendesk_support_authentication_api_token1.go
-internal/provider/type_source_zendesk_support_authentication_o_auth201.go
-internal/provider/type_source_zendesk_support_update_authentication_api_token1.go
-internal/provider/type_source_zendesk_support_update_authentication_o_auth201.go
-internal/provider/type_source_zendesk_support_authentication1.go
-internal/provider/type_source_zendesk_support1.go
-internal/provider/type_source_zendesk_talk_authentication_api_token1.go
-internal/provider/type_source_zendesk_talk_authentication_o_auth201.go
-internal/provider/type_source_zendesk_talk_update_authentication_api_token1.go
-internal/provider/type_source_zendesk_talk_update_authentication_o_auth201.go
-internal/provider/type_source_zendesk_talk_authentication1.go
-internal/provider/type_source_zendesk_talk1.go
examples/README.md
go.mod
go.sum
@@ -714,12 +33,16 @@ internal/provider/reflect/primitive.go
internal/provider/reflect/slice.go
internal/provider/reflect/struct.go
internal/provider/utils.go
+internal/sdk/pkg/models/sdkerrors/sdkerror.go
internal/sdk/pkg/types/bigint.go
internal/sdk/pkg/types/date.go
internal/sdk/pkg/types/datetime.go
+internal/sdk/pkg/types/decimal.go
+internal/sdk/pkg/types/pointers.go
internal/sdk/pkg/utils/contenttype.go
internal/sdk/pkg/utils/form.go
internal/sdk/pkg/utils/headers.go
+internal/sdk/pkg/utils/json.go
internal/sdk/pkg/utils/pathparams.go
internal/sdk/pkg/utils/queryparams.go
internal/sdk/pkg/utils/requestbody.go
@@ -2695,6 +2018,561 @@ internal/sdk/pkg/models/shared/workspacecreaterequest.go
internal/sdk/pkg/models/shared/workspacesresponse.go
internal/sdk/pkg/models/shared/workspaceupdaterequest.go
internal/sdk/pkg/models/shared/security.go
+internal/provider/type_stream_configuration.go
+internal/provider/type_stream_configurations.go
+internal/provider/type_connection_schedule.go
+internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go
+internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go
+internal/provider/type_destination_aws_datalake_authentication_mode.go
+internal/provider/type_destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json.go
+internal/provider/type_destination_aws_datalake_output_format_wildcard_parquet_columnar_storage.go
+internal/provider/type_destination_aws_datalake_output_format_wildcard.go
+internal/provider/type_destination_aws_datalake.go
+internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go
+internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_azure_blob_storage_output_format.go
+internal/provider/type_destination_azure_blob_storage.go
+internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go
+internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential.go
+internal/provider/type_destination_bigquery_loading_method_gcs_staging.go
+internal/provider/type_destination_bigquery_loading_method_standard_inserts.go
+internal/provider/type_destination_bigquery_update_loading_method_gcs_staging_credential.go
+internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go
+internal/provider/type_destination_bigquery_loading_method.go
+internal/provider/type_destination_bigquery.go
+internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging_credential.go
+internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go
+internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging_credential.go
+internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go
+internal/provider/type_destination_bigquery_denormalized_loading_method.go
+internal/provider/type_destination_bigquery_denormalized.go
+internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go
+internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go
+internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go
+internal/provider/type_destination_clickhouse_ssh_tunnel_method.go
+internal/provider/type_destination_clickhouse.go
+internal/provider/type_destination_convex.go
+internal/provider/type_destination_cumulio.go
+internal/provider/type_destination_databend.go
+internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go
+internal/provider/type_destination_databricks_data_source_amazon_s3.go
+internal/provider/type_destination_databricks_data_source_azure_blob_storage.go
+internal/provider/type_destination_databricks_update_data_source_amazon_s3.go
+internal/provider/type_destination_databricks_data_source1.go
+internal/provider/type_destination_databricks.go
+internal/provider/type_destination_dev_null_test_destination_silent.go
+internal/provider/type_destination_dev_null_test_destination.go
+internal/provider/type_destination_dev_null.go
+internal/provider/type_destination_dynamodb.go
+internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go
+internal/provider/type_destination_elasticsearch_authentication_method_username_password.go
+internal/provider/type_destination_elasticsearch_authentication_method.go
+internal/provider/type_destination_elasticsearch.go
+internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go
+internal/provider/type_destination_firebolt_loading_method_sql_inserts.go
+internal/provider/type_destination_firebolt_loading_method.go
+internal/provider/type_destination_firebolt.go
+internal/provider/type_destination_firestore.go
+internal/provider/type_destination_gcs_authentication_hmac_key.go
+internal/provider/type_destination_gcs_authentication.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_bzip2.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_deflate.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_no_compression.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_snappy.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_xz.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_zstandard.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec.go
+internal/provider/type_destination_gcs_output_format_avro_apache_avro.go
+internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_gzip.go
+internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_no_compression.go
+internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression.go
+internal/provider/type_destination_gcs_output_format_csv_comma_separated_values.go
+internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip.go
+internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression.go
+internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_gcs_output_format_parquet_columnar_storage.go
+internal/provider/type_destination_gcs_update_output_format_avro_apache_avro_compression_codec.go
+internal/provider/type_destination_gcs_update_output_format_avro_apache_avro.go
+internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values_compression.go
+internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values.go
+internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_gcs_output_format.go
+internal/provider/type_destination_gcs.go
+internal/provider/type_destination_google_sheets_authentication_via_google_o_auth.go
+internal/provider/type_destination_google_sheets.go
+internal/provider/type_destination_keen.go
+internal/provider/type_destination_kinesis.go
+internal/provider/type_destination_langchain_embedding_fake.go
+internal/provider/type_destination_langchain_embedding_open_ai.go
+internal/provider/type_destination_langchain_embedding.go
+internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go
+internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go
+internal/provider/type_destination_langchain_indexing_pinecone.go
+internal/provider/type_destination_langchain_indexing.go
+internal/provider/type_destination_langchain_processing_config_model.go
+internal/provider/type_destination_langchain.go
+internal/provider/type_destination_milvus_embedding_cohere.go
+internal/provider/type_destination_milvus_embedding_from_field.go
+internal/provider/type_destination_milvus_embedding.go
+internal/provider/type_destination_milvus_indexing_authentication_api_token.go
+internal/provider/type_destination_milvus_indexing_authentication_no_auth.go
+internal/provider/type_destination_milvus_indexing_authentication_username_password.go
+internal/provider/type_destination_milvus_indexing_authentication.go
+internal/provider/type_destination_milvus_indexing.go
+internal/provider/type_destination_milvus_processing_config_model.go
+internal/provider/type_destination_milvus.go
+internal/provider/type_destination_mongodb_authorization_type_login_password.go
+internal/provider/type_destination_mongodb_authorization_type_none.go
+internal/provider/type_destination_mongodb_authorization_type.go
+internal/provider/type_destination_mongodb_mongo_db_instance_type_mongo_db_atlas.go
+internal/provider/type_destination_mongodb_mongo_db_instance_type_replica_set.go
+internal/provider/type_destination_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
+internal/provider/type_destination_mongodb_mongo_db_instance_type.go
+internal/provider/type_destination_mongodb_ssh_tunnel_method_no_tunnel.go
+internal/provider/type_destination_mongodb_ssh_tunnel_method_password_authentication.go
+internal/provider/type_destination_mongodb_ssh_tunnel_method_ssh_key_authentication.go
+internal/provider/type_destination_mongodb_ssh_tunnel_method.go
+internal/provider/type_destination_mongodb.go
+internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go
+internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go
+internal/provider/type_destination_mssql_ssl_method.go
+internal/provider/type_destination_mssql_ssh_tunnel_method.go
+internal/provider/type_destination_mssql.go
+internal/provider/type_destination_mysql_ssh_tunnel_method.go
+internal/provider/type_destination_mysql.go
+internal/provider/type_destination_oracle_ssh_tunnel_method.go
+internal/provider/type_destination_oracle.go
+internal/provider/type_destination_pinecone_embedding.go
+internal/provider/type_destination_pinecone_indexing.go
+internal/provider/type_destination_pinecone.go
+internal/provider/type_destination_postgres_ssl_modes_allow.go
+internal/provider/type_destination_postgres_ssl_modes_disable.go
+internal/provider/type_destination_postgres_ssl_modes_prefer.go
+internal/provider/type_destination_postgres_ssl_modes_require.go
+internal/provider/type_destination_postgres_ssl_modes_verify_ca.go
+internal/provider/type_destination_postgres_ssl_modes_verify_full.go
+internal/provider/type_destination_postgres_ssl_modes.go
+internal/provider/type_destination_postgres_ssh_tunnel_method.go
+internal/provider/type_destination_postgres.go
+internal/provider/type_destination_pubsub.go
+internal/provider/type_destination_redis_ssl_modes.go
+internal/provider/type_destination_redis_ssh_tunnel_method.go
+internal/provider/type_destination_redis.go
+internal/provider/type_destination_redshift_ssh_tunnel_method.go
+internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go
+internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go
+internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption.go
+internal/provider/type_destination_redshift_uploading_method_s3_staging.go
+internal/provider/type_destination_redshift_uploading_method_standard.go
+internal/provider/type_destination_redshift_update_uploading_method_s3_staging_encryption.go
+internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go
+internal/provider/type_destination_redshift_uploading_method.go
+internal/provider/type_destination_redshift.go
+internal/provider/type_destination_s3_output_format_avro_apache_avro_compression_codec.go
+internal/provider/type_destination_s3_output_format_avro_apache_avro.go
+internal/provider/type_destination_s3_output_format_csv_comma_separated_values_compression.go
+internal/provider/type_destination_s3_output_format_csv_comma_separated_values.go
+internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_s3_output_format_parquet_columnar_storage.go
+internal/provider/type_destination_s3_update_output_format_avro_apache_avro_compression_codec.go
+internal/provider/type_destination_s3_update_output_format_avro_apache_avro.go
+internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values_compression.go
+internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values.go
+internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_s3_output_format.go
+internal/provider/type_destination_s3.go
+internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression.go
+internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json.go
+internal/provider/type_destination_s3_glue_output_format.go
+internal/provider/type_destination_s3_glue.go
+internal/provider/type_destination_sftp_json.go
+internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go
+internal/provider/type_destination_snowflake_authorization_method_o_auth20.go
+internal/provider/type_destination_snowflake_authorization_method_username_and_password.go
+internal/provider/type_destination_snowflake_authorization_method.go
+internal/provider/type_destination_snowflake.go
+internal/provider/type_destination_timeplus.go
+internal/provider/type_destination_typesense.go
+internal/provider/type_destination_vertica_ssh_tunnel_method.go
+internal/provider/type_destination_vertica.go
+internal/provider/type_destination_xata.go
+internal/provider/type_source_aha.go
+internal/provider/type_source_aircall.go
+internal/provider/type_source_airtable_authentication_o_auth20.go
+internal/provider/type_source_airtable_authentication_personal_access_token.go
+internal/provider/type_source_airtable_authentication.go
+internal/provider/type_source_airtable.go
+internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go
+internal/provider/type_source_alloydb_replication_method_standard.go
+internal/provider/type_source_alloydb_replication_method_standard_xmin.go
+internal/provider/type_source_alloydb_replication_method.go
+internal/provider/type_source_alloydb_ssl_modes_allow.go
+internal/provider/type_source_alloydb_ssl_modes_disable.go
+internal/provider/type_source_alloydb_ssl_modes_prefer.go
+internal/provider/type_source_alloydb_ssl_modes_require.go
+internal/provider/type_source_alloydb_ssl_modes_verify_ca.go
+internal/provider/type_source_alloydb_ssl_modes_verify_full.go
+internal/provider/type_source_alloydb_ssl_modes.go
+internal/provider/type_source_alloydb_ssh_tunnel_method.go
+internal/provider/type_source_alloydb.go
+internal/provider/type_source_amazon_ads.go
+internal/provider/type_source_amazon_seller_partner.go
+internal/provider/type_source_amazon_sqs.go
+internal/provider/type_source_amplitude.go
+internal/provider/type_source_apify_dataset.go
+internal/provider/type_source_appfollow.go
+internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go
+internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go
+internal/provider/type_source_asana_authentication_mechanism.go
+internal/provider/type_source_asana.go
+internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go
+internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go
+internal/provider/type_source_auth0_authentication_method.go
+internal/provider/type_source_auth0.go
+internal/provider/type_source_aws_cloudtrail.go
+internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go
+internal/provider/type_source_azure_blob_storage_input_format.go
+internal/provider/type_source_azure_blob_storage.go
+internal/provider/type_source_azure_table.go
+internal/provider/type_source_bamboo_hr.go
+internal/provider/type_source_bigcommerce.go
+internal/provider/type_source_bigquery.go
+internal/provider/type_source_bing_ads.go
+internal/provider/type_source_braintree.go
+internal/provider/type_source_braze.go
+internal/provider/type_source_chargebee.go
+internal/provider/type_source_chartmogul.go
+internal/provider/type_source_clickhouse_ssh_tunnel_method.go
+internal/provider/type_source_clickhouse.go
+internal/provider/type_source_clickup_api.go
+internal/provider/type_source_clockify.go
+internal/provider/type_source_close_com.go
+internal/provider/type_source_coda.go
+internal/provider/type_source_coin_api.go
+internal/provider/type_source_coinmarketcap.go
+internal/provider/type_source_configcat.go
+internal/provider/type_source_confluence.go
+internal/provider/type_source_datascope.go
+internal/provider/type_source_delighted.go
+internal/provider/type_source_dixa.go
+internal/provider/type_source_dockerhub.go
+internal/provider/type_source_dremio.go
+internal/provider/type_source_dynamodb.go
+internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go
+internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go
+internal/provider/type_source_e2e_test_cloud_mock_catalog.go
+internal/provider/type_source_e2e_test_cloud.go
+internal/provider/type_source_emailoctopus.go
+internal/provider/type_source_exchange_rates.go
+internal/provider/type_source_facebook_marketing_insight_config.go
+internal/provider/type_source_facebook_marketing.go
+internal/provider/type_source_facebook_pages.go
+internal/provider/type_source_faker.go
+internal/provider/type_source_fauna_collection_deletion_mode_disabled.go
+internal/provider/type_source_fauna_collection_deletion_mode_enabled.go
+internal/provider/type_source_fauna_collection_deletion_mode.go
+internal/provider/type_source_fauna_collection.go
+internal/provider/type_source_fauna.go
+internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go
+internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go
+internal/provider/type_source_file_secure_storage_provider_https_public_web.go
+internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go
+internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go
+internal/provider/type_source_file_secure_storage_provider.go
+internal/provider/type_source_file_secure.go
+internal/provider/type_source_firebolt.go
+internal/provider/type_source_freshcaller.go
+internal/provider/type_source_freshdesk.go
+internal/provider/type_source_freshsales.go
+internal/provider/type_source_gcs.go
+internal/provider/type_source_github_authentication_o_auth.go
+internal/provider/type_source_github_authentication_personal_access_token.go
+internal/provider/type_source_github_authentication.go
+internal/provider/type_source_github.go
+internal/provider/type_source_gitlab_authorization_method.go
+internal/provider/type_source_gitlab.go
+internal/provider/type_source_gnews.go
+internal/provider/type_source_google_ads_google_credentials.go
+internal/provider/type_source_google_ads_custom_queries.go
+internal/provider/type_source_google_ads.go
+internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go
+internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go
+internal/provider/type_source_google_analytics_data_api_credentials.go
+internal/provider/type_source_google_analytics_data_api.go
+internal/provider/type_source_google_analytics_v4_credentials.go
+internal/provider/type_source_google_analytics_v4.go
+internal/provider/type_source_google_directory_google_credentials_service_account_key.go
+internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go
+internal/provider/type_source_google_directory_google_credentials.go
+internal/provider/type_source_google_directory.go
+internal/provider/type_source_google_pagespeed_insights.go
+internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go
+internal/provider/type_source_google_search_console_authentication_type.go
+internal/provider/type_source_google_search_console_custom_report_config.go
+internal/provider/type_source_google_search_console.go
+internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go
+internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go
+internal/provider/type_source_google_sheets_authentication.go
+internal/provider/type_source_google_sheets.go
+internal/provider/type_source_google_webfonts.go
+internal/provider/type_source_google_workspace_admin_reports.go
+internal/provider/type_source_gridly.go
+internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go
+internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go
+internal/provider/type_source_harvest_authentication_mechanism.go
+internal/provider/type_source_harvest.go
+internal/provider/type_source_hubspot_authentication_o_auth.go
+internal/provider/type_source_hubspot_authentication_private_app.go
+internal/provider/type_source_hubspot_authentication.go
+internal/provider/type_source_hubspot.go
+internal/provider/type_source_insightly.go
+internal/provider/type_source_instagram.go
+internal/provider/type_source_ip2whois.go
+internal/provider/type_source_iterable.go
+internal/provider/type_source_jira.go
+internal/provider/type_source_k6_cloud.go
+internal/provider/type_source_klarna.go
+internal/provider/type_source_kustomer_singer.go
+internal/provider/type_source_kyve.go
+internal/provider/type_source_launchdarkly.go
+internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go
+internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go
+internal/provider/type_source_lever_hiring_authentication_mechanism.go
+internal/provider/type_source_lever_hiring.go
+internal/provider/type_source_linkedin_ads_ad_analytics_report_configuration.go
+internal/provider/type_source_linkedin_ads_authentication_o_auth20.go
+internal/provider/type_source_linkedin_ads_authentication.go
+internal/provider/type_source_linkedin_ads.go
+internal/provider/type_source_linkedin_pages_authentication.go
+internal/provider/type_source_linkedin_pages.go
+internal/provider/type_source_linnworks.go
+internal/provider/type_source_lokalise.go
+internal/provider/type_source_mailchimp_authentication_api_key.go
+internal/provider/type_source_mailchimp_authentication_o_auth20.go
+internal/provider/type_source_mailchimp_authentication.go
+internal/provider/type_source_mailchimp.go
+internal/provider/type_source_mailgun.go
+internal/provider/type_source_mailjet_sms.go
+internal/provider/type_source_marketo.go
+internal/provider/type_source_metabase.go
+internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go
+internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go
+internal/provider/type_source_microsoft_teams_authentication_mechanism.go
+internal/provider/type_source_microsoft_teams.go
+internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go
+internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go
+internal/provider/type_source_mixpanel_authentication_wildcard.go
+internal/provider/type_source_mixpanel.go
+internal/provider/type_source_monday_authorization_method_api_token.go
+internal/provider/type_source_monday_authorization_method_o_auth20.go
+internal/provider/type_source_monday_authorization_method.go
+internal/provider/type_source_monday.go
+internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go
+internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go
+internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
+internal/provider/type_source_mongodb_mongo_db_instance_type.go
+internal/provider/type_source_mongodb.go
+internal/provider/type_source_mongodb_internal_poc.go
+internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go
+internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go
+internal/provider/type_source_mssql_update_method.go
+internal/provider/type_source_mssql_ssl_method.go
+internal/provider/type_source_mssql_ssh_tunnel_method.go
+internal/provider/type_source_mssql.go
+internal/provider/type_source_my_hours.go
+internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go
+internal/provider/type_source_mysql_update_method.go
+internal/provider/type_source_mysql_ssl_modes_preferred.go
+internal/provider/type_source_mysql_ssl_modes_required.go
+internal/provider/type_source_mysql_ssl_modes_verify_ca.go
+internal/provider/type_source_mysql_ssl_modes_verify_identity.go
+internal/provider/type_source_mysql_ssl_modes.go
+internal/provider/type_source_mysql_ssh_tunnel_method.go
+internal/provider/type_source_mysql.go
+internal/provider/type_source_netsuite.go
+internal/provider/type_source_notion_authenticate_using_access_token.go
+internal/provider/type_source_notion_authenticate_using_o_auth20.go
+internal/provider/type_source_notion_authenticate_using.go
+internal/provider/type_source_notion.go
+internal/provider/type_source_nytimes.go
+internal/provider/type_source_okta_authorization_method.go
+internal/provider/type_source_okta.go
+internal/provider/type_source_onesignal_applications.go
+internal/provider/type_source_onesignal.go
+internal/provider/type_source_oracle_connect_by_service_name.go
+internal/provider/type_source_oracle_connect_by_system_idsid.go
+internal/provider/type_source_oracle_connect_by.go
+internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go
+internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go
+internal/provider/type_source_oracle_encryption.go
+internal/provider/type_source_oracle_ssh_tunnel_method.go
+internal/provider/type_source_oracle.go
+internal/provider/type_source_orb.go
+internal/provider/type_source_orbit.go
+internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go
+internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go
+internal/provider/type_source_outbrain_amplify_authentication_method.go
+internal/provider/type_source_outbrain_amplify.go
+internal/provider/type_source_outreach.go
+internal/provider/type_source_paypal_transaction.go
+internal/provider/type_source_paystack.go
+internal/provider/type_source_pexels_api.go
+internal/provider/type_source_pinterest_authorization_method.go
+internal/provider/type_source_pinterest.go
+internal/provider/type_source_pipedrive.go
+internal/provider/type_source_pocket.go
+internal/provider/type_source_pokeapi.go
+internal/provider/type_source_polygon_stock_api.go
+internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go
+internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go
+internal/provider/type_source_postgres_update_method.go
+internal/provider/type_source_postgres_ssl_modes.go
+internal/provider/type_source_postgres_ssh_tunnel_method.go
+internal/provider/type_source_postgres.go
+internal/provider/type_source_posthog.go
+internal/provider/type_source_postmarkapp.go
+internal/provider/type_source_prestashop.go
+internal/provider/type_source_punk_api.go
+internal/provider/type_source_pypi.go
+internal/provider/type_source_qualaroo.go
+internal/provider/type_source_quickbooks_authorization_method_o_auth20.go
+internal/provider/type_source_quickbooks_authorization_method.go
+internal/provider/type_source_quickbooks.go
+internal/provider/type_source_railz.go
+internal/provider/type_source_recharge.go
+internal/provider/type_source_recreation.go
+internal/provider/type_source_recruitee.go
+internal/provider/type_source_recurly.go
+internal/provider/type_source_redshift.go
+internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go
+internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go
+internal/provider/type_source_retently_authentication_mechanism.go
+internal/provider/type_source_retently.go
+internal/provider/type_source_rki_covid.go
+internal/provider/type_source_rss.go
+internal/provider/type_source_s3_file_format_avro.go
+internal/provider/type_source_s3_file_format_csv.go
+internal/provider/type_source_s3_file_format_jsonl.go
+internal/provider/type_source_s3_file_format_parquet.go
+internal/provider/type_source_s3_file_format.go
+internal/provider/type_source_s3_s3_amazon_web_services.go
+internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go
+internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go
+internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go
+internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go
+internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go
+internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go
+internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go
+internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go
+internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go
+internal/provider/type_source_s3_file_based_stream_config_format.go
+internal/provider/type_source_s3_file_based_stream_config.go
+internal/provider/type_source_s3.go
+internal/provider/type_source_salesforce_streams_criteria.go
+internal/provider/type_source_salesforce.go
+internal/provider/type_source_salesloft_credentials.go
+internal/provider/type_source_salesloft.go
+internal/provider/type_source_sendgrid.go
+internal/provider/type_source_senseforce.go
+internal/provider/type_source_sentry.go
+internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go
+internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go
+internal/provider/type_source_sftp_authentication_wildcard.go
+internal/provider/type_source_sftp.go
+internal/provider/type_source_sftp_bulk.go
+internal/provider/type_source_shopify_shopify_authorization_method_api_password.go
+internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go
+internal/provider/type_source_shopify_shopify_authorization_method.go
+internal/provider/type_source_shopify.go
+internal/provider/type_source_shortio.go
+internal/provider/type_source_slack_authentication_mechanism_api_token.go
+internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go
+internal/provider/type_source_slack_authentication_mechanism.go
+internal/provider/type_source_slack.go
+internal/provider/type_source_smaily.go
+internal/provider/type_source_smartsheets_authorization_method.go
+internal/provider/type_source_smartsheets.go
+internal/provider/type_source_snapchat_marketing.go
+internal/provider/type_source_snowflake_authorization_method_username_and_password.go
+internal/provider/type_source_snowflake_authorization_method.go
+internal/provider/type_source_snowflake.go
+internal/provider/type_source_sonar_cloud.go
+internal/provider/type_source_spacex_api.go
+internal/provider/type_source_square_authentication_api_key.go
+internal/provider/type_source_square_authentication_oauth_authentication.go
+internal/provider/type_source_square_authentication.go
+internal/provider/type_source_square.go
+internal/provider/type_source_strava.go
+internal/provider/type_source_stripe.go
+internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go
+internal/provider/type_source_surveymonkey.go
+internal/provider/type_source_survey_sparrow_base_urleu_based_account.go
+internal/provider/type_source_survey_sparrow_base_url.go
+internal/provider/type_source_survey_sparrow.go
+internal/provider/type_source_the_guardian_api.go
+internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go
+internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go
+internal/provider/type_source_tiktok_marketing_authentication_method.go
+internal/provider/type_source_tiktok_marketing.go
+internal/provider/type_source_todoist.go
+internal/provider/type_source_trello.go
+internal/provider/type_source_trustpilot_authorization_method_api_key.go
+internal/provider/type_source_trustpilot_authorization_method.go
+internal/provider/type_source_trustpilot.go
+internal/provider/type_source_tvmaze_schedule.go
+internal/provider/type_source_twilio.go
+internal/provider/type_source_twilio_taskrouter.go
+internal/provider/type_source_twitter.go
+internal/provider/type_source_typeform_authorization_method.go
+internal/provider/type_source_typeform.go
+internal/provider/type_source_us_census.go
+internal/provider/type_source_webflow.go
+internal/provider/type_source_whisky_hunter.go
+internal/provider/type_source_wikipedia_pageviews.go
+internal/provider/type_source_woocommerce.go
+internal/provider/type_source_xero_authenticate_via_xero_o_auth.go
+internal/provider/type_source_xero.go
+internal/provider/type_source_yandex_metrica.go
+internal/provider/type_source_yotpo.go
+internal/provider/type_source_younium.go
+internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go
+internal/provider/type_source_youtube_analytics.go
+internal/provider/type_source_zendesk_chat_authorization_method.go
+internal/provider/type_source_zendesk_chat.go
+internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go
+internal/provider/type_source_zendesk_sunshine_authorization_method.go
+internal/provider/type_source_zendesk_sunshine.go
+internal/provider/type_source_zendesk_support_authentication_api_token.go
+internal/provider/type_source_zendesk_support_authentication_o_auth20.go
+internal/provider/type_source_zendesk_support_authentication.go
+internal/provider/type_source_zendesk_support.go
+internal/provider/type_source_zendesk_talk_authentication_api_token.go
+internal/provider/type_source_zendesk_talk_authentication_o_auth20.go
+internal/provider/type_source_zendesk_talk_authentication.go
+internal/provider/type_source_zendesk_talk.go
+internal/provider/type_source_zenloop.go
+internal/provider/type_source_zoho_crm.go
+internal/provider/type_source_zoom.go
+internal/provider/type_source_zuora.go
+internal/provider/type_destination_aws_datalake1.go
+internal/provider/type_destination_databricks_data_source_amazon_s31.go
+internal/provider/type_destination_databricks_update_data_source_amazon_s31.go
+internal/provider/type_destination_databricks_data_source2.go
+internal/provider/type_destination_databricks1.go
+internal/provider/type_destination_dynamodb1.go
+internal/provider/type_destination_redshift_uploading_method_s3_staging1.go
+internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go
+internal/provider/type_destination_redshift_uploading_method1.go
+internal/provider/type_destination_redshift1.go
+internal/provider/type_destination_s31.go
+internal/provider/type_destination_s3_glue1.go
+internal/provider/type_source_dynamodb1.go
USAGE.md
internal/provider/provider.go
examples/provider/provider.tf
diff --git a/gen.yaml b/gen.yaml
index 72bf23f81..6373a2f0f 100755
--- a/gen.yaml
+++ b/gen.yaml
@@ -5,10 +5,13 @@ generation:
telemetryEnabled: true
features:
terraform:
- core: 2.88.0
+ additionalProperties: 0.1.0
+ constsAndDefaults: 0.1.1
+ core: 2.92.1
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
includes: 2.81.1
+ unions: 2.81.5
terraform:
version: 0.3.4
author: airbytehq
diff --git a/go.mod b/go.mod
old mode 100755
new mode 100644
index 87deb906f..ae5fa2547
--- a/go.mod
+++ b/go.mod
@@ -1,11 +1,12 @@
module airbyte
go 1.18
-
require (
github.com/cenkalti/backoff/v4 v4.2.0
+ github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
github.com/hashicorp/terraform-plugin-framework v1.3.5
github.com/hashicorp/terraform-plugin-go v0.18.0
+ github.com/spyzhov/ajson v0.9.0
)
require (
diff --git a/go.sum b/go.sum
old mode 100755
new mode 100644
index fb08a537c..853448be6
--- a/go.sum
+++ b/go.sum
@@ -31,6 +31,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg=
github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
+github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw=
+github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
@@ -169,6 +171,8 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
+github.com/spyzhov/ajson v0.9.0 h1:tF46gJGOenYVj+k9K1U1XpCxVWhmiyY5PsVCAs1+OJ0=
+github.com/spyzhov/ajson v0.9.0/go.mod h1:a6oSw0MMb7Z5aD2tPoPO+jq11ETKgXUr2XktHdT8Wt8=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
diff --git a/internal/planmodifiers/boolplanmodifier/suppress_diff.go b/internal/planmodifiers/boolplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/float64planmodifier/suppress_diff.go b/internal/planmodifiers/float64planmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/int64planmodifier/suppress_diff.go b/internal/planmodifiers/int64planmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/listplanmodifier/suppress_diff.go b/internal/planmodifiers/listplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/mapplanmodifier/suppress_diff.go b/internal/planmodifiers/mapplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/numberplanmodifier/suppress_diff.go b/internal/planmodifiers/numberplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/objectplanmodifier/suppress_diff.go b/internal/planmodifiers/objectplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/setplanmodifier/suppress_diff.go b/internal/planmodifiers/setplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/stringplanmodifier/suppress_diff.go b/internal/planmodifiers/stringplanmodifier/suppress_diff.go
old mode 100755
new mode 100644
diff --git a/internal/planmodifiers/utils/state_check.go b/internal/planmodifiers/utils/state_check.go
old mode 100755
new mode 100644
diff --git a/internal/provider/connection_data_source.go b/internal/provider/connection_data_source.go
old mode 100755
new mode 100644
diff --git a/internal/provider/connection_data_source_sdk.go b/internal/provider/connection_data_source_sdk.go
old mode 100755
new mode 100644
index f2feb82d8..bbff68bc9
--- a/internal/provider/connection_data_source_sdk.go
+++ b/internal/provider/connection_data_source_sdk.go
@@ -36,7 +36,11 @@ func (r *ConnectionDataSourceModel) RefreshFromGetResponse(resp *shared.Connecti
r.Configurations.Streams = append(r.Configurations.Streams, streams1)
}
r.ConnectionID = types.StringValue(resp.ConnectionID)
- r.DataResidency = types.StringValue(string(resp.DataResidency))
+ if resp.DataResidency != nil {
+ r.DataResidency = types.StringValue(string(*resp.DataResidency))
+ } else {
+ r.DataResidency = types.StringNull()
+ }
r.DestinationID = types.StringValue(resp.DestinationID)
r.Name = types.StringValue(resp.Name)
if resp.NamespaceDefinition != nil {
diff --git a/internal/provider/connection_resource.go b/internal/provider/connection_resource.go
old mode 100755
new mode 100644
diff --git a/internal/provider/connection_resource_sdk.go b/internal/provider/connection_resource_sdk.go
old mode 100755
new mode 100644
index 1760666f7..c3ee46a28
--- a/internal/provider/connection_resource_sdk.go
+++ b/internal/provider/connection_resource_sdk.go
@@ -260,7 +260,11 @@ func (r *ConnectionResourceModel) RefreshFromGetResponse(resp *shared.Connection
r.Configurations.Streams = append(r.Configurations.Streams, streams1)
}
r.ConnectionID = types.StringValue(resp.ConnectionID)
- r.DataResidency = types.StringValue(string(resp.DataResidency))
+ if resp.DataResidency != nil {
+ r.DataResidency = types.StringValue(string(*resp.DataResidency))
+ } else {
+ r.DataResidency = types.StringNull()
+ }
r.DestinationID = types.StringValue(resp.DestinationID)
r.Name = types.StringValue(resp.Name)
if resp.NamespaceDefinition != nil {
diff --git a/internal/provider/destination_awsdatalake_data_source.go b/internal/provider/destination_awsdatalake_data_source.go
old mode 100755
new mode 100644
index b7aec0a84..43af5d003
--- a/internal/provider/destination_awsdatalake_data_source.go
+++ b/internal/provider/destination_awsdatalake_data_source.go
@@ -70,16 +70,6 @@ func (r *DestinationAwsDatalakeDataSource) Schema(ctx context.Context, req datas
"destination_aws_datalake_authentication_mode_iam_role": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM Role",
- ),
- },
- MarkdownDescription: `must be one of ["IAM Role"]` + "\n" +
- `Name of the credentials`,
- },
"role_arn": schema.StringAttribute{
Computed: true,
Description: `Will assume this role to write data to s3`,
@@ -98,32 +88,12 @@ func (r *DestinationAwsDatalakeDataSource) Schema(ctx context.Context, req datas
Computed: true,
Description: `Secret Access Key`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM User",
- ),
- },
- MarkdownDescription: `must be one of ["IAM User"]` + "\n" +
- `Name of the credentials`,
- },
},
Description: `Choose How to Authenticate to AWS.`,
},
"destination_aws_datalake_update_authentication_mode_iam_role": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM Role",
- ),
- },
- MarkdownDescription: `must be one of ["IAM Role"]` + "\n" +
- `Name of the credentials`,
- },
"role_arn": schema.StringAttribute{
Computed: true,
Description: `Will assume this role to write data to s3`,
@@ -142,16 +112,6 @@ func (r *DestinationAwsDatalakeDataSource) Schema(ctx context.Context, req datas
Computed: true,
Description: `Secret Access Key`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM User",
- ),
- },
- MarkdownDescription: `must be one of ["IAM User"]` + "\n" +
- `Name of the credentials`,
- },
},
Description: `Choose How to Authenticate to AWS.`,
},
@@ -161,15 +121,6 @@ func (r *DestinationAwsDatalakeDataSource) Schema(ctx context.Context, req datas
},
Description: `Choose How to Authenticate to AWS.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aws-datalake",
- ),
- },
- Description: `must be one of ["aws-datalake"]`,
- },
"format": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
diff --git a/internal/provider/destination_awsdatalake_data_source_sdk.go b/internal/provider/destination_awsdatalake_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_awsdatalake_resource.go b/internal/provider/destination_awsdatalake_resource.go
old mode 100755
new mode 100644
index 33c71003c..64c6d53af
--- a/internal/provider/destination_awsdatalake_resource.go
+++ b/internal/provider/destination_awsdatalake_resource.go
@@ -72,16 +72,6 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
"destination_aws_datalake_authentication_mode_iam_role": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM Role",
- ),
- },
- MarkdownDescription: `must be one of ["IAM Role"]` + "\n" +
- `Name of the credentials`,
- },
"role_arn": schema.StringAttribute{
Required: true,
Description: `Will assume this role to write data to s3`,
@@ -100,32 +90,12 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
Required: true,
Description: `Secret Access Key`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM User",
- ),
- },
- MarkdownDescription: `must be one of ["IAM User"]` + "\n" +
- `Name of the credentials`,
- },
},
Description: `Choose How to Authenticate to AWS.`,
},
"destination_aws_datalake_update_authentication_mode_iam_role": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM Role",
- ),
- },
- MarkdownDescription: `must be one of ["IAM Role"]` + "\n" +
- `Name of the credentials`,
- },
"role_arn": schema.StringAttribute{
Required: true,
Description: `Will assume this role to write data to s3`,
@@ -144,16 +114,6 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
Required: true,
Description: `Secret Access Key`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "IAM User",
- ),
- },
- MarkdownDescription: `must be one of ["IAM User"]` + "\n" +
- `Name of the credentials`,
- },
},
Description: `Choose How to Authenticate to AWS.`,
},
@@ -163,15 +123,6 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
},
Description: `Choose How to Authenticate to AWS.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aws-datalake",
- ),
- },
- Description: `must be one of ["aws-datalake"]`,
- },
"format": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
@@ -190,7 +141,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
`The compression algorithm used to compress data.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -218,7 +169,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
`The compression algorithm used to compress data.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -244,7 +195,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
`The compression algorithm used to compress data.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -272,7 +223,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
`The compression algorithm used to compress data.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -326,7 +277,7 @@ func (r *DestinationAwsDatalakeResource) Schema(ctx context.Context, req resourc
`Partition data by cursor fields when a cursor field is a date`,
},
"region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -428,7 +379,7 @@ func (r *DestinationAwsDatalakeResource) Create(ctx context.Context, req resourc
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationAwsDatalake(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_awsdatalake_resource_sdk.go b/internal/provider/destination_awsdatalake_resource_sdk.go
old mode 100755
new mode 100644
index 4c8d1a063..093a63fe2
--- a/internal/provider/destination_awsdatalake_resource_sdk.go
+++ b/internal/provider/destination_awsdatalake_resource_sdk.go
@@ -24,11 +24,9 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
var credentials shared.DestinationAwsDatalakeAuthenticationMode
var destinationAwsDatalakeAuthenticationModeIAMRole *shared.DestinationAwsDatalakeAuthenticationModeIAMRole
if r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMRole != nil {
- credentialsTitle := shared.DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle(r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMRole.CredentialsTitle.ValueString())
roleArn := r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMRole.RoleArn.ValueString()
destinationAwsDatalakeAuthenticationModeIAMRole = &shared.DestinationAwsDatalakeAuthenticationModeIAMRole{
- CredentialsTitle: credentialsTitle,
- RoleArn: roleArn,
+ RoleArn: roleArn,
}
}
if destinationAwsDatalakeAuthenticationModeIAMRole != nil {
@@ -40,11 +38,9 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
if r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMUser != nil {
awsAccessKeyID := r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMUser.AwsAccessKeyID.ValueString()
awsSecretAccessKey := r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMUser.AwsSecretAccessKey.ValueString()
- credentialsTitle1 := shared.DestinationAwsDatalakeAuthenticationModeIAMUserCredentialsTitle(r.Configuration.Credentials.DestinationAwsDatalakeAuthenticationModeIAMUser.CredentialsTitle.ValueString())
destinationAwsDatalakeAuthenticationModeIAMUser = &shared.DestinationAwsDatalakeAuthenticationModeIAMUser{
AwsAccessKeyID: awsAccessKeyID,
AwsSecretAccessKey: awsSecretAccessKey,
- CredentialsTitle: credentialsTitle1,
}
}
if destinationAwsDatalakeAuthenticationModeIAMUser != nil {
@@ -52,7 +48,6 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
DestinationAwsDatalakeAuthenticationModeIAMUser: destinationAwsDatalakeAuthenticationModeIAMUser,
}
}
- destinationType := shared.DestinationAwsDatalakeAwsDatalake(r.Configuration.DestinationType.ValueString())
var format *shared.DestinationAwsDatalakeOutputFormatWildcard
if r.Configuration.Format != nil {
var destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON *shared.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON
@@ -63,7 +58,12 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
} else {
compressionCodec = nil
}
- formatType := shared.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType := new(shared.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard)
+ if !r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType = shared.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON = &shared.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -82,7 +82,12 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
} else {
compressionCodec1 = nil
}
- formatType1 := shared.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage.FormatType.ValueString())
+ formatType1 := new(shared.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard)
+ if !r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage.FormatType.IsNull() {
+ *formatType1 = shared.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage = &shared.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage{
CompressionCodec: compressionCodec1,
FormatType: formatType1,
@@ -125,13 +130,17 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat
} else {
partitioning = nil
}
- region := shared.DestinationAwsDatalakeS3BucketRegion(r.Configuration.Region.ValueString())
+ region := new(shared.DestinationAwsDatalakeS3BucketRegion)
+ if !r.Configuration.Region.IsUnknown() && !r.Configuration.Region.IsNull() {
+ *region = shared.DestinationAwsDatalakeS3BucketRegion(r.Configuration.Region.ValueString())
+ } else {
+ region = nil
+ }
configuration := shared.DestinationAwsDatalake{
AwsAccountID: awsAccountID,
BucketName: bucketName,
BucketPrefix: bucketPrefix,
Credentials: credentials,
- DestinationType: destinationType,
Format: format,
GlueCatalogFloatAsDecimal: glueCatalogFloatAsDecimal,
LakeformationDatabaseDefaultTagKey: lakeformationDatabaseDefaultTagKey,
@@ -173,11 +182,9 @@ func (r *DestinationAwsDatalakeResourceModel) ToUpdateSDKType() *shared.Destinat
var credentials shared.DestinationAwsDatalakeUpdateAuthenticationMode
var destinationAwsDatalakeUpdateAuthenticationModeIAMRole *shared.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole
if r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole != nil {
- credentialsTitle := shared.DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle(r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole.CredentialsTitle.ValueString())
roleArn := r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole.RoleArn.ValueString()
destinationAwsDatalakeUpdateAuthenticationModeIAMRole = &shared.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole{
- CredentialsTitle: credentialsTitle,
- RoleArn: roleArn,
+ RoleArn: roleArn,
}
}
if destinationAwsDatalakeUpdateAuthenticationModeIAMRole != nil {
@@ -189,11 +196,9 @@ func (r *DestinationAwsDatalakeResourceModel) ToUpdateSDKType() *shared.Destinat
if r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser != nil {
awsAccessKeyID := r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser.AwsAccessKeyID.ValueString()
awsSecretAccessKey := r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser.AwsSecretAccessKey.ValueString()
- credentialsTitle1 := shared.DestinationAwsDatalakeUpdateAuthenticationModeIAMUserCredentialsTitle(r.Configuration.Credentials.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser.CredentialsTitle.ValueString())
destinationAwsDatalakeUpdateAuthenticationModeIAMUser = &shared.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser{
AwsAccessKeyID: awsAccessKeyID,
AwsSecretAccessKey: awsSecretAccessKey,
- CredentialsTitle: credentialsTitle1,
}
}
if destinationAwsDatalakeUpdateAuthenticationModeIAMUser != nil {
@@ -211,7 +216,12 @@ func (r *DestinationAwsDatalakeResourceModel) ToUpdateSDKType() *shared.Destinat
} else {
compressionCodec = nil
}
- formatType := shared.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType := new(shared.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard)
+ if !r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType = shared.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON = &shared.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -230,7 +240,12 @@ func (r *DestinationAwsDatalakeResourceModel) ToUpdateSDKType() *shared.Destinat
} else {
compressionCodec1 = nil
}
- formatType1 := shared.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage.FormatType.ValueString())
+ formatType1 := new(shared.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard)
+ if !r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage.FormatType.IsNull() {
+ *formatType1 = shared.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard(r.Configuration.Format.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage = &shared.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage{
CompressionCodec: compressionCodec1,
FormatType: formatType1,
@@ -273,7 +288,12 @@ func (r *DestinationAwsDatalakeResourceModel) ToUpdateSDKType() *shared.Destinat
} else {
partitioning = nil
}
- region := shared.DestinationAwsDatalakeUpdateS3BucketRegion(r.Configuration.Region.ValueString())
+ region := new(shared.DestinationAwsDatalakeUpdateS3BucketRegion)
+ if !r.Configuration.Region.IsUnknown() && !r.Configuration.Region.IsNull() {
+ *region = shared.DestinationAwsDatalakeUpdateS3BucketRegion(r.Configuration.Region.ValueString())
+ } else {
+ region = nil
+ }
configuration := shared.DestinationAwsDatalakeUpdate{
AwsAccountID: awsAccountID,
BucketName: bucketName,
diff --git a/internal/provider/destination_azureblobstorage_data_source.go b/internal/provider/destination_azureblobstorage_data_source.go
old mode 100755
new mode 100644
index 29f43bcf3..c56211e84
--- a/internal/provider/destination_azureblobstorage_data_source.go
+++ b/internal/provider/destination_azureblobstorage_data_source.go
@@ -76,15 +76,6 @@ func (r *DestinationAzureBlobStorageDataSource) Schema(ctx context.Context, req
Computed: true,
Description: `The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-blob-storage",
- ),
- },
- Description: `must be one of ["azure-blob-storage"]`,
- },
"format": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -102,31 +93,12 @@ func (r *DestinationAzureBlobStorageDataSource) Schema(ctx context.Context, req
MarkdownDescription: `must be one of ["No flattening", "Root level flattening"]` + "\n" +
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CSV",
- ),
- },
- Description: `must be one of ["CSV"]`,
- },
},
Description: `Output data format`,
},
"destination_azure_blob_storage_output_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Output data format`,
},
"destination_azure_blob_storage_update_output_format_csv_comma_separated_values": schema.SingleNestedAttribute{
@@ -143,31 +115,12 @@ func (r *DestinationAzureBlobStorageDataSource) Schema(ctx context.Context, req
MarkdownDescription: `must be one of ["No flattening", "Root level flattening"]` + "\n" +
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CSV",
- ),
- },
- Description: `must be one of ["CSV"]`,
- },
},
Description: `Output data format`,
},
"destination_azure_blob_storage_update_output_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Output data format`,
},
},
diff --git a/internal/provider/destination_azureblobstorage_data_source_sdk.go b/internal/provider/destination_azureblobstorage_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_azureblobstorage_resource.go b/internal/provider/destination_azureblobstorage_resource.go
old mode 100755
new mode 100644
index b231ba289..dbc0eef7e
--- a/internal/provider/destination_azureblobstorage_resource.go
+++ b/internal/provider/destination_azureblobstorage_resource.go
@@ -78,15 +78,6 @@ func (r *DestinationAzureBlobStorageResource) Schema(ctx context.Context, req re
Optional: true,
Description: `The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-blob-storage",
- ),
- },
- Description: `must be one of ["azure-blob-storage"]`,
- },
"format": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
@@ -94,7 +85,7 @@ func (r *DestinationAzureBlobStorageResource) Schema(ctx context.Context, req re
Optional: true,
Attributes: map[string]schema.Attribute{
"flattening": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"No flattening",
@@ -104,38 +95,19 @@ func (r *DestinationAzureBlobStorageResource) Schema(ctx context.Context, req re
MarkdownDescription: `must be one of ["No flattening", "Root level flattening"]` + "\n" +
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CSV",
- ),
- },
- Description: `must be one of ["CSV"]`,
- },
},
Description: `Output data format`,
},
"destination_azure_blob_storage_output_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Output data format`,
},
"destination_azure_blob_storage_update_output_format_csv_comma_separated_values": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"flattening": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"No flattening",
@@ -145,31 +117,12 @@ func (r *DestinationAzureBlobStorageResource) Schema(ctx context.Context, req re
MarkdownDescription: `must be one of ["No flattening", "Root level flattening"]` + "\n" +
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CSV",
- ),
- },
- Description: `must be one of ["CSV"]`,
- },
},
Description: `Output data format`,
},
"destination_azure_blob_storage_update_output_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Output data format`,
},
},
@@ -246,7 +199,7 @@ func (r *DestinationAzureBlobStorageResource) Create(ctx context.Context, req re
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationAzureBlobStorage(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_azureblobstorage_resource_sdk.go b/internal/provider/destination_azureblobstorage_resource_sdk.go
old mode 100755
new mode 100644
index eca6bb3a4..858cfbedf
--- a/internal/provider/destination_azureblobstorage_resource_sdk.go
+++ b/internal/provider/destination_azureblobstorage_resource_sdk.go
@@ -34,15 +34,17 @@ func (r *DestinationAzureBlobStorageResourceModel) ToCreateSDKType() *shared.Des
} else {
azureBlobStorageSpillSize = nil
}
- destinationType := shared.DestinationAzureBlobStorageAzureBlobStorage(r.Configuration.DestinationType.ValueString())
var format shared.DestinationAzureBlobStorageOutputFormat
var destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues *shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues
if r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues != nil {
- flattening := shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening(r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
- formatType := shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ flattening := new(shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening)
+ if !r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues.Flattening.IsUnknown() && !r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues.Flattening.IsNull() {
+ *flattening = shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening(r.Configuration.Format.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
+ } else {
+ flattening = nil
+ }
destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues = &shared.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues{
Flattening: flattening,
- FormatType: formatType,
}
}
if destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues != nil {
@@ -52,10 +54,7 @@ func (r *DestinationAzureBlobStorageResourceModel) ToCreateSDKType() *shared.Des
}
var destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON *shared.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON
if r.Configuration.Format.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- formatType1 := shared.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
- destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON{
- FormatType: formatType1,
- }
+ destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON{}
}
if destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON != nil {
format = shared.DestinationAzureBlobStorageOutputFormat{
@@ -69,7 +68,6 @@ func (r *DestinationAzureBlobStorageResourceModel) ToCreateSDKType() *shared.Des
AzureBlobStorageEndpointDomainName: azureBlobStorageEndpointDomainName,
AzureBlobStorageOutputBufferSize: azureBlobStorageOutputBufferSize,
AzureBlobStorageSpillSize: azureBlobStorageSpillSize,
- DestinationType: destinationType,
Format: format,
}
name := r.Name.ValueString()
@@ -117,11 +115,14 @@ func (r *DestinationAzureBlobStorageResourceModel) ToUpdateSDKType() *shared.Des
var format shared.DestinationAzureBlobStorageUpdateOutputFormat
var destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues *shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues
if r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues != nil {
- flattening := shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening(r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
- formatType := shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ flattening := new(shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening)
+ if !r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues.Flattening.IsUnknown() && !r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues.Flattening.IsNull() {
+ *flattening = shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening(r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
+ } else {
+ flattening = nil
+ }
destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues = &shared.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues{
Flattening: flattening,
- FormatType: formatType,
}
}
if destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues != nil {
@@ -131,10 +132,7 @@ func (r *DestinationAzureBlobStorageResourceModel) ToUpdateSDKType() *shared.Des
}
var destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON *shared.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON
if r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- formatType1 := shared.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
- destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON{
- FormatType: formatType1,
- }
+ destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON{}
}
if destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
format = shared.DestinationAzureBlobStorageUpdateOutputFormat{
diff --git a/internal/provider/destination_bigquery_data_source.go b/internal/provider/destination_bigquery_data_source.go
old mode 100755
new mode 100644
index 3a009203a..c6825631b
--- a/internal/provider/destination_bigquery_data_source.go
+++ b/internal/provider/destination_bigquery_data_source.go
@@ -113,15 +113,6 @@ func (r *DestinationBigqueryDataSource) Schema(ctx context.Context, req datasour
MarkdownDescription: `must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]` + "\n" +
`The location of the dataset. Warning: Changes made after creation will not be applied. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery",
- ),
- },
- Description: `must be one of ["bigquery"]`,
- },
"loading_method": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -134,15 +125,6 @@ func (r *DestinationBigqueryDataSource) Schema(ctx context.Context, req datasour
"destination_bigquery_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Computed: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -183,31 +165,12 @@ func (r *DestinationBigqueryDataSource) Schema(ctx context.Context, req datasour
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_update_loading_method_gcs_staging": schema.SingleNestedAttribute{
@@ -219,15 +182,6 @@ func (r *DestinationBigqueryDataSource) Schema(ctx context.Context, req datasour
"destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Computed: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -268,31 +222,12 @@ func (r *DestinationBigqueryDataSource) Schema(ctx context.Context, req datasour
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_update_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
},
diff --git a/internal/provider/destination_bigquery_data_source_sdk.go b/internal/provider/destination_bigquery_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_bigquery_resource.go b/internal/provider/destination_bigquery_resource.go
old mode 100755
new mode 100644
index dac4e5752..2e3960e82
--- a/internal/provider/destination_bigquery_resource.go
+++ b/internal/provider/destination_bigquery_resource.go
@@ -115,15 +115,6 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S
MarkdownDescription: `must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]` + "\n" +
`The location of the dataset. Warning: Changes made after creation will not be applied. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery",
- ),
- },
- Description: `must be one of ["bigquery"]`,
- },
"loading_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
@@ -136,15 +127,6 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S
"destination_bigquery_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Required: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -185,31 +167,12 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_update_loading_method_gcs_staging": schema.SingleNestedAttribute{
@@ -221,15 +184,6 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S
"destination_bigquery_update_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Required: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -270,31 +224,12 @@ func (r *DestinationBigqueryResource) Schema(ctx context.Context, req resource.S
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_update_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
},
@@ -390,7 +325,7 @@ func (r *DestinationBigqueryResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationBigquery(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_bigquery_resource_sdk.go b/internal/provider/destination_bigquery_resource_sdk.go
old mode 100755
new mode 100644
index 94e19ecd3..a514ccc46
--- a/internal/provider/destination_bigquery_resource_sdk.go
+++ b/internal/provider/destination_bigquery_resource_sdk.go
@@ -22,15 +22,11 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination
}
datasetID := r.Configuration.DatasetID.ValueString()
datasetLocation := shared.DestinationBigqueryDatasetLocation(r.Configuration.DatasetLocation.ValueString())
- destinationType := shared.DestinationBigqueryBigquery(r.Configuration.DestinationType.ValueString())
var loadingMethod *shared.DestinationBigqueryLoadingMethod
if r.Configuration.LoadingMethod != nil {
var destinationBigqueryLoadingMethodStandardInserts *shared.DestinationBigqueryLoadingMethodStandardInserts
if r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodStandardInserts != nil {
- method := shared.DestinationBigqueryLoadingMethodStandardInsertsMethod(r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodStandardInserts.Method.ValueString())
- destinationBigqueryLoadingMethodStandardInserts = &shared.DestinationBigqueryLoadingMethodStandardInserts{
- Method: method,
- }
+ destinationBigqueryLoadingMethodStandardInserts = &shared.DestinationBigqueryLoadingMethodStandardInserts{}
}
if destinationBigqueryLoadingMethodStandardInserts != nil {
loadingMethod = &shared.DestinationBigqueryLoadingMethod{
@@ -42,11 +38,9 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination
var credential shared.DestinationBigqueryLoadingMethodGCSStagingCredential
var destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey *shared.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey
if r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodGCSStaging.Credential.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey != nil {
- credentialType := shared.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialType(r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodGCSStaging.Credential.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey.CredentialType.ValueString())
hmacKeyAccessID := r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodGCSStaging.Credential.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodGCSStaging.Credential.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey.HmacKeySecret.ValueString()
destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey = &shared.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey{
- CredentialType: credentialType,
HmacKeyAccessID: hmacKeyAccessID,
HmacKeySecret: hmacKeySecret,
}
@@ -70,14 +64,12 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination
} else {
keepFilesInGcsBucket = nil
}
- method1 := shared.DestinationBigqueryLoadingMethodGCSStagingMethod(r.Configuration.LoadingMethod.DestinationBigqueryLoadingMethodGCSStaging.Method.ValueString())
destinationBigqueryLoadingMethodGCSStaging = &shared.DestinationBigqueryLoadingMethodGCSStaging{
Credential: credential,
FileBufferCount: fileBufferCount,
GcsBucketName: gcsBucketName,
GcsBucketPath: gcsBucketPath,
KeepFilesInGcsBucket: keepFilesInGcsBucket,
- Method: method1,
}
}
if destinationBigqueryLoadingMethodGCSStaging != nil {
@@ -104,7 +96,6 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination
CredentialsJSON: credentialsJSON,
DatasetID: datasetID,
DatasetLocation: datasetLocation,
- DestinationType: destinationType,
LoadingMethod: loadingMethod,
ProjectID: projectID,
RawDataDataset: rawDataDataset,
@@ -144,10 +135,7 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.LoadingMethod != nil {
var destinationBigqueryUpdateLoadingMethodStandardInserts *shared.DestinationBigqueryUpdateLoadingMethodStandardInserts
if r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodStandardInserts != nil {
- method := shared.DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod(r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodStandardInserts.Method.ValueString())
- destinationBigqueryUpdateLoadingMethodStandardInserts = &shared.DestinationBigqueryUpdateLoadingMethodStandardInserts{
- Method: method,
- }
+ destinationBigqueryUpdateLoadingMethodStandardInserts = &shared.DestinationBigqueryUpdateLoadingMethodStandardInserts{}
}
if destinationBigqueryUpdateLoadingMethodStandardInserts != nil {
loadingMethod = &shared.DestinationBigqueryUpdateLoadingMethod{
@@ -159,11 +147,9 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination
var credential shared.DestinationBigqueryUpdateLoadingMethodGCSStagingCredential
var destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey *shared.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey
if r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey != nil {
- credentialType := shared.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType(r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey.CredentialType.ValueString())
hmacKeyAccessID := r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey.HmacKeySecret.ValueString()
destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey = &shared.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey{
- CredentialType: credentialType,
HmacKeyAccessID: hmacKeyAccessID,
HmacKeySecret: hmacKeySecret,
}
@@ -187,14 +173,12 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination
} else {
keepFilesInGcsBucket = nil
}
- method1 := shared.DestinationBigqueryUpdateLoadingMethodGCSStagingMethod(r.Configuration.LoadingMethod.DestinationBigqueryUpdateLoadingMethodGCSStaging.Method.ValueString())
destinationBigqueryUpdateLoadingMethodGCSStaging = &shared.DestinationBigqueryUpdateLoadingMethodGCSStaging{
Credential: credential,
FileBufferCount: fileBufferCount,
GcsBucketName: gcsBucketName,
GcsBucketPath: gcsBucketPath,
KeepFilesInGcsBucket: keepFilesInGcsBucket,
- Method: method1,
}
}
if destinationBigqueryUpdateLoadingMethodGCSStaging != nil {
diff --git a/internal/provider/destination_bigquerydenormalized_data_source.go b/internal/provider/destination_bigquerydenormalized_data_source.go
old mode 100755
new mode 100644
index bb544308b..f861e60a3
--- a/internal/provider/destination_bigquerydenormalized_data_source.go
+++ b/internal/provider/destination_bigquerydenormalized_data_source.go
@@ -113,15 +113,6 @@ func (r *DestinationBigqueryDenormalizedDataSource) Schema(ctx context.Context,
MarkdownDescription: `must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]` + "\n" +
`The location of the dataset. Warning: Changes made after creation will not be applied. The default "US" value is used if not set explicitly. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery-denormalized",
- ),
- },
- Description: `must be one of ["bigquery-denormalized"]`,
- },
"loading_method": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -134,15 +125,6 @@ func (r *DestinationBigqueryDenormalizedDataSource) Schema(ctx context.Context,
"destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Computed: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -183,31 +165,12 @@ func (r *DestinationBigqueryDenormalizedDataSource) Schema(ctx context.Context,
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_update_loading_method_gcs_staging": schema.SingleNestedAttribute{
@@ -219,15 +182,6 @@ func (r *DestinationBigqueryDenormalizedDataSource) Schema(ctx context.Context,
"destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Computed: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -268,31 +222,12 @@ func (r *DestinationBigqueryDenormalizedDataSource) Schema(ctx context.Context,
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_update_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
},
diff --git a/internal/provider/destination_bigquerydenormalized_data_source_sdk.go b/internal/provider/destination_bigquerydenormalized_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_bigquerydenormalized_resource.go b/internal/provider/destination_bigquerydenormalized_resource.go
old mode 100755
new mode 100644
index 728b107e2..1f5a18bbb
--- a/internal/provider/destination_bigquerydenormalized_resource.go
+++ b/internal/provider/destination_bigquerydenormalized_resource.go
@@ -115,15 +115,6 @@ func (r *DestinationBigqueryDenormalizedResource) Schema(ctx context.Context, re
MarkdownDescription: `must be one of ["US", "EU", "asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-south2", "asia-southeast1", "asia-southeast2", "australia-southeast1", "australia-southeast2", "europe-central1", "europe-central2", "europe-north1", "europe-southwest1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "europe-west7", "europe-west8", "europe-west9", "me-west1", "northamerica-northeast1", "northamerica-northeast2", "southamerica-east1", "southamerica-west1", "us-central1", "us-east1", "us-east2", "us-east3", "us-east4", "us-east5", "us-west1", "us-west2", "us-west3", "us-west4"]` + "\n" +
`The location of the dataset. Warning: Changes made after creation will not be applied. The default "US" value is used if not set explicitly. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery-denormalized",
- ),
- },
- Description: `must be one of ["bigquery-denormalized"]`,
- },
"loading_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
@@ -136,15 +127,6 @@ func (r *DestinationBigqueryDenormalizedResource) Schema(ctx context.Context, re
"destination_bigquery_denormalized_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Required: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -185,31 +167,12 @@ func (r *DestinationBigqueryDenormalizedResource) Schema(ctx context.Context, re
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_update_loading_method_gcs_staging": schema.SingleNestedAttribute{
@@ -221,15 +184,6 @@ func (r *DestinationBigqueryDenormalizedResource) Schema(ctx context.Context, re
"destination_bigquery_denormalized_update_loading_method_gcs_staging_credential_hmac_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "credential_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HMAC_KEY",
- ),
- },
- Description: `must be one of ["HMAC_KEY"]`,
- },
"hmac_key_access_id": schema.StringAttribute{
Required: true,
Description: `HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.`,
@@ -270,31 +224,12 @@ func (r *DestinationBigqueryDenormalizedResource) Schema(ctx context.Context, re
MarkdownDescription: `must be one of ["Delete all tmp files from GCS", "Keep all tmp files in GCS"]` + "\n" +
`This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS Staging",
- ),
- },
- Description: `must be one of ["GCS Staging"]`,
- },
},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
"destination_bigquery_denormalized_update_loading_method_standard_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.`,
},
},
@@ -375,7 +310,7 @@ func (r *DestinationBigqueryDenormalizedResource) Create(ctx context.Context, re
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationBigqueryDenormalized(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_bigquerydenormalized_resource_sdk.go b/internal/provider/destination_bigquerydenormalized_resource_sdk.go
old mode 100755
new mode 100644
index 2c6a2b9b6..68014524a
--- a/internal/provider/destination_bigquerydenormalized_resource_sdk.go
+++ b/internal/provider/destination_bigquerydenormalized_resource_sdk.go
@@ -27,15 +27,11 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared
} else {
datasetLocation = nil
}
- destinationType := shared.DestinationBigqueryDenormalizedBigqueryDenormalized(r.Configuration.DestinationType.ValueString())
var loadingMethod *shared.DestinationBigqueryDenormalizedLoadingMethod
if r.Configuration.LoadingMethod != nil {
var destinationBigqueryDenormalizedLoadingMethodStandardInserts *shared.DestinationBigqueryDenormalizedLoadingMethodStandardInserts
if r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodStandardInserts != nil {
- method := shared.DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodStandardInserts.Method.ValueString())
- destinationBigqueryDenormalizedLoadingMethodStandardInserts = &shared.DestinationBigqueryDenormalizedLoadingMethodStandardInserts{
- Method: method,
- }
+ destinationBigqueryDenormalizedLoadingMethodStandardInserts = &shared.DestinationBigqueryDenormalizedLoadingMethodStandardInserts{}
}
if destinationBigqueryDenormalizedLoadingMethodStandardInserts != nil {
loadingMethod = &shared.DestinationBigqueryDenormalizedLoadingMethod{
@@ -47,11 +43,9 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared
var credential shared.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential
var destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey *shared.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey
if r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey != nil {
- credentialType := shared.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKeyCredentialType(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey.CredentialType.ValueString())
hmacKeyAccessID := r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey.HmacKeySecret.ValueString()
destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey = &shared.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey{
- CredentialType: credentialType,
HmacKeyAccessID: hmacKeyAccessID,
HmacKeySecret: hmacKeySecret,
}
@@ -75,14 +69,12 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared
} else {
keepFilesInGcsBucket = nil
}
- method1 := shared.DestinationBigqueryDenormalizedLoadingMethodGCSStagingMethod(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedLoadingMethodGCSStaging.Method.ValueString())
destinationBigqueryDenormalizedLoadingMethodGCSStaging = &shared.DestinationBigqueryDenormalizedLoadingMethodGCSStaging{
Credential: credential,
FileBufferCount: fileBufferCount,
GcsBucketName: gcsBucketName,
GcsBucketPath: gcsBucketPath,
KeepFilesInGcsBucket: keepFilesInGcsBucket,
- Method: method1,
}
}
if destinationBigqueryDenormalizedLoadingMethodGCSStaging != nil {
@@ -97,7 +89,6 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared
CredentialsJSON: credentialsJSON,
DatasetID: datasetID,
DatasetLocation: datasetLocation,
- DestinationType: destinationType,
LoadingMethod: loadingMethod,
ProjectID: projectID,
}
@@ -140,10 +131,7 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToUpdateSDKType() *shared
if r.Configuration.LoadingMethod != nil {
var destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts *shared.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts
if r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts != nil {
- method := shared.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts.Method.ValueString())
- destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts = &shared.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts{
- Method: method,
- }
+ destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts = &shared.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts{}
}
if destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts != nil {
loadingMethod = &shared.DestinationBigqueryDenormalizedUpdateLoadingMethod{
@@ -155,11 +143,9 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToUpdateSDKType() *shared
var credential shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential
var destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey *shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey
if r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey != nil {
- credentialType := shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey.CredentialType.ValueString())
hmacKeyAccessID := r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging.Credential.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey.HmacKeySecret.ValueString()
destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey = &shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey{
- CredentialType: credentialType,
HmacKeyAccessID: hmacKeyAccessID,
HmacKeySecret: hmacKeySecret,
}
@@ -183,14 +169,12 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToUpdateSDKType() *shared
} else {
keepFilesInGcsBucket = nil
}
- method1 := shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingMethod(r.Configuration.LoadingMethod.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging.Method.ValueString())
destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging = &shared.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging{
Credential: credential,
FileBufferCount: fileBufferCount,
GcsBucketName: gcsBucketName,
GcsBucketPath: gcsBucketPath,
KeepFilesInGcsBucket: keepFilesInGcsBucket,
- Method: method1,
}
}
if destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging != nil {
diff --git a/internal/provider/destination_clickhouse_data_source.go b/internal/provider/destination_clickhouse_data_source.go
old mode 100755
new mode 100644
index 721a72aef..16e65682a
--- a/internal/provider/destination_clickhouse_data_source.go
+++ b/internal/provider/destination_clickhouse_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -56,15 +55,6 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickhouse",
- ),
- },
- Description: `must be one of ["clickhouse"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the database.`,
@@ -85,19 +75,8 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_clickhouse_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -107,16 +86,6 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -143,16 +112,6 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -165,19 +124,8 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -187,16 +135,6 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -223,16 +161,6 @@ func (r *DestinationClickhouseDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_clickhouse_data_source_sdk.go b/internal/provider/destination_clickhouse_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_clickhouse_resource.go b/internal/provider/destination_clickhouse_resource.go
old mode 100755
new mode 100644
index 1a1ac8681..a56b33baa
--- a/internal/provider/destination_clickhouse_resource.go
+++ b/internal/provider/destination_clickhouse_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,15 +57,6 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickhouse",
- ),
- },
- Description: `must be one of ["clickhouse"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the database.`,
@@ -80,26 +70,15 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `HTTP port of the database.`,
},
"tunnel_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_clickhouse_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -109,18 +88,8 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -145,18 +114,8 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -167,19 +126,8 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_clickhouse_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -189,18 +137,8 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -225,18 +163,8 @@ func (r *DestinationClickhouseResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -324,7 +252,7 @@ func (r *DestinationClickhouseResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationClickhouse(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_clickhouse_resource_sdk.go b/internal/provider/destination_clickhouse_resource_sdk.go
old mode 100755
new mode 100644
index 2a45212af..ea2f2f6f5
--- a/internal/provider/destination_clickhouse_resource_sdk.go
+++ b/internal/provider/destination_clickhouse_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.DestinationClickhouseCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationClickhouseClickhouse(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -23,15 +22,17 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.DestinationClickhouseSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationClickhouseSSHTunnelMethodNoTunnel *shared.DestinationClickhouseSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationClickhouseSSHTunnelMethodNoTunnel = &shared.DestinationClickhouseSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationClickhouseSSHTunnelMethodNoTunnel = &shared.DestinationClickhouseSSHTunnelMethodNoTunnel{}
}
if destinationClickhouseSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationClickhouseSSHTunnelMethod{
@@ -42,15 +43,18 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati
if r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationClickhouseSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -61,13 +65,16 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati
var destinationClickhouseSSHTunnelMethodPasswordAuthentication *shared.DestinationClickhouseSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationClickhouseSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationClickhouseSSHTunnelMethodPasswordAuthentication = &shared.DestinationClickhouseSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -81,14 +88,13 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationClickhouse{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -120,15 +126,17 @@ func (r *DestinationClickhouseResourceModel) ToUpdateSDKType() *shared.Destinati
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.DestinationClickhouseUpdateSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationClickhouseUpdateSSHTunnelMethodNoTunnel *shared.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationClickhouseUpdateSSHTunnelMethodNoTunnel = &shared.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationClickhouseUpdateSSHTunnelMethodNoTunnel = &shared.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel{}
}
if destinationClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationClickhouseUpdateSSHTunnelMethod{
@@ -139,15 +147,18 @@ func (r *DestinationClickhouseResourceModel) ToUpdateSDKType() *shared.Destinati
if r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -158,13 +169,16 @@ func (r *DestinationClickhouseResourceModel) ToUpdateSDKType() *shared.Destinati
var destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_convex_data_source.go b/internal/provider/destination_convex_data_source.go
old mode 100755
new mode 100644
index 9f7ce6936..992f0a991
--- a/internal/provider/destination_convex_data_source.go
+++ b/internal/provider/destination_convex_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *DestinationConvexDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `URL of the Convex deployment that is the destination`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "convex",
- ),
- },
- Description: `must be one of ["convex"]`,
- },
},
},
"destination_id": schema.StringAttribute{
diff --git a/internal/provider/destination_convex_data_source_sdk.go b/internal/provider/destination_convex_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_convex_resource.go b/internal/provider/destination_convex_resource.go
old mode 100755
new mode 100644
index 608007a8b..9dea9e45c
--- a/internal/provider/destination_convex_resource.go
+++ b/internal/provider/destination_convex_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *DestinationConvexResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `URL of the Convex deployment that is the destination`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "convex",
- ),
- },
- Description: `must be one of ["convex"]`,
- },
},
},
"destination_id": schema.StringAttribute{
@@ -138,7 +127,7 @@ func (r *DestinationConvexResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationConvex(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_convex_resource_sdk.go b/internal/provider/destination_convex_resource_sdk.go
old mode 100755
new mode 100644
index aa9848ce7..e3aecf78f
--- a/internal/provider/destination_convex_resource_sdk.go
+++ b/internal/provider/destination_convex_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *DestinationConvexResourceModel) ToCreateSDKType() *shared.DestinationConvexCreateRequest {
accessKey := r.Configuration.AccessKey.ValueString()
deploymentURL := r.Configuration.DeploymentURL.ValueString()
- destinationType := shared.DestinationConvexConvex(r.Configuration.DestinationType.ValueString())
configuration := shared.DestinationConvex{
- AccessKey: accessKey,
- DeploymentURL: deploymentURL,
- DestinationType: destinationType,
+ AccessKey: accessKey,
+ DeploymentURL: deploymentURL,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/destination_cumulio_data_source.go b/internal/provider/destination_cumulio_data_source.go
old mode 100755
new mode 100644
index 7ac97a472..7be080c1d
--- a/internal/provider/destination_cumulio_data_source.go
+++ b/internal/provider/destination_cumulio_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -63,15 +61,6 @@ func (r *DestinationCumulioDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cumulio",
- ),
- },
- Description: `must be one of ["cumulio"]`,
- },
},
},
"destination_id": schema.StringAttribute{
diff --git a/internal/provider/destination_cumulio_data_source_sdk.go b/internal/provider/destination_cumulio_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_cumulio_resource.go b/internal/provider/destination_cumulio_resource.go
old mode 100755
new mode 100644
index a805aa2ca..45ed79387
--- a/internal/provider/destination_cumulio_resource.go
+++ b/internal/provider/destination_cumulio_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,7 +52,7 @@ func (r *DestinationCumulioResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Attributes: map[string]schema.Attribute{
"api_host": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.`,
},
"api_key": schema.StringAttribute{
@@ -65,15 +63,6 @@ func (r *DestinationCumulioResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cumulio",
- ),
- },
- Description: `must be one of ["cumulio"]`,
- },
},
},
"destination_id": schema.StringAttribute{
@@ -142,7 +131,7 @@ func (r *DestinationCumulioResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationCumulio(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_cumulio_resource_sdk.go b/internal/provider/destination_cumulio_resource_sdk.go
old mode 100755
new mode 100644
index 9edcbda1d..e851d3674
--- a/internal/provider/destination_cumulio_resource_sdk.go
+++ b/internal/provider/destination_cumulio_resource_sdk.go
@@ -8,15 +8,18 @@ import (
)
func (r *DestinationCumulioResourceModel) ToCreateSDKType() *shared.DestinationCumulioCreateRequest {
- apiHost := r.Configuration.APIHost.ValueString()
+ apiHost := new(string)
+ if !r.Configuration.APIHost.IsUnknown() && !r.Configuration.APIHost.IsNull() {
+ *apiHost = r.Configuration.APIHost.ValueString()
+ } else {
+ apiHost = nil
+ }
apiKey := r.Configuration.APIKey.ValueString()
apiToken := r.Configuration.APIToken.ValueString()
- destinationType := shared.DestinationCumulioCumulio(r.Configuration.DestinationType.ValueString())
configuration := shared.DestinationCumulio{
- APIHost: apiHost,
- APIKey: apiKey,
- APIToken: apiToken,
- DestinationType: destinationType,
+ APIHost: apiHost,
+ APIKey: apiKey,
+ APIToken: apiToken,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -34,7 +37,12 @@ func (r *DestinationCumulioResourceModel) ToGetSDKType() *shared.DestinationCumu
}
func (r *DestinationCumulioResourceModel) ToUpdateSDKType() *shared.DestinationCumulioPutRequest {
- apiHost := r.Configuration.APIHost.ValueString()
+ apiHost := new(string)
+ if !r.Configuration.APIHost.IsUnknown() && !r.Configuration.APIHost.IsNull() {
+ *apiHost = r.Configuration.APIHost.ValueString()
+ } else {
+ apiHost = nil
+ }
apiKey := r.Configuration.APIKey.ValueString()
apiToken := r.Configuration.APIToken.ValueString()
configuration := shared.DestinationCumulioUpdate{
diff --git a/internal/provider/destination_databend_data_source.go b/internal/provider/destination_databend_data_source.go
old mode 100755
new mode 100644
index f6a262ab2..25b896e32
--- a/internal/provider/destination_databend_data_source.go
+++ b/internal/provider/destination_databend_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -55,15 +53,6 @@ func (r *DestinationDatabendDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "databend",
- ),
- },
- Description: `must be one of ["databend"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the database.`,
diff --git a/internal/provider/destination_databend_data_source_sdk.go b/internal/provider/destination_databend_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_databend_resource.go b/internal/provider/destination_databend_resource.go
old mode 100755
new mode 100644
index a8d5a2243..f7805770a
--- a/internal/provider/destination_databend_resource.go
+++ b/internal/provider/destination_databend_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -57,15 +55,6 @@ func (r *DestinationDatabendResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "databend",
- ),
- },
- Description: `must be one of ["databend"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the database.`,
@@ -154,7 +143,7 @@ func (r *DestinationDatabendResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationDatabend(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_databend_resource_sdk.go b/internal/provider/destination_databend_resource_sdk.go
old mode 100755
new mode 100644
index 35651e919..4e60b9c25
--- a/internal/provider/destination_databend_resource_sdk.go
+++ b/internal/provider/destination_databend_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationDatabendResourceModel) ToCreateSDKType() *shared.DestinationDatabendCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationDatabendDatabend(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
password := new(string)
if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() {
@@ -31,13 +30,12 @@ func (r *DestinationDatabendResourceModel) ToCreateSDKType() *shared.Destination
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationDatabend{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- Password: password,
- Port: port,
- Table: table,
- Username: username,
+ Database: database,
+ Host: host,
+ Password: password,
+ Port: port,
+ Table: table,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/destination_databricks_data_source.go b/internal/provider/destination_databricks_data_source.go
old mode 100755
new mode 100644
index ad37dc060..d385041ac
--- a/internal/provider/destination_databricks_data_source.go
+++ b/internal/provider/destination_databricks_data_source.go
@@ -60,32 +60,13 @@ func (r *DestinationDatabricksDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_databricks_data_source_recommended_managed_tables": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MANAGED_TABLES_STORAGE",
- ),
- },
- Description: `must be one of ["MANAGED_TABLES_STORAGE"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_data_source_amazon_s3": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3_STORAGE",
- ),
- },
- Description: `must be one of ["S3_STORAGE"]`,
- },
"file_name_pattern": schema.StringAttribute{
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -163,45 +144,17 @@ func (r *DestinationDatabricksDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Shared access signature (SAS) token to grant limited access to objects in your storage account.`,
},
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AZURE_BLOB_STORAGE",
- ),
- },
- Description: `must be one of ["AZURE_BLOB_STORAGE"]`,
- },
},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_update_data_source_recommended_managed_tables": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MANAGED_TABLES_STORAGE",
- ),
- },
- Description: `must be one of ["MANAGED_TABLES_STORAGE"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_update_data_source_amazon_s3": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3_STORAGE",
- ),
- },
- Description: `must be one of ["S3_STORAGE"]`,
- },
"file_name_pattern": schema.StringAttribute{
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -279,15 +232,6 @@ func (r *DestinationDatabricksDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Shared access signature (SAS) token to grant limited access to objects in your storage account.`,
},
- "data_source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AZURE_BLOB_STORAGE",
- ),
- },
- Description: `must be one of ["AZURE_BLOB_STORAGE"]`,
- },
},
Description: `Storage on which the delta lake is built.`,
},
@@ -317,15 +261,6 @@ func (r *DestinationDatabricksDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Databricks Cluster Server Hostname.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "databricks",
- ),
- },
- Description: `must be one of ["databricks"]`,
- },
"enable_schema_evolution": schema.BoolAttribute{
Computed: true,
Description: `Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.`,
diff --git a/internal/provider/destination_databricks_data_source_sdk.go b/internal/provider/destination_databricks_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_databricks_resource.go b/internal/provider/destination_databricks_resource.go
old mode 100755
new mode 100644
index 9a1085c42..bb3a467d7
--- a/internal/provider/destination_databricks_resource.go
+++ b/internal/provider/destination_databricks_resource.go
@@ -55,39 +55,20 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Required: true,
Attributes: map[string]schema.Attribute{
"accept_terms": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector.`,
},
"data_source": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
"destination_databricks_data_source_recommended_managed_tables": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MANAGED_TABLES_STORAGE",
- ),
- },
- Description: `must be one of ["MANAGED_TABLES_STORAGE"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_data_source_amazon_s3": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3_STORAGE",
- ),
- },
- Description: `must be one of ["S3_STORAGE"]`,
- },
"file_name_pattern": schema.StringAttribute{
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -105,7 +86,7 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Description: `The directory under the S3 bucket where data will be written.`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -165,45 +146,17 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Shared access signature (SAS) token to grant limited access to objects in your storage account.`,
},
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AZURE_BLOB_STORAGE",
- ),
- },
- Description: `must be one of ["AZURE_BLOB_STORAGE"]`,
- },
},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_update_data_source_recommended_managed_tables": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MANAGED_TABLES_STORAGE",
- ),
- },
- Description: `must be one of ["MANAGED_TABLES_STORAGE"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Storage on which the delta lake is built.`,
},
"destination_databricks_update_data_source_amazon_s3": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3_STORAGE",
- ),
- },
- Description: `must be one of ["S3_STORAGE"]`,
- },
"file_name_pattern": schema.StringAttribute{
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -221,7 +174,7 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Description: `The directory under the S3 bucket where data will be written.`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -281,15 +234,6 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Shared access signature (SAS) token to grant limited access to objects in your storage account.`,
},
- "data_source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AZURE_BLOB_STORAGE",
- ),
- },
- Description: `must be one of ["AZURE_BLOB_STORAGE"]`,
- },
},
Description: `Storage on which the delta lake is built.`,
},
@@ -319,15 +263,6 @@ func (r *DestinationDatabricksResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Databricks Cluster Server Hostname.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "databricks",
- ),
- },
- Description: `must be one of ["databricks"]`,
- },
"enable_schema_evolution": schema.BoolAttribute{
Optional: true,
Description: `Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.`,
@@ -408,7 +343,7 @@ func (r *DestinationDatabricksResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationDatabricks(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_databricks_resource_sdk.go b/internal/provider/destination_databricks_resource_sdk.go
old mode 100755
new mode 100644
index a444df320..9319f1dad
--- a/internal/provider/destination_databricks_resource_sdk.go
+++ b/internal/provider/destination_databricks_resource_sdk.go
@@ -8,14 +8,16 @@ import (
)
func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.DestinationDatabricksCreateRequest {
- acceptTerms := r.Configuration.AcceptTerms.ValueBool()
+ acceptTerms := new(bool)
+ if !r.Configuration.AcceptTerms.IsUnknown() && !r.Configuration.AcceptTerms.IsNull() {
+ *acceptTerms = r.Configuration.AcceptTerms.ValueBool()
+ } else {
+ acceptTerms = nil
+ }
var dataSource shared.DestinationDatabricksDataSource
var destinationDatabricksDataSourceRecommendedManagedTables *shared.DestinationDatabricksDataSourceRecommendedManagedTables
if r.Configuration.DataSource.DestinationDatabricksDataSourceRecommendedManagedTables != nil {
- dataSourceType := shared.DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType(r.Configuration.DataSource.DestinationDatabricksDataSourceRecommendedManagedTables.DataSourceType.ValueString())
- destinationDatabricksDataSourceRecommendedManagedTables = &shared.DestinationDatabricksDataSourceRecommendedManagedTables{
- DataSourceType: dataSourceType,
- }
+ destinationDatabricksDataSourceRecommendedManagedTables = &shared.DestinationDatabricksDataSourceRecommendedManagedTables{}
}
if destinationDatabricksDataSourceRecommendedManagedTables != nil {
dataSource = shared.DestinationDatabricksDataSource{
@@ -24,7 +26,6 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati
}
var destinationDatabricksDataSourceAmazonS3 *shared.DestinationDatabricksDataSourceAmazonS3
if r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3 != nil {
- dataSourceType1 := shared.DestinationDatabricksDataSourceAmazonS3DataSourceType(r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.DataSourceType.ValueString())
fileNamePattern := new(string)
if !r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.FileNamePattern.IsUnknown() && !r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.FileNamePattern.IsNull() {
*fileNamePattern = r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.FileNamePattern.ValueString()
@@ -34,10 +35,14 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati
s3AccessKeyID := r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3AccessKeyID.ValueString()
s3BucketName := r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketName.ValueString()
s3BucketPath := r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationDatabricksDataSourceAmazonS3S3BucketRegion(r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationDatabricksDataSourceAmazonS3S3BucketRegion)
+ if !r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketRegion.IsUnknown() && !r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationDatabricksDataSourceAmazonS3S3BucketRegion(r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3SecretAccessKey := r.Configuration.DataSource.DestinationDatabricksDataSourceAmazonS3.S3SecretAccessKey.ValueString()
destinationDatabricksDataSourceAmazonS3 = &shared.DestinationDatabricksDataSourceAmazonS3{
- DataSourceType: dataSourceType1,
FileNamePattern: fileNamePattern,
S3AccessKeyID: s3AccessKeyID,
S3BucketName: s3BucketName,
@@ -62,13 +67,11 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati
azureBlobStorageEndpointDomainName = nil
}
azureBlobStorageSasToken := r.Configuration.DataSource.DestinationDatabricksDataSourceAzureBlobStorage.AzureBlobStorageSasToken.ValueString()
- dataSourceType2 := shared.DestinationDatabricksDataSourceAzureBlobStorageDataSourceType(r.Configuration.DataSource.DestinationDatabricksDataSourceAzureBlobStorage.DataSourceType.ValueString())
destinationDatabricksDataSourceAzureBlobStorage = &shared.DestinationDatabricksDataSourceAzureBlobStorage{
AzureBlobStorageAccountName: azureBlobStorageAccountName,
AzureBlobStorageContainerName: azureBlobStorageContainerName,
AzureBlobStorageEndpointDomainName: azureBlobStorageEndpointDomainName,
AzureBlobStorageSasToken: azureBlobStorageSasToken,
- DataSourceType: dataSourceType2,
}
}
if destinationDatabricksDataSourceAzureBlobStorage != nil {
@@ -91,7 +94,6 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati
databricksPort = nil
}
databricksServerHostname := r.Configuration.DatabricksServerHostname.ValueString()
- destinationType := shared.DestinationDatabricksDatabricks(r.Configuration.DestinationType.ValueString())
enableSchemaEvolution := new(bool)
if !r.Configuration.EnableSchemaEvolution.IsUnknown() && !r.Configuration.EnableSchemaEvolution.IsNull() {
*enableSchemaEvolution = r.Configuration.EnableSchemaEvolution.ValueBool()
@@ -118,7 +120,6 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati
DatabricksPersonalAccessToken: databricksPersonalAccessToken,
DatabricksPort: databricksPort,
DatabricksServerHostname: databricksServerHostname,
- DestinationType: destinationType,
EnableSchemaEvolution: enableSchemaEvolution,
PurgeStagingData: purgeStagingData,
Schema: schema,
@@ -139,14 +140,16 @@ func (r *DestinationDatabricksResourceModel) ToGetSDKType() *shared.DestinationD
}
func (r *DestinationDatabricksResourceModel) ToUpdateSDKType() *shared.DestinationDatabricksPutRequest {
- acceptTerms := r.Configuration.AcceptTerms.ValueBool()
+ acceptTerms := new(bool)
+ if !r.Configuration.AcceptTerms.IsUnknown() && !r.Configuration.AcceptTerms.IsNull() {
+ *acceptTerms = r.Configuration.AcceptTerms.ValueBool()
+ } else {
+ acceptTerms = nil
+ }
var dataSource shared.DestinationDatabricksUpdateDataSource
var destinationDatabricksUpdateDataSourceRecommendedManagedTables *shared.DestinationDatabricksUpdateDataSourceRecommendedManagedTables
if r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceRecommendedManagedTables != nil {
- dataSourceType := shared.DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceType(r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceRecommendedManagedTables.DataSourceType.ValueString())
- destinationDatabricksUpdateDataSourceRecommendedManagedTables = &shared.DestinationDatabricksUpdateDataSourceRecommendedManagedTables{
- DataSourceType: dataSourceType,
- }
+ destinationDatabricksUpdateDataSourceRecommendedManagedTables = &shared.DestinationDatabricksUpdateDataSourceRecommendedManagedTables{}
}
if destinationDatabricksUpdateDataSourceRecommendedManagedTables != nil {
dataSource = shared.DestinationDatabricksUpdateDataSource{
@@ -155,7 +158,6 @@ func (r *DestinationDatabricksResourceModel) ToUpdateSDKType() *shared.Destinati
}
var destinationDatabricksUpdateDataSourceAmazonS3 *shared.DestinationDatabricksUpdateDataSourceAmazonS3
if r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3 != nil {
- dataSourceType1 := shared.DestinationDatabricksUpdateDataSourceAmazonS3DataSourceType(r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.DataSourceType.ValueString())
fileNamePattern := new(string)
if !r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.FileNamePattern.IsUnknown() && !r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.FileNamePattern.IsNull() {
*fileNamePattern = r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.FileNamePattern.ValueString()
@@ -165,10 +167,14 @@ func (r *DestinationDatabricksResourceModel) ToUpdateSDKType() *shared.Destinati
s3AccessKeyID := r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3AccessKeyID.ValueString()
s3BucketName := r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketName.ValueString()
s3BucketPath := r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion(r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion)
+ if !r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketRegion.IsUnknown() && !r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion(r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3SecretAccessKey := r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAmazonS3.S3SecretAccessKey.ValueString()
destinationDatabricksUpdateDataSourceAmazonS3 = &shared.DestinationDatabricksUpdateDataSourceAmazonS3{
- DataSourceType: dataSourceType1,
FileNamePattern: fileNamePattern,
S3AccessKeyID: s3AccessKeyID,
S3BucketName: s3BucketName,
@@ -193,13 +199,11 @@ func (r *DestinationDatabricksResourceModel) ToUpdateSDKType() *shared.Destinati
azureBlobStorageEndpointDomainName = nil
}
azureBlobStorageSasToken := r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAzureBlobStorage.AzureBlobStorageSasToken.ValueString()
- dataSourceType2 := shared.DestinationDatabricksUpdateDataSourceAzureBlobStorageDataSourceType(r.Configuration.DataSource.DestinationDatabricksUpdateDataSourceAzureBlobStorage.DataSourceType.ValueString())
destinationDatabricksUpdateDataSourceAzureBlobStorage = &shared.DestinationDatabricksUpdateDataSourceAzureBlobStorage{
AzureBlobStorageAccountName: azureBlobStorageAccountName,
AzureBlobStorageContainerName: azureBlobStorageContainerName,
AzureBlobStorageEndpointDomainName: azureBlobStorageEndpointDomainName,
AzureBlobStorageSasToken: azureBlobStorageSasToken,
- DataSourceType: dataSourceType2,
}
}
if destinationDatabricksUpdateDataSourceAzureBlobStorage != nil {
diff --git a/internal/provider/destination_devnull_data_source.go b/internal/provider/destination_devnull_data_source.go
old mode 100755
new mode 100644
index 55bf513ec..4e953d2b6
--- a/internal/provider/destination_devnull_data_source.go
+++ b/internal/provider/destination_devnull_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -52,46 +51,17 @@ func (r *DestinationDevNullDataSource) Schema(ctx context.Context, req datasourc
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dev-null",
- ),
- },
- Description: `must be one of ["dev-null"]`,
- },
"test_destination": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_dev_null_test_destination_silent": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "test_destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SILENT",
- ),
- },
- Description: `must be one of ["SILENT"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The type of destination to be used`,
},
"destination_dev_null_update_test_destination_silent": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "test_destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SILENT",
- ),
- },
- Description: `must be one of ["SILENT"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The type of destination to be used`,
},
},
diff --git a/internal/provider/destination_devnull_data_source_sdk.go b/internal/provider/destination_devnull_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_devnull_resource.go b/internal/provider/destination_devnull_resource.go
old mode 100755
new mode 100644
index cc3324717..b5c12d9bb
--- a/internal/provider/destination_devnull_resource.go
+++ b/internal/provider/destination_devnull_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -54,46 +53,17 @@ func (r *DestinationDevNullResource) Schema(ctx context.Context, req resource.Sc
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dev-null",
- ),
- },
- Description: `must be one of ["dev-null"]`,
- },
"test_destination": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
"destination_dev_null_test_destination_silent": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "test_destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SILENT",
- ),
- },
- Description: `must be one of ["SILENT"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The type of destination to be used`,
},
"destination_dev_null_update_test_destination_silent": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "test_destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SILENT",
- ),
- },
- Description: `must be one of ["SILENT"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The type of destination to be used`,
},
},
@@ -170,7 +140,7 @@ func (r *DestinationDevNullResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationDevNull(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_devnull_resource_sdk.go b/internal/provider/destination_devnull_resource_sdk.go
old mode 100755
new mode 100644
index f55739fc5..eb0583924
--- a/internal/provider/destination_devnull_resource_sdk.go
+++ b/internal/provider/destination_devnull_resource_sdk.go
@@ -8,14 +8,10 @@ import (
)
func (r *DestinationDevNullResourceModel) ToCreateSDKType() *shared.DestinationDevNullCreateRequest {
- destinationType := shared.DestinationDevNullDevNull(r.Configuration.DestinationType.ValueString())
var testDestination shared.DestinationDevNullTestDestination
var destinationDevNullTestDestinationSilent *shared.DestinationDevNullTestDestinationSilent
if r.Configuration.TestDestination.DestinationDevNullTestDestinationSilent != nil {
- testDestinationType := shared.DestinationDevNullTestDestinationSilentTestDestinationType(r.Configuration.TestDestination.DestinationDevNullTestDestinationSilent.TestDestinationType.ValueString())
- destinationDevNullTestDestinationSilent = &shared.DestinationDevNullTestDestinationSilent{
- TestDestinationType: testDestinationType,
- }
+ destinationDevNullTestDestinationSilent = &shared.DestinationDevNullTestDestinationSilent{}
}
if destinationDevNullTestDestinationSilent != nil {
testDestination = shared.DestinationDevNullTestDestination{
@@ -23,7 +19,6 @@ func (r *DestinationDevNullResourceModel) ToCreateSDKType() *shared.DestinationD
}
}
configuration := shared.DestinationDevNull{
- DestinationType: destinationType,
TestDestination: testDestination,
}
name := r.Name.ValueString()
@@ -45,10 +40,7 @@ func (r *DestinationDevNullResourceModel) ToUpdateSDKType() *shared.DestinationD
var testDestination shared.DestinationDevNullUpdateTestDestination
var destinationDevNullUpdateTestDestinationSilent *shared.DestinationDevNullUpdateTestDestinationSilent
if r.Configuration.TestDestination.DestinationDevNullUpdateTestDestinationSilent != nil {
- testDestinationType := shared.DestinationDevNullUpdateTestDestinationSilentTestDestinationType(r.Configuration.TestDestination.DestinationDevNullUpdateTestDestinationSilent.TestDestinationType.ValueString())
- destinationDevNullUpdateTestDestinationSilent = &shared.DestinationDevNullUpdateTestDestinationSilent{
- TestDestinationType: testDestinationType,
- }
+ destinationDevNullUpdateTestDestinationSilent = &shared.DestinationDevNullUpdateTestDestinationSilent{}
}
if destinationDevNullUpdateTestDestinationSilent != nil {
testDestination = shared.DestinationDevNullUpdateTestDestination{
diff --git a/internal/provider/destination_dynamodb_data_source.go b/internal/provider/destination_dynamodb_data_source.go
old mode 100755
new mode 100644
index 4f4049bd5..e7a952ede
--- a/internal/provider/destination_dynamodb_data_source.go
+++ b/internal/provider/destination_dynamodb_data_source.go
@@ -55,15 +55,6 @@ func (r *DestinationDynamodbDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dynamodb",
- ),
- },
- Description: `must be one of ["dynamodb"]`,
- },
"dynamodb_endpoint": schema.StringAttribute{
Computed: true,
Description: `This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).`,
diff --git a/internal/provider/destination_dynamodb_data_source_sdk.go b/internal/provider/destination_dynamodb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_dynamodb_resource.go b/internal/provider/destination_dynamodb_resource.go
old mode 100755
new mode 100644
index 0e5531102..7bd5b3295
--- a/internal/provider/destination_dynamodb_resource.go
+++ b/internal/provider/destination_dynamodb_resource.go
@@ -57,21 +57,12 @@ func (r *DestinationDynamodbResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dynamodb",
- ),
- },
- Description: `must be one of ["dynamodb"]`,
- },
"dynamodb_endpoint": schema.StringAttribute{
Optional: true,
Description: `This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).`,
},
"dynamodb_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -181,7 +172,7 @@ func (r *DestinationDynamodbResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationDynamodb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_dynamodb_resource_sdk.go b/internal/provider/destination_dynamodb_resource_sdk.go
old mode 100755
new mode 100644
index 3334b2070..a34e3d58e
--- a/internal/provider/destination_dynamodb_resource_sdk.go
+++ b/internal/provider/destination_dynamodb_resource_sdk.go
@@ -9,19 +9,22 @@ import (
func (r *DestinationDynamodbResourceModel) ToCreateSDKType() *shared.DestinationDynamodbCreateRequest {
accessKeyID := r.Configuration.AccessKeyID.ValueString()
- destinationType := shared.DestinationDynamodbDynamodb(r.Configuration.DestinationType.ValueString())
dynamodbEndpoint := new(string)
if !r.Configuration.DynamodbEndpoint.IsUnknown() && !r.Configuration.DynamodbEndpoint.IsNull() {
*dynamodbEndpoint = r.Configuration.DynamodbEndpoint.ValueString()
} else {
dynamodbEndpoint = nil
}
- dynamodbRegion := shared.DestinationDynamodbDynamoDBRegion(r.Configuration.DynamodbRegion.ValueString())
+ dynamodbRegion := new(shared.DestinationDynamodbDynamoDBRegion)
+ if !r.Configuration.DynamodbRegion.IsUnknown() && !r.Configuration.DynamodbRegion.IsNull() {
+ *dynamodbRegion = shared.DestinationDynamodbDynamoDBRegion(r.Configuration.DynamodbRegion.ValueString())
+ } else {
+ dynamodbRegion = nil
+ }
dynamodbTableNamePrefix := r.Configuration.DynamodbTableNamePrefix.ValueString()
secretAccessKey := r.Configuration.SecretAccessKey.ValueString()
configuration := shared.DestinationDynamodb{
AccessKeyID: accessKeyID,
- DestinationType: destinationType,
DynamodbEndpoint: dynamodbEndpoint,
DynamodbRegion: dynamodbRegion,
DynamodbTableNamePrefix: dynamodbTableNamePrefix,
@@ -50,7 +53,12 @@ func (r *DestinationDynamodbResourceModel) ToUpdateSDKType() *shared.Destination
} else {
dynamodbEndpoint = nil
}
- dynamodbRegion := shared.DestinationDynamodbUpdateDynamoDBRegion(r.Configuration.DynamodbRegion.ValueString())
+ dynamodbRegion := new(shared.DestinationDynamodbUpdateDynamoDBRegion)
+ if !r.Configuration.DynamodbRegion.IsUnknown() && !r.Configuration.DynamodbRegion.IsNull() {
+ *dynamodbRegion = shared.DestinationDynamodbUpdateDynamoDBRegion(r.Configuration.DynamodbRegion.ValueString())
+ } else {
+ dynamodbRegion = nil
+ }
dynamodbTableNamePrefix := r.Configuration.DynamodbTableNamePrefix.ValueString()
secretAccessKey := r.Configuration.SecretAccessKey.ValueString()
configuration := shared.DestinationDynamodbUpdate{
diff --git a/internal/provider/destination_elasticsearch_data_source.go b/internal/provider/destination_elasticsearch_data_source.go
old mode 100755
new mode 100644
index 2ef979c5f..62bd8d712
--- a/internal/provider/destination_elasticsearch_data_source.go
+++ b/internal/provider/destination_elasticsearch_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -66,30 +65,12 @@ func (r *DestinationElasticsearchDataSource) Schema(ctx context.Context, req dat
Computed: true,
Description: `The secret associated with the API Key ID.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secret",
- ),
- },
- Description: `must be one of ["secret"]`,
- },
},
Description: `Use a api key and secret combination to authenticate`,
},
"destination_elasticsearch_authentication_method_username_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "basic",
- ),
- },
- Description: `must be one of ["basic"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Basic auth password to access a secure Elasticsearch server`,
@@ -112,30 +93,12 @@ func (r *DestinationElasticsearchDataSource) Schema(ctx context.Context, req dat
Computed: true,
Description: `The secret associated with the API Key ID.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secret",
- ),
- },
- Description: `must be one of ["secret"]`,
- },
},
Description: `Use a api key and secret combination to authenticate`,
},
"destination_elasticsearch_update_authentication_method_username_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "basic",
- ),
- },
- Description: `must be one of ["basic"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Basic auth password to access a secure Elasticsearch server`,
@@ -157,15 +120,6 @@ func (r *DestinationElasticsearchDataSource) Schema(ctx context.Context, req dat
Computed: true,
Description: `CA certificate`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "elasticsearch",
- ),
- },
- Description: `must be one of ["elasticsearch"]`,
- },
"endpoint": schema.StringAttribute{
Computed: true,
Description: `The full url of the Elasticsearch server`,
diff --git a/internal/provider/destination_elasticsearch_data_source_sdk.go b/internal/provider/destination_elasticsearch_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_elasticsearch_resource.go b/internal/provider/destination_elasticsearch_resource.go
old mode 100755
new mode 100644
index bbaba299f..437e2c9b2
--- a/internal/provider/destination_elasticsearch_resource.go
+++ b/internal/provider/destination_elasticsearch_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -68,30 +67,12 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou
Required: true,
Description: `The secret associated with the API Key ID.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secret",
- ),
- },
- Description: `must be one of ["secret"]`,
- },
},
Description: `Use a api key and secret combination to authenticate`,
},
"destination_elasticsearch_authentication_method_username_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "basic",
- ),
- },
- Description: `must be one of ["basic"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Basic auth password to access a secure Elasticsearch server`,
@@ -114,30 +95,12 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou
Required: true,
Description: `The secret associated with the API Key ID.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secret",
- ),
- },
- Description: `must be one of ["secret"]`,
- },
},
Description: `Use a api key and secret combination to authenticate`,
},
"destination_elasticsearch_update_authentication_method_username_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "basic",
- ),
- },
- Description: `must be one of ["basic"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Basic auth password to access a secure Elasticsearch server`,
@@ -159,15 +122,6 @@ func (r *DestinationElasticsearchResource) Schema(ctx context.Context, req resou
Optional: true,
Description: `CA certificate`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "elasticsearch",
- ),
- },
- Description: `must be one of ["elasticsearch"]`,
- },
"endpoint": schema.StringAttribute{
Required: true,
Description: `The full url of the Elasticsearch server`,
@@ -244,7 +198,7 @@ func (r *DestinationElasticsearchResource) Create(ctx context.Context, req resou
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationElasticsearch(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_elasticsearch_resource_sdk.go b/internal/provider/destination_elasticsearch_resource_sdk.go
old mode 100755
new mode 100644
index 26e17daf2..3d2c944df
--- a/internal/provider/destination_elasticsearch_resource_sdk.go
+++ b/internal/provider/destination_elasticsearch_resource_sdk.go
@@ -14,11 +14,9 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin
if r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodAPIKeySecret != nil {
apiKeyID := r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodAPIKeySecret.APIKeyID.ValueString()
apiKeySecret := r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodAPIKeySecret.APIKeySecret.ValueString()
- method := shared.DestinationElasticsearchAuthenticationMethodAPIKeySecretMethod(r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodAPIKeySecret.Method.ValueString())
destinationElasticsearchAuthenticationMethodAPIKeySecret = &shared.DestinationElasticsearchAuthenticationMethodAPIKeySecret{
APIKeyID: apiKeyID,
APIKeySecret: apiKeySecret,
- Method: method,
}
}
if destinationElasticsearchAuthenticationMethodAPIKeySecret != nil {
@@ -28,11 +26,9 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin
}
var destinationElasticsearchAuthenticationMethodUsernamePassword *shared.DestinationElasticsearchAuthenticationMethodUsernamePassword
if r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodUsernamePassword != nil {
- method1 := shared.DestinationElasticsearchAuthenticationMethodUsernamePasswordMethod(r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodUsernamePassword.Method.ValueString())
password := r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodUsernamePassword.Password.ValueString()
username := r.Configuration.AuthenticationMethod.DestinationElasticsearchAuthenticationMethodUsernamePassword.Username.ValueString()
destinationElasticsearchAuthenticationMethodUsernamePassword = &shared.DestinationElasticsearchAuthenticationMethodUsernamePassword{
- Method: method1,
Password: password,
Username: username,
}
@@ -49,7 +45,6 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin
} else {
caCertificate = nil
}
- destinationType := shared.DestinationElasticsearchElasticsearch(r.Configuration.DestinationType.ValueString())
endpoint := r.Configuration.Endpoint.ValueString()
upsert := new(bool)
if !r.Configuration.Upsert.IsUnknown() && !r.Configuration.Upsert.IsNull() {
@@ -60,7 +55,6 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin
configuration := shared.DestinationElasticsearch{
AuthenticationMethod: authenticationMethod,
CaCertificate: caCertificate,
- DestinationType: destinationType,
Endpoint: endpoint,
Upsert: upsert,
}
@@ -86,11 +80,9 @@ func (r *DestinationElasticsearchResourceModel) ToUpdateSDKType() *shared.Destin
if r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret != nil {
apiKeyID := r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret.APIKeyID.ValueString()
apiKeySecret := r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret.APIKeySecret.ValueString()
- method := shared.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethod(r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret.Method.ValueString())
destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret = &shared.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret{
APIKeyID: apiKeyID,
APIKeySecret: apiKeySecret,
- Method: method,
}
}
if destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret != nil {
@@ -100,11 +92,9 @@ func (r *DestinationElasticsearchResourceModel) ToUpdateSDKType() *shared.Destin
}
var destinationElasticsearchUpdateAuthenticationMethodUsernamePassword *shared.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword
if r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword != nil {
- method1 := shared.DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMethod(r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword.Method.ValueString())
password := r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword.Password.ValueString()
username := r.Configuration.AuthenticationMethod.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword.Username.ValueString()
destinationElasticsearchUpdateAuthenticationMethodUsernamePassword = &shared.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword{
- Method: method1,
Password: password,
Username: username,
}
diff --git a/internal/provider/destination_firebolt_data_source.go b/internal/provider/destination_firebolt_data_source.go
old mode 100755
new mode 100644
index 9e2038fe4..f916f5e98
--- a/internal/provider/destination_firebolt_data_source.go
+++ b/internal/provider/destination_firebolt_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -60,15 +59,6 @@ func (r *DestinationFireboltDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The database to connect to.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firebolt",
- ),
- },
- Description: `must be one of ["firebolt"]`,
- },
"engine": schema.StringAttribute{
Computed: true,
Description: `Engine name or url to connect to.`,
@@ -91,15 +81,6 @@ func (r *DestinationFireboltDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Corresponding secret part of the AWS Key`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
"s3_bucket": schema.StringAttribute{
Computed: true,
Description: `The name of the S3 bucket.`,
@@ -112,18 +93,8 @@ func (r *DestinationFireboltDataSource) Schema(ctx context.Context, req datasour
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_loading_method_sql_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SQL",
- ),
- },
- Description: `must be one of ["SQL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_update_loading_method_external_table_via_s3": schema.SingleNestedAttribute{
@@ -137,15 +108,6 @@ func (r *DestinationFireboltDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Corresponding secret part of the AWS Key`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
"s3_bucket": schema.StringAttribute{
Computed: true,
Description: `The name of the S3 bucket.`,
@@ -158,18 +120,8 @@ func (r *DestinationFireboltDataSource) Schema(ctx context.Context, req datasour
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_update_loading_method_sql_inserts": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SQL",
- ),
- },
- Description: `must be one of ["SQL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
},
diff --git a/internal/provider/destination_firebolt_data_source_sdk.go b/internal/provider/destination_firebolt_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_firebolt_resource.go b/internal/provider/destination_firebolt_resource.go
old mode 100755
new mode 100644
index 0ab38e643..45a54de2d
--- a/internal/provider/destination_firebolt_resource.go
+++ b/internal/provider/destination_firebolt_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -62,15 +61,6 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `The database to connect to.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firebolt",
- ),
- },
- Description: `must be one of ["firebolt"]`,
- },
"engine": schema.StringAttribute{
Optional: true,
Description: `Engine name or url to connect to.`,
@@ -93,15 +83,6 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Corresponding secret part of the AWS Key`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
"s3_bucket": schema.StringAttribute{
Required: true,
Description: `The name of the S3 bucket.`,
@@ -114,18 +95,8 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_loading_method_sql_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SQL",
- ),
- },
- Description: `must be one of ["SQL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_update_loading_method_external_table_via_s3": schema.SingleNestedAttribute{
@@ -139,15 +110,6 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Corresponding secret part of the AWS Key`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
"s3_bucket": schema.StringAttribute{
Required: true,
Description: `The name of the S3 bucket.`,
@@ -160,18 +122,8 @@ func (r *DestinationFireboltResource) Schema(ctx context.Context, req resource.S
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
"destination_firebolt_update_loading_method_sql_inserts": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SQL",
- ),
- },
- Description: `must be one of ["SQL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Loading method used to select the way data will be uploaded to Firebolt`,
},
},
@@ -256,7 +208,7 @@ func (r *DestinationFireboltResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationFirebolt(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_firebolt_resource_sdk.go b/internal/provider/destination_firebolt_resource_sdk.go
old mode 100755
new mode 100644
index acb3d4ba9..f9d0e1049
--- a/internal/provider/destination_firebolt_resource_sdk.go
+++ b/internal/provider/destination_firebolt_resource_sdk.go
@@ -15,7 +15,6 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination
account = nil
}
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationFireboltFirebolt(r.Configuration.DestinationType.ValueString())
engine := new(string)
if !r.Configuration.Engine.IsUnknown() && !r.Configuration.Engine.IsNull() {
*engine = r.Configuration.Engine.ValueString()
@@ -32,10 +31,7 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.LoadingMethod != nil {
var destinationFireboltLoadingMethodSQLInserts *shared.DestinationFireboltLoadingMethodSQLInserts
if r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodSQLInserts != nil {
- method := shared.DestinationFireboltLoadingMethodSQLInsertsMethod(r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodSQLInserts.Method.ValueString())
- destinationFireboltLoadingMethodSQLInserts = &shared.DestinationFireboltLoadingMethodSQLInserts{
- Method: method,
- }
+ destinationFireboltLoadingMethodSQLInserts = &shared.DestinationFireboltLoadingMethodSQLInserts{}
}
if destinationFireboltLoadingMethodSQLInserts != nil {
loadingMethod = &shared.DestinationFireboltLoadingMethod{
@@ -46,13 +42,11 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3 != nil {
awsKeyID := r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3.AwsKeyID.ValueString()
awsKeySecret := r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3.AwsKeySecret.ValueString()
- method1 := shared.DestinationFireboltLoadingMethodExternalTableViaS3Method(r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3.Method.ValueString())
s3Bucket := r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3.S3Bucket.ValueString()
s3Region := r.Configuration.LoadingMethod.DestinationFireboltLoadingMethodExternalTableViaS3.S3Region.ValueString()
destinationFireboltLoadingMethodExternalTableViaS3 = &shared.DestinationFireboltLoadingMethodExternalTableViaS3{
AwsKeyID: awsKeyID,
AwsKeySecret: awsKeySecret,
- Method: method1,
S3Bucket: s3Bucket,
S3Region: s3Region,
}
@@ -66,14 +60,13 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination
password := r.Configuration.Password.ValueString()
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationFirebolt{
- Account: account,
- Database: database,
- DestinationType: destinationType,
- Engine: engine,
- Host: host,
- LoadingMethod: loadingMethod,
- Password: password,
- Username: username,
+ Account: account,
+ Database: database,
+ Engine: engine,
+ Host: host,
+ LoadingMethod: loadingMethod,
+ Password: password,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -114,10 +107,7 @@ func (r *DestinationFireboltResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.LoadingMethod != nil {
var destinationFireboltUpdateLoadingMethodSQLInserts *shared.DestinationFireboltUpdateLoadingMethodSQLInserts
if r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodSQLInserts != nil {
- method := shared.DestinationFireboltUpdateLoadingMethodSQLInsertsMethod(r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodSQLInserts.Method.ValueString())
- destinationFireboltUpdateLoadingMethodSQLInserts = &shared.DestinationFireboltUpdateLoadingMethodSQLInserts{
- Method: method,
- }
+ destinationFireboltUpdateLoadingMethodSQLInserts = &shared.DestinationFireboltUpdateLoadingMethodSQLInserts{}
}
if destinationFireboltUpdateLoadingMethodSQLInserts != nil {
loadingMethod = &shared.DestinationFireboltUpdateLoadingMethod{
@@ -128,13 +118,11 @@ func (r *DestinationFireboltResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3 != nil {
awsKeyID := r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3.AwsKeyID.ValueString()
awsKeySecret := r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3.AwsKeySecret.ValueString()
- method1 := shared.DestinationFireboltUpdateLoadingMethodExternalTableViaS3Method(r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3.Method.ValueString())
s3Bucket := r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3.S3Bucket.ValueString()
s3Region := r.Configuration.LoadingMethod.DestinationFireboltUpdateLoadingMethodExternalTableViaS3.S3Region.ValueString()
destinationFireboltUpdateLoadingMethodExternalTableViaS3 = &shared.DestinationFireboltUpdateLoadingMethodExternalTableViaS3{
AwsKeyID: awsKeyID,
AwsKeySecret: awsKeySecret,
- Method: method1,
S3Bucket: s3Bucket,
S3Region: s3Region,
}
diff --git a/internal/provider/destination_firestore_data_source.go b/internal/provider/destination_firestore_data_source.go
old mode 100755
new mode 100644
index f097c9b38..30cd0a6ac
--- a/internal/provider/destination_firestore_data_source.go
+++ b/internal/provider/destination_firestore_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -55,15 +53,6 @@ func (r *DestinationFirestoreDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firestore",
- ),
- },
- Description: `must be one of ["firestore"]`,
- },
"project_id": schema.StringAttribute{
Computed: true,
Description: `The GCP project ID for the project containing the target BigQuery dataset.`,
diff --git a/internal/provider/destination_firestore_data_source_sdk.go b/internal/provider/destination_firestore_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_firestore_resource.go b/internal/provider/destination_firestore_resource.go
old mode 100755
new mode 100644
index bcbc69c2a..fbd7a03e6
--- a/internal/provider/destination_firestore_resource.go
+++ b/internal/provider/destination_firestore_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -57,15 +55,6 @@ func (r *DestinationFirestoreResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firestore",
- ),
- },
- Description: `must be one of ["firestore"]`,
- },
"project_id": schema.StringAttribute{
Required: true,
Description: `The GCP project ID for the project containing the target BigQuery dataset.`,
@@ -138,7 +127,7 @@ func (r *DestinationFirestoreResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationFirestore(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_firestore_resource_sdk.go b/internal/provider/destination_firestore_resource_sdk.go
old mode 100755
new mode 100644
index f503a0f0d..f0f09b96d
--- a/internal/provider/destination_firestore_resource_sdk.go
+++ b/internal/provider/destination_firestore_resource_sdk.go
@@ -14,11 +14,9 @@ func (r *DestinationFirestoreResourceModel) ToCreateSDKType() *shared.Destinatio
} else {
credentialsJSON = nil
}
- destinationType := shared.DestinationFirestoreFirestore(r.Configuration.DestinationType.ValueString())
projectID := r.Configuration.ProjectID.ValueString()
configuration := shared.DestinationFirestore{
CredentialsJSON: credentialsJSON,
- DestinationType: destinationType,
ProjectID: projectID,
}
name := r.Name.ValueString()
diff --git a/internal/provider/destination_gcs_data_source.go b/internal/provider/destination_gcs_data_source.go
old mode 100755
new mode 100644
index 76072f3e1..be30259b4
--- a/internal/provider/destination_gcs_data_source.go
+++ b/internal/provider/destination_gcs_data_source.go
@@ -107,15 +107,6 @@ func (r *DestinationGcsDataSource) Schema(ctx context.Context, req datasource.Sc
},
Description: `An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gcs",
- ),
- },
- Description: `must be one of ["gcs"]`,
- },
"format": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
diff --git a/internal/provider/destination_gcs_data_source_sdk.go b/internal/provider/destination_gcs_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_gcs_resource.go b/internal/provider/destination_gcs_resource.go
old mode 100755
new mode 100644
index e868c0ed2..d67ebf255
--- a/internal/provider/destination_gcs_resource.go
+++ b/internal/provider/destination_gcs_resource.go
@@ -61,7 +61,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"credential_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"HMAC_KEY",
@@ -84,7 +84,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"credential_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"HMAC_KEY",
@@ -109,15 +109,6 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
},
Description: `An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gcs",
- ),
- },
- Description: `must be one of ["gcs"]`,
- },
"format": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
@@ -131,7 +122,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"bzip2",
@@ -146,7 +137,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Deflate",
@@ -165,7 +156,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"no compression",
@@ -180,7 +171,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"snappy",
@@ -195,7 +186,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"xz",
@@ -214,7 +205,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"zstandard",
@@ -240,7 +231,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `The compression algorithm used to compress data. Default to no compression.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Avro",
@@ -305,7 +296,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
`Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"CSV",
@@ -359,7 +350,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -402,7 +393,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -431,7 +422,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"no compression",
@@ -446,7 +437,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Deflate",
@@ -465,7 +456,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"bzip2",
@@ -480,7 +471,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"xz",
@@ -499,7 +490,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"zstandard",
@@ -522,7 +513,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"snappy",
@@ -540,7 +531,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `The compression algorithm used to compress data. Default to no compression.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Avro",
@@ -605,7 +596,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
`Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"CSV",
@@ -659,7 +650,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -702,7 +693,7 @@ func (r *DestinationGcsResource) Schema(ctx context.Context, req resource.Schema
Description: `There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -847,7 +838,7 @@ func (r *DestinationGcsResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationGcs(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_gcs_resource_sdk.go b/internal/provider/destination_gcs_resource_sdk.go
old mode 100755
new mode 100644
index 73785e2a5..07671ba1a
--- a/internal/provider/destination_gcs_resource_sdk.go
+++ b/internal/provider/destination_gcs_resource_sdk.go
@@ -11,7 +11,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
var credential shared.DestinationGcsAuthentication
var destinationGcsAuthenticationHMACKey *shared.DestinationGcsAuthenticationHMACKey
if r.Configuration.Credential.DestinationGcsAuthenticationHMACKey != nil {
- credentialType := shared.DestinationGcsAuthenticationHMACKeyCredentialType(r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.CredentialType.ValueString())
+ credentialType := new(shared.DestinationGcsAuthenticationHMACKeyCredentialType)
+ if !r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.CredentialType.IsUnknown() && !r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.CredentialType.IsNull() {
+ *credentialType = shared.DestinationGcsAuthenticationHMACKeyCredentialType(r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.CredentialType.ValueString())
+ } else {
+ credentialType = nil
+ }
hmacKeyAccessID := r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.Credential.DestinationGcsAuthenticationHMACKey.HmacKeySecret.ValueString()
destinationGcsAuthenticationHMACKey = &shared.DestinationGcsAuthenticationHMACKey{
@@ -25,14 +30,18 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
DestinationGcsAuthenticationHMACKey: destinationGcsAuthenticationHMACKey,
}
}
- destinationType := shared.DestinationGcsGcs(r.Configuration.DestinationType.ValueString())
var format shared.DestinationGcsOutputFormat
var destinationGcsOutputFormatAvroApacheAvro *shared.DestinationGcsOutputFormatAvroApacheAvro
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro != nil {
var compressionCodec shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodec
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- codec := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ codec := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsNull() {
+ *codec = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ } else {
+ codec = nil
+ }
destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression = &shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression{
Codec: codec,
}
@@ -44,7 +53,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- codec1 := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ codec1 := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsNull() {
+ *codec1 = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ } else {
+ codec1 = nil
+ }
compressionLevel := new(int64)
if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsNull() {
*compressionLevel = r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
@@ -63,7 +77,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- codec2 := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ codec2 := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsNull() {
+ *codec2 = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ } else {
+ codec2 = nil
+ }
destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 = &shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2{
Codec: codec2,
}
@@ -75,7 +94,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecXz *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- codec3 := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ codec3 := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsNull() {
+ *codec3 = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ } else {
+ codec3 = nil
+ }
compressionLevel1 := new(int64)
if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsNull() {
*compressionLevel1 = r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
@@ -94,7 +118,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- codec4 := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ codec4 := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsNull() {
+ *codec4 = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ } else {
+ codec4 = nil
+ }
compressionLevel2 := new(int64)
if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsNull() {
*compressionLevel2 = r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
@@ -120,7 +149,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
var destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy *shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy
if r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- codec5 := shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ codec5 := new(shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsNull() {
+ *codec5 = shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ } else {
+ codec5 = nil
+ }
destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy = &shared.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy{
Codec: codec5,
}
@@ -130,7 +164,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy: destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy,
}
}
- formatType := shared.DestinationGcsOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.FormatType.ValueString())
+ formatType := new(shared.DestinationGcsOutputFormatAvroApacheAvroFormatType)
+ if !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.FormatType.IsNull() {
+ *formatType = shared.DestinationGcsOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationGcsOutputFormatAvroApacheAvro.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationGcsOutputFormatAvroApacheAvro = &shared.DestinationGcsOutputFormatAvroApacheAvro{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -186,7 +225,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
} else {
flattening = nil
}
- formatType1 := shared.DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationGcsOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ formatType1 := new(shared.DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType)
+ if !r.Configuration.Format.DestinationGcsOutputFormatCSVCommaSeparatedValues.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatCSVCommaSeparatedValues.FormatType.IsNull() {
+ *formatType1 = shared.DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationGcsOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationGcsOutputFormatCSVCommaSeparatedValues = &shared.DestinationGcsOutputFormatCSVCommaSeparatedValues{
Compression: compression,
Flattening: flattening,
@@ -237,7 +281,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
}
}
- formatType2 := shared.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType2 := new(shared.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType2 = shared.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType2 = nil
+ }
destinationGcsOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression1,
FormatType: formatType2,
@@ -274,7 +323,12 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
} else {
dictionaryPageSizeKb = nil
}
- formatType3 := shared.DestinationGcsOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ formatType3 := new(shared.DestinationGcsOutputFormatParquetColumnarStorageFormatType)
+ if !r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.FormatType.IsNull() {
+ *formatType3 = shared.DestinationGcsOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType3 = nil
+ }
maxPaddingSizeMb := new(int64)
if !r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsUnknown() && !r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsNull() {
*maxPaddingSizeMb = r.Configuration.Format.DestinationGcsOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.ValueInt64()
@@ -312,7 +366,6 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr
}
configuration := shared.DestinationGcs{
Credential: credential,
- DestinationType: destinationType,
Format: format,
GcsBucketName: gcsBucketName,
GcsBucketPath: gcsBucketPath,
@@ -337,7 +390,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
var credential shared.DestinationGcsUpdateAuthentication
var destinationGcsUpdateAuthenticationHMACKey *shared.DestinationGcsUpdateAuthenticationHMACKey
if r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey != nil {
- credentialType := shared.DestinationGcsUpdateAuthenticationHMACKeyCredentialType(r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.CredentialType.ValueString())
+ credentialType := new(shared.DestinationGcsUpdateAuthenticationHMACKeyCredentialType)
+ if !r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.CredentialType.IsUnknown() && !r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.CredentialType.IsNull() {
+ *credentialType = shared.DestinationGcsUpdateAuthenticationHMACKeyCredentialType(r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.CredentialType.ValueString())
+ } else {
+ credentialType = nil
+ }
hmacKeyAccessID := r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.HmacKeyAccessID.ValueString()
hmacKeySecret := r.Configuration.Credential.DestinationGcsUpdateAuthenticationHMACKey.HmacKeySecret.ValueString()
destinationGcsUpdateAuthenticationHMACKey = &shared.DestinationGcsUpdateAuthenticationHMACKey{
@@ -357,7 +415,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
var compressionCodec shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- codec := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ codec := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsNull() {
+ *codec = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ } else {
+ codec = nil
+ }
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression = &shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression{
Codec: codec,
}
@@ -369,7 +432,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- codec1 := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ codec1 := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsNull() {
+ *codec1 = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ } else {
+ codec1 = nil
+ }
compressionLevel := new(int64)
if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsNull() {
*compressionLevel = r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
@@ -388,7 +456,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- codec2 := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ codec2 := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsNull() {
+ *codec2 = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ } else {
+ codec2 = nil
+ }
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 = &shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2{
Codec: codec2,
}
@@ -400,7 +473,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- codec3 := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ codec3 := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsNull() {
+ *codec3 = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ } else {
+ codec3 = nil
+ }
compressionLevel1 := new(int64)
if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsNull() {
*compressionLevel1 = r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
@@ -419,7 +497,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- codec4 := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ codec4 := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsNull() {
+ *codec4 = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ } else {
+ codec4 = nil
+ }
compressionLevel2 := new(int64)
if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsNull() {
*compressionLevel2 = r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
@@ -445,7 +528,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
var destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy *shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
if r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- codec5 := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ codec5 := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsNull() {
+ *codec5 = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ } else {
+ codec5 = nil
+ }
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy = &shared.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy{
Codec: codec5,
}
@@ -455,7 +543,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy: destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy,
}
}
- formatType := shared.DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.FormatType.ValueString())
+ formatType := new(shared.DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.FormatType.IsNull() {
+ *formatType = shared.DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatAvroApacheAvro.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationGcsUpdateOutputFormatAvroApacheAvro = &shared.DestinationGcsUpdateOutputFormatAvroApacheAvro{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -511,7 +604,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
} else {
flattening = nil
}
- formatType1 := shared.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ formatType1 := new(shared.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues.FormatType.IsNull() {
+ *formatType1 = shared.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationGcsUpdateOutputFormatCSVCommaSeparatedValues = &shared.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues{
Compression: compression,
Flattening: flattening,
@@ -562,7 +660,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
}
}
}
- formatType2 := shared.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType2 := new(shared.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType2 = shared.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType2 = nil
+ }
destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression1,
FormatType: formatType2,
@@ -599,7 +702,12 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu
} else {
dictionaryPageSizeKb = nil
}
- formatType3 := shared.DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ formatType3 := new(shared.DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType)
+ if !r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.FormatType.IsNull() {
+ *formatType3 = shared.DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType3 = nil
+ }
maxPaddingSizeMb := new(int64)
if !r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsUnknown() && !r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsNull() {
*maxPaddingSizeMb = r.Configuration.Format.DestinationGcsUpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.ValueInt64()
diff --git a/internal/provider/destination_googlesheets_data_source.go b/internal/provider/destination_googlesheets_data_source.go
old mode 100755
new mode 100644
index d9219a9cf..384943ced
--- a/internal/provider/destination_googlesheets_data_source.go
+++ b/internal/provider/destination_googlesheets_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -69,15 +67,6 @@ func (r *DestinationGoogleSheetsDataSource) Schema(ctx context.Context, req data
},
Description: `Google API Credentials for connecting to Google Sheets and Google Drive APIs`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-sheets",
- ),
- },
- Description: `must be one of ["google-sheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Computed: true,
Description: `The link to your spreadsheet. See this guide for more details.`,
diff --git a/internal/provider/destination_googlesheets_data_source_sdk.go b/internal/provider/destination_googlesheets_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_googlesheets_resource.go b/internal/provider/destination_googlesheets_resource.go
old mode 100755
new mode 100644
index 8ccd505dc..c3fba893d
--- a/internal/provider/destination_googlesheets_resource.go
+++ b/internal/provider/destination_googlesheets_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -71,15 +69,6 @@ func (r *DestinationGoogleSheetsResource) Schema(ctx context.Context, req resour
},
Description: `Google API Credentials for connecting to Google Sheets and Google Drive APIs`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-sheets",
- ),
- },
- Description: `must be one of ["google-sheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Required: true,
Description: `The link to your spreadsheet. See this guide for more details.`,
@@ -152,7 +141,7 @@ func (r *DestinationGoogleSheetsResource) Create(ctx context.Context, req resour
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationGoogleSheets(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_googlesheets_resource_sdk.go b/internal/provider/destination_googlesheets_resource_sdk.go
old mode 100755
new mode 100644
index d9b9cb6ba..cf2381a44
--- a/internal/provider/destination_googlesheets_resource_sdk.go
+++ b/internal/provider/destination_googlesheets_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *DestinationGoogleSheetsResourceModel) ToCreateSDKType() *shared.Destina
ClientSecret: clientSecret,
RefreshToken: refreshToken,
}
- destinationType := shared.DestinationGoogleSheetsGoogleSheets(r.Configuration.DestinationType.ValueString())
spreadsheetID := r.Configuration.SpreadsheetID.ValueString()
configuration := shared.DestinationGoogleSheets{
- Credentials: credentials,
- DestinationType: destinationType,
- SpreadsheetID: spreadsheetID,
+ Credentials: credentials,
+ SpreadsheetID: spreadsheetID,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/destination_keen_data_source.go b/internal/provider/destination_keen_data_source.go
old mode 100755
new mode 100644
index 7d01313e1..f4d18adb9
--- a/internal/provider/destination_keen_data_source.go
+++ b/internal/provider/destination_keen_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -55,15 +53,6 @@ func (r *DestinationKeenDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "keen",
- ),
- },
- Description: `must be one of ["keen"]`,
- },
"infer_timestamp": schema.BoolAttribute{
Computed: true,
Description: `Allow connector to guess keen.timestamp value based on the streamed data.`,
diff --git a/internal/provider/destination_keen_data_source_sdk.go b/internal/provider/destination_keen_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_keen_resource.go b/internal/provider/destination_keen_resource.go
old mode 100755
new mode 100644
index 2f70e5d9d..efd99a6fa
--- a/internal/provider/destination_keen_resource.go
+++ b/internal/provider/destination_keen_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -57,15 +55,6 @@ func (r *DestinationKeenResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "keen",
- ),
- },
- Description: `must be one of ["keen"]`,
- },
"infer_timestamp": schema.BoolAttribute{
Optional: true,
Description: `Allow connector to guess keen.timestamp value based on the streamed data.`,
@@ -142,7 +131,7 @@ func (r *DestinationKeenResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationKeen(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_keen_resource_sdk.go b/internal/provider/destination_keen_resource_sdk.go
old mode 100755
new mode 100644
index 42b31ced5..9d39efd9b
--- a/internal/provider/destination_keen_resource_sdk.go
+++ b/internal/provider/destination_keen_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationKeenResourceModel) ToCreateSDKType() *shared.DestinationKeenCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- destinationType := shared.DestinationKeenKeen(r.Configuration.DestinationType.ValueString())
inferTimestamp := new(bool)
if !r.Configuration.InferTimestamp.IsUnknown() && !r.Configuration.InferTimestamp.IsNull() {
*inferTimestamp = r.Configuration.InferTimestamp.ValueBool()
@@ -18,10 +17,9 @@ func (r *DestinationKeenResourceModel) ToCreateSDKType() *shared.DestinationKeen
}
projectID := r.Configuration.ProjectID.ValueString()
configuration := shared.DestinationKeen{
- APIKey: apiKey,
- DestinationType: destinationType,
- InferTimestamp: inferTimestamp,
- ProjectID: projectID,
+ APIKey: apiKey,
+ InferTimestamp: inferTimestamp,
+ ProjectID: projectID,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/destination_kinesis_data_source.go b/internal/provider/destination_kinesis_data_source.go
old mode 100755
new mode 100644
index f4d98b581..e99aba30b
--- a/internal/provider/destination_kinesis_data_source.go
+++ b/internal/provider/destination_kinesis_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *DestinationKinesisDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Buffer size for storing kinesis records before being batch streamed.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kinesis",
- ),
- },
- Description: `must be one of ["kinesis"]`,
- },
"endpoint": schema.StringAttribute{
Computed: true,
Description: `AWS Kinesis endpoint.`,
diff --git a/internal/provider/destination_kinesis_data_source_sdk.go b/internal/provider/destination_kinesis_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_kinesis_resource.go b/internal/provider/destination_kinesis_resource.go
old mode 100755
new mode 100644
index 264fef8c2..d88fca8ab
--- a/internal/provider/destination_kinesis_resource.go
+++ b/internal/provider/destination_kinesis_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,18 +56,9 @@ func (r *DestinationKinesisResource) Schema(ctx context.Context, req resource.Sc
Description: `Generate the AWS Access Key for current user.`,
},
"buffer_size": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Buffer size for storing kinesis records before being batch streamed.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kinesis",
- ),
- },
- Description: `must be one of ["kinesis"]`,
- },
"endpoint": schema.StringAttribute{
Required: true,
Description: `AWS Kinesis endpoint.`,
@@ -83,7 +72,7 @@ func (r *DestinationKinesisResource) Schema(ctx context.Context, req resource.Sc
Description: `AWS region. Your account determines the Regions that are available to you.`,
},
"shard_count": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Number of shards to which the data should be streamed.`,
},
},
@@ -154,7 +143,7 @@ func (r *DestinationKinesisResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationKinesis(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_kinesis_resource_sdk.go b/internal/provider/destination_kinesis_resource_sdk.go
old mode 100755
new mode 100644
index abe4aa45b..3467a46bb
--- a/internal/provider/destination_kinesis_resource_sdk.go
+++ b/internal/provider/destination_kinesis_resource_sdk.go
@@ -9,20 +9,28 @@ import (
func (r *DestinationKinesisResourceModel) ToCreateSDKType() *shared.DestinationKinesisCreateRequest {
accessKey := r.Configuration.AccessKey.ValueString()
- bufferSize := r.Configuration.BufferSize.ValueInt64()
- destinationType := shared.DestinationKinesisKinesis(r.Configuration.DestinationType.ValueString())
+ bufferSize := new(int64)
+ if !r.Configuration.BufferSize.IsUnknown() && !r.Configuration.BufferSize.IsNull() {
+ *bufferSize = r.Configuration.BufferSize.ValueInt64()
+ } else {
+ bufferSize = nil
+ }
endpoint := r.Configuration.Endpoint.ValueString()
privateKey := r.Configuration.PrivateKey.ValueString()
region := r.Configuration.Region.ValueString()
- shardCount := r.Configuration.ShardCount.ValueInt64()
+ shardCount := new(int64)
+ if !r.Configuration.ShardCount.IsUnknown() && !r.Configuration.ShardCount.IsNull() {
+ *shardCount = r.Configuration.ShardCount.ValueInt64()
+ } else {
+ shardCount = nil
+ }
configuration := shared.DestinationKinesis{
- AccessKey: accessKey,
- BufferSize: bufferSize,
- DestinationType: destinationType,
- Endpoint: endpoint,
- PrivateKey: privateKey,
- Region: region,
- ShardCount: shardCount,
+ AccessKey: accessKey,
+ BufferSize: bufferSize,
+ Endpoint: endpoint,
+ PrivateKey: privateKey,
+ Region: region,
+ ShardCount: shardCount,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -41,11 +49,21 @@ func (r *DestinationKinesisResourceModel) ToGetSDKType() *shared.DestinationKine
func (r *DestinationKinesisResourceModel) ToUpdateSDKType() *shared.DestinationKinesisPutRequest {
accessKey := r.Configuration.AccessKey.ValueString()
- bufferSize := r.Configuration.BufferSize.ValueInt64()
+ bufferSize := new(int64)
+ if !r.Configuration.BufferSize.IsUnknown() && !r.Configuration.BufferSize.IsNull() {
+ *bufferSize = r.Configuration.BufferSize.ValueInt64()
+ } else {
+ bufferSize = nil
+ }
endpoint := r.Configuration.Endpoint.ValueString()
privateKey := r.Configuration.PrivateKey.ValueString()
region := r.Configuration.Region.ValueString()
- shardCount := r.Configuration.ShardCount.ValueInt64()
+ shardCount := new(int64)
+ if !r.Configuration.ShardCount.IsUnknown() && !r.Configuration.ShardCount.IsNull() {
+ *shardCount = r.Configuration.ShardCount.ValueInt64()
+ } else {
+ shardCount = nil
+ }
configuration := shared.DestinationKinesisUpdate{
AccessKey: accessKey,
BufferSize: bufferSize,
diff --git a/internal/provider/destination_langchain_data_source.go b/internal/provider/destination_langchain_data_source.go
old mode 100755
new mode 100644
index ba389222d..9470615ea
--- a/internal/provider/destination_langchain_data_source.go
+++ b/internal/provider/destination_langchain_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -52,45 +51,17 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "langchain",
- ),
- },
- Description: `must be one of ["langchain"]`,
- },
"embedding": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_langchain_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_langchain_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
@@ -98,32 +69,13 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Description: `Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.`,
},
"destination_langchain_update_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_langchain_update_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
@@ -150,15 +102,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Path to the directory where chroma files will be written. The files will be placed inside that local mount.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chroma_local",
- ),
- },
- Description: `must be one of ["chroma_local"]`,
- },
},
Description: `Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.`,
},
@@ -169,15 +112,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "DocArrayHnswSearch",
- ),
- },
- Description: `must be one of ["DocArrayHnswSearch"]`,
- },
},
Description: `DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite.`,
},
@@ -188,15 +122,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Pinecone index to use`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"pinecone_environment": schema.StringAttribute{
Computed: true,
Description: `Pinecone environment to use`,
@@ -218,15 +143,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Path to the directory where chroma files will be written. The files will be placed inside that local mount.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chroma_local",
- ),
- },
- Description: `must be one of ["chroma_local"]`,
- },
},
Description: `Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.`,
},
@@ -237,15 +153,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "DocArrayHnswSearch",
- ),
- },
- Description: `must be one of ["DocArrayHnswSearch"]`,
- },
},
Description: `DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite.`,
},
@@ -256,15 +163,6 @@ func (r *DestinationLangchainDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Pinecone index to use`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"pinecone_environment": schema.StringAttribute{
Computed: true,
Description: `Pinecone environment to use`,
diff --git a/internal/provider/destination_langchain_data_source_sdk.go b/internal/provider/destination_langchain_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_langchain_resource.go b/internal/provider/destination_langchain_resource.go
old mode 100755
new mode 100644
index db414aa14..24f8705de
--- a/internal/provider/destination_langchain_resource.go
+++ b/internal/provider/destination_langchain_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -54,45 +53,17 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "langchain",
- ),
- },
- Description: `must be one of ["langchain"]`,
- },
"embedding": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
"destination_langchain_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_langchain_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -100,32 +71,13 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Description: `Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.`,
},
"destination_langchain_update_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_langchain_update_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -152,15 +104,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Path to the directory where chroma files will be written. The files will be placed inside that local mount.`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chroma_local",
- ),
- },
- Description: `must be one of ["chroma_local"]`,
- },
},
Description: `Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.`,
},
@@ -171,15 +114,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "DocArrayHnswSearch",
- ),
- },
- Description: `must be one of ["DocArrayHnswSearch"]`,
- },
},
Description: `DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite.`,
},
@@ -190,15 +124,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Pinecone index to use`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"pinecone_environment": schema.StringAttribute{
Required: true,
Description: `Pinecone environment to use`,
@@ -220,15 +145,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Path to the directory where chroma files will be written. The files will be placed inside that local mount.`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chroma_local",
- ),
- },
- Description: `must be one of ["chroma_local"]`,
- },
},
Description: `Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.`,
},
@@ -239,15 +155,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "DocArrayHnswSearch",
- ),
- },
- Description: `must be one of ["DocArrayHnswSearch"]`,
- },
},
Description: `DocArrayHnswSearch is a lightweight Document Index implementation provided by Docarray that runs fully locally and is best suited for small- to medium-sized datasets. It stores vectors on disk in hnswlib, and stores all other data in SQLite.`,
},
@@ -258,15 +165,6 @@ func (r *DestinationLangchainResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Pinecone index to use`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"pinecone_environment": schema.StringAttribute{
Required: true,
Description: `Pinecone environment to use`,
@@ -369,7 +267,7 @@ func (r *DestinationLangchainResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationLangchain(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_langchain_resource_sdk.go b/internal/provider/destination_langchain_resource_sdk.go
old mode 100755
new mode 100644
index a2580868b..4b0d709a7
--- a/internal/provider/destination_langchain_resource_sdk.go
+++ b/internal/provider/destination_langchain_resource_sdk.go
@@ -8,19 +8,11 @@ import (
)
func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.DestinationLangchainCreateRequest {
- destinationType := shared.DestinationLangchainLangchain(r.Configuration.DestinationType.ValueString())
var embedding shared.DestinationLangchainEmbedding
var destinationLangchainEmbeddingOpenAI *shared.DestinationLangchainEmbeddingOpenAI
if r.Configuration.Embedding.DestinationLangchainEmbeddingOpenAI != nil {
- mode := new(shared.DestinationLangchainEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationLangchainEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationLangchainEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationLangchainEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationLangchainEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationLangchainEmbeddingOpenAI.OpenaiKey.ValueString()
destinationLangchainEmbeddingOpenAI = &shared.DestinationLangchainEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -31,15 +23,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio
}
var destinationLangchainEmbeddingFake *shared.DestinationLangchainEmbeddingFake
if r.Configuration.Embedding.DestinationLangchainEmbeddingFake != nil {
- mode1 := new(shared.DestinationLangchainEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationLangchainEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationLangchainEmbeddingFake.Mode.IsNull() {
- *mode1 = shared.DestinationLangchainEmbeddingFakeMode(r.Configuration.Embedding.DestinationLangchainEmbeddingFake.Mode.ValueString())
- } else {
- mode1 = nil
- }
- destinationLangchainEmbeddingFake = &shared.DestinationLangchainEmbeddingFake{
- Mode: mode1,
- }
+ destinationLangchainEmbeddingFake = &shared.DestinationLangchainEmbeddingFake{}
}
if destinationLangchainEmbeddingFake != nil {
embedding = shared.DestinationLangchainEmbedding{
@@ -50,17 +34,10 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio
var destinationLangchainIndexingPinecone *shared.DestinationLangchainIndexingPinecone
if r.Configuration.Indexing.DestinationLangchainIndexingPinecone != nil {
index := r.Configuration.Indexing.DestinationLangchainIndexingPinecone.Index.ValueString()
- mode2 := new(shared.DestinationLangchainIndexingPineconeMode)
- if !r.Configuration.Indexing.DestinationLangchainIndexingPinecone.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainIndexingPinecone.Mode.IsNull() {
- *mode2 = shared.DestinationLangchainIndexingPineconeMode(r.Configuration.Indexing.DestinationLangchainIndexingPinecone.Mode.ValueString())
- } else {
- mode2 = nil
- }
pineconeEnvironment := r.Configuration.Indexing.DestinationLangchainIndexingPinecone.PineconeEnvironment.ValueString()
pineconeKey := r.Configuration.Indexing.DestinationLangchainIndexingPinecone.PineconeKey.ValueString()
destinationLangchainIndexingPinecone = &shared.DestinationLangchainIndexingPinecone{
Index: index,
- Mode: mode2,
PineconeEnvironment: pineconeEnvironment,
PineconeKey: pineconeKey,
}
@@ -73,15 +50,8 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio
var destinationLangchainIndexingDocArrayHnswSearch *shared.DestinationLangchainIndexingDocArrayHnswSearch
if r.Configuration.Indexing.DestinationLangchainIndexingDocArrayHnswSearch != nil {
destinationPath := r.Configuration.Indexing.DestinationLangchainIndexingDocArrayHnswSearch.DestinationPath.ValueString()
- mode3 := new(shared.DestinationLangchainIndexingDocArrayHnswSearchMode)
- if !r.Configuration.Indexing.DestinationLangchainIndexingDocArrayHnswSearch.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainIndexingDocArrayHnswSearch.Mode.IsNull() {
- *mode3 = shared.DestinationLangchainIndexingDocArrayHnswSearchMode(r.Configuration.Indexing.DestinationLangchainIndexingDocArrayHnswSearch.Mode.ValueString())
- } else {
- mode3 = nil
- }
destinationLangchainIndexingDocArrayHnswSearch = &shared.DestinationLangchainIndexingDocArrayHnswSearch{
DestinationPath: destinationPath,
- Mode: mode3,
}
}
if destinationLangchainIndexingDocArrayHnswSearch != nil {
@@ -98,16 +68,9 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio
collectionName = nil
}
destinationPath1 := r.Configuration.Indexing.DestinationLangchainIndexingChromaLocalPersistance.DestinationPath.ValueString()
- mode4 := new(shared.DestinationLangchainIndexingChromaLocalPersistanceMode)
- if !r.Configuration.Indexing.DestinationLangchainIndexingChromaLocalPersistance.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainIndexingChromaLocalPersistance.Mode.IsNull() {
- *mode4 = shared.DestinationLangchainIndexingChromaLocalPersistanceMode(r.Configuration.Indexing.DestinationLangchainIndexingChromaLocalPersistance.Mode.ValueString())
- } else {
- mode4 = nil
- }
destinationLangchainIndexingChromaLocalPersistance = &shared.DestinationLangchainIndexingChromaLocalPersistance{
CollectionName: collectionName,
DestinationPath: destinationPath1,
- Mode: mode4,
}
}
if destinationLangchainIndexingChromaLocalPersistance != nil {
@@ -132,10 +95,9 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio
TextFields: textFields,
}
configuration := shared.DestinationLangchain{
- DestinationType: destinationType,
- Embedding: embedding,
- Indexing: indexing,
- Processing: processing,
+ Embedding: embedding,
+ Indexing: indexing,
+ Processing: processing,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -156,15 +118,8 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio
var embedding shared.DestinationLangchainUpdateEmbedding
var destinationLangchainUpdateEmbeddingOpenAI *shared.DestinationLangchainUpdateEmbeddingOpenAI
if r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingOpenAI != nil {
- mode := new(shared.DestinationLangchainUpdateEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationLangchainUpdateEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingOpenAI.OpenaiKey.ValueString()
destinationLangchainUpdateEmbeddingOpenAI = &shared.DestinationLangchainUpdateEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -175,15 +130,7 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio
}
var destinationLangchainUpdateEmbeddingFake *shared.DestinationLangchainUpdateEmbeddingFake
if r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingFake != nil {
- mode1 := new(shared.DestinationLangchainUpdateEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingFake.Mode.IsNull() {
- *mode1 = shared.DestinationLangchainUpdateEmbeddingFakeMode(r.Configuration.Embedding.DestinationLangchainUpdateEmbeddingFake.Mode.ValueString())
- } else {
- mode1 = nil
- }
- destinationLangchainUpdateEmbeddingFake = &shared.DestinationLangchainUpdateEmbeddingFake{
- Mode: mode1,
- }
+ destinationLangchainUpdateEmbeddingFake = &shared.DestinationLangchainUpdateEmbeddingFake{}
}
if destinationLangchainUpdateEmbeddingFake != nil {
embedding = shared.DestinationLangchainUpdateEmbedding{
@@ -194,17 +141,10 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio
var destinationLangchainUpdateIndexingPinecone *shared.DestinationLangchainUpdateIndexingPinecone
if r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone != nil {
index := r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.Index.ValueString()
- mode2 := new(shared.DestinationLangchainUpdateIndexingPineconeMode)
- if !r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.Mode.IsNull() {
- *mode2 = shared.DestinationLangchainUpdateIndexingPineconeMode(r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.Mode.ValueString())
- } else {
- mode2 = nil
- }
pineconeEnvironment := r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.PineconeEnvironment.ValueString()
pineconeKey := r.Configuration.Indexing.DestinationLangchainUpdateIndexingPinecone.PineconeKey.ValueString()
destinationLangchainUpdateIndexingPinecone = &shared.DestinationLangchainUpdateIndexingPinecone{
Index: index,
- Mode: mode2,
PineconeEnvironment: pineconeEnvironment,
PineconeKey: pineconeKey,
}
@@ -217,15 +157,8 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio
var destinationLangchainUpdateIndexingDocArrayHnswSearch *shared.DestinationLangchainUpdateIndexingDocArrayHnswSearch
if r.Configuration.Indexing.DestinationLangchainUpdateIndexingDocArrayHnswSearch != nil {
destinationPath := r.Configuration.Indexing.DestinationLangchainUpdateIndexingDocArrayHnswSearch.DestinationPath.ValueString()
- mode3 := new(shared.DestinationLangchainUpdateIndexingDocArrayHnswSearchMode)
- if !r.Configuration.Indexing.DestinationLangchainUpdateIndexingDocArrayHnswSearch.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainUpdateIndexingDocArrayHnswSearch.Mode.IsNull() {
- *mode3 = shared.DestinationLangchainUpdateIndexingDocArrayHnswSearchMode(r.Configuration.Indexing.DestinationLangchainUpdateIndexingDocArrayHnswSearch.Mode.ValueString())
- } else {
- mode3 = nil
- }
destinationLangchainUpdateIndexingDocArrayHnswSearch = &shared.DestinationLangchainUpdateIndexingDocArrayHnswSearch{
DestinationPath: destinationPath,
- Mode: mode3,
}
}
if destinationLangchainUpdateIndexingDocArrayHnswSearch != nil {
@@ -242,16 +175,9 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio
collectionName = nil
}
destinationPath1 := r.Configuration.Indexing.DestinationLangchainUpdateIndexingChromaLocalPersistance.DestinationPath.ValueString()
- mode4 := new(shared.DestinationLangchainUpdateIndexingChromaLocalPersistanceMode)
- if !r.Configuration.Indexing.DestinationLangchainUpdateIndexingChromaLocalPersistance.Mode.IsUnknown() && !r.Configuration.Indexing.DestinationLangchainUpdateIndexingChromaLocalPersistance.Mode.IsNull() {
- *mode4 = shared.DestinationLangchainUpdateIndexingChromaLocalPersistanceMode(r.Configuration.Indexing.DestinationLangchainUpdateIndexingChromaLocalPersistance.Mode.ValueString())
- } else {
- mode4 = nil
- }
destinationLangchainUpdateIndexingChromaLocalPersistance = &shared.DestinationLangchainUpdateIndexingChromaLocalPersistance{
CollectionName: collectionName,
DestinationPath: destinationPath1,
- Mode: mode4,
}
}
if destinationLangchainUpdateIndexingChromaLocalPersistance != nil {
diff --git a/internal/provider/destination_milvus_data_source.go b/internal/provider/destination_milvus_data_source.go
old mode 100755
new mode 100644
index f78664b73..e18dac8cc
--- a/internal/provider/destination_milvus_data_source.go
+++ b/internal/provider/destination_milvus_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -52,15 +51,6 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "milvus",
- ),
- },
- Description: `must be one of ["milvus"]`,
- },
"embedding": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -70,31 +60,12 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
"cohere_key": schema.StringAttribute{
Computed: true,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_milvus_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_milvus_embedding_from_field": schema.SingleNestedAttribute{
@@ -108,30 +79,12 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Name of the field in the record that contains the embedding`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "from_field",
- ),
- },
- Description: `must be one of ["from_field"]`,
- },
},
Description: `Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store.`,
},
"destination_milvus_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
@@ -144,31 +97,12 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
"cohere_key": schema.StringAttribute{
Computed: true,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_milvus_update_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_milvus_update_embedding_from_field": schema.SingleNestedAttribute{
@@ -182,30 +116,12 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Name of the field in the record that contains the embedding`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "from_field",
- ),
- },
- Description: `must be one of ["from_field"]`,
- },
},
Description: `Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store.`,
},
"destination_milvus_update_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
@@ -227,15 +143,6 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
"destination_milvus_indexing_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `API Token for the Milvus instance`,
@@ -244,32 +151,13 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
Description: `Authenticate using an API token (suitable for Zilliz Cloud)`,
},
"destination_milvus_indexing_authentication_no_auth": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "no_auth",
- ),
- },
- Description: `must be one of ["no_auth"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)`,
},
"destination_milvus_indexing_authentication_username_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Password for the Milvus instance`,
@@ -284,15 +172,6 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
"destination_milvus_update_indexing_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `API Token for the Milvus instance`,
@@ -301,32 +180,13 @@ func (r *DestinationMilvusDataSource) Schema(ctx context.Context, req datasource
Description: `Authenticate using an API token (suitable for Zilliz Cloud)`,
},
"destination_milvus_update_indexing_authentication_no_auth": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "no_auth",
- ),
- },
- Description: `must be one of ["no_auth"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)`,
},
"destination_milvus_update_indexing_authentication_username_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Password for the Milvus instance`,
diff --git a/internal/provider/destination_milvus_data_source_sdk.go b/internal/provider/destination_milvus_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_milvus_resource.go b/internal/provider/destination_milvus_resource.go
old mode 100755
new mode 100644
index 97b2461aa..535767d2b
--- a/internal/provider/destination_milvus_resource.go
+++ b/internal/provider/destination_milvus_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -54,15 +53,6 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "milvus",
- ),
- },
- Description: `must be one of ["milvus"]`,
- },
"embedding": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
@@ -72,31 +62,12 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
"cohere_key": schema.StringAttribute{
Required: true,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_milvus_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_milvus_embedding_from_field": schema.SingleNestedAttribute{
@@ -110,30 +81,12 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Name of the field in the record that contains the embedding`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "from_field",
- ),
- },
- Description: `must be one of ["from_field"]`,
- },
},
Description: `Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store.`,
},
"destination_milvus_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -146,31 +99,12 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
"cohere_key": schema.StringAttribute{
Required: true,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_milvus_update_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_milvus_update_embedding_from_field": schema.SingleNestedAttribute{
@@ -184,30 +118,12 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Name of the field in the record that contains the embedding`,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "from_field",
- ),
- },
- Description: `must be one of ["from_field"]`,
- },
},
Description: `Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store.`,
},
"destination_milvus_update_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -229,15 +145,6 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
"destination_milvus_indexing_authentication_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `API Token for the Milvus instance`,
@@ -246,32 +153,13 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
Description: `Authenticate using an API token (suitable for Zilliz Cloud)`,
},
"destination_milvus_indexing_authentication_no_auth": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "no_auth",
- ),
- },
- Description: `must be one of ["no_auth"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)`,
},
"destination_milvus_indexing_authentication_username_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Password for the Milvus instance`,
@@ -286,15 +174,6 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
"destination_milvus_update_indexing_authentication_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `API Token for the Milvus instance`,
@@ -303,32 +182,13 @@ func (r *DestinationMilvusResource) Schema(ctx context.Context, req resource.Sch
Description: `Authenticate using an API token (suitable for Zilliz Cloud)`,
},
"destination_milvus_update_indexing_authentication_no_auth": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "no_auth",
- ),
- },
- Description: `must be one of ["no_auth"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)`,
},
"destination_milvus_update_indexing_authentication_username_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Password for the Milvus instance`,
@@ -460,7 +320,7 @@ func (r *DestinationMilvusResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationMilvus(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_milvus_resource_sdk.go b/internal/provider/destination_milvus_resource_sdk.go
old mode 100755
new mode 100644
index 6089fa5e2..5832bf1e5
--- a/internal/provider/destination_milvus_resource_sdk.go
+++ b/internal/provider/destination_milvus_resource_sdk.go
@@ -8,19 +8,11 @@ import (
)
func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMilvusCreateRequest {
- destinationType := shared.DestinationMilvusMilvus(r.Configuration.DestinationType.ValueString())
var embedding shared.DestinationMilvusEmbedding
var destinationMilvusEmbeddingOpenAI *shared.DestinationMilvusEmbeddingOpenAI
if r.Configuration.Embedding.DestinationMilvusEmbeddingOpenAI != nil {
- mode := new(shared.DestinationMilvusEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationMilvusEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationMilvusEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationMilvusEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationMilvusEmbeddingOpenAI.OpenaiKey.ValueString()
destinationMilvusEmbeddingOpenAI = &shared.DestinationMilvusEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -32,15 +24,8 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
var destinationMilvusEmbeddingCohere *shared.DestinationMilvusEmbeddingCohere
if r.Configuration.Embedding.DestinationMilvusEmbeddingCohere != nil {
cohereKey := r.Configuration.Embedding.DestinationMilvusEmbeddingCohere.CohereKey.ValueString()
- mode1 := new(shared.DestinationMilvusEmbeddingCohereMode)
- if !r.Configuration.Embedding.DestinationMilvusEmbeddingCohere.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusEmbeddingCohere.Mode.IsNull() {
- *mode1 = shared.DestinationMilvusEmbeddingCohereMode(r.Configuration.Embedding.DestinationMilvusEmbeddingCohere.Mode.ValueString())
- } else {
- mode1 = nil
- }
destinationMilvusEmbeddingCohere = &shared.DestinationMilvusEmbeddingCohere{
CohereKey: cohereKey,
- Mode: mode1,
}
}
if destinationMilvusEmbeddingCohere != nil {
@@ -50,15 +35,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
}
var destinationMilvusEmbeddingFake *shared.DestinationMilvusEmbeddingFake
if r.Configuration.Embedding.DestinationMilvusEmbeddingFake != nil {
- mode2 := new(shared.DestinationMilvusEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationMilvusEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusEmbeddingFake.Mode.IsNull() {
- *mode2 = shared.DestinationMilvusEmbeddingFakeMode(r.Configuration.Embedding.DestinationMilvusEmbeddingFake.Mode.ValueString())
- } else {
- mode2 = nil
- }
- destinationMilvusEmbeddingFake = &shared.DestinationMilvusEmbeddingFake{
- Mode: mode2,
- }
+ destinationMilvusEmbeddingFake = &shared.DestinationMilvusEmbeddingFake{}
}
if destinationMilvusEmbeddingFake != nil {
embedding = shared.DestinationMilvusEmbedding{
@@ -69,16 +46,9 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
if r.Configuration.Embedding.DestinationMilvusEmbeddingFromField != nil {
dimensions := r.Configuration.Embedding.DestinationMilvusEmbeddingFromField.Dimensions.ValueInt64()
fieldName := r.Configuration.Embedding.DestinationMilvusEmbeddingFromField.FieldName.ValueString()
- mode3 := new(shared.DestinationMilvusEmbeddingFromFieldMode)
- if !r.Configuration.Embedding.DestinationMilvusEmbeddingFromField.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusEmbeddingFromField.Mode.IsNull() {
- *mode3 = shared.DestinationMilvusEmbeddingFromFieldMode(r.Configuration.Embedding.DestinationMilvusEmbeddingFromField.Mode.ValueString())
- } else {
- mode3 = nil
- }
destinationMilvusEmbeddingFromField = &shared.DestinationMilvusEmbeddingFromField{
Dimensions: dimensions,
FieldName: fieldName,
- Mode: mode3,
}
}
if destinationMilvusEmbeddingFromField != nil {
@@ -89,15 +59,8 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
var auth shared.DestinationMilvusIndexingAuthentication
var destinationMilvusIndexingAuthenticationAPIToken *shared.DestinationMilvusIndexingAuthenticationAPIToken
if r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationAPIToken != nil {
- mode4 := new(shared.DestinationMilvusIndexingAuthenticationAPITokenMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationAPIToken.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationAPIToken.Mode.IsNull() {
- *mode4 = shared.DestinationMilvusIndexingAuthenticationAPITokenMode(r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationAPIToken.Mode.ValueString())
- } else {
- mode4 = nil
- }
token := r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationAPIToken.Token.ValueString()
destinationMilvusIndexingAuthenticationAPIToken = &shared.DestinationMilvusIndexingAuthenticationAPIToken{
- Mode: mode4,
Token: token,
}
}
@@ -108,16 +71,9 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
}
var destinationMilvusIndexingAuthenticationUsernamePassword *shared.DestinationMilvusIndexingAuthenticationUsernamePassword
if r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword != nil {
- mode5 := new(shared.DestinationMilvusIndexingAuthenticationUsernamePasswordMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword.Mode.IsNull() {
- *mode5 = shared.DestinationMilvusIndexingAuthenticationUsernamePasswordMode(r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword.Mode.ValueString())
- } else {
- mode5 = nil
- }
password := r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword.Password.ValueString()
username := r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationUsernamePassword.Username.ValueString()
destinationMilvusIndexingAuthenticationUsernamePassword = &shared.DestinationMilvusIndexingAuthenticationUsernamePassword{
- Mode: mode5,
Password: password,
Username: username,
}
@@ -129,15 +85,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
}
var destinationMilvusIndexingAuthenticationNoAuth *shared.DestinationMilvusIndexingAuthenticationNoAuth
if r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationNoAuth != nil {
- mode6 := new(shared.DestinationMilvusIndexingAuthenticationNoAuthMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationNoAuth.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationNoAuth.Mode.IsNull() {
- *mode6 = shared.DestinationMilvusIndexingAuthenticationNoAuthMode(r.Configuration.Indexing.Auth.DestinationMilvusIndexingAuthenticationNoAuth.Mode.ValueString())
- } else {
- mode6 = nil
- }
- destinationMilvusIndexingAuthenticationNoAuth = &shared.DestinationMilvusIndexingAuthenticationNoAuth{
- Mode: mode6,
- }
+ destinationMilvusIndexingAuthenticationNoAuth = &shared.DestinationMilvusIndexingAuthenticationNoAuth{}
}
if destinationMilvusIndexingAuthenticationNoAuth != nil {
auth = shared.DestinationMilvusIndexingAuthentication{
@@ -194,10 +142,9 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi
TextFields: textFields,
}
configuration := shared.DestinationMilvus{
- DestinationType: destinationType,
- Embedding: embedding,
- Indexing: indexing,
- Processing: processing,
+ Embedding: embedding,
+ Indexing: indexing,
+ Processing: processing,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -218,15 +165,8 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
var embedding shared.DestinationMilvusUpdateEmbedding
var destinationMilvusUpdateEmbeddingOpenAI *shared.DestinationMilvusUpdateEmbeddingOpenAI
if r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingOpenAI != nil {
- mode := new(shared.DestinationMilvusUpdateEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationMilvusUpdateEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingOpenAI.OpenaiKey.ValueString()
destinationMilvusUpdateEmbeddingOpenAI = &shared.DestinationMilvusUpdateEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -238,15 +178,8 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
var destinationMilvusUpdateEmbeddingCohere *shared.DestinationMilvusUpdateEmbeddingCohere
if r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingCohere != nil {
cohereKey := r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingCohere.CohereKey.ValueString()
- mode1 := new(shared.DestinationMilvusUpdateEmbeddingCohereMode)
- if !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingCohere.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingCohere.Mode.IsNull() {
- *mode1 = shared.DestinationMilvusUpdateEmbeddingCohereMode(r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingCohere.Mode.ValueString())
- } else {
- mode1 = nil
- }
destinationMilvusUpdateEmbeddingCohere = &shared.DestinationMilvusUpdateEmbeddingCohere{
CohereKey: cohereKey,
- Mode: mode1,
}
}
if destinationMilvusUpdateEmbeddingCohere != nil {
@@ -256,15 +189,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
}
var destinationMilvusUpdateEmbeddingFake *shared.DestinationMilvusUpdateEmbeddingFake
if r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFake != nil {
- mode2 := new(shared.DestinationMilvusUpdateEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFake.Mode.IsNull() {
- *mode2 = shared.DestinationMilvusUpdateEmbeddingFakeMode(r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFake.Mode.ValueString())
- } else {
- mode2 = nil
- }
- destinationMilvusUpdateEmbeddingFake = &shared.DestinationMilvusUpdateEmbeddingFake{
- Mode: mode2,
- }
+ destinationMilvusUpdateEmbeddingFake = &shared.DestinationMilvusUpdateEmbeddingFake{}
}
if destinationMilvusUpdateEmbeddingFake != nil {
embedding = shared.DestinationMilvusUpdateEmbedding{
@@ -275,16 +200,9 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
if r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField != nil {
dimensions := r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField.Dimensions.ValueInt64()
fieldName := r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField.FieldName.ValueString()
- mode3 := new(shared.DestinationMilvusUpdateEmbeddingFromFieldMode)
- if !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField.Mode.IsNull() {
- *mode3 = shared.DestinationMilvusUpdateEmbeddingFromFieldMode(r.Configuration.Embedding.DestinationMilvusUpdateEmbeddingFromField.Mode.ValueString())
- } else {
- mode3 = nil
- }
destinationMilvusUpdateEmbeddingFromField = &shared.DestinationMilvusUpdateEmbeddingFromField{
Dimensions: dimensions,
FieldName: fieldName,
- Mode: mode3,
}
}
if destinationMilvusUpdateEmbeddingFromField != nil {
@@ -295,15 +213,8 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
var auth shared.DestinationMilvusUpdateIndexingAuthentication
var destinationMilvusUpdateIndexingAuthenticationAPIToken *shared.DestinationMilvusUpdateIndexingAuthenticationAPIToken
if r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationAPIToken != nil {
- mode4 := new(shared.DestinationMilvusUpdateIndexingAuthenticationAPITokenMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationAPIToken.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationAPIToken.Mode.IsNull() {
- *mode4 = shared.DestinationMilvusUpdateIndexingAuthenticationAPITokenMode(r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationAPIToken.Mode.ValueString())
- } else {
- mode4 = nil
- }
token := r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationAPIToken.Token.ValueString()
destinationMilvusUpdateIndexingAuthenticationAPIToken = &shared.DestinationMilvusUpdateIndexingAuthenticationAPIToken{
- Mode: mode4,
Token: token,
}
}
@@ -314,16 +225,9 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
}
var destinationMilvusUpdateIndexingAuthenticationUsernamePassword *shared.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword
if r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword != nil {
- mode5 := new(shared.DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword.Mode.IsNull() {
- *mode5 = shared.DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode(r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword.Mode.ValueString())
- } else {
- mode5 = nil
- }
password := r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword.Password.ValueString()
username := r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword.Username.ValueString()
destinationMilvusUpdateIndexingAuthenticationUsernamePassword = &shared.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword{
- Mode: mode5,
Password: password,
Username: username,
}
@@ -335,15 +239,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi
}
var destinationMilvusUpdateIndexingAuthenticationNoAuth *shared.DestinationMilvusUpdateIndexingAuthenticationNoAuth
if r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationNoAuth != nil {
- mode6 := new(shared.DestinationMilvusUpdateIndexingAuthenticationNoAuthMode)
- if !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationNoAuth.Mode.IsUnknown() && !r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationNoAuth.Mode.IsNull() {
- *mode6 = shared.DestinationMilvusUpdateIndexingAuthenticationNoAuthMode(r.Configuration.Indexing.Auth.DestinationMilvusUpdateIndexingAuthenticationNoAuth.Mode.ValueString())
- } else {
- mode6 = nil
- }
- destinationMilvusUpdateIndexingAuthenticationNoAuth = &shared.DestinationMilvusUpdateIndexingAuthenticationNoAuth{
- Mode: mode6,
- }
+ destinationMilvusUpdateIndexingAuthenticationNoAuth = &shared.DestinationMilvusUpdateIndexingAuthenticationNoAuth{}
}
if destinationMilvusUpdateIndexingAuthenticationNoAuth != nil {
auth = shared.DestinationMilvusUpdateIndexingAuthentication{
diff --git a/internal/provider/destination_mongodb_data_source.go b/internal/provider/destination_mongodb_data_source.go
old mode 100755
new mode 100644
index bd5f75f80..9cd09db71
--- a/internal/provider/destination_mongodb_data_source.go
+++ b/internal/provider/destination_mongodb_data_source.go
@@ -58,15 +58,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
"destination_mongodb_authorization_type_login_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "login/password",
- ),
- },
- Description: `must be one of ["login/password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Password associated with the username.`,
@@ -79,32 +70,13 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Description: `Login/Password.`,
},
"destination_mongodb_authorization_type_none": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `None.`,
},
"destination_mongodb_update_authorization_type_login_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "login/password",
- ),
- },
- Description: `must be one of ["login/password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Password associated with the username.`,
@@ -117,18 +89,8 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Description: `Login/Password.`,
},
"destination_mongodb_update_authorization_type_none": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `None.`,
},
},
@@ -141,15 +103,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb",
- ),
- },
- Description: `must be one of ["mongodb"]`,
- },
"instance_type": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -293,20 +246,9 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_mongodb_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
Computed: true,
@@ -315,16 +257,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -338,7 +270,7 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Description: `OS-level password for logging into the jump server host`,
},
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_ssh_tunnel_method_ssh_key_authentication": schema.SingleNestedAttribute{
Computed: true,
@@ -351,16 +283,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -370,22 +292,11 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Description: `OS-level username for logging into the jump server host.`,
},
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mongodb_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -395,16 +306,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -431,16 +332,6 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -456,7 +347,7 @@ func (r *DestinationMongodbDataSource) Schema(ctx context.Context, req datasourc
Validators: []validator.Object{
validators.ExactlyOneChild(),
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
},
},
diff --git a/internal/provider/destination_mongodb_data_source_sdk.go b/internal/provider/destination_mongodb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_mongodb_resource.go b/internal/provider/destination_mongodb_resource.go
old mode 100755
new mode 100644
index 6d36bdf5e..62ee15604
--- a/internal/provider/destination_mongodb_resource.go
+++ b/internal/provider/destination_mongodb_resource.go
@@ -60,15 +60,6 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
"destination_mongodb_authorization_type_login_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "login/password",
- ),
- },
- Description: `must be one of ["login/password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Password associated with the username.`,
@@ -81,32 +72,13 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `Login/Password.`,
},
"destination_mongodb_authorization_type_none": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `None.`,
},
"destination_mongodb_update_authorization_type_login_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "login/password",
- ),
- },
- Description: `must be one of ["login/password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Password associated with the username.`,
@@ -119,18 +91,8 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `Login/Password.`,
},
"destination_mongodb_update_authorization_type_none": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "authorization": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `None.`,
},
},
@@ -143,15 +105,6 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb",
- ),
- },
- Description: `must be one of ["mongodb"]`,
- },
"instance_type": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
@@ -163,7 +116,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `URL of a cluster to connect to.`,
},
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"atlas",
@@ -178,7 +131,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"replica",
@@ -205,7 +158,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `The Host of a Mongo database to be replicated.`,
},
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"standalone",
@@ -214,7 +167,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `must be one of ["standalone"]`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The Port of a Mongo database to be replicated.`,
},
},
@@ -228,7 +181,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `URL of a cluster to connect to.`,
},
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"atlas",
@@ -243,7 +196,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"replica",
@@ -270,7 +223,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `The Host of a Mongo database to be replicated.`,
},
"instance": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"standalone",
@@ -279,7 +232,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `must be one of ["standalone"]`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The Port of a Mongo database to be replicated.`,
},
},
@@ -295,20 +248,9 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_mongodb_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
Optional: true,
@@ -317,18 +259,8 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -340,7 +272,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `OS-level password for logging into the jump server host`,
},
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_ssh_tunnel_method_ssh_key_authentication": schema.SingleNestedAttribute{
Optional: true,
@@ -353,18 +285,8 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -372,22 +294,11 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Description: `OS-level username for logging into the jump server host.`,
},
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
"destination_mongodb_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mongodb_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -397,18 +308,8 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -433,18 +334,8 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -458,7 +349,7 @@ func (r *DestinationMongodbResource) Schema(ctx context.Context, req resource.Sc
Validators: []validator.Object{
validators.ExactlyOneChild(),
},
- Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
+ Description: `Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.`,
},
},
},
@@ -528,7 +419,7 @@ func (r *DestinationMongodbResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationMongodb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_mongodb_resource_sdk.go b/internal/provider/destination_mongodb_resource_sdk.go
old mode 100755
new mode 100644
index 717933b7e..f1642c0a1
--- a/internal/provider/destination_mongodb_resource_sdk.go
+++ b/internal/provider/destination_mongodb_resource_sdk.go
@@ -11,10 +11,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
var authType shared.DestinationMongodbAuthorizationType
var destinationMongodbAuthorizationTypeNone *shared.DestinationMongodbAuthorizationTypeNone
if r.Configuration.AuthType.DestinationMongodbAuthorizationTypeNone != nil {
- authorization := shared.DestinationMongodbAuthorizationTypeNoneAuthorization(r.Configuration.AuthType.DestinationMongodbAuthorizationTypeNone.Authorization.ValueString())
- destinationMongodbAuthorizationTypeNone = &shared.DestinationMongodbAuthorizationTypeNone{
- Authorization: authorization,
- }
+ destinationMongodbAuthorizationTypeNone = &shared.DestinationMongodbAuthorizationTypeNone{}
}
if destinationMongodbAuthorizationTypeNone != nil {
authType = shared.DestinationMongodbAuthorizationType{
@@ -23,13 +20,11 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
}
var destinationMongodbAuthorizationTypeLoginPassword *shared.DestinationMongodbAuthorizationTypeLoginPassword
if r.Configuration.AuthType.DestinationMongodbAuthorizationTypeLoginPassword != nil {
- authorization1 := shared.DestinationMongodbAuthorizationTypeLoginPasswordAuthorization(r.Configuration.AuthType.DestinationMongodbAuthorizationTypeLoginPassword.Authorization.ValueString())
password := r.Configuration.AuthType.DestinationMongodbAuthorizationTypeLoginPassword.Password.ValueString()
username := r.Configuration.AuthType.DestinationMongodbAuthorizationTypeLoginPassword.Username.ValueString()
destinationMongodbAuthorizationTypeLoginPassword = &shared.DestinationMongodbAuthorizationTypeLoginPassword{
- Authorization: authorization1,
- Password: password,
- Username: username,
+ Password: password,
+ Username: username,
}
}
if destinationMongodbAuthorizationTypeLoginPassword != nil {
@@ -38,14 +33,23 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
}
}
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationMongodbMongodb(r.Configuration.DestinationType.ValueString())
var instanceType *shared.DestinationMongodbMongoDbInstanceType
if r.Configuration.InstanceType != nil {
var destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance *shared.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
if r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
host := r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Host.ValueString()
- instance := shared.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
- port := r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ instance := new(shared.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.IsNull() {
+ *instance = shared.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
+ } else {
+ instance = nil
+ }
+ port := new(int64)
+ if !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsNull() {
+ *port = r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ } else {
+ port = nil
+ }
destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance = &shared.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance{
Host: host,
Instance: instance,
@@ -59,7 +63,12 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
}
var destinationMongodbMongoDbInstanceTypeReplicaSet *shared.DestinationMongodbMongoDbInstanceTypeReplicaSet
if r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet != nil {
- instance1 := shared.DestinationMongodbMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.Instance.ValueString())
+ instance1 := new(shared.DestinationMongodbMongoDbInstanceTypeReplicaSetInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.Instance.IsNull() {
+ *instance1 = shared.DestinationMongodbMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.Instance.ValueString())
+ } else {
+ instance1 = nil
+ }
replicaSet := new(string)
if !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.IsNull() {
*replicaSet = r.Configuration.InstanceType.DestinationMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.ValueString()
@@ -81,7 +90,12 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
var destinationMongodbMongoDBInstanceTypeMongoDBAtlas *shared.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas
if r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
clusterURL := r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
- instance2 := shared.DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
+ instance2 := new(shared.DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas.Instance.IsNull() {
+ *instance2 = shared.DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
+ } else {
+ instance2 = nil
+ }
destinationMongodbMongoDBInstanceTypeMongoDBAtlas = &shared.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas{
ClusterURL: clusterURL,
Instance: instance2,
@@ -97,10 +111,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
if r.Configuration.TunnelMethod != nil {
var destinationMongodbSSHTunnelMethodNoTunnel *shared.DestinationMongodbSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMongodbSSHTunnelMethodNoTunnel = &shared.DestinationMongodbSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMongodbSSHTunnelMethodNoTunnel = &shared.DestinationMongodbSSHTunnelMethodNoTunnel{}
}
if destinationMongodbSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMongodbSSHTunnelMethod{
@@ -111,15 +122,18 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
if r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMongodbSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMongodbSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -130,13 +144,16 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
var destinationMongodbSSHTunnelMethodPasswordAuthentication *shared.DestinationMongodbSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMongodbSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMongodbSSHTunnelMethodPasswordAuthentication = &shared.DestinationMongodbSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -149,11 +166,10 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM
}
}
configuration := shared.DestinationMongodb{
- AuthType: authType,
- Database: database,
- DestinationType: destinationType,
- InstanceType: instanceType,
- TunnelMethod: tunnelMethod,
+ AuthType: authType,
+ Database: database,
+ InstanceType: instanceType,
+ TunnelMethod: tunnelMethod,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -174,10 +190,7 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
var authType shared.DestinationMongodbUpdateAuthorizationType
var destinationMongodbUpdateAuthorizationTypeNone *shared.DestinationMongodbUpdateAuthorizationTypeNone
if r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeNone != nil {
- authorization := shared.DestinationMongodbUpdateAuthorizationTypeNoneAuthorization(r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeNone.Authorization.ValueString())
- destinationMongodbUpdateAuthorizationTypeNone = &shared.DestinationMongodbUpdateAuthorizationTypeNone{
- Authorization: authorization,
- }
+ destinationMongodbUpdateAuthorizationTypeNone = &shared.DestinationMongodbUpdateAuthorizationTypeNone{}
}
if destinationMongodbUpdateAuthorizationTypeNone != nil {
authType = shared.DestinationMongodbUpdateAuthorizationType{
@@ -186,13 +199,11 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
}
var destinationMongodbUpdateAuthorizationTypeLoginPassword *shared.DestinationMongodbUpdateAuthorizationTypeLoginPassword
if r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeLoginPassword != nil {
- authorization1 := shared.DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorization(r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeLoginPassword.Authorization.ValueString())
password := r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeLoginPassword.Password.ValueString()
username := r.Configuration.AuthType.DestinationMongodbUpdateAuthorizationTypeLoginPassword.Username.ValueString()
destinationMongodbUpdateAuthorizationTypeLoginPassword = &shared.DestinationMongodbUpdateAuthorizationTypeLoginPassword{
- Authorization: authorization1,
- Password: password,
- Username: username,
+ Password: password,
+ Username: username,
}
}
if destinationMongodbUpdateAuthorizationTypeLoginPassword != nil {
@@ -206,8 +217,18 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
var destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance *shared.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
if r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
host := r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Host.ValueString()
- instance := shared.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
- port := r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ instance := new(shared.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.IsNull() {
+ *instance = shared.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
+ } else {
+ instance = nil
+ }
+ port := new(int64)
+ if !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsNull() {
+ *port = r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ } else {
+ port = nil
+ }
destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance = &shared.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance{
Host: host,
Instance: instance,
@@ -221,7 +242,12 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
}
var destinationMongodbUpdateMongoDbInstanceTypeReplicaSet *shared.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet
if r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet != nil {
- instance1 := shared.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.Instance.ValueString())
+ instance1 := new(shared.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.Instance.IsNull() {
+ *instance1 = shared.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.Instance.ValueString())
+ } else {
+ instance1 = nil
+ }
replicaSet := new(string)
if !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.IsNull() {
*replicaSet = r.Configuration.InstanceType.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.ValueString()
@@ -243,7 +269,12 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
var destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas *shared.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
if r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
clusterURL := r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
- instance2 := shared.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
+ instance2 := new(shared.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance)
+ if !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.Instance.IsUnknown() && !r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.Instance.IsNull() {
+ *instance2 = shared.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
+ } else {
+ instance2 = nil
+ }
destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas = &shared.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas{
ClusterURL: clusterURL,
Instance: instance2,
@@ -259,10 +290,7 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
if r.Configuration.TunnelMethod != nil {
var destinationMongodbUpdateSSHTunnelMethodNoTunnel *shared.DestinationMongodbUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMongodbUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMongodbUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMongodbUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMongodbUpdateSSHTunnelMethodNoTunnel{}
}
if destinationMongodbUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMongodbUpdateSSHTunnelMethod{
@@ -273,15 +301,18 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
if r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -292,13 +323,16 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM
var destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_mssql_data_source.go b/internal/provider/destination_mssql_data_source.go
old mode 100755
new mode 100644
index f6bf10569..e13f853da
--- a/internal/provider/destination_mssql_data_source.go
+++ b/internal/provider/destination_mssql_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -56,15 +55,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `The name of the MSSQL database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mssql",
- ),
- },
- Description: `must be one of ["mssql"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `The host name of the MSSQL database.`,
@@ -89,18 +79,8 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_mssql_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"destination_mssql_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -110,31 +90,12 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
"destination_mssql_update_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"destination_mssql_update_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -144,15 +105,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
@@ -166,19 +118,8 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_mssql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -188,16 +129,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -224,16 +155,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -246,19 +167,8 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -268,16 +178,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -304,16 +204,6 @@ func (r *DestinationMssqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_mssql_data_source_sdk.go b/internal/provider/destination_mssql_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_mssql_resource.go b/internal/provider/destination_mssql_resource.go
old mode 100755
new mode 100644
index f7c626167..8152fb56b
--- a/internal/provider/destination_mssql_resource.go
+++ b/internal/provider/destination_mssql_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,15 +57,6 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `The name of the MSSQL database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mssql",
- ),
- },
- Description: `must be one of ["mssql"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `The host name of the MSSQL database.`,
@@ -80,29 +70,19 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Description: `The password associated with this username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port of the MSSQL database.`,
},
"schema": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".`,
},
"ssl_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_mssql_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"destination_mssql_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -112,31 +92,12 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
"destination_mssql_update_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"destination_mssql_update_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -146,15 +107,6 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
@@ -168,19 +120,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_mssql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -190,18 +131,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -226,18 +157,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -248,19 +169,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mssql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -270,18 +180,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -306,18 +206,8 @@ func (r *DestinationMssqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -405,7 +295,7 @@ func (r *DestinationMssqlResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationMssql(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_mssql_resource_sdk.go b/internal/provider/destination_mssql_resource_sdk.go
old mode 100755
new mode 100644
index c34683962..44d419ae9
--- a/internal/provider/destination_mssql_resource_sdk.go
+++ b/internal/provider/destination_mssql_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMssqlCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationMssqlMssql(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -23,16 +22,23 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var sslMethod *shared.DestinationMssqlSSLMethod
if r.Configuration.SslMethod != nil {
var destinationMssqlSSLMethodEncryptedTrustServerCertificate *shared.DestinationMssqlSSLMethodEncryptedTrustServerCertificate
if r.Configuration.SslMethod.DestinationMssqlSSLMethodEncryptedTrustServerCertificate != nil {
- sslMethod1 := shared.DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod(r.Configuration.SslMethod.DestinationMssqlSSLMethodEncryptedTrustServerCertificate.SslMethod.ValueString())
- destinationMssqlSSLMethodEncryptedTrustServerCertificate = &shared.DestinationMssqlSSLMethodEncryptedTrustServerCertificate{
- SslMethod: sslMethod1,
- }
+ destinationMssqlSSLMethodEncryptedTrustServerCertificate = &shared.DestinationMssqlSSLMethodEncryptedTrustServerCertificate{}
}
if destinationMssqlSSLMethodEncryptedTrustServerCertificate != nil {
sslMethod = &shared.DestinationMssqlSSLMethod{
@@ -47,10 +53,8 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
} else {
hostNameInCertificate = nil
}
- sslMethod2 := shared.DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethod(r.Configuration.SslMethod.DestinationMssqlSSLMethodEncryptedVerifyCertificate.SslMethod.ValueString())
destinationMssqlSSLMethodEncryptedVerifyCertificate = &shared.DestinationMssqlSSLMethodEncryptedVerifyCertificate{
HostNameInCertificate: hostNameInCertificate,
- SslMethod: sslMethod2,
}
}
if destinationMssqlSSLMethodEncryptedVerifyCertificate != nil {
@@ -63,10 +67,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
if r.Configuration.TunnelMethod != nil {
var destinationMssqlSSHTunnelMethodNoTunnel *shared.DestinationMssqlSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMssqlSSHTunnelMethodNoTunnel = &shared.DestinationMssqlSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMssqlSSHTunnelMethodNoTunnel = &shared.DestinationMssqlSSHTunnelMethodNoTunnel{}
}
if destinationMssqlSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMssqlSSHTunnelMethod{
@@ -77,15 +78,18 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
if r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMssqlSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -96,13 +100,16 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
var destinationMssqlSSHTunnelMethodPasswordAuthentication *shared.DestinationMssqlSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMssqlSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMssqlSSHTunnelMethodPasswordAuthentication = &shared.DestinationMssqlSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -116,16 +123,15 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationMssql{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- Schema: schema,
- SslMethod: sslMethod,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ Schema: schema,
+ SslMethod: sslMethod,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -157,16 +163,23 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var sslMethod *shared.DestinationMssqlUpdateSSLMethod
if r.Configuration.SslMethod != nil {
var destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate *shared.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate
if r.Configuration.SslMethod.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
- sslMethod1 := shared.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod(r.Configuration.SslMethod.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate.SslMethod.ValueString())
- destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate = &shared.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate{
- SslMethod: sslMethod1,
- }
+ destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate = &shared.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate{}
}
if destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
sslMethod = &shared.DestinationMssqlUpdateSSLMethod{
@@ -181,10 +194,8 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss
} else {
hostNameInCertificate = nil
}
- sslMethod2 := shared.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod(r.Configuration.SslMethod.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate.SslMethod.ValueString())
destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate = &shared.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate{
HostNameInCertificate: hostNameInCertificate,
- SslMethod: sslMethod2,
}
}
if destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate != nil {
@@ -197,10 +208,7 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss
if r.Configuration.TunnelMethod != nil {
var destinationMssqlUpdateSSHTunnelMethodNoTunnel *shared.DestinationMssqlUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMssqlUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMssqlUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMssqlUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMssqlUpdateSSHTunnelMethodNoTunnel{}
}
if destinationMssqlUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMssqlUpdateSSHTunnelMethod{
@@ -211,15 +219,18 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss
if r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -230,13 +241,16 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss
var destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_mysql_data_source.go b/internal/provider/destination_mysql_data_source.go
old mode 100755
new mode 100644
index 6e6512227..54d6314ea
--- a/internal/provider/destination_mysql_data_source.go
+++ b/internal/provider/destination_mysql_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -56,15 +55,6 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mysql",
- ),
- },
- Description: `must be one of ["mysql"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the database.`,
@@ -85,19 +75,8 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_mysql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -107,16 +86,6 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -143,16 +112,6 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -165,19 +124,8 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -187,16 +135,6 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -223,16 +161,6 @@ func (r *DestinationMysqlDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_mysql_data_source_sdk.go b/internal/provider/destination_mysql_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_mysql_resource.go b/internal/provider/destination_mysql_resource.go
old mode 100755
new mode 100644
index 67fbad8f9..1940d60c2
--- a/internal/provider/destination_mysql_resource.go
+++ b/internal/provider/destination_mysql_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,15 +57,6 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mysql",
- ),
- },
- Description: `must be one of ["mysql"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the database.`,
@@ -80,26 +70,15 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"tunnel_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_mysql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -109,18 +88,8 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -145,18 +114,8 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -167,19 +126,8 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_mysql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -189,18 +137,8 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -225,18 +163,8 @@ func (r *DestinationMysqlResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -324,7 +252,7 @@ func (r *DestinationMysqlResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationMysql(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_mysql_resource_sdk.go b/internal/provider/destination_mysql_resource_sdk.go
old mode 100755
new mode 100644
index 8e449d928..624e127cd
--- a/internal/provider/destination_mysql_resource_sdk.go
+++ b/internal/provider/destination_mysql_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMysqlCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationMysqlMysql(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -23,15 +22,17 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.DestinationMysqlSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationMysqlSSHTunnelMethodNoTunnel *shared.DestinationMysqlSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMysqlSSHTunnelMethodNoTunnel = &shared.DestinationMysqlSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMysqlSSHTunnelMethodNoTunnel = &shared.DestinationMysqlSSHTunnelMethodNoTunnel{}
}
if destinationMysqlSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMysqlSSHTunnelMethod{
@@ -42,15 +43,18 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys
if r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMysqlSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -61,13 +65,16 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys
var destinationMysqlSSHTunnelMethodPasswordAuthentication *shared.DestinationMysqlSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMysqlSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMysqlSSHTunnelMethodPasswordAuthentication = &shared.DestinationMysqlSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -81,14 +88,13 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationMysql{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -120,15 +126,17 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.DestinationMysqlUpdateSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationMysqlUpdateSSHTunnelMethodNoTunnel *shared.DestinationMysqlUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationMysqlUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMysqlUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationMysqlUpdateSSHTunnelMethodNoTunnel = &shared.DestinationMysqlUpdateSSHTunnelMethodNoTunnel{}
}
if destinationMysqlUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationMysqlUpdateSSHTunnelMethod{
@@ -139,15 +147,18 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys
if r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -158,13 +169,16 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys
var destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_oracle_data_source.go b/internal/provider/destination_oracle_data_source.go
old mode 100755
new mode 100644
index 898bbf03e..83193f2f1
--- a/internal/provider/destination_oracle_data_source.go
+++ b/internal/provider/destination_oracle_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -52,15 +51,6 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oracle",
- ),
- },
- Description: `must be one of ["oracle"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `The hostname of the database.`,
@@ -89,19 +79,8 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_oracle_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -111,16 +90,6 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -147,16 +116,6 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -169,19 +128,8 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -191,16 +139,6 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -227,16 +165,6 @@ func (r *DestinationOracleDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_oracle_data_source_sdk.go b/internal/provider/destination_oracle_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_oracle_resource.go b/internal/provider/destination_oracle_resource.go
old mode 100755
new mode 100644
index 6b97e80e7..3507620de
--- a/internal/provider/destination_oracle_resource.go
+++ b/internal/provider/destination_oracle_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -54,15 +53,6 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oracle",
- ),
- },
- Description: `must be one of ["oracle"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `The hostname of the database.`,
@@ -76,7 +66,7 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Description: `The password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port of the database.`,
},
"schema": schema.StringAttribute{
@@ -91,19 +81,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_oracle_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -113,18 +92,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -149,18 +118,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -171,19 +130,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_oracle_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -193,18 +141,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -229,18 +167,8 @@ func (r *DestinationOracleResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -328,7 +256,7 @@ func (r *DestinationOracleResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationOracle(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_oracle_resource_sdk.go b/internal/provider/destination_oracle_resource_sdk.go
old mode 100755
new mode 100644
index f48563fb0..d307888bd
--- a/internal/provider/destination_oracle_resource_sdk.go
+++ b/internal/provider/destination_oracle_resource_sdk.go
@@ -8,7 +8,6 @@ import (
)
func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOracleCreateRequest {
- destinationType := shared.DestinationOracleOracle(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -22,7 +21,12 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
schema := new(string)
if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
*schema = r.Configuration.Schema.ValueString()
@@ -34,10 +38,7 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr
if r.Configuration.TunnelMethod != nil {
var destinationOracleSSHTunnelMethodNoTunnel *shared.DestinationOracleSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationOracleSSHTunnelMethodNoTunnel = &shared.DestinationOracleSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationOracleSSHTunnelMethodNoTunnel = &shared.DestinationOracleSSHTunnelMethodNoTunnel{}
}
if destinationOracleSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationOracleSSHTunnelMethod{
@@ -48,15 +49,18 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr
if r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationOracleSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationOracleSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationOracleSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -67,13 +71,16 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr
var destinationOracleSSHTunnelMethodPasswordAuthentication *shared.DestinationOracleSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationOracleSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationOracleSSHTunnelMethodPasswordAuthentication = &shared.DestinationOracleSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -87,15 +94,14 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationOracle{
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- Schema: schema,
- Sid: sid,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ Schema: schema,
+ Sid: sid,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -126,7 +132,12 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
schema := new(string)
if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
*schema = r.Configuration.Schema.ValueString()
@@ -138,10 +149,7 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr
if r.Configuration.TunnelMethod != nil {
var destinationOracleUpdateSSHTunnelMethodNoTunnel *shared.DestinationOracleUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationOracleUpdateSSHTunnelMethodNoTunnel = &shared.DestinationOracleUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationOracleUpdateSSHTunnelMethodNoTunnel = &shared.DestinationOracleUpdateSSHTunnelMethodNoTunnel{}
}
if destinationOracleUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationOracleUpdateSSHTunnelMethod{
@@ -152,15 +160,18 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr
if r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -171,13 +182,16 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr
var destinationOracleUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationOracleUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_pinecone_data_source.go b/internal/provider/destination_pinecone_data_source.go
old mode 100755
new mode 100644
index fc6ff453c..0348b722c
--- a/internal/provider/destination_pinecone_data_source.go
+++ b/internal/provider/destination_pinecone_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -52,15 +51,6 @@ func (r *DestinationPineconeDataSource) Schema(ctx context.Context, req datasour
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"embedding": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
@@ -70,45 +60,17 @@ func (r *DestinationPineconeDataSource) Schema(ctx context.Context, req datasour
"cohere_key": schema.StringAttribute{
Computed: true,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_pinecone_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_pinecone_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
@@ -121,45 +83,17 @@ func (r *DestinationPineconeDataSource) Schema(ctx context.Context, req datasour
"cohere_key": schema.StringAttribute{
Computed: true,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_pinecone_update_embedding_fake": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_pinecone_update_embedding_open_ai": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Computed: true,
},
diff --git a/internal/provider/destination_pinecone_data_source_sdk.go b/internal/provider/destination_pinecone_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_pinecone_resource.go b/internal/provider/destination_pinecone_resource.go
old mode 100755
new mode 100644
index e64f09126..c5e9457ad
--- a/internal/provider/destination_pinecone_resource.go
+++ b/internal/provider/destination_pinecone_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -54,15 +53,6 @@ func (r *DestinationPineconeResource) Schema(ctx context.Context, req resource.S
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinecone",
- ),
- },
- Description: `must be one of ["pinecone"]`,
- },
"embedding": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
@@ -72,45 +62,17 @@ func (r *DestinationPineconeResource) Schema(ctx context.Context, req resource.S
"cohere_key": schema.StringAttribute{
Required: true,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_pinecone_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_pinecone_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -123,45 +85,17 @@ func (r *DestinationPineconeResource) Schema(ctx context.Context, req resource.S
"cohere_key": schema.StringAttribute{
Required: true,
},
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "cohere",
- ),
- },
- Description: `must be one of ["cohere"]`,
- },
},
Description: `Use the Cohere API to embed text.`,
},
"destination_pinecone_update_embedding_fake": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fake",
- ),
- },
- Description: `must be one of ["fake"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.`,
},
"destination_pinecone_update_embedding_open_ai": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "openai",
- ),
- },
- Description: `must be one of ["openai"]`,
- },
"openai_key": schema.StringAttribute{
Required: true,
},
@@ -282,7 +216,7 @@ func (r *DestinationPineconeResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationPinecone(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_pinecone_resource_sdk.go b/internal/provider/destination_pinecone_resource_sdk.go
old mode 100755
new mode 100644
index 5769344a7..8e49b391b
--- a/internal/provider/destination_pinecone_resource_sdk.go
+++ b/internal/provider/destination_pinecone_resource_sdk.go
@@ -8,19 +8,11 @@ import (
)
func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.DestinationPineconeCreateRequest {
- destinationType := shared.DestinationPineconePinecone(r.Configuration.DestinationType.ValueString())
var embedding shared.DestinationPineconeEmbedding
var destinationPineconeEmbeddingOpenAI *shared.DestinationPineconeEmbeddingOpenAI
if r.Configuration.Embedding.DestinationPineconeEmbeddingOpenAI != nil {
- mode := new(shared.DestinationPineconeEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationPineconeEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationPineconeEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationPineconeEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationPineconeEmbeddingOpenAI.OpenaiKey.ValueString()
destinationPineconeEmbeddingOpenAI = &shared.DestinationPineconeEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -32,15 +24,8 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination
var destinationPineconeEmbeddingCohere *shared.DestinationPineconeEmbeddingCohere
if r.Configuration.Embedding.DestinationPineconeEmbeddingCohere != nil {
cohereKey := r.Configuration.Embedding.DestinationPineconeEmbeddingCohere.CohereKey.ValueString()
- mode1 := new(shared.DestinationPineconeEmbeddingCohereMode)
- if !r.Configuration.Embedding.DestinationPineconeEmbeddingCohere.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeEmbeddingCohere.Mode.IsNull() {
- *mode1 = shared.DestinationPineconeEmbeddingCohereMode(r.Configuration.Embedding.DestinationPineconeEmbeddingCohere.Mode.ValueString())
- } else {
- mode1 = nil
- }
destinationPineconeEmbeddingCohere = &shared.DestinationPineconeEmbeddingCohere{
CohereKey: cohereKey,
- Mode: mode1,
}
}
if destinationPineconeEmbeddingCohere != nil {
@@ -50,15 +35,7 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination
}
var destinationPineconeEmbeddingFake *shared.DestinationPineconeEmbeddingFake
if r.Configuration.Embedding.DestinationPineconeEmbeddingFake != nil {
- mode2 := new(shared.DestinationPineconeEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationPineconeEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeEmbeddingFake.Mode.IsNull() {
- *mode2 = shared.DestinationPineconeEmbeddingFakeMode(r.Configuration.Embedding.DestinationPineconeEmbeddingFake.Mode.ValueString())
- } else {
- mode2 = nil
- }
- destinationPineconeEmbeddingFake = &shared.DestinationPineconeEmbeddingFake{
- Mode: mode2,
- }
+ destinationPineconeEmbeddingFake = &shared.DestinationPineconeEmbeddingFake{}
}
if destinationPineconeEmbeddingFake != nil {
embedding = shared.DestinationPineconeEmbedding{
@@ -95,10 +72,9 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination
TextFields: textFields,
}
configuration := shared.DestinationPinecone{
- DestinationType: destinationType,
- Embedding: embedding,
- Indexing: indexing,
- Processing: processing,
+ Embedding: embedding,
+ Indexing: indexing,
+ Processing: processing,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -119,15 +95,8 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination
var embedding shared.DestinationPineconeUpdateEmbedding
var destinationPineconeUpdateEmbeddingOpenAI *shared.DestinationPineconeUpdateEmbeddingOpenAI
if r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingOpenAI != nil {
- mode := new(shared.DestinationPineconeUpdateEmbeddingOpenAIMode)
- if !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingOpenAI.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingOpenAI.Mode.IsNull() {
- *mode = shared.DestinationPineconeUpdateEmbeddingOpenAIMode(r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingOpenAI.Mode.ValueString())
- } else {
- mode = nil
- }
openaiKey := r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingOpenAI.OpenaiKey.ValueString()
destinationPineconeUpdateEmbeddingOpenAI = &shared.DestinationPineconeUpdateEmbeddingOpenAI{
- Mode: mode,
OpenaiKey: openaiKey,
}
}
@@ -139,15 +108,8 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination
var destinationPineconeUpdateEmbeddingCohere *shared.DestinationPineconeUpdateEmbeddingCohere
if r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingCohere != nil {
cohereKey := r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingCohere.CohereKey.ValueString()
- mode1 := new(shared.DestinationPineconeUpdateEmbeddingCohereMode)
- if !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingCohere.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingCohere.Mode.IsNull() {
- *mode1 = shared.DestinationPineconeUpdateEmbeddingCohereMode(r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingCohere.Mode.ValueString())
- } else {
- mode1 = nil
- }
destinationPineconeUpdateEmbeddingCohere = &shared.DestinationPineconeUpdateEmbeddingCohere{
CohereKey: cohereKey,
- Mode: mode1,
}
}
if destinationPineconeUpdateEmbeddingCohere != nil {
@@ -157,15 +119,7 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination
}
var destinationPineconeUpdateEmbeddingFake *shared.DestinationPineconeUpdateEmbeddingFake
if r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingFake != nil {
- mode2 := new(shared.DestinationPineconeUpdateEmbeddingFakeMode)
- if !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingFake.Mode.IsUnknown() && !r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingFake.Mode.IsNull() {
- *mode2 = shared.DestinationPineconeUpdateEmbeddingFakeMode(r.Configuration.Embedding.DestinationPineconeUpdateEmbeddingFake.Mode.ValueString())
- } else {
- mode2 = nil
- }
- destinationPineconeUpdateEmbeddingFake = &shared.DestinationPineconeUpdateEmbeddingFake{
- Mode: mode2,
- }
+ destinationPineconeUpdateEmbeddingFake = &shared.DestinationPineconeUpdateEmbeddingFake{}
}
if destinationPineconeUpdateEmbeddingFake != nil {
embedding = shared.DestinationPineconeUpdateEmbedding{
diff --git a/internal/provider/destination_postgres_data_source.go b/internal/provider/destination_postgres_data_source.go
old mode 100755
new mode 100644
index 11118d55a..005d8373e
--- a/internal/provider/destination_postgres_data_source.go
+++ b/internal/provider/destination_postgres_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -56,15 +55,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postgres",
- ),
- },
- Description: `must be one of ["postgres"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the database.`,
@@ -89,63 +79,23 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_postgres_ssl_modes_allow": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Allow SSL mode.`,
},
"destination_postgres_ssl_modes_disable": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_postgres_ssl_modes_prefer": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Prefer SSL mode.`,
},
"destination_postgres_ssl_modes_require": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Require SSL mode.`,
},
"destination_postgres_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -159,15 +109,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
},
Description: `Verify-ca SSL mode.`,
},
@@ -190,76 +131,27 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
"destination_postgres_update_ssl_modes_allow": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Allow SSL mode.`,
},
"destination_postgres_update_ssl_modes_disable": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_postgres_update_ssl_modes_prefer": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Prefer SSL mode.`,
},
"destination_postgres_update_ssl_modes_require": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Require SSL mode.`,
},
"destination_postgres_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -273,15 +165,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
},
Description: `Verify-ca SSL mode.`,
},
@@ -304,15 +187,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
@@ -333,19 +207,8 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_postgres_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -355,16 +218,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -391,16 +244,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -413,19 +256,8 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -435,16 +267,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -471,16 +293,6 @@ func (r *DestinationPostgresDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_postgres_data_source_sdk.go b/internal/provider/destination_postgres_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_postgres_resource.go b/internal/provider/destination_postgres_resource.go
old mode 100755
new mode 100644
index 75311201a..4b077e07f
--- a/internal/provider/destination_postgres_resource.go
+++ b/internal/provider/destination_postgres_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,15 +57,6 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postgres",
- ),
- },
- Description: `must be one of ["postgres"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the database.`,
@@ -80,74 +70,34 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"schema": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".`,
},
"ssl_mode": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_postgres_ssl_modes_allow": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Allow SSL mode.`,
},
"destination_postgres_ssl_modes_disable": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_postgres_ssl_modes_prefer": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Prefer SSL mode.`,
},
"destination_postgres_ssl_modes_require": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Require SSL mode.`,
},
"destination_postgres_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -161,15 +111,6 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
},
Description: `Verify-ca SSL mode.`,
},
@@ -192,76 +133,27 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
"destination_postgres_update_ssl_modes_allow": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Allow SSL mode.`,
},
"destination_postgres_update_ssl_modes_disable": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_postgres_update_ssl_modes_prefer": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Prefer SSL mode.`,
},
"destination_postgres_update_ssl_modes_require": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Require SSL mode.`,
},
"destination_postgres_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -275,15 +167,6 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
},
Description: `Verify-ca SSL mode.`,
},
@@ -306,15 +189,6 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
@@ -335,19 +209,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_postgres_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -357,18 +220,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -393,18 +246,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -415,19 +258,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_postgres_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -437,18 +269,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -473,18 +295,8 @@ func (r *DestinationPostgresResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -572,7 +384,7 @@ func (r *DestinationPostgresResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationPostgres(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_postgres_resource_sdk.go b/internal/provider/destination_postgres_resource_sdk.go
old mode 100755
new mode 100644
index fa4821cf7..767f17894
--- a/internal/provider/destination_postgres_resource_sdk.go
+++ b/internal/provider/destination_postgres_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.DestinationPostgresCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationPostgresPostgres(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -23,16 +22,23 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var sslMode *shared.DestinationPostgresSSLModes
if r.Configuration.SslMode != nil {
var destinationPostgresSSLModesDisable *shared.DestinationPostgresSSLModesDisable
if r.Configuration.SslMode.DestinationPostgresSSLModesDisable != nil {
- mode := shared.DestinationPostgresSSLModesDisableMode(r.Configuration.SslMode.DestinationPostgresSSLModesDisable.Mode.ValueString())
- destinationPostgresSSLModesDisable = &shared.DestinationPostgresSSLModesDisable{
- Mode: mode,
- }
+ destinationPostgresSSLModesDisable = &shared.DestinationPostgresSSLModesDisable{}
}
if destinationPostgresSSLModesDisable != nil {
sslMode = &shared.DestinationPostgresSSLModes{
@@ -41,10 +47,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
}
var destinationPostgresSSLModesAllow *shared.DestinationPostgresSSLModesAllow
if r.Configuration.SslMode.DestinationPostgresSSLModesAllow != nil {
- mode1 := shared.DestinationPostgresSSLModesAllowMode(r.Configuration.SslMode.DestinationPostgresSSLModesAllow.Mode.ValueString())
- destinationPostgresSSLModesAllow = &shared.DestinationPostgresSSLModesAllow{
- Mode: mode1,
- }
+ destinationPostgresSSLModesAllow = &shared.DestinationPostgresSSLModesAllow{}
}
if destinationPostgresSSLModesAllow != nil {
sslMode = &shared.DestinationPostgresSSLModes{
@@ -53,10 +56,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
}
var destinationPostgresSSLModesPrefer *shared.DestinationPostgresSSLModesPrefer
if r.Configuration.SslMode.DestinationPostgresSSLModesPrefer != nil {
- mode2 := shared.DestinationPostgresSSLModesPreferMode(r.Configuration.SslMode.DestinationPostgresSSLModesPrefer.Mode.ValueString())
- destinationPostgresSSLModesPrefer = &shared.DestinationPostgresSSLModesPrefer{
- Mode: mode2,
- }
+ destinationPostgresSSLModesPrefer = &shared.DestinationPostgresSSLModesPrefer{}
}
if destinationPostgresSSLModesPrefer != nil {
sslMode = &shared.DestinationPostgresSSLModes{
@@ -65,10 +65,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
}
var destinationPostgresSSLModesRequire *shared.DestinationPostgresSSLModesRequire
if r.Configuration.SslMode.DestinationPostgresSSLModesRequire != nil {
- mode3 := shared.DestinationPostgresSSLModesRequireMode(r.Configuration.SslMode.DestinationPostgresSSLModesRequire.Mode.ValueString())
- destinationPostgresSSLModesRequire = &shared.DestinationPostgresSSLModesRequire{
- Mode: mode3,
- }
+ destinationPostgresSSLModesRequire = &shared.DestinationPostgresSSLModesRequire{}
}
if destinationPostgresSSLModesRequire != nil {
sslMode = &shared.DestinationPostgresSSLModes{
@@ -84,11 +81,9 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
} else {
clientKeyPassword = nil
}
- mode4 := shared.DestinationPostgresSSLModesVerifyCaMode(r.Configuration.SslMode.DestinationPostgresSSLModesVerifyCa.Mode.ValueString())
destinationPostgresSSLModesVerifyCa = &shared.DestinationPostgresSSLModesVerifyCa{
CaCertificate: caCertificate,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
}
}
if destinationPostgresSSLModesVerifyCa != nil {
@@ -107,13 +102,11 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.DestinationPostgresSSLModesVerifyFullMode(r.Configuration.SslMode.DestinationPostgresSSLModesVerifyFull.Mode.ValueString())
destinationPostgresSSLModesVerifyFull = &shared.DestinationPostgresSSLModesVerifyFull{
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
}
}
if destinationPostgresSSLModesVerifyFull != nil {
@@ -126,10 +119,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.TunnelMethod != nil {
var destinationPostgresSSHTunnelMethodNoTunnel *shared.DestinationPostgresSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationPostgresSSHTunnelMethodNoTunnel = &shared.DestinationPostgresSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationPostgresSSHTunnelMethodNoTunnel = &shared.DestinationPostgresSSHTunnelMethodNoTunnel{}
}
if destinationPostgresSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationPostgresSSHTunnelMethod{
@@ -140,15 +130,18 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationPostgresSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationPostgresSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -159,13 +152,16 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
var destinationPostgresSSHTunnelMethodPasswordAuthentication *shared.DestinationPostgresSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationPostgresSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationPostgresSSHTunnelMethodPasswordAuthentication = &shared.DestinationPostgresSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -179,16 +175,15 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationPostgres{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- Schema: schema,
- SslMode: sslMode,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ Schema: schema,
+ SslMode: sslMode,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -220,16 +215,23 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var sslMode *shared.DestinationPostgresUpdateSSLModes
if r.Configuration.SslMode != nil {
var destinationPostgresUpdateSSLModesDisable *shared.DestinationPostgresUpdateSSLModesDisable
if r.Configuration.SslMode.DestinationPostgresUpdateSSLModesDisable != nil {
- mode := shared.DestinationPostgresUpdateSSLModesDisableMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesDisable.Mode.ValueString())
- destinationPostgresUpdateSSLModesDisable = &shared.DestinationPostgresUpdateSSLModesDisable{
- Mode: mode,
- }
+ destinationPostgresUpdateSSLModesDisable = &shared.DestinationPostgresUpdateSSLModesDisable{}
}
if destinationPostgresUpdateSSLModesDisable != nil {
sslMode = &shared.DestinationPostgresUpdateSSLModes{
@@ -238,10 +240,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
}
var destinationPostgresUpdateSSLModesAllow *shared.DestinationPostgresUpdateSSLModesAllow
if r.Configuration.SslMode.DestinationPostgresUpdateSSLModesAllow != nil {
- mode1 := shared.DestinationPostgresUpdateSSLModesAllowMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesAllow.Mode.ValueString())
- destinationPostgresUpdateSSLModesAllow = &shared.DestinationPostgresUpdateSSLModesAllow{
- Mode: mode1,
- }
+ destinationPostgresUpdateSSLModesAllow = &shared.DestinationPostgresUpdateSSLModesAllow{}
}
if destinationPostgresUpdateSSLModesAllow != nil {
sslMode = &shared.DestinationPostgresUpdateSSLModes{
@@ -250,10 +249,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
}
var destinationPostgresUpdateSSLModesPrefer *shared.DestinationPostgresUpdateSSLModesPrefer
if r.Configuration.SslMode.DestinationPostgresUpdateSSLModesPrefer != nil {
- mode2 := shared.DestinationPostgresUpdateSSLModesPreferMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesPrefer.Mode.ValueString())
- destinationPostgresUpdateSSLModesPrefer = &shared.DestinationPostgresUpdateSSLModesPrefer{
- Mode: mode2,
- }
+ destinationPostgresUpdateSSLModesPrefer = &shared.DestinationPostgresUpdateSSLModesPrefer{}
}
if destinationPostgresUpdateSSLModesPrefer != nil {
sslMode = &shared.DestinationPostgresUpdateSSLModes{
@@ -262,10 +258,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
}
var destinationPostgresUpdateSSLModesRequire *shared.DestinationPostgresUpdateSSLModesRequire
if r.Configuration.SslMode.DestinationPostgresUpdateSSLModesRequire != nil {
- mode3 := shared.DestinationPostgresUpdateSSLModesRequireMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesRequire.Mode.ValueString())
- destinationPostgresUpdateSSLModesRequire = &shared.DestinationPostgresUpdateSSLModesRequire{
- Mode: mode3,
- }
+ destinationPostgresUpdateSSLModesRequire = &shared.DestinationPostgresUpdateSSLModesRequire{}
}
if destinationPostgresUpdateSSLModesRequire != nil {
sslMode = &shared.DestinationPostgresUpdateSSLModes{
@@ -281,11 +274,9 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
} else {
clientKeyPassword = nil
}
- mode4 := shared.DestinationPostgresUpdateSSLModesVerifyCaMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesVerifyCa.Mode.ValueString())
destinationPostgresUpdateSSLModesVerifyCa = &shared.DestinationPostgresUpdateSSLModesVerifyCa{
CaCertificate: caCertificate,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
}
}
if destinationPostgresUpdateSSLModesVerifyCa != nil {
@@ -304,13 +295,11 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.DestinationPostgresUpdateSSLModesVerifyFullMode(r.Configuration.SslMode.DestinationPostgresUpdateSSLModesVerifyFull.Mode.ValueString())
destinationPostgresUpdateSSLModesVerifyFull = &shared.DestinationPostgresUpdateSSLModesVerifyFull{
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
}
}
if destinationPostgresUpdateSSLModesVerifyFull != nil {
@@ -323,10 +312,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.TunnelMethod != nil {
var destinationPostgresUpdateSSHTunnelMethodNoTunnel *shared.DestinationPostgresUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationPostgresUpdateSSHTunnelMethodNoTunnel = &shared.DestinationPostgresUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationPostgresUpdateSSHTunnelMethodNoTunnel = &shared.DestinationPostgresUpdateSSHTunnelMethodNoTunnel{}
}
if destinationPostgresUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationPostgresUpdateSSHTunnelMethod{
@@ -337,15 +323,18 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -356,13 +345,16 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination
var destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_pubsub_data_source.go b/internal/provider/destination_pubsub_data_source.go
old mode 100755
new mode 100644
index 239100c03..857310690
--- a/internal/provider/destination_pubsub_data_source.go
+++ b/internal/provider/destination_pubsub_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -71,15 +69,6 @@ func (r *DestinationPubsubDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pubsub",
- ),
- },
- Description: `must be one of ["pubsub"]`,
- },
"ordering_enabled": schema.BoolAttribute{
Computed: true,
Description: `If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream`,
diff --git a/internal/provider/destination_pubsub_data_source_sdk.go b/internal/provider/destination_pubsub_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_pubsub_resource.go b/internal/provider/destination_pubsub_resource.go
old mode 100755
new mode 100644
index f23b8742b..c7167830d
--- a/internal/provider/destination_pubsub_resource.go
+++ b/internal/provider/destination_pubsub_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,7 +60,7 @@ func (r *DestinationPubsubResource) Schema(ctx context.Context, req resource.Sch
Description: `Number of messages before the buffer is flushed`,
},
"batching_enabled": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `If TRUE messages will be buffered instead of sending them one by one`,
},
"batching_request_bytes_threshold": schema.Int64Attribute{
@@ -73,17 +71,8 @@ func (r *DestinationPubsubResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The contents of the JSON service account key. Check out the docs if you need help generating this key.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pubsub",
- ),
- },
- Description: `must be one of ["pubsub"]`,
- },
"ordering_enabled": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream`,
},
"project_id": schema.StringAttribute{
@@ -162,7 +151,7 @@ func (r *DestinationPubsubResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationPubsub(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_pubsub_resource_sdk.go b/internal/provider/destination_pubsub_resource_sdk.go
old mode 100755
new mode 100644
index 15aeacd90..59ad8bfe6
--- a/internal/provider/destination_pubsub_resource_sdk.go
+++ b/internal/provider/destination_pubsub_resource_sdk.go
@@ -20,7 +20,12 @@ func (r *DestinationPubsubResourceModel) ToCreateSDKType() *shared.DestinationPu
} else {
batchingElementCountThreshold = nil
}
- batchingEnabled := r.Configuration.BatchingEnabled.ValueBool()
+ batchingEnabled := new(bool)
+ if !r.Configuration.BatchingEnabled.IsUnknown() && !r.Configuration.BatchingEnabled.IsNull() {
+ *batchingEnabled = r.Configuration.BatchingEnabled.ValueBool()
+ } else {
+ batchingEnabled = nil
+ }
batchingRequestBytesThreshold := new(int64)
if !r.Configuration.BatchingRequestBytesThreshold.IsUnknown() && !r.Configuration.BatchingRequestBytesThreshold.IsNull() {
*batchingRequestBytesThreshold = r.Configuration.BatchingRequestBytesThreshold.ValueInt64()
@@ -28,8 +33,12 @@ func (r *DestinationPubsubResourceModel) ToCreateSDKType() *shared.DestinationPu
batchingRequestBytesThreshold = nil
}
credentialsJSON := r.Configuration.CredentialsJSON.ValueString()
- destinationType := shared.DestinationPubsubPubsub(r.Configuration.DestinationType.ValueString())
- orderingEnabled := r.Configuration.OrderingEnabled.ValueBool()
+ orderingEnabled := new(bool)
+ if !r.Configuration.OrderingEnabled.IsUnknown() && !r.Configuration.OrderingEnabled.IsNull() {
+ *orderingEnabled = r.Configuration.OrderingEnabled.ValueBool()
+ } else {
+ orderingEnabled = nil
+ }
projectID := r.Configuration.ProjectID.ValueString()
topicID := r.Configuration.TopicID.ValueString()
configuration := shared.DestinationPubsub{
@@ -38,7 +47,6 @@ func (r *DestinationPubsubResourceModel) ToCreateSDKType() *shared.DestinationPu
BatchingEnabled: batchingEnabled,
BatchingRequestBytesThreshold: batchingRequestBytesThreshold,
CredentialsJSON: credentialsJSON,
- DestinationType: destinationType,
OrderingEnabled: orderingEnabled,
ProjectID: projectID,
TopicID: topicID,
@@ -71,7 +79,12 @@ func (r *DestinationPubsubResourceModel) ToUpdateSDKType() *shared.DestinationPu
} else {
batchingElementCountThreshold = nil
}
- batchingEnabled := r.Configuration.BatchingEnabled.ValueBool()
+ batchingEnabled := new(bool)
+ if !r.Configuration.BatchingEnabled.IsUnknown() && !r.Configuration.BatchingEnabled.IsNull() {
+ *batchingEnabled = r.Configuration.BatchingEnabled.ValueBool()
+ } else {
+ batchingEnabled = nil
+ }
batchingRequestBytesThreshold := new(int64)
if !r.Configuration.BatchingRequestBytesThreshold.IsUnknown() && !r.Configuration.BatchingRequestBytesThreshold.IsNull() {
*batchingRequestBytesThreshold = r.Configuration.BatchingRequestBytesThreshold.ValueInt64()
@@ -79,7 +92,12 @@ func (r *DestinationPubsubResourceModel) ToUpdateSDKType() *shared.DestinationPu
batchingRequestBytesThreshold = nil
}
credentialsJSON := r.Configuration.CredentialsJSON.ValueString()
- orderingEnabled := r.Configuration.OrderingEnabled.ValueBool()
+ orderingEnabled := new(bool)
+ if !r.Configuration.OrderingEnabled.IsUnknown() && !r.Configuration.OrderingEnabled.IsNull() {
+ *orderingEnabled = r.Configuration.OrderingEnabled.ValueBool()
+ } else {
+ orderingEnabled = nil
+ }
projectID := r.Configuration.ProjectID.ValueString()
topicID := r.Configuration.TopicID.ValueString()
configuration := shared.DestinationPubsubUpdate{
diff --git a/internal/provider/destination_redis_data_source.go b/internal/provider/destination_redis_data_source.go
old mode 100755
new mode 100644
index ced2eea1c..ff916f897
--- a/internal/provider/destination_redis_data_source.go
+++ b/internal/provider/destination_redis_data_source.go
@@ -62,15 +62,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
MarkdownDescription: `must be one of ["hash"]` + "\n" +
`Redis cache type to store data in.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redis",
- ),
- },
- Description: `must be one of ["redis"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Redis host to connect to.`,
@@ -91,18 +82,8 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_redis_ssl_modes_disable": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_redis_ssl_modes_verify_full": schema.SingleNestedAttribute{
@@ -124,31 +105,12 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
"destination_redis_update_ssl_modes_disable": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_redis_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
@@ -170,15 +132,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
@@ -193,19 +146,8 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_redis_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -215,16 +157,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -251,16 +183,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -273,19 +195,8 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -295,16 +206,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -331,16 +232,6 @@ func (r *DestinationRedisDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_redis_data_source_sdk.go b/internal/provider/destination_redis_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_redis_resource.go b/internal/provider/destination_redis_resource.go
old mode 100755
new mode 100644
index a6300b037..e769da00d
--- a/internal/provider/destination_redis_resource.go
+++ b/internal/provider/destination_redis_resource.go
@@ -55,7 +55,7 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Attributes: map[string]schema.Attribute{
"cache_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"hash",
@@ -64,15 +64,6 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
MarkdownDescription: `must be one of ["hash"]` + "\n" +
`Redis cache type to store data in.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redis",
- ),
- },
- Description: `must be one of ["redis"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Redis host to connect to.`,
@@ -82,7 +73,7 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Description: `Password associated with Redis.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of Redis.`,
},
"ssl": schema.BoolAttribute{
@@ -93,18 +84,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_redis_ssl_modes_disable": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_redis_ssl_modes_verify_full": schema.SingleNestedAttribute{
@@ -126,31 +107,12 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
"destination_redis_update_ssl_modes_disable": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Disable SSL.`,
},
"destination_redis_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
@@ -172,15 +134,6 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
},
Description: `Verify-full SSL mode.`,
},
@@ -195,19 +148,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_redis_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -217,18 +159,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -253,18 +185,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -275,19 +197,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redis_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -297,18 +208,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -333,18 +234,8 @@ func (r *DestinationRedisResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -432,7 +323,7 @@ func (r *DestinationRedisResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationRedis(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_redis_resource_sdk.go b/internal/provider/destination_redis_resource_sdk.go
old mode 100755
new mode 100644
index edddc8713..6ff6dc66a
--- a/internal/provider/destination_redis_resource_sdk.go
+++ b/internal/provider/destination_redis_resource_sdk.go
@@ -8,8 +8,12 @@ import (
)
func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRedisCreateRequest {
- cacheType := shared.DestinationRedisCacheType(r.Configuration.CacheType.ValueString())
- destinationType := shared.DestinationRedisRedis(r.Configuration.DestinationType.ValueString())
+ cacheType := new(shared.DestinationRedisCacheType)
+ if !r.Configuration.CacheType.IsUnknown() && !r.Configuration.CacheType.IsNull() {
+ *cacheType = shared.DestinationRedisCacheType(r.Configuration.CacheType.ValueString())
+ } else {
+ cacheType = nil
+ }
host := r.Configuration.Host.ValueString()
password := new(string)
if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() {
@@ -17,7 +21,12 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
ssl := new(bool)
if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() {
*ssl = r.Configuration.Ssl.ValueBool()
@@ -28,10 +37,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
if r.Configuration.SslMode != nil {
var destinationRedisSSLModesDisable *shared.DestinationRedisSSLModesDisable
if r.Configuration.SslMode.DestinationRedisSSLModesDisable != nil {
- mode := shared.DestinationRedisSSLModesDisableMode(r.Configuration.SslMode.DestinationRedisSSLModesDisable.Mode.ValueString())
- destinationRedisSSLModesDisable = &shared.DestinationRedisSSLModesDisable{
- Mode: mode,
- }
+ destinationRedisSSLModesDisable = &shared.DestinationRedisSSLModesDisable{}
}
if destinationRedisSSLModesDisable != nil {
sslMode = &shared.DestinationRedisSSLModes{
@@ -49,13 +55,11 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
} else {
clientKeyPassword = nil
}
- mode1 := shared.DestinationRedisSSLModesVerifyFullMode(r.Configuration.SslMode.DestinationRedisSSLModesVerifyFull.Mode.ValueString())
destinationRedisSSLModesVerifyFull = &shared.DestinationRedisSSLModesVerifyFull{
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode1,
}
}
if destinationRedisSSLModesVerifyFull != nil {
@@ -68,10 +72,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
if r.Configuration.TunnelMethod != nil {
var destinationRedisSSHTunnelMethodNoTunnel *shared.DestinationRedisSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationRedisSSHTunnelMethodNoTunnel = &shared.DestinationRedisSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationRedisSSHTunnelMethodNoTunnel = &shared.DestinationRedisSSHTunnelMethodNoTunnel{}
}
if destinationRedisSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationRedisSSHTunnelMethod{
@@ -82,15 +83,18 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
if r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationRedisSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationRedisSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationRedisSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -101,13 +105,16 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
var destinationRedisSSHTunnelMethodPasswordAuthentication *shared.DestinationRedisSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationRedisSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationRedisSSHTunnelMethodPasswordAuthentication = &shared.DestinationRedisSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -121,15 +128,14 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationRedis{
- CacheType: cacheType,
- DestinationType: destinationType,
- Host: host,
- Password: password,
- Port: port,
- Ssl: ssl,
- SslMode: sslMode,
- TunnelMethod: tunnelMethod,
- Username: username,
+ CacheType: cacheType,
+ Host: host,
+ Password: password,
+ Port: port,
+ Ssl: ssl,
+ SslMode: sslMode,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -147,7 +153,12 @@ func (r *DestinationRedisResourceModel) ToGetSDKType() *shared.DestinationRedisC
}
func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRedisPutRequest {
- cacheType := shared.DestinationRedisUpdateCacheType(r.Configuration.CacheType.ValueString())
+ cacheType := new(shared.DestinationRedisUpdateCacheType)
+ if !r.Configuration.CacheType.IsUnknown() && !r.Configuration.CacheType.IsNull() {
+ *cacheType = shared.DestinationRedisUpdateCacheType(r.Configuration.CacheType.ValueString())
+ } else {
+ cacheType = nil
+ }
host := r.Configuration.Host.ValueString()
password := new(string)
if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() {
@@ -155,7 +166,12 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
ssl := new(bool)
if !r.Configuration.Ssl.IsUnknown() && !r.Configuration.Ssl.IsNull() {
*ssl = r.Configuration.Ssl.ValueBool()
@@ -166,10 +182,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
if r.Configuration.SslMode != nil {
var destinationRedisUpdateSSLModesDisable *shared.DestinationRedisUpdateSSLModesDisable
if r.Configuration.SslMode.DestinationRedisUpdateSSLModesDisable != nil {
- mode := shared.DestinationRedisUpdateSSLModesDisableMode(r.Configuration.SslMode.DestinationRedisUpdateSSLModesDisable.Mode.ValueString())
- destinationRedisUpdateSSLModesDisable = &shared.DestinationRedisUpdateSSLModesDisable{
- Mode: mode,
- }
+ destinationRedisUpdateSSLModesDisable = &shared.DestinationRedisUpdateSSLModesDisable{}
}
if destinationRedisUpdateSSLModesDisable != nil {
sslMode = &shared.DestinationRedisUpdateSSLModes{
@@ -187,13 +200,11 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
} else {
clientKeyPassword = nil
}
- mode1 := shared.DestinationRedisUpdateSSLModesVerifyFullMode(r.Configuration.SslMode.DestinationRedisUpdateSSLModesVerifyFull.Mode.ValueString())
destinationRedisUpdateSSLModesVerifyFull = &shared.DestinationRedisUpdateSSLModesVerifyFull{
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode1,
}
}
if destinationRedisUpdateSSLModesVerifyFull != nil {
@@ -206,10 +217,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
if r.Configuration.TunnelMethod != nil {
var destinationRedisUpdateSSHTunnelMethodNoTunnel *shared.DestinationRedisUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationRedisUpdateSSHTunnelMethodNoTunnel = &shared.DestinationRedisUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationRedisUpdateSSHTunnelMethodNoTunnel = &shared.DestinationRedisUpdateSSHTunnelMethodNoTunnel{}
}
if destinationRedisUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationRedisUpdateSSHTunnelMethod{
@@ -220,15 +228,18 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
if r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -239,13 +250,16 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed
var destinationRedisUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationRedisUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_redshift_data_source.go b/internal/provider/destination_redshift_data_source.go
old mode 100755
new mode 100644
index 5933025db..a106f6dee
--- a/internal/provider/destination_redshift_data_source.go
+++ b/internal/provider/destination_redshift_data_source.go
@@ -56,15 +56,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redshift",
- ),
- },
- Description: `must be one of ["redshift"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com)`,
@@ -89,19 +80,8 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_redshift_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -111,16 +91,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -147,16 +117,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -169,19 +129,8 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -191,16 +140,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -227,16 +166,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -268,32 +197,13 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_redshift_uploading_method_s3_staging_encryption_no_encryption": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Staging data will be stored in plaintext.`,
},
"destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aes_cbc_envelope",
- ),
- },
- Description: `must be one of ["aes_cbc_envelope"]`,
- },
"key_encrypting_key": schema.StringAttribute{
Computed: true,
Description: `The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.`,
@@ -315,15 +225,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3 Staging",
- ),
- },
- Description: `must be one of ["S3 Staging"]`,
- },
"purge_staging_data": schema.BoolAttribute{
Computed: true,
Description: `Whether to delete the staging files from S3 after completing the sync. See docs for details.`,
@@ -377,18 +278,8 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_uploading_method_standard": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_update_uploading_method_s3_staging": schema.SingleNestedAttribute{
@@ -402,32 +293,13 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Staging data will be stored in plaintext.`,
},
"destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aes_cbc_envelope",
- ),
- },
- Description: `must be one of ["aes_cbc_envelope"]`,
- },
"key_encrypting_key": schema.StringAttribute{
Computed: true,
Description: `The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.`,
@@ -449,15 +321,6 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3 Staging",
- ),
- },
- Description: `must be one of ["S3 Staging"]`,
- },
"purge_staging_data": schema.BoolAttribute{
Computed: true,
Description: `Whether to delete the staging files from S3 after completing the sync. See docs for details.`,
@@ -511,18 +374,8 @@ func (r *DestinationRedshiftDataSource) Schema(ctx context.Context, req datasour
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_update_uploading_method_standard": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The method how the data will be uploaded to the database.`,
},
},
diff --git a/internal/provider/destination_redshift_data_source_sdk.go b/internal/provider/destination_redshift_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_redshift_resource.go b/internal/provider/destination_redshift_resource.go
old mode 100755
new mode 100644
index ae284096e..b2fa5cbf8
--- a/internal/provider/destination_redshift_resource.go
+++ b/internal/provider/destination_redshift_resource.go
@@ -58,15 +58,6 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redshift",
- ),
- },
- Description: `must be one of ["redshift"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com)`,
@@ -80,30 +71,19 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"schema": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public".`,
},
"tunnel_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_redshift_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -113,18 +93,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -149,18 +119,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -171,19 +131,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_redshift_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -193,18 +142,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -229,18 +168,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -272,15 +201,6 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
"destination_redshift_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aes_cbc_envelope",
- ),
- },
- Description: `must be one of ["aes_cbc_envelope"]`,
- },
"key_encrypting_key": schema.StringAttribute{
Optional: true,
Description: `The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.`,
@@ -289,18 +209,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `Staging data will be encrypted using AES-CBC envelope encryption.`,
},
"destination_redshift_uploading_method_s3_staging_encryption_no_encryption": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Staging data will be stored in plaintext.`,
},
},
@@ -317,15 +227,6 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3 Staging",
- ),
- },
- Description: `must be one of ["S3 Staging"]`,
- },
"purge_staging_data": schema.BoolAttribute{
Optional: true,
Description: `Whether to delete the staging files from S3 after completing the sync. See docs for details.`,
@@ -339,7 +240,7 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -379,18 +280,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_uploading_method_standard": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_update_uploading_method_s3_staging": schema.SingleNestedAttribute{
@@ -404,32 +295,13 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_redshift_update_uploading_method_s3_staging_encryption_no_encryption": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "none",
- ),
- },
- Description: `must be one of ["none"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Staging data will be stored in plaintext.`,
},
"destination_redshift_update_uploading_method_s3_staging_encryption_aes_cbc_envelope_encryption": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "encryption_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aes_cbc_envelope",
- ),
- },
- Description: `must be one of ["aes_cbc_envelope"]`,
- },
"key_encrypting_key": schema.StringAttribute{
Optional: true,
Description: `The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.`,
@@ -451,15 +323,6 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3 Staging",
- ),
- },
- Description: `must be one of ["S3 Staging"]`,
- },
"purge_staging_data": schema.BoolAttribute{
Optional: true,
Description: `Whether to delete the staging files from S3 after completing the sync. See docs for details.`,
@@ -473,7 +336,7 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -513,18 +376,8 @@ func (r *DestinationRedshiftResource) Schema(ctx context.Context, req resource.S
Description: `The method how the data will be uploaded to the database.`,
},
"destination_redshift_update_uploading_method_standard": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The method how the data will be uploaded to the database.`,
},
},
@@ -605,7 +458,7 @@ func (r *DestinationRedshiftResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationRedshift(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_redshift_resource_sdk.go b/internal/provider/destination_redshift_resource_sdk.go
old mode 100755
new mode 100644
index c9b03f3b1..58d81546a
--- a/internal/provider/destination_redshift_resource_sdk.go
+++ b/internal/provider/destination_redshift_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.DestinationRedshiftCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationRedshiftRedshift(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -18,16 +17,23 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
jdbcURLParams = nil
}
password := r.Configuration.Password.ValueString()
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var tunnelMethod *shared.DestinationRedshiftSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationRedshiftSSHTunnelMethodNoTunnel *shared.DestinationRedshiftSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationRedshiftSSHTunnelMethodNoTunnel = &shared.DestinationRedshiftSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationRedshiftSSHTunnelMethodNoTunnel = &shared.DestinationRedshiftSSHTunnelMethodNoTunnel{}
}
if destinationRedshiftSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationRedshiftSSHTunnelMethod{
@@ -38,15 +44,18 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationRedshiftSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationRedshiftSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -57,13 +66,16 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
var destinationRedshiftSSHTunnelMethodPasswordAuthentication *shared.DestinationRedshiftSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationRedshiftSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationRedshiftSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationRedshiftSSHTunnelMethodPasswordAuthentication = &shared.DestinationRedshiftSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -79,10 +91,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.UploadingMethod != nil {
var destinationRedshiftUploadingMethodStandard *shared.DestinationRedshiftUploadingMethodStandard
if r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodStandard != nil {
- method := shared.DestinationRedshiftUploadingMethodStandardMethod(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodStandard.Method.ValueString())
- destinationRedshiftUploadingMethodStandard = &shared.DestinationRedshiftUploadingMethodStandard{
- Method: method,
- }
+ destinationRedshiftUploadingMethodStandard = &shared.DestinationRedshiftUploadingMethodStandard{}
}
if destinationRedshiftUploadingMethodStandard != nil {
uploadingMethod = &shared.DestinationRedshiftUploadingMethod{
@@ -96,10 +105,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
if r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption != nil {
var destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption *shared.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption
if r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption != nil {
- encryptionType := shared.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption.EncryptionType.ValueString())
- destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption = &shared.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption{
- EncryptionType: encryptionType,
- }
+ destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption = &shared.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption{}
}
if destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption != nil {
encryption = &shared.DestinationRedshiftUploadingMethodS3StagingEncryption{
@@ -108,7 +114,6 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
}
var destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption *shared.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
if r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption != nil {
- encryptionType1 := shared.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.EncryptionType.ValueString())
keyEncryptingKey := new(string)
if !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.IsNull() {
*keyEncryptingKey = r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Encryption.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.ValueString()
@@ -116,7 +121,6 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
keyEncryptingKey = nil
}
destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption = &shared.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption{
- EncryptionType: encryptionType1,
KeyEncryptingKey: keyEncryptingKey,
}
}
@@ -138,7 +142,6 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
} else {
fileNamePattern = nil
}
- method1 := shared.DestinationRedshiftUploadingMethodS3StagingMethod(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.Method.ValueString())
purgeStagingData := new(bool)
if !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.PurgeStagingData.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.PurgeStagingData.IsNull() {
*purgeStagingData = r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.PurgeStagingData.ValueBool()
@@ -152,14 +155,18 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
} else {
s3BucketPath = nil
}
- s3BucketRegion := shared.DestinationRedshiftUploadingMethodS3StagingS3BucketRegion(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationRedshiftUploadingMethodS3StagingS3BucketRegion)
+ if !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.S3BucketRegion.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationRedshiftUploadingMethodS3StagingS3BucketRegion(r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
secretAccessKey := r.Configuration.UploadingMethod.DestinationRedshiftUploadingMethodS3Staging.SecretAccessKey.ValueString()
destinationRedshiftUploadingMethodS3Staging = &shared.DestinationRedshiftUploadingMethodS3Staging{
AccessKeyID: accessKeyID,
Encryption: encryption,
FileBufferCount: fileBufferCount,
FileNamePattern: fileNamePattern,
- Method: method1,
PurgeStagingData: purgeStagingData,
S3BucketName: s3BucketName,
S3BucketPath: s3BucketPath,
@@ -176,7 +183,6 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationRedshift{
Database: database,
- DestinationType: destinationType,
Host: host,
JdbcURLParams: jdbcURLParams,
Password: password,
@@ -211,16 +217,23 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
jdbcURLParams = nil
}
password := r.Configuration.Password.ValueString()
- port := r.Configuration.Port.ValueInt64()
- schema := r.Configuration.Schema.ValueString()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ schema := new(string)
+ if !r.Configuration.Schema.IsUnknown() && !r.Configuration.Schema.IsNull() {
+ *schema = r.Configuration.Schema.ValueString()
+ } else {
+ schema = nil
+ }
var tunnelMethod *shared.DestinationRedshiftUpdateSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationRedshiftUpdateSSHTunnelMethodNoTunnel *shared.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationRedshiftUpdateSSHTunnelMethodNoTunnel = &shared.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationRedshiftUpdateSSHTunnelMethodNoTunnel = &shared.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel{}
}
if destinationRedshiftUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationRedshiftUpdateSSHTunnelMethod{
@@ -231,15 +244,18 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -250,13 +266,16 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
var destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -272,10 +291,7 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.UploadingMethod != nil {
var destinationRedshiftUpdateUploadingMethodStandard *shared.DestinationRedshiftUpdateUploadingMethodStandard
if r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodStandard != nil {
- method := shared.DestinationRedshiftUpdateUploadingMethodStandardMethod(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodStandard.Method.ValueString())
- destinationRedshiftUpdateUploadingMethodStandard = &shared.DestinationRedshiftUpdateUploadingMethodStandard{
- Method: method,
- }
+ destinationRedshiftUpdateUploadingMethodStandard = &shared.DestinationRedshiftUpdateUploadingMethodStandard{}
}
if destinationRedshiftUpdateUploadingMethodStandard != nil {
uploadingMethod = &shared.DestinationRedshiftUpdateUploadingMethod{
@@ -289,10 +305,7 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
if r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption != nil {
var destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption *shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption
if r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption != nil {
- encryptionType := shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption.EncryptionType.ValueString())
- destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption = &shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption{
- EncryptionType: encryptionType,
- }
+ destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption = &shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption{}
}
if destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption != nil {
encryption = &shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryption{
@@ -301,7 +314,6 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
}
var destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption *shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
if r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption != nil {
- encryptionType1 := shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.EncryptionType.ValueString())
keyEncryptingKey := new(string)
if !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.IsNull() {
*keyEncryptingKey = r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Encryption.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption.KeyEncryptingKey.ValueString()
@@ -309,7 +321,6 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
keyEncryptingKey = nil
}
destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption = &shared.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption{
- EncryptionType: encryptionType1,
KeyEncryptingKey: keyEncryptingKey,
}
}
@@ -331,7 +342,6 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
} else {
fileNamePattern = nil
}
- method1 := shared.DestinationRedshiftUpdateUploadingMethodS3StagingMethod(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.Method.ValueString())
purgeStagingData := new(bool)
if !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.PurgeStagingData.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.PurgeStagingData.IsNull() {
*purgeStagingData = r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.PurgeStagingData.ValueBool()
@@ -345,14 +355,18 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination
} else {
s3BucketPath = nil
}
- s3BucketRegion := shared.DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion)
+ if !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.S3BucketRegion.IsUnknown() && !r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion(r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
secretAccessKey := r.Configuration.UploadingMethod.DestinationRedshiftUpdateUploadingMethodS3Staging.SecretAccessKey.ValueString()
destinationRedshiftUpdateUploadingMethodS3Staging = &shared.DestinationRedshiftUpdateUploadingMethodS3Staging{
AccessKeyID: accessKeyID,
Encryption: encryption,
FileBufferCount: fileBufferCount,
FileNamePattern: fileNamePattern,
- Method: method1,
PurgeStagingData: purgeStagingData,
S3BucketName: s3BucketName,
S3BucketPath: s3BucketPath,
diff --git a/internal/provider/destination_s3_data_source.go b/internal/provider/destination_s3_data_source.go
old mode 100755
new mode 100644
index 250628054..46ab2c5c8
--- a/internal/provider/destination_s3_data_source.go
+++ b/internal/provider/destination_s3_data_source.go
@@ -56,15 +56,6 @@ func (r *DestinationS3DataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3",
- ),
- },
- Description: `must be one of ["s3"]`,
- },
"file_name_pattern": schema.StringAttribute{
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
diff --git a/internal/provider/destination_s3_data_source_sdk.go b/internal/provider/destination_s3_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_s3_resource.go b/internal/provider/destination_s3_resource.go
old mode 100755
new mode 100644
index 5bebe9dbb..c5c751935
--- a/internal/provider/destination_s3_resource.go
+++ b/internal/provider/destination_s3_resource.go
@@ -58,15 +58,6 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3",
- ),
- },
- Description: `must be one of ["s3"]`,
- },
"file_name_pattern": schema.StringAttribute{
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -84,7 +75,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"bzip2",
@@ -99,7 +90,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Deflate",
@@ -108,7 +99,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["Deflate"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `0: no compression & fastest, 9: best compression & slowest.`,
},
},
@@ -118,7 +109,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"no compression",
@@ -133,7 +124,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"snappy",
@@ -148,7 +139,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"xz",
@@ -157,7 +148,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["xz"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `See here for details.`,
},
},
@@ -167,7 +158,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"zstandard",
@@ -176,7 +167,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["zstandard"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.`,
},
"include_checksum": schema.BoolAttribute{
@@ -193,7 +184,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `The compression algorithm used to compress data. Default to no compression.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Avro",
@@ -247,7 +238,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").`,
},
"flattening": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"No flattening",
@@ -258,7 +249,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"CSV",
@@ -323,7 +314,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
`Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -366,7 +357,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -395,7 +386,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"no compression",
@@ -410,7 +401,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Deflate",
@@ -419,7 +410,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["Deflate"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `0: no compression & fastest, 9: best compression & slowest.`,
},
},
@@ -429,7 +420,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"bzip2",
@@ -444,7 +435,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"xz",
@@ -453,7 +444,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["xz"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `See here for details.`,
},
},
@@ -463,7 +454,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"zstandard",
@@ -472,7 +463,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `must be one of ["zstandard"]`,
},
"compression_level": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.`,
},
"include_checksum": schema.BoolAttribute{
@@ -486,7 +477,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"codec": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"snappy",
@@ -504,7 +495,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `The compression algorithm used to compress data. Default to no compression.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Avro",
@@ -558,7 +549,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").`,
},
"flattening": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"No flattening",
@@ -569,7 +560,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
`Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"CSV",
@@ -634,7 +625,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
`Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -677,7 +668,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Parquet",
@@ -711,7 +702,7 @@ func (r *DestinationS3Resource) Schema(ctx context.Context, req resource.SchemaR
Description: `Directory under the S3 bucket where data will be written. Read more here`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -825,7 +816,7 @@ func (r *DestinationS3Resource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationS3(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_s3_resource_sdk.go b/internal/provider/destination_s3_resource_sdk.go
old mode 100755
new mode 100644
index 296df875a..3d55a00d8
--- a/internal/provider/destination_s3_resource_sdk.go
+++ b/internal/provider/destination_s3_resource_sdk.go
@@ -14,7 +14,6 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
} else {
accessKeyID = nil
}
- destinationType := shared.DestinationS3S3(r.Configuration.DestinationType.ValueString())
fileNamePattern := new(string)
if !r.Configuration.FileNamePattern.IsUnknown() && !r.Configuration.FileNamePattern.IsNull() {
*fileNamePattern = r.Configuration.FileNamePattern.ValueString()
@@ -27,7 +26,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
var compressionCodec shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodec
var destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- codec := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ codec := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsNull() {
+ *codec = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ } else {
+ codec = nil
+ }
destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression = &shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression{
Codec: codec,
}
@@ -39,8 +43,18 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
var destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- codec1 := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
- compressionLevel := r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
+ codec1 := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsNull() {
+ *codec1 = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ } else {
+ codec1 = nil
+ }
+ compressionLevel := new(int64)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsNull() {
+ *compressionLevel = r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel = nil
+ }
destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate = &shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate{
Codec: codec1,
CompressionLevel: compressionLevel,
@@ -53,7 +67,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
var destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- codec2 := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ codec2 := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsNull() {
+ *codec2 = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ } else {
+ codec2 = nil
+ }
destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 = &shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2{
Codec: codec2,
}
@@ -65,8 +84,18 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
var destinationS3OutputFormatAvroApacheAvroCompressionCodecXz *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz != nil {
- codec3 := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
- compressionLevel1 := r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
+ codec3 := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsNull() {
+ *codec3 = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ } else {
+ codec3 = nil
+ }
+ compressionLevel1 := new(int64)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsNull() {
+ *compressionLevel1 = r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel1 = nil
+ }
destinationS3OutputFormatAvroApacheAvroCompressionCodecXz = &shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz{
Codec: codec3,
CompressionLevel: compressionLevel1,
@@ -79,8 +108,18 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
var destinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- codec4 := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
- compressionLevel2 := r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
+ codec4 := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsNull() {
+ *codec4 = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ } else {
+ codec4 = nil
+ }
+ compressionLevel2 := new(int64)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsNull() {
+ *compressionLevel2 = r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel2 = nil
+ }
includeChecksum := new(bool)
if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.IsNull() {
*includeChecksum = r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.ValueBool()
@@ -100,7 +139,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
var destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy *shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy
if r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- codec5 := shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ codec5 := new(shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsNull() {
+ *codec5 = shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.CompressionCodec.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ } else {
+ codec5 = nil
+ }
destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy = &shared.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy{
Codec: codec5,
}
@@ -110,7 +154,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy: destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy,
}
}
- formatType := shared.DestinationS3OutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.FormatType.ValueString())
+ formatType := new(shared.DestinationS3OutputFormatAvroApacheAvroFormatType)
+ if !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.FormatType.IsNull() {
+ *formatType = shared.DestinationS3OutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationS3OutputFormatAvroApacheAvro.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationS3OutputFormatAvroApacheAvro = &shared.DestinationS3OutputFormatAvroApacheAvro{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -160,8 +209,18 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
}
}
- flattening := shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening(r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
- formatType1 := shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ flattening := new(shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening)
+ if !r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.Flattening.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.Flattening.IsNull() {
+ *flattening = shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening(r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
+ } else {
+ flattening = nil
+ }
+ formatType1 := new(shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType)
+ if !r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.FormatType.IsNull() {
+ *formatType1 = shared.DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationS3OutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationS3OutputFormatCSVCommaSeparatedValues = &shared.DestinationS3OutputFormatCSVCommaSeparatedValues{
Compression: compression,
Flattening: flattening,
@@ -218,7 +277,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
} else {
flattening1 = nil
}
- formatType2 := shared.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType2 := new(shared.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType2 = shared.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType2 = nil
+ }
destinationS3OutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression1,
Flattening: flattening1,
@@ -256,7 +320,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
} else {
dictionaryPageSizeKb = nil
}
- formatType3 := shared.DestinationS3OutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.FormatType.ValueString())
+ formatType3 := new(shared.DestinationS3OutputFormatParquetColumnarStorageFormatType)
+ if !r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.FormatType.IsNull() {
+ *formatType3 = shared.DestinationS3OutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType3 = nil
+ }
maxPaddingSizeMb := new(int64)
if !r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsUnknown() && !r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsNull() {
*maxPaddingSizeMb = r.Configuration.Format.DestinationS3OutputFormatParquetColumnarStorage.MaxPaddingSizeMb.ValueInt64()
@@ -286,7 +355,12 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
s3BucketName := r.Configuration.S3BucketName.ValueString()
s3BucketPath := r.Configuration.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationS3S3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationS3S3BucketRegion)
+ if !r.Configuration.S3BucketRegion.IsUnknown() && !r.Configuration.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationS3S3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3Endpoint := new(string)
if !r.Configuration.S3Endpoint.IsUnknown() && !r.Configuration.S3Endpoint.IsNull() {
*s3Endpoint = r.Configuration.S3Endpoint.ValueString()
@@ -307,7 +381,6 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea
}
configuration := shared.DestinationS3{
AccessKeyID: accessKeyID,
- DestinationType: destinationType,
FileNamePattern: fileNamePattern,
Format: format,
S3BucketName: s3BucketName,
@@ -351,7 +424,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
var compressionCodec shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- codec := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ codec := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.IsNull() {
+ *codec = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression.Codec.ValueString())
+ } else {
+ codec = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression = &shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression{
Codec: codec,
}
@@ -363,8 +441,18 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- codec1 := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
- compressionLevel := r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
+ codec1 := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.IsNull() {
+ *codec1 = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.Codec.ValueString())
+ } else {
+ codec1 = nil
+ }
+ compressionLevel := new(int64)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.IsNull() {
+ *compressionLevel = r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate = &shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate{
Codec: codec1,
CompressionLevel: compressionLevel,
@@ -377,7 +465,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- codec2 := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ codec2 := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.IsNull() {
+ *codec2 = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2.Codec.ValueString())
+ } else {
+ codec2 = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 = &shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2{
Codec: codec2,
}
@@ -389,8 +482,18 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- codec3 := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
- compressionLevel1 := r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
+ codec3 := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.IsNull() {
+ *codec3 = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.Codec.ValueString())
+ } else {
+ codec3 = nil
+ }
+ compressionLevel1 := new(int64)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.IsNull() {
+ *compressionLevel1 = r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel1 = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz = &shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz{
Codec: codec3,
CompressionLevel: compressionLevel1,
@@ -403,8 +506,18 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- codec4 := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
- compressionLevel2 := r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
+ codec4 := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.IsNull() {
+ *codec4 = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.Codec.ValueString())
+ } else {
+ codec4 = nil
+ }
+ compressionLevel2 := new(int64)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.IsNull() {
+ *compressionLevel2 = r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.CompressionLevel.ValueInt64()
+ } else {
+ compressionLevel2 = nil
+ }
includeChecksum := new(bool)
if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.IsNull() {
*includeChecksum = r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard.IncludeChecksum.ValueBool()
@@ -424,7 +537,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
var destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy *shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
if r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- codec5 := shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ codec5 := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.IsNull() {
+ *codec5 = shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.CompressionCodec.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy.Codec.ValueString())
+ } else {
+ codec5 = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy = &shared.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy{
Codec: codec5,
}
@@ -434,7 +552,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy: destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy,
}
}
- formatType := shared.DestinationS3UpdateOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.FormatType.ValueString())
+ formatType := new(shared.DestinationS3UpdateOutputFormatAvroApacheAvroFormatType)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.FormatType.IsNull() {
+ *formatType = shared.DestinationS3UpdateOutputFormatAvroApacheAvroFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatAvroApacheAvro.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationS3UpdateOutputFormatAvroApacheAvro = &shared.DestinationS3UpdateOutputFormatAvroApacheAvro{
CompressionCodec: compressionCodec,
FormatType: formatType,
@@ -484,8 +607,18 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
}
}
- flattening := shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening(r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
- formatType1 := shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ flattening := new(shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.Flattening.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.Flattening.IsNull() {
+ *flattening = shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening(r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.Flattening.ValueString())
+ } else {
+ flattening = nil
+ }
+ formatType1 := new(shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.FormatType.IsNull() {
+ *formatType1 = shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues.FormatType.ValueString())
+ } else {
+ formatType1 = nil
+ }
destinationS3UpdateOutputFormatCSVCommaSeparatedValues = &shared.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues{
Compression: compression,
Flattening: flattening,
@@ -542,7 +675,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
} else {
flattening1 = nil
}
- formatType2 := shared.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType2 := new(shared.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType2 = shared.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType2 = nil
+ }
destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression1,
Flattening: flattening1,
@@ -580,7 +718,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
} else {
dictionaryPageSizeKb = nil
}
- formatType3 := shared.DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ formatType3 := new(shared.DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType)
+ if !r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.FormatType.IsNull() {
+ *formatType3 = shared.DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType(r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.FormatType.ValueString())
+ } else {
+ formatType3 = nil
+ }
maxPaddingSizeMb := new(int64)
if !r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsUnknown() && !r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.IsNull() {
*maxPaddingSizeMb = r.Configuration.Format.DestinationS3UpdateOutputFormatParquetColumnarStorage.MaxPaddingSizeMb.ValueInt64()
@@ -610,7 +753,12 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR
}
s3BucketName := r.Configuration.S3BucketName.ValueString()
s3BucketPath := r.Configuration.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationS3UpdateS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationS3UpdateS3BucketRegion)
+ if !r.Configuration.S3BucketRegion.IsUnknown() && !r.Configuration.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationS3UpdateS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3Endpoint := new(string)
if !r.Configuration.S3Endpoint.IsUnknown() && !r.Configuration.S3Endpoint.IsNull() {
*s3Endpoint = r.Configuration.S3Endpoint.ValueString()
diff --git a/internal/provider/destination_s3glue_data_source.go b/internal/provider/destination_s3glue_data_source.go
old mode 100755
new mode 100644
index c001567ad..c9d647b54
--- a/internal/provider/destination_s3glue_data_source.go
+++ b/internal/provider/destination_s3glue_data_source.go
@@ -56,15 +56,6 @@ func (r *DestinationS3GlueDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3-glue",
- ),
- },
- Description: `must be one of ["s3-glue"]`,
- },
"file_name_pattern": schema.StringAttribute{
Computed: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
diff --git a/internal/provider/destination_s3glue_data_source_sdk.go b/internal/provider/destination_s3glue_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_s3glue_resource.go b/internal/provider/destination_s3glue_resource.go
old mode 100755
new mode 100644
index ad451b298..64c76430f
--- a/internal/provider/destination_s3glue_resource.go
+++ b/internal/provider/destination_s3glue_resource.go
@@ -58,15 +58,6 @@ func (r *DestinationS3GlueResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3-glue",
- ),
- },
- Description: `must be one of ["s3-glue"]`,
- },
"file_name_pattern": schema.StringAttribute{
Optional: true,
Description: `The pattern allows you to set the file-name format for the S3 staging file(s)`,
@@ -128,7 +119,7 @@ func (r *DestinationS3GlueResource) Schema(ctx context.Context, req resource.Sch
`Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -193,7 +184,7 @@ func (r *DestinationS3GlueResource) Schema(ctx context.Context, req resource.Sch
`Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.`,
},
"format_type": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"JSONL",
@@ -215,7 +206,7 @@ func (r *DestinationS3GlueResource) Schema(ctx context.Context, req resource.Sch
Description: `Name of the glue database for creating the tables, leave blank if no integration`,
},
"glue_serialization_library": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"org.openx.data.jsonserde.JsonSerDe",
@@ -234,7 +225,7 @@ func (r *DestinationS3GlueResource) Schema(ctx context.Context, req resource.Sch
Description: `Directory under the S3 bucket where data will be written. Read more here`,
},
"s3_bucket_region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"",
@@ -348,7 +339,7 @@ func (r *DestinationS3GlueResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationS3Glue(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_s3glue_resource_sdk.go b/internal/provider/destination_s3glue_resource_sdk.go
old mode 100755
new mode 100644
index c2d08b73f..8f3798f7d
--- a/internal/provider/destination_s3glue_resource_sdk.go
+++ b/internal/provider/destination_s3glue_resource_sdk.go
@@ -14,7 +14,6 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3
} else {
accessKeyID = nil
}
- destinationType := shared.DestinationS3GlueS3Glue(r.Configuration.DestinationType.ValueString())
fileNamePattern := new(string)
if !r.Configuration.FileNamePattern.IsUnknown() && !r.Configuration.FileNamePattern.IsNull() {
*fileNamePattern = r.Configuration.FileNamePattern.ValueString()
@@ -67,7 +66,12 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3
} else {
flattening = nil
}
- formatType := shared.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType := new(shared.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType = shared.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression,
Flattening: flattening,
@@ -80,10 +84,20 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3
}
}
glueDatabase := r.Configuration.GlueDatabase.ValueString()
- glueSerializationLibrary := shared.DestinationS3GlueSerializationLibrary(r.Configuration.GlueSerializationLibrary.ValueString())
+ glueSerializationLibrary := new(shared.DestinationS3GlueSerializationLibrary)
+ if !r.Configuration.GlueSerializationLibrary.IsUnknown() && !r.Configuration.GlueSerializationLibrary.IsNull() {
+ *glueSerializationLibrary = shared.DestinationS3GlueSerializationLibrary(r.Configuration.GlueSerializationLibrary.ValueString())
+ } else {
+ glueSerializationLibrary = nil
+ }
s3BucketName := r.Configuration.S3BucketName.ValueString()
s3BucketPath := r.Configuration.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationS3GlueS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationS3GlueS3BucketRegion)
+ if !r.Configuration.S3BucketRegion.IsUnknown() && !r.Configuration.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationS3GlueS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3Endpoint := new(string)
if !r.Configuration.S3Endpoint.IsUnknown() && !r.Configuration.S3Endpoint.IsNull() {
*s3Endpoint = r.Configuration.S3Endpoint.ValueString()
@@ -104,7 +118,6 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3
}
configuration := shared.DestinationS3Glue{
AccessKeyID: accessKeyID,
- DestinationType: destinationType,
FileNamePattern: fileNamePattern,
Format: format,
GlueDatabase: glueDatabase,
@@ -190,7 +203,12 @@ func (r *DestinationS3GlueResourceModel) ToUpdateSDKType() *shared.DestinationS3
} else {
flattening = nil
}
- formatType := shared.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ formatType := new(shared.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType)
+ if !r.Configuration.Format.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsUnknown() && !r.Configuration.Format.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.IsNull() {
+ *formatType = shared.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
+ } else {
+ formatType = nil
+ }
destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON = &shared.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON{
Compression: compression,
Flattening: flattening,
@@ -203,10 +221,20 @@ func (r *DestinationS3GlueResourceModel) ToUpdateSDKType() *shared.DestinationS3
}
}
glueDatabase := r.Configuration.GlueDatabase.ValueString()
- glueSerializationLibrary := shared.DestinationS3GlueUpdateSerializationLibrary(r.Configuration.GlueSerializationLibrary.ValueString())
+ glueSerializationLibrary := new(shared.DestinationS3GlueUpdateSerializationLibrary)
+ if !r.Configuration.GlueSerializationLibrary.IsUnknown() && !r.Configuration.GlueSerializationLibrary.IsNull() {
+ *glueSerializationLibrary = shared.DestinationS3GlueUpdateSerializationLibrary(r.Configuration.GlueSerializationLibrary.ValueString())
+ } else {
+ glueSerializationLibrary = nil
+ }
s3BucketName := r.Configuration.S3BucketName.ValueString()
s3BucketPath := r.Configuration.S3BucketPath.ValueString()
- s3BucketRegion := shared.DestinationS3GlueUpdateS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ s3BucketRegion := new(shared.DestinationS3GlueUpdateS3BucketRegion)
+ if !r.Configuration.S3BucketRegion.IsUnknown() && !r.Configuration.S3BucketRegion.IsNull() {
+ *s3BucketRegion = shared.DestinationS3GlueUpdateS3BucketRegion(r.Configuration.S3BucketRegion.ValueString())
+ } else {
+ s3BucketRegion = nil
+ }
s3Endpoint := new(string)
if !r.Configuration.S3Endpoint.IsUnknown() && !r.Configuration.S3Endpoint.IsNull() {
*s3Endpoint = r.Configuration.S3Endpoint.ValueString()
diff --git a/internal/provider/destination_sftpjson_data_source.go b/internal/provider/destination_sftpjson_data_source.go
old mode 100755
new mode 100644
index 57975c172..741cfd3cf
--- a/internal/provider/destination_sftpjson_data_source.go
+++ b/internal/provider/destination_sftpjson_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -55,15 +53,6 @@ func (r *DestinationSftpJSONDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Path to the directory where json files will be written.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp-json",
- ),
- },
- Description: `must be one of ["sftp-json"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the SFTP server.`,
diff --git a/internal/provider/destination_sftpjson_data_source_sdk.go b/internal/provider/destination_sftpjson_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_sftpjson_resource.go b/internal/provider/destination_sftpjson_resource.go
old mode 100755
new mode 100644
index 6b961e3b5..8f5ab7479
--- a/internal/provider/destination_sftpjson_resource.go
+++ b/internal/provider/destination_sftpjson_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -57,15 +55,6 @@ func (r *DestinationSftpJSONResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Path to the directory where json files will be written.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp-json",
- ),
- },
- Description: `must be one of ["sftp-json"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the SFTP server.`,
@@ -150,7 +139,7 @@ func (r *DestinationSftpJSONResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationSftpJSON(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_sftpjson_resource_sdk.go b/internal/provider/destination_sftpjson_resource_sdk.go
old mode 100755
new mode 100644
index 38f495727..dc23e1552
--- a/internal/provider/destination_sftpjson_resource_sdk.go
+++ b/internal/provider/destination_sftpjson_resource_sdk.go
@@ -8,7 +8,6 @@ import (
)
func (r *DestinationSftpJSONResourceModel) ToCreateSDKType() *shared.DestinationSftpJSONCreateRequest {
- destinationType := shared.DestinationSftpJSONSftpJSON(r.Configuration.DestinationType.ValueString())
destinationPath := r.Configuration.DestinationPath.ValueString()
host := r.Configuration.Host.ValueString()
password := r.Configuration.Password.ValueString()
@@ -20,7 +19,6 @@ func (r *DestinationSftpJSONResourceModel) ToCreateSDKType() *shared.Destination
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationSftpJSON{
- DestinationType: destinationType,
DestinationPath: destinationPath,
Host: host,
Password: password,
diff --git a/internal/provider/destination_snowflake_data_source.go b/internal/provider/destination_snowflake_data_source.go
old mode 100755
new mode 100644
index 495b4c89a..337744367
--- a/internal/provider/destination_snowflake_data_source.go
+++ b/internal/provider/destination_snowflake_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -58,15 +57,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
"destination_snowflake_authorization_method_key_pair_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Key Pair Authentication",
- ),
- },
- Description: `must be one of ["Key Pair Authentication"]`,
- },
"private_key": schema.StringAttribute{
Computed: true,
Description: `RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.`,
@@ -84,15 +74,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Enter you application's Access Token`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Enter your application's Client ID`,
@@ -110,15 +91,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
"destination_snowflake_authorization_method_username_and_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Username and Password",
- ),
- },
- Description: `must be one of ["Username and Password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Enter the password associated with the username.`,
@@ -128,15 +100,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
"destination_snowflake_update_authorization_method_key_pair_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Key Pair Authentication",
- ),
- },
- Description: `must be one of ["Key Pair Authentication"]`,
- },
"private_key": schema.StringAttribute{
Computed: true,
Description: `RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.`,
@@ -154,15 +117,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Enter you application's Access Token`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Enter your application's Client ID`,
@@ -180,15 +134,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
"destination_snowflake_update_authorization_method_username_and_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Username and Password",
- ),
- },
- Description: `must be one of ["Username and Password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `Enter the password associated with the username.`,
@@ -204,15 +149,6 @@ func (r *DestinationSnowflakeDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Enter the name of the database you want to sync data into`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snowflake",
- ),
- },
- Description: `must be one of ["snowflake"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Enter your Snowflake account's locator (in the format ...snowflakecomputing.com)`,
diff --git a/internal/provider/destination_snowflake_data_source_sdk.go b/internal/provider/destination_snowflake_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_snowflake_resource.go b/internal/provider/destination_snowflake_resource.go
old mode 100755
new mode 100644
index 8b76ae715..81359d035
--- a/internal/provider/destination_snowflake_resource.go
+++ b/internal/provider/destination_snowflake_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -60,15 +59,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
"destination_snowflake_authorization_method_key_pair_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Key Pair Authentication",
- ),
- },
- Description: `must be one of ["Key Pair Authentication"]`,
- },
"private_key": schema.StringAttribute{
Required: true,
Description: `RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.`,
@@ -86,15 +76,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Enter you application's Access Token`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `Enter your application's Client ID`,
@@ -112,15 +93,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
"destination_snowflake_authorization_method_username_and_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Username and Password",
- ),
- },
- Description: `must be one of ["Username and Password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Enter the password associated with the username.`,
@@ -130,15 +102,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
"destination_snowflake_update_authorization_method_key_pair_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Key Pair Authentication",
- ),
- },
- Description: `must be one of ["Key Pair Authentication"]`,
- },
"private_key": schema.StringAttribute{
Required: true,
Description: `RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.`,
@@ -156,15 +119,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Enter you application's Access Token`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `Enter your application's Client ID`,
@@ -182,15 +136,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
"destination_snowflake_update_authorization_method_username_and_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Username and Password",
- ),
- },
- Description: `must be one of ["Username and Password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `Enter the password associated with the username.`,
@@ -206,15 +151,6 @@ func (r *DestinationSnowflakeResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Enter the name of the database you want to sync data into`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snowflake",
- ),
- },
- Description: `must be one of ["snowflake"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Enter your Snowflake account's locator (in the format ...snowflakecomputing.com)`,
@@ -311,7 +247,7 @@ func (r *DestinationSnowflakeResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationSnowflake(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_snowflake_resource_sdk.go b/internal/provider/destination_snowflake_resource_sdk.go
old mode 100755
new mode 100644
index e7e7fe834..f790c4f1e
--- a/internal/provider/destination_snowflake_resource_sdk.go
+++ b/internal/provider/destination_snowflake_resource_sdk.go
@@ -13,12 +13,6 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
var destinationSnowflakeAuthorizationMethodOAuth20 *shared.DestinationSnowflakeAuthorizationMethodOAuth20
if r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.DestinationSnowflakeAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.DestinationSnowflakeAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := new(string)
if !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -34,7 +28,6 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
refreshToken := r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodOAuth20.RefreshToken.ValueString()
destinationSnowflakeAuthorizationMethodOAuth20 = &shared.DestinationSnowflakeAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -47,12 +40,6 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
}
var destinationSnowflakeAuthorizationMethodKeyPairAuthentication *shared.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication
if r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication != nil {
- authType1 := new(shared.DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.AuthType.IsNull() {
- *authType1 = shared.DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType(r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
privateKey := r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.PrivateKey.ValueString()
privateKeyPassword := new(string)
if !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.PrivateKeyPassword.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication.PrivateKeyPassword.IsNull() {
@@ -61,7 +48,6 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
privateKeyPassword = nil
}
destinationSnowflakeAuthorizationMethodKeyPairAuthentication = &shared.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication{
- AuthType: authType1,
PrivateKey: privateKey,
PrivateKeyPassword: privateKeyPassword,
}
@@ -73,15 +59,8 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
}
var destinationSnowflakeAuthorizationMethodUsernameAndPassword *shared.DestinationSnowflakeAuthorizationMethodUsernameAndPassword
if r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodUsernameAndPassword != nil {
- authType2 := new(shared.DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodUsernameAndPassword.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodUsernameAndPassword.AuthType.IsNull() {
- *authType2 = shared.DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType(r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodUsernameAndPassword.AuthType.ValueString())
- } else {
- authType2 = nil
- }
password := r.Configuration.Credentials.DestinationSnowflakeAuthorizationMethodUsernameAndPassword.Password.ValueString()
destinationSnowflakeAuthorizationMethodUsernameAndPassword = &shared.DestinationSnowflakeAuthorizationMethodUsernameAndPassword{
- AuthType: authType2,
Password: password,
}
}
@@ -92,7 +71,6 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
}
}
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationSnowflakeSnowflake(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -111,16 +89,15 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio
username := r.Configuration.Username.ValueString()
warehouse := r.Configuration.Warehouse.ValueString()
configuration := shared.DestinationSnowflake{
- Credentials: credentials,
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- RawDataSchema: rawDataSchema,
- Role: role,
- Schema: schema,
- Username: username,
- Warehouse: warehouse,
+ Credentials: credentials,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ RawDataSchema: rawDataSchema,
+ Role: role,
+ Schema: schema,
+ Username: username,
+ Warehouse: warehouse,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -143,12 +120,6 @@ func (r *DestinationSnowflakeResourceModel) ToUpdateSDKType() *shared.Destinatio
var destinationSnowflakeUpdateAuthorizationMethodOAuth20 *shared.DestinationSnowflakeUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := new(string)
if !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -164,7 +135,6 @@ func (r *DestinationSnowflakeResourceModel) ToUpdateSDKType() *shared.Destinatio
refreshToken := r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
destinationSnowflakeUpdateAuthorizationMethodOAuth20 = &shared.DestinationSnowflakeUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -177,12 +147,6 @@ func (r *DestinationSnowflakeResourceModel) ToUpdateSDKType() *shared.Destinatio
}
var destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication *shared.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication
if r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication != nil {
- authType1 := new(shared.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.AuthType.IsNull() {
- *authType1 = shared.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType(r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
privateKey := r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.PrivateKey.ValueString()
privateKeyPassword := new(string)
if !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.PrivateKeyPassword.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication.PrivateKeyPassword.IsNull() {
@@ -191,7 +155,6 @@ func (r *DestinationSnowflakeResourceModel) ToUpdateSDKType() *shared.Destinatio
privateKeyPassword = nil
}
destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication = &shared.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication{
- AuthType: authType1,
PrivateKey: privateKey,
PrivateKeyPassword: privateKeyPassword,
}
@@ -203,15 +166,8 @@ func (r *DestinationSnowflakeResourceModel) ToUpdateSDKType() *shared.Destinatio
}
var destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword *shared.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword
if r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
- authType2 := new(shared.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType)
- if !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword.AuthType.IsUnknown() && !r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword.AuthType.IsNull() {
- *authType2 = shared.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType(r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword.AuthType.ValueString())
- } else {
- authType2 = nil
- }
password := r.Configuration.Credentials.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword.Password.ValueString()
destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword = &shared.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword{
- AuthType: authType2,
Password: password,
}
}
diff --git a/internal/provider/destination_timeplus_data_source.go b/internal/provider/destination_timeplus_data_source.go
old mode 100755
new mode 100644
index c453bee0f..afcbcb070
--- a/internal/provider/destination_timeplus_data_source.go
+++ b/internal/provider/destination_timeplus_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -55,15 +53,6 @@ func (r *DestinationTimeplusDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Personal API key`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "timeplus",
- ),
- },
- Description: `must be one of ["timeplus"]`,
- },
"endpoint": schema.StringAttribute{
Computed: true,
Description: `Timeplus workspace endpoint`,
diff --git a/internal/provider/destination_timeplus_data_source_sdk.go b/internal/provider/destination_timeplus_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_timeplus_resource.go b/internal/provider/destination_timeplus_resource.go
old mode 100755
new mode 100644
index d0aa0823b..638ff3594
--- a/internal/provider/destination_timeplus_resource.go
+++ b/internal/provider/destination_timeplus_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -57,17 +55,8 @@ func (r *DestinationTimeplusResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Personal API key`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "timeplus",
- ),
- },
- Description: `must be one of ["timeplus"]`,
- },
"endpoint": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Timeplus workspace endpoint`,
},
},
@@ -138,7 +127,7 @@ func (r *DestinationTimeplusResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationTimeplus(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_timeplus_resource_sdk.go b/internal/provider/destination_timeplus_resource_sdk.go
old mode 100755
new mode 100644
index 393e1ecfb..03f0d89ea
--- a/internal/provider/destination_timeplus_resource_sdk.go
+++ b/internal/provider/destination_timeplus_resource_sdk.go
@@ -9,12 +9,15 @@ import (
func (r *DestinationTimeplusResourceModel) ToCreateSDKType() *shared.DestinationTimeplusCreateRequest {
apikey := r.Configuration.Apikey.ValueString()
- destinationType := shared.DestinationTimeplusTimeplus(r.Configuration.DestinationType.ValueString())
- endpoint := r.Configuration.Endpoint.ValueString()
+ endpoint := new(string)
+ if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() {
+ *endpoint = r.Configuration.Endpoint.ValueString()
+ } else {
+ endpoint = nil
+ }
configuration := shared.DestinationTimeplus{
- Apikey: apikey,
- DestinationType: destinationType,
- Endpoint: endpoint,
+ Apikey: apikey,
+ Endpoint: endpoint,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -33,7 +36,12 @@ func (r *DestinationTimeplusResourceModel) ToGetSDKType() *shared.DestinationTim
func (r *DestinationTimeplusResourceModel) ToUpdateSDKType() *shared.DestinationTimeplusPutRequest {
apikey := r.Configuration.Apikey.ValueString()
- endpoint := r.Configuration.Endpoint.ValueString()
+ endpoint := new(string)
+ if !r.Configuration.Endpoint.IsUnknown() && !r.Configuration.Endpoint.IsNull() {
+ *endpoint = r.Configuration.Endpoint.ValueString()
+ } else {
+ endpoint = nil
+ }
configuration := shared.DestinationTimeplusUpdate{
Apikey: apikey,
Endpoint: endpoint,
diff --git a/internal/provider/destination_typesense_data_source.go b/internal/provider/destination_typesense_data_source.go
old mode 100755
new mode 100644
index f60aef7f5..d925f24ac
--- a/internal/provider/destination_typesense_data_source.go
+++ b/internal/provider/destination_typesense_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *DestinationTypesenseDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `How many documents should be imported together. Default 1000`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "typesense",
- ),
- },
- Description: `must be one of ["typesense"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the Typesense instance without protocol.`,
diff --git a/internal/provider/destination_typesense_data_source_sdk.go b/internal/provider/destination_typesense_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_typesense_resource.go b/internal/provider/destination_typesense_resource.go
old mode 100755
new mode 100644
index 48641bfd0..83ebde42f
--- a/internal/provider/destination_typesense_resource.go
+++ b/internal/provider/destination_typesense_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *DestinationTypesenseResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `How many documents should be imported together. Default 1000`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "typesense",
- ),
- },
- Description: `must be one of ["typesense"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the Typesense instance without protocol.`,
@@ -150,7 +139,7 @@ func (r *DestinationTypesenseResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationTypesense(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_typesense_resource_sdk.go b/internal/provider/destination_typesense_resource_sdk.go
old mode 100755
new mode 100644
index 2b3b09610..c3acb4805
--- a/internal/provider/destination_typesense_resource_sdk.go
+++ b/internal/provider/destination_typesense_resource_sdk.go
@@ -15,7 +15,6 @@ func (r *DestinationTypesenseResourceModel) ToCreateSDKType() *shared.Destinatio
} else {
batchSize = nil
}
- destinationType := shared.DestinationTypesenseTypesense(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
port := new(string)
if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
@@ -30,12 +29,11 @@ func (r *DestinationTypesenseResourceModel) ToCreateSDKType() *shared.Destinatio
protocol = nil
}
configuration := shared.DestinationTypesense{
- APIKey: apiKey,
- BatchSize: batchSize,
- DestinationType: destinationType,
- Host: host,
- Port: port,
- Protocol: protocol,
+ APIKey: apiKey,
+ BatchSize: batchSize,
+ Host: host,
+ Port: port,
+ Protocol: protocol,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/destination_vertica_data_source.go b/internal/provider/destination_vertica_data_source.go
old mode 100755
new mode 100644
index bfc51846f..19034aad8
--- a/internal/provider/destination_vertica_data_source.go
+++ b/internal/provider/destination_vertica_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -56,15 +55,6 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "vertica",
- ),
- },
- Description: `must be one of ["vertica"]`,
- },
"host": schema.StringAttribute{
Computed: true,
Description: `Hostname of the database.`,
@@ -89,19 +79,8 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Attributes: map[string]schema.Attribute{
"destination_vertica_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -111,16 +90,6 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -147,16 +116,6 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -169,19 +128,8 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -191,16 +139,6 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -227,16 +165,6 @@ func (r *DestinationVerticaDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/destination_vertica_data_source_sdk.go b/internal/provider/destination_vertica_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_vertica_resource.go b/internal/provider/destination_vertica_resource.go
old mode 100755
new mode 100644
index cc0100b8d..50ba454a4
--- a/internal/provider/destination_vertica_resource.go
+++ b/internal/provider/destination_vertica_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,15 +57,6 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Name of the database.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "vertica",
- ),
- },
- Description: `must be one of ["vertica"]`,
- },
"host": schema.StringAttribute{
Required: true,
Description: `Hostname of the database.`,
@@ -80,7 +70,7 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"schema": schema.StringAttribute{
@@ -91,19 +81,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"destination_vertica_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -113,18 +92,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -149,18 +118,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -171,19 +130,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"destination_vertica_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -193,18 +141,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -229,18 +167,8 @@ func (r *DestinationVerticaResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -328,7 +256,7 @@ func (r *DestinationVerticaResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationVertica(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_vertica_resource_sdk.go b/internal/provider/destination_vertica_resource_sdk.go
old mode 100755
new mode 100644
index aef630b5e..24d83874c
--- a/internal/provider/destination_vertica_resource_sdk.go
+++ b/internal/provider/destination_vertica_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationVerticaCreateRequest {
database := r.Configuration.Database.ValueString()
- destinationType := shared.DestinationVerticaVertica(r.Configuration.DestinationType.ValueString())
host := r.Configuration.Host.ValueString()
jdbcURLParams := new(string)
if !r.Configuration.JdbcURLParams.IsUnknown() && !r.Configuration.JdbcURLParams.IsNull() {
@@ -23,16 +22,18 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
schema := r.Configuration.Schema.ValueString()
var tunnelMethod *shared.DestinationVerticaSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationVerticaSSHTunnelMethodNoTunnel *shared.DestinationVerticaSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationVerticaSSHTunnelMethodNoTunnel = &shared.DestinationVerticaSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationVerticaSSHTunnelMethodNoTunnel = &shared.DestinationVerticaSSHTunnelMethodNoTunnel{}
}
if destinationVerticaSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationVerticaSSHTunnelMethod{
@@ -43,15 +44,18 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV
if r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationVerticaSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationVerticaSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -62,13 +66,16 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV
var destinationVerticaSSHTunnelMethodPasswordAuthentication *shared.DestinationVerticaSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationVerticaSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationVerticaSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationVerticaSSHTunnelMethodPasswordAuthentication = &shared.DestinationVerticaSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -82,15 +89,14 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV
}
username := r.Configuration.Username.ValueString()
configuration := shared.DestinationVertica{
- Database: database,
- DestinationType: destinationType,
- Host: host,
- JdbcURLParams: jdbcURLParams,
- Password: password,
- Port: port,
- Schema: schema,
- TunnelMethod: tunnelMethod,
- Username: username,
+ Database: database,
+ Host: host,
+ JdbcURLParams: jdbcURLParams,
+ Password: password,
+ Port: port,
+ Schema: schema,
+ TunnelMethod: tunnelMethod,
+ Username: username,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
@@ -122,16 +128,18 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
schema := r.Configuration.Schema.ValueString()
var tunnelMethod *shared.DestinationVerticaUpdateSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var destinationVerticaUpdateSSHTunnelMethodNoTunnel *shared.DestinationVerticaUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- destinationVerticaUpdateSSHTunnelMethodNoTunnel = &shared.DestinationVerticaUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ destinationVerticaUpdateSSHTunnelMethodNoTunnel = &shared.DestinationVerticaUpdateSSHTunnelMethodNoTunnel{}
}
if destinationVerticaUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.DestinationVerticaUpdateSSHTunnelMethod{
@@ -142,15 +150,18 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV
if r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -161,13 +172,16 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV
var destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication *shared.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication = &shared.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/destination_xata_data_source.go b/internal/provider/destination_xata_data_source.go
old mode 100755
new mode 100644
index 920cf9b80..8e9ae5bd2
--- a/internal/provider/destination_xata_data_source.go
+++ b/internal/provider/destination_xata_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *DestinationXataDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `URL pointing to your workspace.`,
},
- "destination_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xata",
- ),
- },
- Description: `must be one of ["xata"]`,
- },
},
},
"destination_id": schema.StringAttribute{
diff --git a/internal/provider/destination_xata_data_source_sdk.go b/internal/provider/destination_xata_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/destination_xata_resource.go b/internal/provider/destination_xata_resource.go
old mode 100755
new mode 100644
index 8b6106317..7dc06745c
--- a/internal/provider/destination_xata_resource.go
+++ b/internal/provider/destination_xata_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *DestinationXataResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `URL pointing to your workspace.`,
},
- "destination_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xata",
- ),
- },
- Description: `must be one of ["xata"]`,
- },
},
},
"destination_id": schema.StringAttribute{
@@ -138,7 +127,7 @@ func (r *DestinationXataResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Destinations.CreateDestinationXata(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/destination_xata_resource_sdk.go b/internal/provider/destination_xata_resource_sdk.go
old mode 100755
new mode 100644
index b4ba59ce2..5cb18d556
--- a/internal/provider/destination_xata_resource_sdk.go
+++ b/internal/provider/destination_xata_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *DestinationXataResourceModel) ToCreateSDKType() *shared.DestinationXataCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
dbURL := r.Configuration.DbURL.ValueString()
- destinationType := shared.DestinationXataXata(r.Configuration.DestinationType.ValueString())
configuration := shared.DestinationXata{
- APIKey: apiKey,
- DbURL: dbURL,
- DestinationType: destinationType,
+ APIKey: apiKey,
+ DbURL: dbURL,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/provider.go b/internal/provider/provider.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/diags.go b/internal/provider/reflect/diags.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/doc.go b/internal/provider/reflect/doc.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/generic_attr_value.go b/internal/provider/reflect/generic_attr_value.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/helpers.go b/internal/provider/reflect/helpers.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/interfaces.go b/internal/provider/reflect/interfaces.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/into.go b/internal/provider/reflect/into.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/map.go b/internal/provider/reflect/map.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/number.go b/internal/provider/reflect/number.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/options.go b/internal/provider/reflect/options.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/outof.go b/internal/provider/reflect/outof.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/pointer.go b/internal/provider/reflect/pointer.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/primitive.go b/internal/provider/reflect/primitive.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/slice.go b/internal/provider/reflect/slice.go
old mode 100755
new mode 100644
diff --git a/internal/provider/reflect/struct.go b/internal/provider/reflect/struct.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_aha_data_source.go b/internal/provider/source_aha_data_source.go
old mode 100755
new mode 100644
index e324094d1..3040825ff
--- a/internal/provider/source_aha_data_source.go
+++ b/internal/provider/source_aha_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceAhaDataSource) Schema(ctx context.Context, req datasource.SchemaR
Computed: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aha",
- ),
- },
- Description: `must be one of ["aha"]`,
- },
"url": schema.StringAttribute{
Computed: true,
Description: `URL`,
diff --git a/internal/provider/source_aha_data_source_sdk.go b/internal/provider/source_aha_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_aha_resource.go b/internal/provider/source_aha_resource.go
old mode 100755
new mode 100644
index 16d0702ef..c29194841
--- a/internal/provider/source_aha_resource.go
+++ b/internal/provider/source_aha_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceAhaResource) Schema(ctx context.Context, req resource.SchemaReque
Required: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aha",
- ),
- },
- Description: `must be one of ["aha"]`,
- },
"url": schema.StringAttribute{
Required: true,
Description: `URL`,
@@ -143,7 +132,7 @@ func (r *SourceAhaResource) Create(ctx context.Context, req resource.CreateReque
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAha(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_aha_resource_sdk.go b/internal/provider/source_aha_resource_sdk.go
old mode 100755
new mode 100644
index 3cc18e001..cc416aa95
--- a/internal/provider/source_aha_resource_sdk.go
+++ b/internal/provider/source_aha_resource_sdk.go
@@ -9,12 +9,10 @@ import (
func (r *SourceAhaResourceModel) ToCreateSDKType() *shared.SourceAhaCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceAhaAha(r.Configuration.SourceType.ValueString())
url := r.Configuration.URL.ValueString()
configuration := shared.SourceAha{
- APIKey: apiKey,
- SourceType: sourceType,
- URL: url,
+ APIKey: apiKey,
+ URL: url,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_aircall_data_source.go b/internal/provider/source_aircall_data_source.go
old mode 100755
new mode 100644
index 3bc929f99..436db12fb
--- a/internal/provider/source_aircall_data_source.go
+++ b/internal/provider/source_aircall_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -61,15 +60,6 @@ func (r *SourceAircallDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aircall",
- ),
- },
- Description: `must be one of ["aircall"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_aircall_data_source_sdk.go b/internal/provider/source_aircall_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_aircall_resource.go b/internal/provider/source_aircall_resource.go
old mode 100755
new mode 100644
index 152eea3bb..b0e79cc66
--- a/internal/provider/source_aircall_resource.go
+++ b/internal/provider/source_aircall_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -63,15 +62,6 @@ func (r *SourceAircallResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aircall",
- ),
- },
- Description: `must be one of ["aircall"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -151,7 +141,7 @@ func (r *SourceAircallResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAircall(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_aircall_resource_sdk.go b/internal/provider/source_aircall_resource_sdk.go
old mode 100755
new mode 100644
index dcb79fc85..e988de65d
--- a/internal/provider/source_aircall_resource_sdk.go
+++ b/internal/provider/source_aircall_resource_sdk.go
@@ -11,13 +11,11 @@ import (
func (r *SourceAircallResourceModel) ToCreateSDKType() *shared.SourceAircallCreateRequest {
apiID := r.Configuration.APIID.ValueString()
apiToken := r.Configuration.APIToken.ValueString()
- sourceType := shared.SourceAircallAircall(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceAircall{
- APIID: apiID,
- APIToken: apiToken,
- SourceType: sourceType,
- StartDate: startDate,
+ APIID: apiID,
+ APIToken: apiToken,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_airtable_data_source.go b/internal/provider/source_airtable_data_source.go
old mode 100755
new mode 100644
index 30b1b2f16..67ce5e64a
--- a/internal/provider/source_airtable_data_source.go
+++ b/internal/provider/source_airtable_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceAirtableDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of the Airtable developer application.`,
@@ -100,15 +90,6 @@ func (r *SourceAirtableDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_airtable_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -118,15 +99,6 @@ func (r *SourceAirtableDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of the Airtable developer application.`,
@@ -155,15 +127,6 @@ func (r *SourceAirtableDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
},
@@ -171,15 +134,6 @@ func (r *SourceAirtableDataSource) Schema(ctx context.Context, req datasource.Sc
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "airtable",
- ),
- },
- Description: `must be one of ["airtable"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_airtable_data_source_sdk.go b/internal/provider/source_airtable_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_airtable_resource.go b/internal/provider/source_airtable_resource.go
old mode 100755
new mode 100644
index a2e41acd2..203048970
--- a/internal/provider/source_airtable_resource.go
+++ b/internal/provider/source_airtable_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of the Airtable developer application.`,
@@ -102,15 +92,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_airtable_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -120,15 +101,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of the Airtable developer application.`,
@@ -157,15 +129,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
},
@@ -173,15 +136,6 @@ func (r *SourceAirtableResource) Schema(ctx context.Context, req resource.Schema
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "airtable",
- ),
- },
- Description: `must be one of ["airtable"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -254,7 +208,7 @@ func (r *SourceAirtableResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAirtable(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_airtable_resource_sdk.go b/internal/provider/source_airtable_resource_sdk.go
old mode 100755
new mode 100644
index 9b330f4e3..278b5ef86
--- a/internal/provider/source_airtable_resource_sdk.go
+++ b/internal/provider/source_airtable_resource_sdk.go
@@ -19,12 +19,6 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr
} else {
accessToken = nil
}
- authMethod := new(shared.SourceAirtableAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceAirtableAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceAirtableAuthenticationOAuth20.RefreshToken.ValueString()
@@ -36,7 +30,6 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr
}
sourceAirtableAuthenticationOAuth20 = &shared.SourceAirtableAuthenticationOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -51,15 +44,8 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr
var sourceAirtableAuthenticationPersonalAccessToken *shared.SourceAirtableAuthenticationPersonalAccessToken
if r.Configuration.Credentials.SourceAirtableAuthenticationPersonalAccessToken != nil {
apiKey := r.Configuration.Credentials.SourceAirtableAuthenticationPersonalAccessToken.APIKey.ValueString()
- authMethod1 := new(shared.SourceAirtableAuthenticationPersonalAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceAirtableAuthenticationPersonalAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceAirtableAuthenticationPersonalAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceAirtableAuthenticationPersonalAccessTokenAuthMethod(r.Configuration.Credentials.SourceAirtableAuthenticationPersonalAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceAirtableAuthenticationPersonalAccessToken = &shared.SourceAirtableAuthenticationPersonalAccessToken{
- APIKey: apiKey,
- AuthMethod: authMethod1,
+ APIKey: apiKey,
}
}
if sourceAirtableAuthenticationPersonalAccessToken != nil {
@@ -68,15 +54,8 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr
}
}
}
- sourceType := new(shared.SourceAirtableAirtable)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceAirtableAirtable(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
configuration := shared.SourceAirtable{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -111,12 +90,6 @@ func (r *SourceAirtableResourceModel) ToUpdateSDKType() *shared.SourceAirtablePu
} else {
accessToken = nil
}
- authMethod := new(shared.SourceAirtableUpdateAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceAirtableUpdateAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceAirtableUpdateAuthenticationOAuth20.RefreshToken.ValueString()
@@ -128,7 +101,6 @@ func (r *SourceAirtableResourceModel) ToUpdateSDKType() *shared.SourceAirtablePu
}
sourceAirtableUpdateAuthenticationOAuth20 = &shared.SourceAirtableUpdateAuthenticationOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -143,15 +115,8 @@ func (r *SourceAirtableResourceModel) ToUpdateSDKType() *shared.SourceAirtablePu
var sourceAirtableUpdateAuthenticationPersonalAccessToken *shared.SourceAirtableUpdateAuthenticationPersonalAccessToken
if r.Configuration.Credentials.SourceAirtableUpdateAuthenticationPersonalAccessToken != nil {
apiKey := r.Configuration.Credentials.SourceAirtableUpdateAuthenticationPersonalAccessToken.APIKey.ValueString()
- authMethod1 := new(shared.SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceAirtableUpdateAuthenticationPersonalAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceAirtableUpdateAuthenticationPersonalAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod(r.Configuration.Credentials.SourceAirtableUpdateAuthenticationPersonalAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceAirtableUpdateAuthenticationPersonalAccessToken = &shared.SourceAirtableUpdateAuthenticationPersonalAccessToken{
- APIKey: apiKey,
- AuthMethod: authMethod1,
+ APIKey: apiKey,
}
}
if sourceAirtableUpdateAuthenticationPersonalAccessToken != nil {
diff --git a/internal/provider/source_alloydb_data_source.go b/internal/provider/source_alloydb_data_source.go
old mode 100755
new mode 100644
index 997b18a71..06a53faa5
--- a/internal/provider/source_alloydb_data_source.go
+++ b/internal/provider/source_alloydb_data_source.go
@@ -32,11 +32,11 @@ type SourceAlloydbDataSource struct {
// SourceAlloydbDataSourceModel describes the data model.
type SourceAlloydbDataSourceModel struct {
- Configuration SourceAlloydb1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceAlloydb `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -79,6 +79,13 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_replication_method_logical_replication_cdc": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"initial_waiting_seconds": schema.Int64Attribute{
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -94,15 +101,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -125,49 +123,29 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.`,
},
"source_alloydb_replication_method_standard": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
"source_alloydb_replication_method_standard_xmin": schema.SingleNestedAttribute{
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
+ Description: `Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
+ },
+ "source_alloydb_update_replication_method_logical_replication_cdc": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Xmin"]`,
+ Description: `Parsed as JSON.`,
},
- },
- Description: `Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
- },
- "source_alloydb_update_replication_method_logical_replication_cdc": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
"initial_waiting_seconds": schema.Int64Attribute{
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -183,15 +161,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -214,44 +183,17 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.`,
},
"source_alloydb_update_replication_method_standard": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
"source_alloydb_update_replication_method_standard_xmin": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
- },
- Description: `must be one of ["Xmin"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
},
@@ -265,32 +207,14 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
ElementType: types.StringType,
Description: `The list of schemas (case sensitive) to sync from. Defaults to public.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "alloydb",
- ),
- },
- Description: `must be one of ["alloydb"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_alloydb_ssl_modes_allow": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -302,17 +226,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_ssl_modes_disable": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -324,17 +239,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_ssl_modes_prefer": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -346,17 +252,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_ssl_modes_require": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -368,6 +265,13 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -384,28 +288,19 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
},
"source_alloydb_ssl_modes_verify_full": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -422,39 +317,14 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
"source_alloydb_update_ssl_modes_allow": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -466,17 +336,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_update_ssl_modes_disable": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -488,17 +349,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_update_ssl_modes_prefer": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -510,17 +362,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_update_ssl_modes_require": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -532,6 +375,13 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_alloydb_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -548,28 +398,19 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
},
"source_alloydb_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -586,22 +427,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
@@ -616,19 +441,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Attributes: map[string]schema.Attribute{
"source_alloydb_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -638,16 +452,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -674,16 +478,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -696,19 +490,8 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -718,16 +501,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -754,16 +527,6 @@ func (r *SourceAlloydbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_alloydb_data_source_sdk.go b/internal/provider/source_alloydb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_alloydb_resource.go b/internal/provider/source_alloydb_resource.go
old mode 100755
new mode 100644
index 03c8ab9de..f4987609e
--- a/internal/provider/source_alloydb_resource.go
+++ b/internal/provider/source_alloydb_resource.go
@@ -72,7 +72,7 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"replication_method": schema.SingleNestedAttribute{
@@ -81,6 +81,13 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_replication_method_logical_replication_cdc": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"initial_waiting_seconds": schema.Int64Attribute{
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -96,15 +103,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -127,49 +125,29 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.`,
},
"source_alloydb_replication_method_standard": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
"source_alloydb_replication_method_standard_xmin": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
- },
- Description: `must be one of ["Xmin"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
"source_alloydb_update_replication_method_logical_replication_cdc": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"initial_waiting_seconds": schema.Int64Attribute{
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -185,15 +163,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -216,44 +185,17 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.`,
},
"source_alloydb_update_replication_method_standard": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
"source_alloydb_update_replication_method_standard_xmin": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
- },
- Description: `must be one of ["Xmin"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.`,
},
},
@@ -267,30 +209,12 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
ElementType: types.StringType,
Description: `The list of schemas (case sensitive) to sync from. Defaults to public.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "alloydb",
- ),
- },
- Description: `must be one of ["alloydb"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_alloydb_ssl_modes_allow": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -304,15 +228,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_ssl_modes_disable": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -326,15 +241,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_ssl_modes_prefer": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -348,15 +254,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_ssl_modes_require": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -370,6 +267,13 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -386,15 +290,12 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
+ },
+ Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
+ },
+ "source_alloydb_ssl_modes_verify_full": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -402,12 +303,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
- },
- "source_alloydb_ssl_modes_verify_full": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -424,37 +319,12 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
"source_alloydb_update_ssl_modes_allow": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -468,15 +338,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_update_ssl_modes_disable": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -490,15 +351,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_update_ssl_modes_prefer": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -512,15 +364,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_update_ssl_modes_require": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -534,6 +377,13 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
"source_alloydb_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -550,15 +400,12 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
+ },
+ Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
+ },
+ "source_alloydb_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -566,12 +413,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
- },
- "source_alloydb_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -588,22 +429,6 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
@@ -618,19 +443,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Attributes: map[string]schema.Attribute{
"source_alloydb_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -640,18 +454,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -676,18 +480,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -698,19 +492,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_alloydb_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -720,18 +503,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -756,18 +529,8 @@ func (r *SourceAlloydbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -859,7 +622,7 @@ func (r *SourceAlloydbResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAlloydb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_alloydb_resource_sdk.go b/internal/provider/source_alloydb_resource_sdk.go
old mode 100755
new mode 100644
index edf46d75c..337dfcf30
--- a/internal/provider/source_alloydb_resource_sdk.go
+++ b/internal/provider/source_alloydb_resource_sdk.go
@@ -23,15 +23,17 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod *shared.SourceAlloydbReplicationMethod
if r.Configuration.ReplicationMethod != nil {
var sourceAlloydbReplicationMethodStandardXmin *shared.SourceAlloydbReplicationMethodStandardXmin
if r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodStandardXmin != nil {
- method := shared.SourceAlloydbReplicationMethodStandardXminMethod(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodStandardXmin.Method.ValueString())
- sourceAlloydbReplicationMethodStandardXmin = &shared.SourceAlloydbReplicationMethodStandardXmin{
- Method: method,
- }
+ sourceAlloydbReplicationMethodStandardXmin = &shared.SourceAlloydbReplicationMethodStandardXmin{}
}
if sourceAlloydbReplicationMethodStandardXmin != nil {
replicationMethod = &shared.SourceAlloydbReplicationMethod{
@@ -40,6 +42,10 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbReplicationMethodLogicalReplicationCDC *shared.SourceAlloydbReplicationMethodLogicalReplicationCDC
if r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.ValueString()), &additionalProperties)
+ }
initialWaitingSeconds := new(int64)
if !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.IsNull() {
*initialWaitingSeconds = r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.ValueInt64()
@@ -52,7 +58,6 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
} else {
lsnCommitBehaviour = nil
}
- method1 := shared.SourceAlloydbReplicationMethodLogicalReplicationCDCMethod(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.Method.ValueString())
plugin := new(shared.SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin)
if !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.Plugin.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.Plugin.IsNull() {
*plugin = shared.SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.Plugin.ValueString())
@@ -67,19 +72,14 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
queueSize = nil
}
replicationSlot := r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.ReplicationSlot.ValueString()
- var additionalProperties interface{}
- if !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodLogicalReplicationCDC.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourceAlloydbReplicationMethodLogicalReplicationCDC = &shared.SourceAlloydbReplicationMethodLogicalReplicationCDC{
+ AdditionalProperties: additionalProperties,
InitialWaitingSeconds: initialWaitingSeconds,
LsnCommitBehaviour: lsnCommitBehaviour,
- Method: method1,
Plugin: plugin,
Publication: publication,
QueueSize: queueSize,
ReplicationSlot: replicationSlot,
- AdditionalProperties: additionalProperties,
}
}
if sourceAlloydbReplicationMethodLogicalReplicationCDC != nil {
@@ -89,10 +89,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbReplicationMethodStandard *shared.SourceAlloydbReplicationMethodStandard
if r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodStandard != nil {
- method2 := shared.SourceAlloydbReplicationMethodStandardMethod(r.Configuration.ReplicationMethod.SourceAlloydbReplicationMethodStandard.Method.ValueString())
- sourceAlloydbReplicationMethodStandard = &shared.SourceAlloydbReplicationMethodStandard{
- Method: method2,
- }
+ sourceAlloydbReplicationMethodStandard = &shared.SourceAlloydbReplicationMethodStandard{}
}
if sourceAlloydbReplicationMethodStandard != nil {
replicationMethod = &shared.SourceAlloydbReplicationMethod{
@@ -104,18 +101,15 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
}
- sourceType := shared.SourceAlloydbAlloydb(r.Configuration.SourceType.ValueString())
var sslMode *shared.SourceAlloydbSSLModes
if r.Configuration.SslMode != nil {
var sourceAlloydbSSLModesDisable *shared.SourceAlloydbSSLModesDisable
if r.Configuration.SslMode.SourceAlloydbSSLModesDisable != nil {
- mode := shared.SourceAlloydbSSLModesDisableMode(r.Configuration.SslMode.SourceAlloydbSSLModesDisable.Mode.ValueString())
var additionalProperties1 interface{}
if !r.Configuration.SslMode.SourceAlloydbSSLModesDisable.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesDisable.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesDisable.AdditionalProperties.ValueString()), &additionalProperties1)
}
sourceAlloydbSSLModesDisable = &shared.SourceAlloydbSSLModesDisable{
- Mode: mode,
AdditionalProperties: additionalProperties1,
}
}
@@ -126,13 +120,11 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbSSLModesAllow *shared.SourceAlloydbSSLModesAllow
if r.Configuration.SslMode.SourceAlloydbSSLModesAllow != nil {
- mode1 := shared.SourceAlloydbSSLModesAllowMode(r.Configuration.SslMode.SourceAlloydbSSLModesAllow.Mode.ValueString())
var additionalProperties2 interface{}
if !r.Configuration.SslMode.SourceAlloydbSSLModesAllow.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesAllow.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesAllow.AdditionalProperties.ValueString()), &additionalProperties2)
}
sourceAlloydbSSLModesAllow = &shared.SourceAlloydbSSLModesAllow{
- Mode: mode1,
AdditionalProperties: additionalProperties2,
}
}
@@ -143,13 +135,11 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbSSLModesPrefer *shared.SourceAlloydbSSLModesPrefer
if r.Configuration.SslMode.SourceAlloydbSSLModesPrefer != nil {
- mode2 := shared.SourceAlloydbSSLModesPreferMode(r.Configuration.SslMode.SourceAlloydbSSLModesPrefer.Mode.ValueString())
var additionalProperties3 interface{}
if !r.Configuration.SslMode.SourceAlloydbSSLModesPrefer.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesPrefer.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesPrefer.AdditionalProperties.ValueString()), &additionalProperties3)
}
sourceAlloydbSSLModesPrefer = &shared.SourceAlloydbSSLModesPrefer{
- Mode: mode2,
AdditionalProperties: additionalProperties3,
}
}
@@ -160,13 +150,11 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbSSLModesRequire *shared.SourceAlloydbSSLModesRequire
if r.Configuration.SslMode.SourceAlloydbSSLModesRequire != nil {
- mode3 := shared.SourceAlloydbSSLModesRequireMode(r.Configuration.SslMode.SourceAlloydbSSLModesRequire.Mode.ValueString())
var additionalProperties4 interface{}
if !r.Configuration.SslMode.SourceAlloydbSSLModesRequire.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesRequire.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesRequire.AdditionalProperties.ValueString()), &additionalProperties4)
}
sourceAlloydbSSLModesRequire = &shared.SourceAlloydbSSLModesRequire{
- Mode: mode3,
AdditionalProperties: additionalProperties4,
}
}
@@ -177,6 +165,10 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbSSLModesVerifyCa *shared.SourceAlloydbSSLModesVerifyCa
if r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa != nil {
+ var additionalProperties5 interface{}
+ if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
+ }
caCertificate := r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.CaCertificate.ValueString()
clientCertificate := new(string)
if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.ClientCertificate.IsNull() {
@@ -196,18 +188,12 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
} else {
clientKeyPassword = nil
}
- mode4 := shared.SourceAlloydbSSLModesVerifyCaMode(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.Mode.ValueString())
- var additionalProperties5 interface{}
- if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
- }
sourceAlloydbSSLModesVerifyCa = &shared.SourceAlloydbSSLModesVerifyCa{
+ AdditionalProperties: additionalProperties5,
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
- AdditionalProperties: additionalProperties5,
}
}
if sourceAlloydbSSLModesVerifyCa != nil {
@@ -217,6 +203,10 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
}
var sourceAlloydbSSLModesVerifyFull *shared.SourceAlloydbSSLModesVerifyFull
if r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull != nil {
+ var additionalProperties6 interface{}
+ if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
+ }
caCertificate1 := r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.CaCertificate.ValueString()
clientCertificate1 := new(string)
if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.ClientCertificate.IsNull() {
@@ -236,18 +226,12 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.SourceAlloydbSSLModesVerifyFullMode(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.Mode.ValueString())
- var additionalProperties6 interface{}
- if !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
- }
sourceAlloydbSSLModesVerifyFull = &shared.SourceAlloydbSSLModesVerifyFull{
+ AdditionalProperties: additionalProperties6,
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
- AdditionalProperties: additionalProperties6,
}
}
if sourceAlloydbSSLModesVerifyFull != nil {
@@ -260,10 +244,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
if r.Configuration.TunnelMethod != nil {
var sourceAlloydbSSHTunnelMethodNoTunnel *shared.SourceAlloydbSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceAlloydbSSHTunnelMethodNoTunnel = &shared.SourceAlloydbSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceAlloydbSSHTunnelMethodNoTunnel = &shared.SourceAlloydbSSHTunnelMethodNoTunnel{}
}
if sourceAlloydbSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceAlloydbSSHTunnelMethod{
@@ -274,15 +255,18 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
if r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceAlloydbSSHTunnelMethodSSHKeyAuthentication = &shared.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceAlloydbSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -293,13 +277,16 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
var sourceAlloydbSSHTunnelMethodPasswordAuthentication *shared.SourceAlloydbSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceAlloydbSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceAlloydbSSHTunnelMethodPasswordAuthentication = &shared.SourceAlloydbSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -320,7 +307,6 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea
Port: port,
ReplicationMethod: replicationMethod,
Schemas: schemas,
- SourceType: sourceType,
SslMode: sslMode,
TunnelMethod: tunnelMethod,
Username: username,
@@ -362,15 +348,17 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod *shared.SourceAlloydbUpdateReplicationMethod
if r.Configuration.ReplicationMethod != nil {
var sourceAlloydbUpdateReplicationMethodStandardXmin *shared.SourceAlloydbUpdateReplicationMethodStandardXmin
if r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodStandardXmin != nil {
- method := shared.SourceAlloydbUpdateReplicationMethodStandardXminMethod(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodStandardXmin.Method.ValueString())
- sourceAlloydbUpdateReplicationMethodStandardXmin = &shared.SourceAlloydbUpdateReplicationMethodStandardXmin{
- Method: method,
- }
+ sourceAlloydbUpdateReplicationMethodStandardXmin = &shared.SourceAlloydbUpdateReplicationMethodStandardXmin{}
}
if sourceAlloydbUpdateReplicationMethodStandardXmin != nil {
replicationMethod = &shared.SourceAlloydbUpdateReplicationMethod{
@@ -379,6 +367,10 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC *shared.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC
if r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.ValueString()), &additionalProperties)
+ }
initialWaitingSeconds := new(int64)
if !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.IsNull() {
*initialWaitingSeconds = r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.InitialWaitingSeconds.ValueInt64()
@@ -391,7 +383,6 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
} else {
lsnCommitBehaviour = nil
}
- method1 := shared.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCMethod(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.Method.ValueString())
plugin := new(shared.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin)
if !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.Plugin.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.Plugin.IsNull() {
*plugin = shared.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.Plugin.ValueString())
@@ -406,19 +397,14 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
queueSize = nil
}
replicationSlot := r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.ReplicationSlot.ValueString()
- var additionalProperties interface{}
- if !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC = &shared.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC{
+ AdditionalProperties: additionalProperties,
InitialWaitingSeconds: initialWaitingSeconds,
LsnCommitBehaviour: lsnCommitBehaviour,
- Method: method1,
Plugin: plugin,
Publication: publication,
QueueSize: queueSize,
ReplicationSlot: replicationSlot,
- AdditionalProperties: additionalProperties,
}
}
if sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC != nil {
@@ -428,10 +414,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateReplicationMethodStandard *shared.SourceAlloydbUpdateReplicationMethodStandard
if r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodStandard != nil {
- method2 := shared.SourceAlloydbUpdateReplicationMethodStandardMethod(r.Configuration.ReplicationMethod.SourceAlloydbUpdateReplicationMethodStandard.Method.ValueString())
- sourceAlloydbUpdateReplicationMethodStandard = &shared.SourceAlloydbUpdateReplicationMethodStandard{
- Method: method2,
- }
+ sourceAlloydbUpdateReplicationMethodStandard = &shared.SourceAlloydbUpdateReplicationMethodStandard{}
}
if sourceAlloydbUpdateReplicationMethodStandard != nil {
replicationMethod = &shared.SourceAlloydbUpdateReplicationMethod{
@@ -447,13 +430,11 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
if r.Configuration.SslMode != nil {
var sourceAlloydbUpdateSSLModesDisable *shared.SourceAlloydbUpdateSSLModesDisable
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesDisable != nil {
- mode := shared.SourceAlloydbUpdateSSLModesDisableMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesDisable.Mode.ValueString())
var additionalProperties1 interface{}
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesDisable.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesDisable.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesDisable.AdditionalProperties.ValueString()), &additionalProperties1)
}
sourceAlloydbUpdateSSLModesDisable = &shared.SourceAlloydbUpdateSSLModesDisable{
- Mode: mode,
AdditionalProperties: additionalProperties1,
}
}
@@ -464,13 +445,11 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateSSLModesAllow *shared.SourceAlloydbUpdateSSLModesAllow
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesAllow != nil {
- mode1 := shared.SourceAlloydbUpdateSSLModesAllowMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesAllow.Mode.ValueString())
var additionalProperties2 interface{}
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesAllow.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesAllow.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesAllow.AdditionalProperties.ValueString()), &additionalProperties2)
}
sourceAlloydbUpdateSSLModesAllow = &shared.SourceAlloydbUpdateSSLModesAllow{
- Mode: mode1,
AdditionalProperties: additionalProperties2,
}
}
@@ -481,13 +460,11 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateSSLModesPrefer *shared.SourceAlloydbUpdateSSLModesPrefer
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesPrefer != nil {
- mode2 := shared.SourceAlloydbUpdateSSLModesPreferMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesPrefer.Mode.ValueString())
var additionalProperties3 interface{}
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesPrefer.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesPrefer.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesPrefer.AdditionalProperties.ValueString()), &additionalProperties3)
}
sourceAlloydbUpdateSSLModesPrefer = &shared.SourceAlloydbUpdateSSLModesPrefer{
- Mode: mode2,
AdditionalProperties: additionalProperties3,
}
}
@@ -498,13 +475,11 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateSSLModesRequire *shared.SourceAlloydbUpdateSSLModesRequire
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesRequire != nil {
- mode3 := shared.SourceAlloydbUpdateSSLModesRequireMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesRequire.Mode.ValueString())
var additionalProperties4 interface{}
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesRequire.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesRequire.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesRequire.AdditionalProperties.ValueString()), &additionalProperties4)
}
sourceAlloydbUpdateSSLModesRequire = &shared.SourceAlloydbUpdateSSLModesRequire{
- Mode: mode3,
AdditionalProperties: additionalProperties4,
}
}
@@ -515,6 +490,10 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateSSLModesVerifyCa *shared.SourceAlloydbUpdateSSLModesVerifyCa
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa != nil {
+ var additionalProperties5 interface{}
+ if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
+ }
caCertificate := r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.CaCertificate.ValueString()
clientCertificate := new(string)
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.ClientCertificate.IsNull() {
@@ -534,18 +513,12 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
} else {
clientKeyPassword = nil
}
- mode4 := shared.SourceAlloydbUpdateSSLModesVerifyCaMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.Mode.ValueString())
- var additionalProperties5 interface{}
- if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
- }
sourceAlloydbUpdateSSLModesVerifyCa = &shared.SourceAlloydbUpdateSSLModesVerifyCa{
+ AdditionalProperties: additionalProperties5,
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
- AdditionalProperties: additionalProperties5,
}
}
if sourceAlloydbUpdateSSLModesVerifyCa != nil {
@@ -555,6 +528,10 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
}
var sourceAlloydbUpdateSSLModesVerifyFull *shared.SourceAlloydbUpdateSSLModesVerifyFull
if r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull != nil {
+ var additionalProperties6 interface{}
+ if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
+ }
caCertificate1 := r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.CaCertificate.ValueString()
clientCertificate1 := new(string)
if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.ClientCertificate.IsNull() {
@@ -574,18 +551,12 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.SourceAlloydbUpdateSSLModesVerifyFullMode(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.Mode.ValueString())
- var additionalProperties6 interface{}
- if !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourceAlloydbUpdateSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
- }
sourceAlloydbUpdateSSLModesVerifyFull = &shared.SourceAlloydbUpdateSSLModesVerifyFull{
+ AdditionalProperties: additionalProperties6,
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
- AdditionalProperties: additionalProperties6,
}
}
if sourceAlloydbUpdateSSLModesVerifyFull != nil {
@@ -598,10 +569,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
if r.Configuration.TunnelMethod != nil {
var sourceAlloydbUpdateSSHTunnelMethodNoTunnel *shared.SourceAlloydbUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceAlloydbUpdateSSHTunnelMethodNoTunnel = &shared.SourceAlloydbUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceAlloydbUpdateSSHTunnelMethodNoTunnel = &shared.SourceAlloydbUpdateSSHTunnelMethodNoTunnel{}
}
if sourceAlloydbUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceAlloydbUpdateSSHTunnelMethod{
@@ -612,15 +580,18 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
if r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -631,13 +602,16 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR
var sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication *shared.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_amazonads_data_source.go b/internal/provider/source_amazonads_data_source.go
old mode 100755
new mode 100644
index 7642e27f6..bdca53159
--- a/internal/provider/source_amazonads_data_source.go
+++ b/internal/provider/source_amazonads_data_source.go
@@ -52,15 +52,6 @@ func (r *SourceAmazonAdsDataSource) Schema(ctx context.Context, req datasource.S
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of your Amazon Ads developer application. See the docs for more information.`,
@@ -104,15 +95,6 @@ func (r *SourceAmazonAdsDataSource) Schema(ctx context.Context, req datasource.S
ElementType: types.StringType,
Description: `Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See docs for more details`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-ads",
- ),
- },
- Description: `must be one of ["amazon-ads"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format`,
diff --git a/internal/provider/source_amazonads_data_source_sdk.go b/internal/provider/source_amazonads_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_amazonads_resource.go b/internal/provider/source_amazonads_resource.go
old mode 100755
new mode 100644
index 7a38ce68f..c3d531156
--- a/internal/provider/source_amazonads_resource.go
+++ b/internal/provider/source_amazonads_resource.go
@@ -54,15 +54,6 @@ func (r *SourceAmazonAdsResource) Schema(ctx context.Context, req resource.Schem
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of your Amazon Ads developer application. See the docs for more information.`,
@@ -106,15 +97,6 @@ func (r *SourceAmazonAdsResource) Schema(ctx context.Context, req resource.Schem
ElementType: types.StringType,
Description: `Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See docs for more details`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-ads",
- ),
- },
- Description: `must be one of ["amazon-ads"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Description: `The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format`,
@@ -196,7 +178,7 @@ func (r *SourceAmazonAdsResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAmazonAds(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_amazonads_resource_sdk.go b/internal/provider/source_amazonads_resource_sdk.go
old mode 100755
new mode 100644
index 698480e47..59499b5ea
--- a/internal/provider/source_amazonads_resource_sdk.go
+++ b/internal/provider/source_amazonads_resource_sdk.go
@@ -8,12 +8,6 @@ import (
)
func (r *SourceAmazonAdsResourceModel) ToCreateSDKType() *shared.SourceAmazonAdsCreateRequest {
- authType := new(shared.SourceAmazonAdsAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceAmazonAdsAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
lookBackWindow := new(int64)
@@ -41,7 +35,6 @@ func (r *SourceAmazonAdsResourceModel) ToCreateSDKType() *shared.SourceAmazonAds
for _, reportRecordTypesItem := range r.Configuration.ReportRecordTypes {
reportRecordTypes = append(reportRecordTypes, shared.SourceAmazonAdsReportRecordTypes(reportRecordTypesItem.ValueString()))
}
- sourceType := shared.SourceAmazonAdsAmazonAds(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -53,7 +46,6 @@ func (r *SourceAmazonAdsResourceModel) ToCreateSDKType() *shared.SourceAmazonAds
stateFilter = append(stateFilter, shared.SourceAmazonAdsStateFilter(stateFilterItem.ValueString()))
}
configuration := shared.SourceAmazonAds{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
LookBackWindow: lookBackWindow,
@@ -62,7 +54,6 @@ func (r *SourceAmazonAdsResourceModel) ToCreateSDKType() *shared.SourceAmazonAds
RefreshToken: refreshToken,
Region: region,
ReportRecordTypes: reportRecordTypes,
- SourceType: sourceType,
StartDate: startDate,
StateFilter: stateFilter,
}
@@ -89,12 +80,6 @@ func (r *SourceAmazonAdsResourceModel) ToGetSDKType() *shared.SourceAmazonAdsCre
}
func (r *SourceAmazonAdsResourceModel) ToUpdateSDKType() *shared.SourceAmazonAdsPutRequest {
- authType := new(shared.SourceAmazonAdsUpdateAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceAmazonAdsUpdateAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
lookBackWindow := new(int64)
@@ -133,7 +118,6 @@ func (r *SourceAmazonAdsResourceModel) ToUpdateSDKType() *shared.SourceAmazonAds
stateFilter = append(stateFilter, shared.SourceAmazonAdsUpdateStateFilter(stateFilterItem.ValueString()))
}
configuration := shared.SourceAmazonAdsUpdate{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
LookBackWindow: lookBackWindow,
diff --git a/internal/provider/source_amazonsellerpartner_data_source.go b/internal/provider/source_amazonsellerpartner_data_source.go
old mode 100755
new mode 100644
index 8b5bf553e..b3e75da5d
--- a/internal/provider/source_amazonsellerpartner_data_source.go
+++ b/internal/provider/source_amazonsellerpartner_data_source.go
@@ -56,15 +56,6 @@ func (r *SourceAmazonSellerPartnerDataSource) Schema(ctx context.Context, req da
Computed: true,
Description: `Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"aws_access_key": schema.StringAttribute{
Computed: true,
Description: `Specifies the AWS access key used as part of the credentials to authenticate the user.`,
@@ -151,15 +142,6 @@ func (r *SourceAmazonSellerPartnerDataSource) Schema(ctx context.Context, req da
Computed: true,
Description: `Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-seller-partner",
- ),
- },
- Description: `must be one of ["amazon-seller-partner"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_amazonsellerpartner_data_source_sdk.go b/internal/provider/source_amazonsellerpartner_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_amazonsellerpartner_resource.go b/internal/provider/source_amazonsellerpartner_resource.go
old mode 100755
new mode 100644
index 754933011..8eb47b14a
--- a/internal/provider/source_amazonsellerpartner_resource.go
+++ b/internal/provider/source_amazonsellerpartner_resource.go
@@ -58,21 +58,12 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso
Optional: true,
Description: `Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"aws_access_key": schema.StringAttribute{
Optional: true,
Description: `Specifies the AWS access key used as part of the credentials to authenticate the user.`,
},
"aws_environment": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"PRODUCTION",
@@ -107,7 +98,7 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso
Description: `The Refresh Token obtained via OAuth flow authorization.`,
},
"region": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"AE",
@@ -153,15 +144,6 @@ func (r *SourceAmazonSellerPartnerResource) Schema(ctx context.Context, req reso
Optional: true,
Description: `Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-seller-partner",
- ),
- },
- Description: `must be one of ["amazon-seller-partner"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -234,7 +216,7 @@ func (r *SourceAmazonSellerPartnerResource) Create(ctx context.Context, req reso
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAmazonSellerPartner(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_amazonsellerpartner_resource_sdk.go b/internal/provider/source_amazonsellerpartner_resource_sdk.go
old mode 100755
new mode 100644
index 0932ea21f..3b6676e54
--- a/internal/provider/source_amazonsellerpartner_resource_sdk.go
+++ b/internal/provider/source_amazonsellerpartner_resource_sdk.go
@@ -14,19 +14,18 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToCreateSDKType() *shared.Sourc
} else {
advancedStreamOptions = nil
}
- authType := new(shared.SourceAmazonSellerPartnerAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceAmazonSellerPartnerAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
awsAccessKey := new(string)
if !r.Configuration.AwsAccessKey.IsUnknown() && !r.Configuration.AwsAccessKey.IsNull() {
*awsAccessKey = r.Configuration.AwsAccessKey.ValueString()
} else {
awsAccessKey = nil
}
- awsEnvironment := shared.SourceAmazonSellerPartnerAWSEnvironment(r.Configuration.AwsEnvironment.ValueString())
+ awsEnvironment := new(shared.SourceAmazonSellerPartnerAWSEnvironment)
+ if !r.Configuration.AwsEnvironment.IsUnknown() && !r.Configuration.AwsEnvironment.IsNull() {
+ *awsEnvironment = shared.SourceAmazonSellerPartnerAWSEnvironment(r.Configuration.AwsEnvironment.ValueString())
+ } else {
+ awsEnvironment = nil
+ }
awsSecretKey := new(string)
if !r.Configuration.AwsSecretKey.IsUnknown() && !r.Configuration.AwsSecretKey.IsNull() {
*awsSecretKey = r.Configuration.AwsSecretKey.ValueString()
@@ -48,7 +47,12 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToCreateSDKType() *shared.Sourc
periodInDays = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- region := shared.SourceAmazonSellerPartnerAWSRegion(r.Configuration.Region.ValueString())
+ region := new(shared.SourceAmazonSellerPartnerAWSRegion)
+ if !r.Configuration.Region.IsUnknown() && !r.Configuration.Region.IsNull() {
+ *region = shared.SourceAmazonSellerPartnerAWSRegion(r.Configuration.Region.ValueString())
+ } else {
+ region = nil
+ }
replicationEndDate := new(string)
if !r.Configuration.ReplicationEndDate.IsUnknown() && !r.Configuration.ReplicationEndDate.IsNull() {
*replicationEndDate = r.Configuration.ReplicationEndDate.ValueString()
@@ -68,10 +72,8 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToCreateSDKType() *shared.Sourc
} else {
roleArn = nil
}
- sourceType := shared.SourceAmazonSellerPartnerAmazonSellerPartner(r.Configuration.SourceType.ValueString())
configuration := shared.SourceAmazonSellerPartner{
AdvancedStreamOptions: advancedStreamOptions,
- AuthType: authType,
AwsAccessKey: awsAccessKey,
AwsEnvironment: awsEnvironment,
AwsSecretKey: awsSecretKey,
@@ -85,7 +87,6 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToCreateSDKType() *shared.Sourc
ReplicationStartDate: replicationStartDate,
ReportOptions: reportOptions,
RoleArn: roleArn,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -116,19 +117,18 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToUpdateSDKType() *shared.Sourc
} else {
advancedStreamOptions = nil
}
- authType := new(shared.SourceAmazonSellerPartnerUpdateAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceAmazonSellerPartnerUpdateAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
awsAccessKey := new(string)
if !r.Configuration.AwsAccessKey.IsUnknown() && !r.Configuration.AwsAccessKey.IsNull() {
*awsAccessKey = r.Configuration.AwsAccessKey.ValueString()
} else {
awsAccessKey = nil
}
- awsEnvironment := shared.SourceAmazonSellerPartnerUpdateAWSEnvironment(r.Configuration.AwsEnvironment.ValueString())
+ awsEnvironment := new(shared.SourceAmazonSellerPartnerUpdateAWSEnvironment)
+ if !r.Configuration.AwsEnvironment.IsUnknown() && !r.Configuration.AwsEnvironment.IsNull() {
+ *awsEnvironment = shared.SourceAmazonSellerPartnerUpdateAWSEnvironment(r.Configuration.AwsEnvironment.ValueString())
+ } else {
+ awsEnvironment = nil
+ }
awsSecretKey := new(string)
if !r.Configuration.AwsSecretKey.IsUnknown() && !r.Configuration.AwsSecretKey.IsNull() {
*awsSecretKey = r.Configuration.AwsSecretKey.ValueString()
@@ -150,7 +150,12 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToUpdateSDKType() *shared.Sourc
periodInDays = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- region := shared.SourceAmazonSellerPartnerUpdateAWSRegion(r.Configuration.Region.ValueString())
+ region := new(shared.SourceAmazonSellerPartnerUpdateAWSRegion)
+ if !r.Configuration.Region.IsUnknown() && !r.Configuration.Region.IsNull() {
+ *region = shared.SourceAmazonSellerPartnerUpdateAWSRegion(r.Configuration.Region.ValueString())
+ } else {
+ region = nil
+ }
replicationEndDate := new(string)
if !r.Configuration.ReplicationEndDate.IsUnknown() && !r.Configuration.ReplicationEndDate.IsNull() {
*replicationEndDate = r.Configuration.ReplicationEndDate.ValueString()
@@ -172,7 +177,6 @@ func (r *SourceAmazonSellerPartnerResourceModel) ToUpdateSDKType() *shared.Sourc
}
configuration := shared.SourceAmazonSellerPartnerUpdate{
AdvancedStreamOptions: advancedStreamOptions,
- AuthType: authType,
AwsAccessKey: awsAccessKey,
AwsEnvironment: awsEnvironment,
AwsSecretKey: awsSecretKey,
diff --git a/internal/provider/source_amazonsqs_data_source.go b/internal/provider/source_amazonsqs_data_source.go
old mode 100755
new mode 100644
index db965566c..1eb516fc3
--- a/internal/provider/source_amazonsqs_data_source.go
+++ b/internal/provider/source_amazonsqs_data_source.go
@@ -114,15 +114,6 @@ func (r *SourceAmazonSqsDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The Secret Key of the AWS IAM Role to use for pulling messages`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-sqs",
- ),
- },
- Description: `must be one of ["amazon-sqs"]`,
- },
"visibility_timeout": schema.Int64Attribute{
Computed: true,
Description: `Modify the Visibility Timeout of the individual message from the Queue's default (seconds).`,
diff --git a/internal/provider/source_amazonsqs_data_source_sdk.go b/internal/provider/source_amazonsqs_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_amazonsqs_resource.go b/internal/provider/source_amazonsqs_resource.go
old mode 100755
new mode 100644
index 32b869e03..59d88fcbe
--- a/internal/provider/source_amazonsqs_resource.go
+++ b/internal/provider/source_amazonsqs_resource.go
@@ -63,7 +63,7 @@ func (r *SourceAmazonSqsResource) Schema(ctx context.Context, req resource.Schem
Description: `Comma separated list of Mesage Attribute names to return`,
},
"delete_messages": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail. `,
},
"max_batch_size": schema.Int64Attribute{
@@ -116,15 +116,6 @@ func (r *SourceAmazonSqsResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `The Secret Key of the AWS IAM Role to use for pulling messages`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amazon-sqs",
- ),
- },
- Description: `must be one of ["amazon-sqs"]`,
- },
"visibility_timeout": schema.Int64Attribute{
Optional: true,
Description: `Modify the Visibility Timeout of the individual message from the Queue's default (seconds).`,
@@ -201,7 +192,7 @@ func (r *SourceAmazonSqsResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAmazonSqs(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_amazonsqs_resource_sdk.go b/internal/provider/source_amazonsqs_resource_sdk.go
old mode 100755
new mode 100644
index 19a2695ec..0e5fee22c
--- a/internal/provider/source_amazonsqs_resource_sdk.go
+++ b/internal/provider/source_amazonsqs_resource_sdk.go
@@ -20,7 +20,12 @@ func (r *SourceAmazonSqsResourceModel) ToCreateSDKType() *shared.SourceAmazonSqs
} else {
attributesToReturn = nil
}
- deleteMessages := r.Configuration.DeleteMessages.ValueBool()
+ deleteMessages := new(bool)
+ if !r.Configuration.DeleteMessages.IsUnknown() && !r.Configuration.DeleteMessages.IsNull() {
+ *deleteMessages = r.Configuration.DeleteMessages.ValueBool()
+ } else {
+ deleteMessages = nil
+ }
maxBatchSize := new(int64)
if !r.Configuration.MaxBatchSize.IsUnknown() && !r.Configuration.MaxBatchSize.IsNull() {
*maxBatchSize = r.Configuration.MaxBatchSize.ValueInt64()
@@ -41,7 +46,6 @@ func (r *SourceAmazonSqsResourceModel) ToCreateSDKType() *shared.SourceAmazonSqs
} else {
secretKey = nil
}
- sourceType := shared.SourceAmazonSqsAmazonSqs(r.Configuration.SourceType.ValueString())
visibilityTimeout := new(int64)
if !r.Configuration.VisibilityTimeout.IsUnknown() && !r.Configuration.VisibilityTimeout.IsNull() {
*visibilityTimeout = r.Configuration.VisibilityTimeout.ValueInt64()
@@ -57,7 +61,6 @@ func (r *SourceAmazonSqsResourceModel) ToCreateSDKType() *shared.SourceAmazonSqs
QueueURL: queueURL,
Region: region,
SecretKey: secretKey,
- SourceType: sourceType,
VisibilityTimeout: visibilityTimeout,
}
name := r.Name.ValueString()
@@ -95,7 +98,12 @@ func (r *SourceAmazonSqsResourceModel) ToUpdateSDKType() *shared.SourceAmazonSqs
} else {
attributesToReturn = nil
}
- deleteMessages := r.Configuration.DeleteMessages.ValueBool()
+ deleteMessages := new(bool)
+ if !r.Configuration.DeleteMessages.IsUnknown() && !r.Configuration.DeleteMessages.IsNull() {
+ *deleteMessages = r.Configuration.DeleteMessages.ValueBool()
+ } else {
+ deleteMessages = nil
+ }
maxBatchSize := new(int64)
if !r.Configuration.MaxBatchSize.IsUnknown() && !r.Configuration.MaxBatchSize.IsNull() {
*maxBatchSize = r.Configuration.MaxBatchSize.ValueInt64()
diff --git a/internal/provider/source_amplitude_data_source.go b/internal/provider/source_amplitude_data_source.go
old mode 100755
new mode 100644
index b51db4eab..4422c078a
--- a/internal/provider/source_amplitude_data_source.go
+++ b/internal/provider/source_amplitude_data_source.go
@@ -75,15 +75,6 @@ func (r *SourceAmplitudeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Amplitude Secret Key. See the setup guide for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amplitude",
- ),
- },
- Description: `must be one of ["amplitude"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_amplitude_data_source_sdk.go b/internal/provider/source_amplitude_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_amplitude_resource.go b/internal/provider/source_amplitude_resource.go
old mode 100755
new mode 100644
index 63b798eea..55c74e989
--- a/internal/provider/source_amplitude_resource.go
+++ b/internal/provider/source_amplitude_resource.go
@@ -77,15 +77,6 @@ func (r *SourceAmplitudeResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Amplitude Secret Key. See the setup guide for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "amplitude",
- ),
- },
- Description: `must be one of ["amplitude"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.`,
@@ -162,7 +153,7 @@ func (r *SourceAmplitudeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAmplitude(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_amplitude_resource_sdk.go b/internal/provider/source_amplitude_resource_sdk.go
old mode 100755
new mode 100644
index 4c31e479a..b4fa308d7
--- a/internal/provider/source_amplitude_resource_sdk.go
+++ b/internal/provider/source_amplitude_resource_sdk.go
@@ -22,14 +22,12 @@ func (r *SourceAmplitudeResourceModel) ToCreateSDKType() *shared.SourceAmplitude
requestTimeRange = nil
}
secretKey := r.Configuration.SecretKey.ValueString()
- sourceType := shared.SourceAmplitudeAmplitude(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceAmplitude{
APIKey: apiKey,
DataRegion: dataRegion,
RequestTimeRange: requestTimeRange,
SecretKey: secretKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_apifydataset_data_source.go b/internal/provider/source_apifydataset_data_source.go
old mode 100755
new mode 100644
index 50312adf6..c93d011f9
--- a/internal/provider/source_apifydataset_data_source.go
+++ b/internal/provider/source_apifydataset_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceApifyDatasetDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `ID of the dataset you would like to load to Airbyte.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apify-dataset",
- ),
- },
- Description: `must be one of ["apify-dataset"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `Your application's Client Secret. You can find this value on the console integrations tab after you login.`,
diff --git a/internal/provider/source_apifydataset_data_source_sdk.go b/internal/provider/source_apifydataset_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_apifydataset_resource.go b/internal/provider/source_apifydataset_resource.go
old mode 100755
new mode 100644
index 95eba777a..f76b1b9b3
--- a/internal/provider/source_apifydataset_resource.go
+++ b/internal/provider/source_apifydataset_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceApifyDatasetResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Description: `ID of the dataset you would like to load to Airbyte.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apify-dataset",
- ),
- },
- Description: `must be one of ["apify-dataset"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `Your application's Client Secret. You can find this value on the console integrations tab after you login.`,
@@ -147,7 +136,7 @@ func (r *SourceApifyDatasetResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceApifyDataset(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_apifydataset_resource_sdk.go b/internal/provider/source_apifydataset_resource_sdk.go
old mode 100755
new mode 100644
index 42e8502df..0b1216f6b
--- a/internal/provider/source_apifydataset_resource_sdk.go
+++ b/internal/provider/source_apifydataset_resource_sdk.go
@@ -20,13 +20,11 @@ func (r *SourceApifyDatasetResourceModel) ToCreateSDKType() *shared.SourceApifyD
} else {
datasetID = nil
}
- sourceType := shared.SourceApifyDatasetApifyDataset(r.Configuration.SourceType.ValueString())
token := r.Configuration.Token.ValueString()
configuration := shared.SourceApifyDataset{
- Clean: clean,
- DatasetID: datasetID,
- SourceType: sourceType,
- Token: token,
+ Clean: clean,
+ DatasetID: datasetID,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_appfollow_data_source.go b/internal/provider/source_appfollow_data_source.go
old mode 100755
new mode 100644
index 133d99b4c..b608535c0
--- a/internal/provider/source_appfollow_data_source.go
+++ b/internal/provider/source_appfollow_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceAppfollowDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `API Key provided by Appfollow`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "appfollow",
- ),
- },
- Description: `must be one of ["appfollow"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_appfollow_data_source_sdk.go b/internal/provider/source_appfollow_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_appfollow_resource.go b/internal/provider/source_appfollow_resource.go
old mode 100755
new mode 100644
index 40f56b5f5..e2713af56
--- a/internal/provider/source_appfollow_resource.go
+++ b/internal/provider/source_appfollow_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceAppfollowResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `API Key provided by Appfollow`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "appfollow",
- ),
- },
- Description: `must be one of ["appfollow"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceAppfollowResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAppfollow(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_appfollow_resource_sdk.go b/internal/provider/source_appfollow_resource_sdk.go
old mode 100755
new mode 100644
index 5ca74dcca..870a44f79
--- a/internal/provider/source_appfollow_resource_sdk.go
+++ b/internal/provider/source_appfollow_resource_sdk.go
@@ -14,10 +14,8 @@ func (r *SourceAppfollowResourceModel) ToCreateSDKType() *shared.SourceAppfollow
} else {
apiSecret = nil
}
- sourceType := shared.SourceAppfollowAppfollow(r.Configuration.SourceType.ValueString())
configuration := shared.SourceAppfollow{
- APISecret: apiSecret,
- SourceType: sourceType,
+ APISecret: apiSecret,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_asana_data_source.go b/internal/provider/source_asana_data_source.go
old mode 100755
new mode 100644
index eb8f6efbc..ace0797ac
--- a/internal/provider/source_asana_data_source.go
+++ b/internal/provider/source_asana_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,16 +64,6 @@ func (r *SourceAsanaDataSource) Schema(ctx context.Context, req datasource.Schem
"client_secret": schema.StringAttribute{
Computed: true,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `OAuth Credentials`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
},
@@ -84,16 +73,6 @@ func (r *SourceAsanaDataSource) Schema(ctx context.Context, req datasource.Schem
"source_asana_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["PAT Credentials"]` + "\n" +
- `PAT Credentials`,
- },
"personal_access_token": schema.StringAttribute{
Computed: true,
Description: `Asana Personal Access Token (generate yours here).`,
@@ -110,16 +89,6 @@ func (r *SourceAsanaDataSource) Schema(ctx context.Context, req datasource.Schem
"client_secret": schema.StringAttribute{
Computed: true,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `OAuth Credentials`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
},
@@ -129,16 +98,6 @@ func (r *SourceAsanaDataSource) Schema(ctx context.Context, req datasource.Schem
"source_asana_update_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["PAT Credentials"]` + "\n" +
- `PAT Credentials`,
- },
"personal_access_token": schema.StringAttribute{
Computed: true,
Description: `Asana Personal Access Token (generate yours here).`,
@@ -152,15 +111,6 @@ func (r *SourceAsanaDataSource) Schema(ctx context.Context, req datasource.Schem
},
Description: `Choose how to authenticate to Github`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "asana",
- ),
- },
- Description: `must be one of ["asana"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_asana_data_source_sdk.go b/internal/provider/source_asana_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_asana_resource.go b/internal/provider/source_asana_resource.go
old mode 100755
new mode 100644
index b79c929dd..6b11bd43d
--- a/internal/provider/source_asana_resource.go
+++ b/internal/provider/source_asana_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,16 +66,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq
"client_secret": schema.StringAttribute{
Required: true,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `OAuth Credentials`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
},
@@ -86,16 +75,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq
"source_asana_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["PAT Credentials"]` + "\n" +
- `PAT Credentials`,
- },
"personal_access_token": schema.StringAttribute{
Required: true,
Description: `Asana Personal Access Token (generate yours here).`,
@@ -112,16 +91,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq
"client_secret": schema.StringAttribute{
Required: true,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `OAuth Credentials`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
},
@@ -131,16 +100,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq
"source_asana_update_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["PAT Credentials"]` + "\n" +
- `PAT Credentials`,
- },
"personal_access_token": schema.StringAttribute{
Required: true,
Description: `Asana Personal Access Token (generate yours here).`,
@@ -154,15 +113,6 @@ func (r *SourceAsanaResource) Schema(ctx context.Context, req resource.SchemaReq
},
Description: `Choose how to authenticate to Github`,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "asana",
- ),
- },
- Description: `must be one of ["asana"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -235,7 +185,7 @@ func (r *SourceAsanaResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAsana(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_asana_resource_sdk.go b/internal/provider/source_asana_resource_sdk.go
old mode 100755
new mode 100644
index 95160e00a..39ce0a7c3
--- a/internal/provider/source_asana_resource_sdk.go
+++ b/internal/provider/source_asana_resource_sdk.go
@@ -14,17 +14,10 @@ func (r *SourceAsanaResourceModel) ToCreateSDKType() *shared.SourceAsanaCreateRe
if r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
clientID := r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.ClientSecret.ValueString()
- optionTitle := new(shared.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle)
- if !r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.IsNull() {
- *optionTitle = shared.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle(r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
refreshToken := r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth.RefreshToken.ValueString()
sourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth = &shared.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth{
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
RefreshToken: refreshToken,
}
}
@@ -35,15 +28,8 @@ func (r *SourceAsanaResourceModel) ToCreateSDKType() *shared.SourceAsanaCreateRe
}
var sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken *shared.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken
if r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- optionTitle1 := new(shared.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle)
- if !r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle(r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
personalAccessToken := r.Configuration.Credentials.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken.PersonalAccessToken.ValueString()
sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken = &shared.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken{
- OptionTitle: optionTitle1,
PersonalAccessToken: personalAccessToken,
}
}
@@ -53,15 +39,8 @@ func (r *SourceAsanaResourceModel) ToCreateSDKType() *shared.SourceAsanaCreateRe
}
}
}
- sourceType := new(shared.SourceAsanaAsana)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceAsanaAsana(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
configuration := shared.SourceAsana{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -92,17 +71,10 @@ func (r *SourceAsanaResourceModel) ToUpdateSDKType() *shared.SourceAsanaPutReque
if r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
clientID := r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.ClientSecret.ValueString()
- optionTitle := new(shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle)
- if !r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.IsNull() {
- *optionTitle = shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle(r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
refreshToken := r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth.RefreshToken.ValueString()
sourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth = &shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth{
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
RefreshToken: refreshToken,
}
}
@@ -113,15 +85,8 @@ func (r *SourceAsanaResourceModel) ToUpdateSDKType() *shared.SourceAsanaPutReque
}
var sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken *shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
if r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- optionTitle1 := new(shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle)
- if !r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle(r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
personalAccessToken := r.Configuration.Credentials.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.PersonalAccessToken.ValueString()
sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken = &shared.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken{
- OptionTitle: optionTitle1,
PersonalAccessToken: personalAccessToken,
}
}
diff --git a/internal/provider/source_auth0_data_source.go b/internal/provider/source_auth0_data_source.go
old mode 100755
new mode 100644
index 5d2897b1b..a3ecd7438
--- a/internal/provider/source_auth0_data_source.go
+++ b/internal/provider/source_auth0_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -67,15 +66,6 @@ func (r *SourceAuth0DataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_access_token",
- ),
- },
- Description: `must be one of ["oauth2_access_token"]`,
- },
},
},
"source_auth0_authentication_method_o_auth2_confidential_application": schema.SingleNestedAttribute{
@@ -85,15 +75,6 @@ func (r *SourceAuth0DataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_confidential_application",
- ),
- },
- Description: `must be one of ["oauth2_confidential_application"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.`,
@@ -111,15 +92,6 @@ func (r *SourceAuth0DataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_access_token",
- ),
- },
- Description: `must be one of ["oauth2_access_token"]`,
- },
},
},
"source_auth0_update_authentication_method_o_auth2_confidential_application": schema.SingleNestedAttribute{
@@ -129,15 +101,6 @@ func (r *SourceAuth0DataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_confidential_application",
- ),
- },
- Description: `must be one of ["oauth2_confidential_application"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.`,
@@ -153,15 +116,6 @@ func (r *SourceAuth0DataSource) Schema(ctx context.Context, req datasource.Schem
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "auth0",
- ),
- },
- Description: `must be one of ["auth0"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_auth0_data_source_sdk.go b/internal/provider/source_auth0_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_auth0_resource.go b/internal/provider/source_auth0_resource.go
old mode 100755
new mode 100644
index 257fe4860..72b13c862
--- a/internal/provider/source_auth0_resource.go
+++ b/internal/provider/source_auth0_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -69,15 +68,6 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_access_token",
- ),
- },
- Description: `must be one of ["oauth2_access_token"]`,
- },
},
},
"source_auth0_authentication_method_o_auth2_confidential_application": schema.SingleNestedAttribute{
@@ -87,15 +77,6 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_confidential_application",
- ),
- },
- Description: `must be one of ["oauth2_confidential_application"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.`,
@@ -113,15 +94,6 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_access_token",
- ),
- },
- Description: `must be one of ["oauth2_access_token"]`,
- },
},
},
"source_auth0_update_authentication_method_o_auth2_confidential_application": schema.SingleNestedAttribute{
@@ -131,15 +103,6 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2_confidential_application",
- ),
- },
- Description: `must be one of ["oauth2_confidential_application"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.`,
@@ -155,15 +118,6 @@ func (r *SourceAuth0Resource) Schema(ctx context.Context, req resource.SchemaReq
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "auth0",
- ),
- },
- Description: `must be one of ["auth0"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
@@ -240,7 +194,7 @@ func (r *SourceAuth0Resource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAuth0(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_auth0_resource_sdk.go b/internal/provider/source_auth0_resource_sdk.go
old mode 100755
new mode 100644
index c898820df..7dabd8611
--- a/internal/provider/source_auth0_resource_sdk.go
+++ b/internal/provider/source_auth0_resource_sdk.go
@@ -13,12 +13,10 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe
var sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication *shared.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication
if r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication != nil {
audience := r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication.Audience.ValueString()
- authType := shared.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod(r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication.ClientSecret.ValueString()
sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication = &shared.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication{
Audience: audience,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -31,10 +29,8 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe
var sourceAuth0AuthenticationMethodOAuth2AccessToken *shared.SourceAuth0AuthenticationMethodOAuth2AccessToken
if r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2AccessToken != nil {
accessToken := r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2AccessToken.AccessToken.ValueString()
- authType1 := shared.SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethod(r.Configuration.Credentials.SourceAuth0AuthenticationMethodOAuth2AccessToken.AuthType.ValueString())
sourceAuth0AuthenticationMethodOAuth2AccessToken = &shared.SourceAuth0AuthenticationMethodOAuth2AccessToken{
AccessToken: accessToken,
- AuthType: authType1,
}
}
if sourceAuth0AuthenticationMethodOAuth2AccessToken != nil {
@@ -42,7 +38,6 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe
SourceAuth0AuthenticationMethodOAuth2AccessToken: sourceAuth0AuthenticationMethodOAuth2AccessToken,
}
}
- sourceType := shared.SourceAuth0Auth0(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -52,7 +47,6 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe
configuration := shared.SourceAuth0{
BaseURL: baseURL,
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -83,12 +77,10 @@ func (r *SourceAuth0ResourceModel) ToUpdateSDKType() *shared.SourceAuth0PutReque
var sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication *shared.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication
if r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication != nil {
audience := r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication.Audience.ValueString()
- authType := shared.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod(r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication.ClientSecret.ValueString()
sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication = &shared.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication{
Audience: audience,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -101,10 +93,8 @@ func (r *SourceAuth0ResourceModel) ToUpdateSDKType() *shared.SourceAuth0PutReque
var sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken *shared.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken
if r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken != nil {
accessToken := r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken.AccessToken.ValueString()
- authType1 := shared.SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMethod(r.Configuration.Credentials.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken.AuthType.ValueString())
sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken = &shared.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken{
AccessToken: accessToken,
- AuthType: authType1,
}
}
if sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken != nil {
diff --git a/internal/provider/source_awscloudtrail_data_source.go b/internal/provider/source_awscloudtrail_data_source.go
old mode 100755
new mode 100644
index bc9540e81..ee1b4ce5d
--- a/internal/provider/source_awscloudtrail_data_source.go
+++ b/internal/provider/source_awscloudtrail_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceAwsCloudtrailDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aws-cloudtrail",
- ),
- },
- Description: `must be one of ["aws-cloudtrail"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_awscloudtrail_data_source_sdk.go b/internal/provider/source_awscloudtrail_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_awscloudtrail_resource.go b/internal/provider/source_awscloudtrail_resource.go
old mode 100755
new mode 100644
index 4cfa35742..c43f4ab09
--- a/internal/provider/source_awscloudtrail_resource.go
+++ b/internal/provider/source_awscloudtrail_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,17 +66,8 @@ func (r *SourceAwsCloudtrailResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "aws-cloudtrail",
- ),
- },
- Description: `must be one of ["aws-cloudtrail"]`,
- },
"start_date": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
validators.IsValidDate(),
},
@@ -155,7 +145,7 @@ func (r *SourceAwsCloudtrailResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAwsCloudtrail(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_awscloudtrail_resource_sdk.go b/internal/provider/source_awscloudtrail_resource_sdk.go
old mode 100755
new mode 100644
index 49105b7a3..032840efe
--- a/internal/provider/source_awscloudtrail_resource_sdk.go
+++ b/internal/provider/source_awscloudtrail_resource_sdk.go
@@ -12,13 +12,16 @@ func (r *SourceAwsCloudtrailResourceModel) ToCreateSDKType() *shared.SourceAwsCl
awsKeyID := r.Configuration.AwsKeyID.ValueString()
awsRegionName := r.Configuration.AwsRegionName.ValueString()
awsSecretKey := r.Configuration.AwsSecretKey.ValueString()
- sourceType := shared.SourceAwsCloudtrailAwsCloudtrail(r.Configuration.SourceType.ValueString())
- startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
+ startDate := new(customTypes.Date)
+ if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
+ startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
+ } else {
+ startDate = nil
+ }
configuration := shared.SourceAwsCloudtrail{
AwsKeyID: awsKeyID,
AwsRegionName: awsRegionName,
AwsSecretKey: awsSecretKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -47,7 +50,12 @@ func (r *SourceAwsCloudtrailResourceModel) ToUpdateSDKType() *shared.SourceAwsCl
awsKeyID := r.Configuration.AwsKeyID.ValueString()
awsRegionName := r.Configuration.AwsRegionName.ValueString()
awsSecretKey := r.Configuration.AwsSecretKey.ValueString()
- startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
+ startDate := new(customTypes.Date)
+ if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
+ startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
+ } else {
+ startDate = nil
+ }
configuration := shared.SourceAwsCloudtrailUpdate{
AwsKeyID: awsKeyID,
AwsRegionName: awsRegionName,
diff --git a/internal/provider/source_azureblobstorage_data_source.go b/internal/provider/source_azureblobstorage_data_source.go
old mode 100755
new mode 100644
index fae57860f..5d90f3caf
--- a/internal/provider/source_azureblobstorage_data_source.go
+++ b/internal/provider/source_azureblobstorage_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -81,33 +80,13 @@ func (r *SourceAzureBlobStorageDataSource) Schema(ctx context.Context, req datas
Computed: true,
Attributes: map[string]schema.Attribute{
"source_azure_blob_storage_input_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Input data format`,
},
"source_azure_blob_storage_update_input_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Input data format`,
},
},
@@ -116,15 +95,6 @@ func (r *SourceAzureBlobStorageDataSource) Schema(ctx context.Context, req datas
},
Description: `Input data format`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-blob-storage",
- ),
- },
- Description: `must be one of ["azure-blob-storage"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_azureblobstorage_data_source_sdk.go b/internal/provider/source_azureblobstorage_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_azureblobstorage_resource.go b/internal/provider/source_azureblobstorage_resource.go
old mode 100755
new mode 100644
index 9d81470a3..11519a6aa
--- a/internal/provider/source_azureblobstorage_resource.go
+++ b/internal/provider/source_azureblobstorage_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -83,33 +82,13 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc
Required: true,
Attributes: map[string]schema.Attribute{
"source_azure_blob_storage_input_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Input data format`,
},
"source_azure_blob_storage_update_input_format_json_lines_newline_delimited_json": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "format_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "JSONL",
- ),
- },
- Description: `must be one of ["JSONL"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Input data format`,
},
},
@@ -118,15 +97,6 @@ func (r *SourceAzureBlobStorageResource) Schema(ctx context.Context, req resourc
},
Description: `Input data format`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-blob-storage",
- ),
- },
- Description: `must be one of ["azure-blob-storage"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -199,7 +169,7 @@ func (r *SourceAzureBlobStorageResource) Create(ctx context.Context, req resourc
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAzureBlobStorage(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_azureblobstorage_resource_sdk.go b/internal/provider/source_azureblobstorage_resource_sdk.go
old mode 100755
new mode 100644
index f27f9d7d6..6544054df
--- a/internal/provider/source_azureblobstorage_resource_sdk.go
+++ b/internal/provider/source_azureblobstorage_resource_sdk.go
@@ -32,17 +32,13 @@ func (r *SourceAzureBlobStorageResourceModel) ToCreateSDKType() *shared.SourceAz
var format shared.SourceAzureBlobStorageInputFormat
var sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON *shared.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON
if r.Configuration.Format.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON != nil {
- formatType := shared.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
- sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON = &shared.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON{
- FormatType: formatType,
- }
+ sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON = &shared.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON{}
}
if sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON != nil {
format = shared.SourceAzureBlobStorageInputFormat{
SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON: sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON,
}
}
- sourceType := shared.SourceAzureBlobStorageAzureBlobStorage(r.Configuration.SourceType.ValueString())
configuration := shared.SourceAzureBlobStorage{
AzureBlobStorageAccountKey: azureBlobStorageAccountKey,
AzureBlobStorageAccountName: azureBlobStorageAccountName,
@@ -51,7 +47,6 @@ func (r *SourceAzureBlobStorageResourceModel) ToCreateSDKType() *shared.SourceAz
AzureBlobStorageEndpoint: azureBlobStorageEndpoint,
AzureBlobStorageSchemaInferenceLimit: azureBlobStorageSchemaInferenceLimit,
Format: format,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -100,10 +95,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToUpdateSDKType() *shared.SourceAz
var format shared.SourceAzureBlobStorageUpdateInputFormat
var sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON *shared.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON
if r.Configuration.Format.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON != nil {
- formatType := shared.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFormatType(r.Configuration.Format.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON.FormatType.ValueString())
- sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON = &shared.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON{
- FormatType: formatType,
- }
+ sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON = &shared.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON{}
}
if sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON != nil {
format = shared.SourceAzureBlobStorageUpdateInputFormat{
diff --git a/internal/provider/source_azuretable_data_source.go b/internal/provider/source_azuretable_data_source.go
old mode 100755
new mode 100644
index 5d5ef33a7..7a27dc665
--- a/internal/provider/source_azuretable_data_source.go
+++ b/internal/provider/source_azuretable_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourceAzureTableDataSource) Schema(ctx context.Context, req datasource.
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-table",
- ),
- },
- Description: `must be one of ["azure-table"]`,
- },
"storage_access_key": schema.StringAttribute{
Computed: true,
Description: `Azure Table Storage Access Key. See the docs for more information on how to obtain this key.`,
diff --git a/internal/provider/source_azuretable_data_source_sdk.go b/internal/provider/source_azuretable_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_azuretable_resource.go b/internal/provider/source_azuretable_resource.go
old mode 100755
new mode 100644
index d295a8969..f81c95172
--- a/internal/provider/source_azuretable_resource.go
+++ b/internal/provider/source_azuretable_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourceAzureTableResource) Schema(ctx context.Context, req resource.Sche
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "azure-table",
- ),
- },
- Description: `must be one of ["azure-table"]`,
- },
"storage_access_key": schema.StringAttribute{
Required: true,
Description: `Azure Table Storage Access Key. See the docs for more information on how to obtain this key.`,
@@ -147,7 +136,7 @@ func (r *SourceAzureTableResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceAzureTable(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_azuretable_resource_sdk.go b/internal/provider/source_azuretable_resource_sdk.go
old mode 100755
new mode 100644
index 3732a056b..35d11ee98
--- a/internal/provider/source_azuretable_resource_sdk.go
+++ b/internal/provider/source_azuretable_resource_sdk.go
@@ -8,7 +8,6 @@ import (
)
func (r *SourceAzureTableResourceModel) ToCreateSDKType() *shared.SourceAzureTableCreateRequest {
- sourceType := shared.SourceAzureTableAzureTable(r.Configuration.SourceType.ValueString())
storageAccessKey := r.Configuration.StorageAccessKey.ValueString()
storageAccountName := r.Configuration.StorageAccountName.ValueString()
storageEndpointSuffix := new(string)
@@ -18,7 +17,6 @@ func (r *SourceAzureTableResourceModel) ToCreateSDKType() *shared.SourceAzureTab
storageEndpointSuffix = nil
}
configuration := shared.SourceAzureTable{
- SourceType: sourceType,
StorageAccessKey: storageAccessKey,
StorageAccountName: storageAccountName,
StorageEndpointSuffix: storageEndpointSuffix,
diff --git a/internal/provider/source_bamboohr_data_source.go b/internal/provider/source_bamboohr_data_source.go
old mode 100755
new mode 100644
index eaa1b9b15..cd7eec297
--- a/internal/provider/source_bamboohr_data_source.go
+++ b/internal/provider/source_bamboohr_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceBambooHrDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bamboo-hr",
- ),
- },
- Description: `must be one of ["bamboo-hr"]`,
- },
"subdomain": schema.StringAttribute{
Computed: true,
Description: `Sub Domain of bamboo hr`,
diff --git a/internal/provider/source_bamboohr_data_source_sdk.go b/internal/provider/source_bamboohr_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_bamboohr_resource.go b/internal/provider/source_bamboohr_resource.go
old mode 100755
new mode 100644
index 22cc94465..6107a19fb
--- a/internal/provider/source_bamboohr_resource.go
+++ b/internal/provider/source_bamboohr_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceBambooHrResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bamboo-hr",
- ),
- },
- Description: `must be one of ["bamboo-hr"]`,
- },
"subdomain": schema.StringAttribute{
Required: true,
Description: `Sub Domain of bamboo hr`,
@@ -151,7 +140,7 @@ func (r *SourceBambooHrResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBambooHr(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_bamboohr_resource_sdk.go b/internal/provider/source_bamboohr_resource_sdk.go
old mode 100755
new mode 100644
index 38c0de641..7bceca654
--- a/internal/provider/source_bamboohr_resource_sdk.go
+++ b/internal/provider/source_bamboohr_resource_sdk.go
@@ -21,13 +21,11 @@ func (r *SourceBambooHrResourceModel) ToCreateSDKType() *shared.SourceBambooHrCr
} else {
customReportsIncludeDefaultFields = nil
}
- sourceType := shared.SourceBambooHrBambooHr(r.Configuration.SourceType.ValueString())
subdomain := r.Configuration.Subdomain.ValueString()
configuration := shared.SourceBambooHr{
APIKey: apiKey,
CustomReportsFields: customReportsFields,
CustomReportsIncludeDefaultFields: customReportsIncludeDefaultFields,
- SourceType: sourceType,
Subdomain: subdomain,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_bigcommerce_data_source.go b/internal/provider/source_bigcommerce_data_source.go
old mode 100755
new mode 100644
index 364c04149..0c48c7209
--- a/internal/provider/source_bigcommerce_data_source.go
+++ b/internal/provider/source_bigcommerce_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceBigcommerceDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigcommerce",
- ),
- },
- Description: `must be one of ["bigcommerce"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The date you would like to replicate data. Format: YYYY-MM-DD.`,
diff --git a/internal/provider/source_bigcommerce_data_source_sdk.go b/internal/provider/source_bigcommerce_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_bigcommerce_resource.go b/internal/provider/source_bigcommerce_resource.go
old mode 100755
new mode 100644
index 7ea3462ee..891543949
--- a/internal/provider/source_bigcommerce_resource.go
+++ b/internal/provider/source_bigcommerce_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceBigcommerceResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigcommerce",
- ),
- },
- Description: `must be one of ["bigcommerce"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The date you would like to replicate data. Format: YYYY-MM-DD.`,
@@ -147,7 +136,7 @@ func (r *SourceBigcommerceResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBigcommerce(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_bigcommerce_resource_sdk.go b/internal/provider/source_bigcommerce_resource_sdk.go
old mode 100755
new mode 100644
index 88c4a94d5..48767aa78
--- a/internal/provider/source_bigcommerce_resource_sdk.go
+++ b/internal/provider/source_bigcommerce_resource_sdk.go
@@ -9,12 +9,10 @@ import (
func (r *SourceBigcommerceResourceModel) ToCreateSDKType() *shared.SourceBigcommerceCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
- sourceType := shared.SourceBigcommerceBigcommerce(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
storeHash := r.Configuration.StoreHash.ValueString()
configuration := shared.SourceBigcommerce{
AccessToken: accessToken,
- SourceType: sourceType,
StartDate: startDate,
StoreHash: storeHash,
}
diff --git a/internal/provider/source_bigquery_data_source.go b/internal/provider/source_bigquery_data_source.go
old mode 100755
new mode 100644
index 3265ef716..7adf26e6b
--- a/internal/provider/source_bigquery_data_source.go
+++ b/internal/provider/source_bigquery_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceBigqueryDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The GCP project ID for the project containing the target BigQuery dataset.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery",
- ),
- },
- Description: `must be one of ["bigquery"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_bigquery_data_source_sdk.go b/internal/provider/source_bigquery_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_bigquery_resource.go b/internal/provider/source_bigquery_resource.go
old mode 100755
new mode 100644
index 50cc0f9a1..02ba5918f
--- a/internal/provider/source_bigquery_resource.go
+++ b/internal/provider/source_bigquery_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceBigqueryResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The GCP project ID for the project containing the target BigQuery dataset.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bigquery",
- ),
- },
- Description: `must be one of ["bigquery"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceBigqueryResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBigquery(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_bigquery_resource_sdk.go b/internal/provider/source_bigquery_resource_sdk.go
old mode 100755
new mode 100644
index 10701d7f0..2701ce820
--- a/internal/provider/source_bigquery_resource_sdk.go
+++ b/internal/provider/source_bigquery_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *SourceBigqueryResourceModel) ToCreateSDKType() *shared.SourceBigqueryCr
datasetID = nil
}
projectID := r.Configuration.ProjectID.ValueString()
- sourceType := shared.SourceBigqueryBigquery(r.Configuration.SourceType.ValueString())
configuration := shared.SourceBigquery{
CredentialsJSON: credentialsJSON,
DatasetID: datasetID,
ProjectID: projectID,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_bingads_data_source.go b/internal/provider/source_bingads_data_source.go
old mode 100755
new mode 100644
index d6acef812..032bd61ab
--- a/internal/provider/source_bingads_data_source.go
+++ b/internal/provider/source_bingads_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -53,15 +52,6 @@ func (r *SourceBingAdsDataSource) Schema(ctx context.Context, req datasource.Sch
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Microsoft Advertising developer application.`,
@@ -89,15 +79,6 @@ func (r *SourceBingAdsDataSource) Schema(ctx context.Context, req datasource.Sch
},
Description: `The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bing-ads",
- ),
- },
- Description: `must be one of ["bing-ads"]`,
- },
"tenant_id": schema.StringAttribute{
Computed: true,
Description: `The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.`,
diff --git a/internal/provider/source_bingads_data_source_sdk.go b/internal/provider/source_bingads_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_bingads_resource.go b/internal/provider/source_bingads_resource.go
old mode 100755
new mode 100644
index 99af7b082..31540a565
--- a/internal/provider/source_bingads_resource.go
+++ b/internal/provider/source_bingads_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -55,15 +54,6 @@ func (r *SourceBingAdsResource) Schema(ctx context.Context, req resource.SchemaR
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Microsoft Advertising developer application.`,
@@ -85,21 +75,12 @@ func (r *SourceBingAdsResource) Schema(ctx context.Context, req resource.SchemaR
Description: `Refresh Token to renew the expired Access Token.`,
},
"reports_start_date": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
validators.IsValidDate(),
},
Description: `The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "bing-ads",
- ),
- },
- Description: `must be one of ["bing-ads"]`,
- },
"tenant_id": schema.StringAttribute{
Optional: true,
Description: `The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.`,
@@ -176,7 +157,7 @@ func (r *SourceBingAdsResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBingAds(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_bingads_resource_sdk.go b/internal/provider/source_bingads_resource_sdk.go
old mode 100755
new mode 100644
index 7bedef5bd..24008d46a
--- a/internal/provider/source_bingads_resource_sdk.go
+++ b/internal/provider/source_bingads_resource_sdk.go
@@ -9,12 +9,6 @@ import (
)
func (r *SourceBingAdsResourceModel) ToCreateSDKType() *shared.SourceBingAdsCreateRequest {
- authMethod := new(shared.SourceBingAdsAuthMethod)
- if !r.Configuration.AuthMethod.IsUnknown() && !r.Configuration.AuthMethod.IsNull() {
- *authMethod = shared.SourceBingAdsAuthMethod(r.Configuration.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := new(string)
if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() {
@@ -30,8 +24,12 @@ func (r *SourceBingAdsResourceModel) ToCreateSDKType() *shared.SourceBingAdsCrea
lookbackWindow = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- reportsStartDate := customTypes.MustDateFromString(r.Configuration.ReportsStartDate.ValueString())
- sourceType := shared.SourceBingAdsBingAds(r.Configuration.SourceType.ValueString())
+ reportsStartDate := new(customTypes.Date)
+ if !r.Configuration.ReportsStartDate.IsUnknown() && !r.Configuration.ReportsStartDate.IsNull() {
+ reportsStartDate = customTypes.MustNewDateFromString(r.Configuration.ReportsStartDate.ValueString())
+ } else {
+ reportsStartDate = nil
+ }
tenantID := new(string)
if !r.Configuration.TenantID.IsUnknown() && !r.Configuration.TenantID.IsNull() {
*tenantID = r.Configuration.TenantID.ValueString()
@@ -39,14 +37,12 @@ func (r *SourceBingAdsResourceModel) ToCreateSDKType() *shared.SourceBingAdsCrea
tenantID = nil
}
configuration := shared.SourceBingAds{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
DeveloperToken: developerToken,
LookbackWindow: lookbackWindow,
RefreshToken: refreshToken,
ReportsStartDate: reportsStartDate,
- SourceType: sourceType,
TenantID: tenantID,
}
name := r.Name.ValueString()
@@ -72,12 +68,6 @@ func (r *SourceBingAdsResourceModel) ToGetSDKType() *shared.SourceBingAdsCreateR
}
func (r *SourceBingAdsResourceModel) ToUpdateSDKType() *shared.SourceBingAdsPutRequest {
- authMethod := new(shared.SourceBingAdsUpdateAuthMethod)
- if !r.Configuration.AuthMethod.IsUnknown() && !r.Configuration.AuthMethod.IsNull() {
- *authMethod = shared.SourceBingAdsUpdateAuthMethod(r.Configuration.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := new(string)
if !r.Configuration.ClientSecret.IsUnknown() && !r.Configuration.ClientSecret.IsNull() {
@@ -93,7 +83,12 @@ func (r *SourceBingAdsResourceModel) ToUpdateSDKType() *shared.SourceBingAdsPutR
lookbackWindow = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- reportsStartDate := customTypes.MustDateFromString(r.Configuration.ReportsStartDate.ValueString())
+ reportsStartDate := new(customTypes.Date)
+ if !r.Configuration.ReportsStartDate.IsUnknown() && !r.Configuration.ReportsStartDate.IsNull() {
+ reportsStartDate = customTypes.MustNewDateFromString(r.Configuration.ReportsStartDate.ValueString())
+ } else {
+ reportsStartDate = nil
+ }
tenantID := new(string)
if !r.Configuration.TenantID.IsUnknown() && !r.Configuration.TenantID.IsNull() {
*tenantID = r.Configuration.TenantID.ValueString()
@@ -101,7 +96,6 @@ func (r *SourceBingAdsResourceModel) ToUpdateSDKType() *shared.SourceBingAdsPutR
tenantID = nil
}
configuration := shared.SourceBingAdsUpdate{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
DeveloperToken: developerToken,
diff --git a/internal/provider/source_braintree_data_source.go b/internal/provider/source_braintree_data_source.go
old mode 100755
new mode 100644
index 8dee5de99..0d5f329f4
--- a/internal/provider/source_braintree_data_source.go
+++ b/internal/provider/source_braintree_data_source.go
@@ -78,15 +78,6 @@ func (r *SourceBraintreeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Braintree Public Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "braintree",
- ),
- },
- Description: `must be one of ["braintree"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_braintree_data_source_sdk.go b/internal/provider/source_braintree_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_braintree_resource.go b/internal/provider/source_braintree_resource.go
old mode 100755
new mode 100644
index 98a0f6ade..ea0138109
--- a/internal/provider/source_braintree_resource.go
+++ b/internal/provider/source_braintree_resource.go
@@ -80,15 +80,6 @@ func (r *SourceBraintreeResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Braintree Public Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "braintree",
- ),
- },
- Description: `must be one of ["braintree"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -168,7 +159,7 @@ func (r *SourceBraintreeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBraintree(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_braintree_resource_sdk.go b/internal/provider/source_braintree_resource_sdk.go
old mode 100755
new mode 100644
index 1a1602eae..dea2d7ac6
--- a/internal/provider/source_braintree_resource_sdk.go
+++ b/internal/provider/source_braintree_resource_sdk.go
@@ -13,7 +13,6 @@ func (r *SourceBraintreeResourceModel) ToCreateSDKType() *shared.SourceBraintree
merchantID := r.Configuration.MerchantID.ValueString()
privateKey := r.Configuration.PrivateKey.ValueString()
publicKey := r.Configuration.PublicKey.ValueString()
- sourceType := shared.SourceBraintreeBraintree(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -25,7 +24,6 @@ func (r *SourceBraintreeResourceModel) ToCreateSDKType() *shared.SourceBraintree
MerchantID: merchantID,
PrivateKey: privateKey,
PublicKey: publicKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_braze_data_source.go b/internal/provider/source_braze_data_source.go
old mode 100755
new mode 100644
index 726e2b04b..3908a0a8a
--- a/internal/provider/source_braze_data_source.go
+++ b/internal/provider/source_braze_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceBrazeDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Braze REST API key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "braze",
- ),
- },
- Description: `must be one of ["braze"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_braze_data_source_sdk.go b/internal/provider/source_braze_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_braze_resource.go b/internal/provider/source_braze_resource.go
old mode 100755
new mode 100644
index 09a303212..9c0f06891
--- a/internal/provider/source_braze_resource.go
+++ b/internal/provider/source_braze_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceBrazeResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Braze REST API key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "braze",
- ),
- },
- Description: `must be one of ["braze"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -151,7 +141,7 @@ func (r *SourceBrazeResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceBraze(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_braze_resource_sdk.go b/internal/provider/source_braze_resource_sdk.go
old mode 100755
new mode 100644
index b314b5c7e..07eea37ba
--- a/internal/provider/source_braze_resource_sdk.go
+++ b/internal/provider/source_braze_resource_sdk.go
@@ -10,14 +10,12 @@ import (
func (r *SourceBrazeResourceModel) ToCreateSDKType() *shared.SourceBrazeCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceBrazeBraze(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
url := r.Configuration.URL.ValueString()
configuration := shared.SourceBraze{
- APIKey: apiKey,
- SourceType: sourceType,
- StartDate: startDate,
- URL: url,
+ APIKey: apiKey,
+ StartDate: startDate,
+ URL: url,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_chargebee_data_source.go b/internal/provider/source_chargebee_data_source.go
old mode 100755
new mode 100644
index 599cffbd4..a11eca9f5
--- a/internal/provider/source_chargebee_data_source.go
+++ b/internal/provider/source_chargebee_data_source.go
@@ -72,15 +72,6 @@ func (r *SourceChargebeeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Chargebee API Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chargebee",
- ),
- },
- Description: `must be one of ["chargebee"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_chargebee_data_source_sdk.go b/internal/provider/source_chargebee_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_chargebee_resource.go b/internal/provider/source_chargebee_resource.go
old mode 100755
new mode 100644
index f31a90528..bbd189920
--- a/internal/provider/source_chargebee_resource.go
+++ b/internal/provider/source_chargebee_resource.go
@@ -74,15 +74,6 @@ func (r *SourceChargebeeResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Chargebee API Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chargebee",
- ),
- },
- Description: `must be one of ["chargebee"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -162,7 +153,7 @@ func (r *SourceChargebeeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceChargebee(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_chargebee_resource_sdk.go b/internal/provider/source_chargebee_resource_sdk.go
old mode 100755
new mode 100644
index 0e607dace..2dc427f9a
--- a/internal/provider/source_chargebee_resource_sdk.go
+++ b/internal/provider/source_chargebee_resource_sdk.go
@@ -12,13 +12,11 @@ func (r *SourceChargebeeResourceModel) ToCreateSDKType() *shared.SourceChargebee
productCatalog := shared.SourceChargebeeProductCatalog(r.Configuration.ProductCatalog.ValueString())
site := r.Configuration.Site.ValueString()
siteAPIKey := r.Configuration.SiteAPIKey.ValueString()
- sourceType := shared.SourceChargebeeChargebee(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceChargebee{
ProductCatalog: productCatalog,
Site: site,
SiteAPIKey: siteAPIKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_chartmogul_data_source.go b/internal/provider/source_chartmogul_data_source.go
old mode 100755
new mode 100644
index 223bbcb01..e273ec2ed
--- a/internal/provider/source_chartmogul_data_source.go
+++ b/internal/provider/source_chartmogul_data_source.go
@@ -70,15 +70,6 @@ func (r *SourceChartmogulDataSource) Schema(ctx context.Context, req datasource.
MarkdownDescription: `must be one of ["day", "week", "month", "quarter"]` + "\n" +
`Some APIs such as Metrics require intervals to cluster data.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chartmogul",
- ),
- },
- Description: `must be one of ["chartmogul"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_chartmogul_data_source_sdk.go b/internal/provider/source_chartmogul_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_chartmogul_resource.go b/internal/provider/source_chartmogul_resource.go
old mode 100755
new mode 100644
index 780306ffb..f72d98ccb
--- a/internal/provider/source_chartmogul_resource.go
+++ b/internal/provider/source_chartmogul_resource.go
@@ -60,7 +60,7 @@ func (r *SourceChartmogulResource) Schema(ctx context.Context, req resource.Sche
Description: `Your Chartmogul API key. See the docs for info on how to obtain this.`,
},
"interval": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"day",
@@ -72,15 +72,6 @@ func (r *SourceChartmogulResource) Schema(ctx context.Context, req resource.Sche
MarkdownDescription: `must be one of ["day", "week", "month", "quarter"]` + "\n" +
`Some APIs such as Metrics require intervals to cluster data.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "chartmogul",
- ),
- },
- Description: `must be one of ["chartmogul"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -160,7 +151,7 @@ func (r *SourceChartmogulResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceChartmogul(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_chartmogul_resource_sdk.go b/internal/provider/source_chartmogul_resource_sdk.go
old mode 100755
new mode 100644
index 5af5b76dd..05d025a48
--- a/internal/provider/source_chartmogul_resource_sdk.go
+++ b/internal/provider/source_chartmogul_resource_sdk.go
@@ -10,14 +10,17 @@ import (
func (r *SourceChartmogulResourceModel) ToCreateSDKType() *shared.SourceChartmogulCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- interval := shared.SourceChartmogulInterval(r.Configuration.Interval.ValueString())
- sourceType := shared.SourceChartmogulChartmogul(r.Configuration.SourceType.ValueString())
+ interval := new(shared.SourceChartmogulInterval)
+ if !r.Configuration.Interval.IsUnknown() && !r.Configuration.Interval.IsNull() {
+ *interval = shared.SourceChartmogulInterval(r.Configuration.Interval.ValueString())
+ } else {
+ interval = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceChartmogul{
- APIKey: apiKey,
- Interval: interval,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ Interval: interval,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -43,7 +46,12 @@ func (r *SourceChartmogulResourceModel) ToGetSDKType() *shared.SourceChartmogulC
func (r *SourceChartmogulResourceModel) ToUpdateSDKType() *shared.SourceChartmogulPutRequest {
apiKey := r.Configuration.APIKey.ValueString()
- interval := shared.SourceChartmogulUpdateInterval(r.Configuration.Interval.ValueString())
+ interval := new(shared.SourceChartmogulUpdateInterval)
+ if !r.Configuration.Interval.IsUnknown() && !r.Configuration.Interval.IsNull() {
+ *interval = shared.SourceChartmogulUpdateInterval(r.Configuration.Interval.ValueString())
+ } else {
+ interval = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceChartmogulUpdate{
APIKey: apiKey,
diff --git a/internal/provider/source_clickhouse_data_source.go b/internal/provider/source_clickhouse_data_source.go
old mode 100755
new mode 100644
index d7407a934..d42a92119
--- a/internal/provider/source_clickhouse_data_source.go
+++ b/internal/provider/source_clickhouse_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -69,32 +68,12 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `The port of the database.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickhouse",
- ),
- },
- Description: `must be one of ["clickhouse"]`,
- },
"tunnel_method": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_clickhouse_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -104,16 +83,6 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -140,16 +109,6 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -162,19 +121,8 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -184,16 +132,6 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -220,16 +158,6 @@ func (r *SourceClickhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_clickhouse_data_source_sdk.go b/internal/provider/source_clickhouse_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_clickhouse_resource.go b/internal/provider/source_clickhouse_resource.go
old mode 100755
new mode 100644
index 3395fd013..73d4987bd
--- a/internal/provider/source_clickhouse_resource.go
+++ b/internal/provider/source_clickhouse_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -68,35 +67,15 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Description: `The password associated with this username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port of the database.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickhouse",
- ),
- },
- Description: `must be one of ["clickhouse"]`,
- },
"tunnel_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_clickhouse_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -106,18 +85,8 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -142,18 +111,8 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -164,19 +123,8 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_clickhouse_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -186,18 +134,8 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -222,18 +160,8 @@ func (r *SourceClickhouseResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -325,7 +253,7 @@ func (r *SourceClickhouseResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceClickhouse(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_clickhouse_resource_sdk.go b/internal/provider/source_clickhouse_resource_sdk.go
old mode 100755
new mode 100644
index e0afd1f91..5d5e867f8
--- a/internal/provider/source_clickhouse_resource_sdk.go
+++ b/internal/provider/source_clickhouse_resource_sdk.go
@@ -16,16 +16,17 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
- sourceType := shared.SourceClickhouseClickhouse(r.Configuration.SourceType.ValueString())
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.SourceClickhouseSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var sourceClickhouseSSHTunnelMethodNoTunnel *shared.SourceClickhouseSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceClickhouseSSHTunnelMethodNoTunnel = &shared.SourceClickhouseSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceClickhouseSSHTunnelMethodNoTunnel = &shared.SourceClickhouseSSHTunnelMethodNoTunnel{}
}
if sourceClickhouseSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceClickhouseSSHTunnelMethod{
@@ -36,15 +37,18 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou
if r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceClickhouseSSHTunnelMethodSSHKeyAuthentication = &shared.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -55,13 +59,16 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou
var sourceClickhouseSSHTunnelMethodPasswordAuthentication *shared.SourceClickhouseSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceClickhouseSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceClickhouseSSHTunnelMethodPasswordAuthentication = &shared.SourceClickhouseSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -79,7 +86,6 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou
Host: host,
Password: password,
Port: port,
- SourceType: sourceType,
TunnelMethod: tunnelMethod,
Username: username,
}
@@ -114,15 +120,17 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var tunnelMethod *shared.SourceClickhouseUpdateSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var sourceClickhouseUpdateSSHTunnelMethodNoTunnel *shared.SourceClickhouseUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceClickhouseUpdateSSHTunnelMethodNoTunnel = &shared.SourceClickhouseUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceClickhouseUpdateSSHTunnelMethodNoTunnel = &shared.SourceClickhouseUpdateSSHTunnelMethodNoTunnel{}
}
if sourceClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceClickhouseUpdateSSHTunnelMethod{
@@ -133,15 +141,18 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou
if r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -152,13 +163,16 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou
var sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication *shared.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_clickupapi_data_source.go b/internal/provider/source_clickupapi_data_source.go
old mode 100755
new mode 100644
index 4971a9634..6be03f5eb
--- a/internal/provider/source_clickupapi_data_source.go
+++ b/internal/provider/source_clickupapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceClickupAPIDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `The ID of your list in your folder. Retrieve it from the ` + "`" + `/folder/{folder_id}/list` + "`" + ` of the ClickUp API. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickup-api",
- ),
- },
- Description: `must be one of ["clickup-api"]`,
- },
"space_id": schema.StringAttribute{
Computed: true,
Description: `The ID of your space in your workspace. Retrieve it from the ` + "`" + `/team/{team_id}/space` + "`" + ` of the ClickUp API. See here.`,
diff --git a/internal/provider/source_clickupapi_data_source_sdk.go b/internal/provider/source_clickupapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_clickupapi_resource.go b/internal/provider/source_clickupapi_resource.go
old mode 100755
new mode 100644
index 3a2e66c58..dc211d973
--- a/internal/provider/source_clickupapi_resource.go
+++ b/internal/provider/source_clickupapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceClickupAPIResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `The ID of your list in your folder. Retrieve it from the ` + "`" + `/folder/{folder_id}/list` + "`" + ` of the ClickUp API. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clickup-api",
- ),
- },
- Description: `must be one of ["clickup-api"]`,
- },
"space_id": schema.StringAttribute{
Optional: true,
Description: `The ID of your space in your workspace. Retrieve it from the ` + "`" + `/team/{team_id}/space` + "`" + ` of the ClickUp API. See here.`,
@@ -159,7 +148,7 @@ func (r *SourceClickupAPIResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceClickupAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_clickupapi_resource_sdk.go b/internal/provider/source_clickupapi_resource_sdk.go
old mode 100755
new mode 100644
index 4bedf8b5c..170618837
--- a/internal/provider/source_clickupapi_resource_sdk.go
+++ b/internal/provider/source_clickupapi_resource_sdk.go
@@ -27,7 +27,6 @@ func (r *SourceClickupAPIResourceModel) ToCreateSDKType() *shared.SourceClickupA
} else {
listID = nil
}
- sourceType := shared.SourceClickupAPIClickupAPI(r.Configuration.SourceType.ValueString())
spaceID := new(string)
if !r.Configuration.SpaceID.IsUnknown() && !r.Configuration.SpaceID.IsNull() {
*spaceID = r.Configuration.SpaceID.ValueString()
@@ -45,7 +44,6 @@ func (r *SourceClickupAPIResourceModel) ToCreateSDKType() *shared.SourceClickupA
FolderID: folderID,
IncludeClosedTasks: includeClosedTasks,
ListID: listID,
- SourceType: sourceType,
SpaceID: spaceID,
TeamID: teamID,
}
diff --git a/internal/provider/source_clockify_data_source.go b/internal/provider/source_clockify_data_source.go
old mode 100755
new mode 100644
index 19edeb870..8fe303d4d
--- a/internal/provider/source_clockify_data_source.go
+++ b/internal/provider/source_clockify_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceClockifyDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clockify",
- ),
- },
- Description: `must be one of ["clockify"]`,
- },
"workspace_id": schema.StringAttribute{
Computed: true,
Description: `WorkSpace Id`,
diff --git a/internal/provider/source_clockify_data_source_sdk.go b/internal/provider/source_clockify_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_clockify_resource.go b/internal/provider/source_clockify_resource.go
old mode 100755
new mode 100644
index 90eee4c2e..64d2552e6
--- a/internal/provider/source_clockify_resource.go
+++ b/internal/provider/source_clockify_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceClockifyResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "clockify",
- ),
- },
- Description: `must be one of ["clockify"]`,
- },
"workspace_id": schema.StringAttribute{
Required: true,
Description: `WorkSpace Id`,
@@ -147,7 +136,7 @@ func (r *SourceClockifyResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceClockify(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_clockify_resource_sdk.go b/internal/provider/source_clockify_resource_sdk.go
old mode 100755
new mode 100644
index 57127a19f..c566d6389
--- a/internal/provider/source_clockify_resource_sdk.go
+++ b/internal/provider/source_clockify_resource_sdk.go
@@ -15,12 +15,10 @@ func (r *SourceClockifyResourceModel) ToCreateSDKType() *shared.SourceClockifyCr
} else {
apiURL = nil
}
- sourceType := shared.SourceClockifyClockify(r.Configuration.SourceType.ValueString())
workspaceID := r.Configuration.WorkspaceID.ValueString()
configuration := shared.SourceClockify{
APIKey: apiKey,
APIURL: apiURL,
- SourceType: sourceType,
WorkspaceID: workspaceID,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_closecom_data_source.go b/internal/provider/source_closecom_data_source.go
old mode 100755
new mode 100644
index f24b7f149..82bdb75db
--- a/internal/provider/source_closecom_data_source.go
+++ b/internal/provider/source_closecom_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceCloseComDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Close.com API key (usually starts with 'api_'; find yours here).`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "close-com",
- ),
- },
- Description: `must be one of ["close-com"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_closecom_data_source_sdk.go b/internal/provider/source_closecom_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_closecom_resource.go b/internal/provider/source_closecom_resource.go
old mode 100755
new mode 100644
index d9c6dfcc8..6c7623309
--- a/internal/provider/source_closecom_resource.go
+++ b/internal/provider/source_closecom_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceCloseComResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Close.com API key (usually starts with 'api_'; find yours here).`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "close-com",
- ),
- },
- Description: `must be one of ["close-com"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -147,7 +137,7 @@ func (r *SourceCloseComResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceCloseCom(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_closecom_resource_sdk.go b/internal/provider/source_closecom_resource_sdk.go
old mode 100755
new mode 100644
index 87e5d7df0..a0ec09972
--- a/internal/provider/source_closecom_resource_sdk.go
+++ b/internal/provider/source_closecom_resource_sdk.go
@@ -10,7 +10,6 @@ import (
func (r *SourceCloseComResourceModel) ToCreateSDKType() *shared.SourceCloseComCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceCloseComCloseCom(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -18,9 +17,8 @@ func (r *SourceCloseComResourceModel) ToCreateSDKType() *shared.SourceCloseComCr
startDate = nil
}
configuration := shared.SourceCloseCom{
- APIKey: apiKey,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_coda_data_source.go b/internal/provider/source_coda_data_source.go
old mode 100755
new mode 100644
index 914f61f88..5e371e24a
--- a/internal/provider/source_coda_data_source.go
+++ b/internal/provider/source_coda_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceCodaDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `Bearer token`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coda",
- ),
- },
- Description: `must be one of ["coda"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_coda_data_source_sdk.go b/internal/provider/source_coda_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_coda_resource.go b/internal/provider/source_coda_resource.go
old mode 100755
new mode 100644
index 3d26fdf7f..814950b24
--- a/internal/provider/source_coda_resource.go
+++ b/internal/provider/source_coda_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceCodaResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `Bearer token`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coda",
- ),
- },
- Description: `must be one of ["coda"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceCodaResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceCoda(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_coda_resource_sdk.go b/internal/provider/source_coda_resource_sdk.go
old mode 100755
new mode 100644
index fa1a2beb1..e2b6d0cdb
--- a/internal/provider/source_coda_resource_sdk.go
+++ b/internal/provider/source_coda_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceCodaResourceModel) ToCreateSDKType() *shared.SourceCodaCreateRequest {
authToken := r.Configuration.AuthToken.ValueString()
- sourceType := shared.SourceCodaCoda(r.Configuration.SourceType.ValueString())
configuration := shared.SourceCoda{
- AuthToken: authToken,
- SourceType: sourceType,
+ AuthToken: authToken,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_coinapi_data_source.go b/internal/provider/source_coinapi_data_source.go
old mode 100755
new mode 100644
index 31a4f7633..8ffa0bfd6
--- a/internal/provider/source_coinapi_data_source.go
+++ b/internal/provider/source_coinapi_data_source.go
@@ -86,15 +86,6 @@ func (r *SourceCoinAPIDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coin-api",
- ),
- },
- Description: `must be one of ["coin-api"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The start date in ISO 8601 format.`,
diff --git a/internal/provider/source_coinapi_data_source_sdk.go b/internal/provider/source_coinapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_coinapi_resource.go b/internal/provider/source_coinapi_resource.go
old mode 100755
new mode 100644
index 14e44f003..502c75da0
--- a/internal/provider/source_coinapi_resource.go
+++ b/internal/provider/source_coinapi_resource.go
@@ -66,7 +66,7 @@ func (r *SourceCoinAPIResource) Schema(ctx context.Context, req resource.SchemaR
``,
},
"environment": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"sandbox",
@@ -88,15 +88,6 @@ func (r *SourceCoinAPIResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coin-api",
- ),
- },
- Description: `must be one of ["coin-api"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The start date in ISO 8601 format.`,
@@ -179,7 +170,7 @@ func (r *SourceCoinAPIResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceCoinAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_coinapi_resource_sdk.go b/internal/provider/source_coinapi_resource_sdk.go
old mode 100755
new mode 100644
index 975110a15..320b3ee5d
--- a/internal/provider/source_coinapi_resource_sdk.go
+++ b/internal/provider/source_coinapi_resource_sdk.go
@@ -15,7 +15,12 @@ func (r *SourceCoinAPIResourceModel) ToCreateSDKType() *shared.SourceCoinAPICrea
} else {
endDate = nil
}
- environment := shared.SourceCoinAPIEnvironment(r.Configuration.Environment.ValueString())
+ environment := new(shared.SourceCoinAPIEnvironment)
+ if !r.Configuration.Environment.IsUnknown() && !r.Configuration.Environment.IsNull() {
+ *environment = shared.SourceCoinAPIEnvironment(r.Configuration.Environment.ValueString())
+ } else {
+ environment = nil
+ }
limit := new(int64)
if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() {
*limit = r.Configuration.Limit.ValueInt64()
@@ -23,7 +28,6 @@ func (r *SourceCoinAPIResourceModel) ToCreateSDKType() *shared.SourceCoinAPICrea
limit = nil
}
period := r.Configuration.Period.ValueString()
- sourceType := shared.SourceCoinAPICoinAPI(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
symbolID := r.Configuration.SymbolID.ValueString()
configuration := shared.SourceCoinAPI{
@@ -32,7 +36,6 @@ func (r *SourceCoinAPIResourceModel) ToCreateSDKType() *shared.SourceCoinAPICrea
Environment: environment,
Limit: limit,
Period: period,
- SourceType: sourceType,
StartDate: startDate,
SymbolID: symbolID,
}
@@ -66,7 +69,12 @@ func (r *SourceCoinAPIResourceModel) ToUpdateSDKType() *shared.SourceCoinAPIPutR
} else {
endDate = nil
}
- environment := shared.SourceCoinAPIUpdateEnvironment(r.Configuration.Environment.ValueString())
+ environment := new(shared.SourceCoinAPIUpdateEnvironment)
+ if !r.Configuration.Environment.IsUnknown() && !r.Configuration.Environment.IsNull() {
+ *environment = shared.SourceCoinAPIUpdateEnvironment(r.Configuration.Environment.ValueString())
+ } else {
+ environment = nil
+ }
limit := new(int64)
if !r.Configuration.Limit.IsUnknown() && !r.Configuration.Limit.IsNull() {
*limit = r.Configuration.Limit.ValueInt64()
diff --git a/internal/provider/source_coinmarketcap_data_source.go b/internal/provider/source_coinmarketcap_data_source.go
old mode 100755
new mode 100644
index f56c94225..108ccab5b
--- a/internal/provider/source_coinmarketcap_data_source.go
+++ b/internal/provider/source_coinmarketcap_data_source.go
@@ -67,15 +67,6 @@ func (r *SourceCoinmarketcapDataSource) Schema(ctx context.Context, req datasour
MarkdownDescription: `must be one of ["latest", "historical"]` + "\n" +
`/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coinmarketcap",
- ),
- },
- Description: `must be one of ["coinmarketcap"]`,
- },
"symbols": schema.ListAttribute{
Computed: true,
ElementType: types.StringType,
diff --git a/internal/provider/source_coinmarketcap_data_source_sdk.go b/internal/provider/source_coinmarketcap_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_coinmarketcap_resource.go b/internal/provider/source_coinmarketcap_resource.go
old mode 100755
new mode 100644
index 1f9efcd3c..7631b65f7
--- a/internal/provider/source_coinmarketcap_resource.go
+++ b/internal/provider/source_coinmarketcap_resource.go
@@ -69,15 +69,6 @@ func (r *SourceCoinmarketcapResource) Schema(ctx context.Context, req resource.S
MarkdownDescription: `must be one of ["latest", "historical"]` + "\n" +
`/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "coinmarketcap",
- ),
- },
- Description: `must be one of ["coinmarketcap"]`,
- },
"symbols": schema.ListAttribute{
Optional: true,
ElementType: types.StringType,
@@ -155,7 +146,7 @@ func (r *SourceCoinmarketcapResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceCoinmarketcap(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_coinmarketcap_resource_sdk.go b/internal/provider/source_coinmarketcap_resource_sdk.go
old mode 100755
new mode 100644
index 07a1cbd90..3226d462c
--- a/internal/provider/source_coinmarketcap_resource_sdk.go
+++ b/internal/provider/source_coinmarketcap_resource_sdk.go
@@ -10,16 +10,14 @@ import (
func (r *SourceCoinmarketcapResourceModel) ToCreateSDKType() *shared.SourceCoinmarketcapCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
dataType := shared.SourceCoinmarketcapDataType(r.Configuration.DataType.ValueString())
- sourceType := shared.SourceCoinmarketcapCoinmarketcap(r.Configuration.SourceType.ValueString())
var symbols []string = nil
for _, symbolsItem := range r.Configuration.Symbols {
symbols = append(symbols, symbolsItem.ValueString())
}
configuration := shared.SourceCoinmarketcap{
- APIKey: apiKey,
- DataType: dataType,
- SourceType: sourceType,
- Symbols: symbols,
+ APIKey: apiKey,
+ DataType: dataType,
+ Symbols: symbols,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_configcat_data_source.go b/internal/provider/source_configcat_data_source.go
old mode 100755
new mode 100644
index 6a09f342c..2e1e084f4
--- a/internal/provider/source_configcat_data_source.go
+++ b/internal/provider/source_configcat_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceConfigcatDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Basic auth password. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "configcat",
- ),
- },
- Description: `must be one of ["configcat"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Basic auth user name. See here.`,
diff --git a/internal/provider/source_configcat_data_source_sdk.go b/internal/provider/source_configcat_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_configcat_resource.go b/internal/provider/source_configcat_resource.go
old mode 100755
new mode 100644
index c3fdbfdf8..47f434e83
--- a/internal/provider/source_configcat_resource.go
+++ b/internal/provider/source_configcat_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceConfigcatResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Basic auth password. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "configcat",
- ),
- },
- Description: `must be one of ["configcat"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Basic auth user name. See here.`,
@@ -143,7 +132,7 @@ func (r *SourceConfigcatResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceConfigcat(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_configcat_resource_sdk.go b/internal/provider/source_configcat_resource_sdk.go
old mode 100755
new mode 100644
index 1c8bbdccd..c52f321dd
--- a/internal/provider/source_configcat_resource_sdk.go
+++ b/internal/provider/source_configcat_resource_sdk.go
@@ -9,12 +9,10 @@ import (
func (r *SourceConfigcatResourceModel) ToCreateSDKType() *shared.SourceConfigcatCreateRequest {
password := r.Configuration.Password.ValueString()
- sourceType := shared.SourceConfigcatConfigcat(r.Configuration.SourceType.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceConfigcat{
- Password: password,
- SourceType: sourceType,
- Username: username,
+ Password: password,
+ Username: username,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_confluence_data_source.go b/internal/provider/source_confluence_data_source.go
old mode 100755
new mode 100644
index e5b317012..aba407493
--- a/internal/provider/source_confluence_data_source.go
+++ b/internal/provider/source_confluence_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceConfluenceDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Your Confluence login email`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "confluence",
- ),
- },
- Description: `must be one of ["confluence"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_confluence_data_source_sdk.go b/internal/provider/source_confluence_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_confluence_resource.go b/internal/provider/source_confluence_resource.go
old mode 100755
new mode 100644
index 7da345b6b..842bcf459
--- a/internal/provider/source_confluence_resource.go
+++ b/internal/provider/source_confluence_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceConfluenceResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Your Confluence login email`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "confluence",
- ),
- },
- Description: `must be one of ["confluence"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceConfluenceResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceConfluence(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_confluence_resource_sdk.go b/internal/provider/source_confluence_resource_sdk.go
old mode 100755
new mode 100644
index 6f33ce505..6619abcf4
--- a/internal/provider/source_confluence_resource_sdk.go
+++ b/internal/provider/source_confluence_resource_sdk.go
@@ -11,12 +11,10 @@ func (r *SourceConfluenceResourceModel) ToCreateSDKType() *shared.SourceConfluen
apiToken := r.Configuration.APIToken.ValueString()
domainName := r.Configuration.DomainName.ValueString()
email := r.Configuration.Email.ValueString()
- sourceType := shared.SourceConfluenceConfluence(r.Configuration.SourceType.ValueString())
configuration := shared.SourceConfluence{
APIToken: apiToken,
DomainName: domainName,
Email: email,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_convex_data_source.go b/internal/provider/source_convex_data_source.go
old mode 100755
new mode 100644
index d3b0a4ce8..e6a7f32ea
--- a/internal/provider/source_convex_data_source.go
+++ b/internal/provider/source_convex_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceConvexDataSource struct {
// SourceConvexDataSourceModel describes the data model.
type SourceConvexDataSourceModel struct {
- Configuration SourceConvex `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration DestinationConvex `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -59,15 +57,6 @@ func (r *SourceConvexDataSource) Schema(ctx context.Context, req datasource.Sche
"deployment_url": schema.StringAttribute{
Computed: true,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "convex",
- ),
- },
- Description: `must be one of ["convex"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_convex_data_source_sdk.go b/internal/provider/source_convex_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_convex_resource.go b/internal/provider/source_convex_resource.go
old mode 100755
new mode 100644
index 1ff28a826..0af4e049b
--- a/internal/provider/source_convex_resource.go
+++ b/internal/provider/source_convex_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceConvexResource struct {
// SourceConvexResourceModel describes the resource data model.
type SourceConvexResourceModel struct {
- Configuration SourceConvex `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration DestinationConvex `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceConvexResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -61,15 +59,6 @@ func (r *SourceConvexResource) Schema(ctx context.Context, req resource.SchemaRe
"deployment_url": schema.StringAttribute{
Required: true,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "convex",
- ),
- },
- Description: `must be one of ["convex"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -142,7 +131,7 @@ func (r *SourceConvexResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceConvex(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_convex_resource_sdk.go b/internal/provider/source_convex_resource_sdk.go
old mode 100755
new mode 100644
index 2b0c2b1be..59b394703
--- a/internal/provider/source_convex_resource_sdk.go
+++ b/internal/provider/source_convex_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceConvexResourceModel) ToCreateSDKType() *shared.SourceConvexCreateRequest {
accessKey := r.Configuration.AccessKey.ValueString()
deploymentURL := r.Configuration.DeploymentURL.ValueString()
- sourceType := shared.SourceConvexConvex(r.Configuration.SourceType.ValueString())
configuration := shared.SourceConvex{
AccessKey: accessKey,
DeploymentURL: deploymentURL,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_datascope_data_source.go b/internal/provider/source_datascope_data_source.go
old mode 100755
new mode 100644
index 77b2c7b61..5254f5275
--- a/internal/provider/source_datascope_data_source.go
+++ b/internal/provider/source_datascope_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceDatascopeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "datascope",
- ),
- },
- Description: `must be one of ["datascope"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Start date for the data to be replicated`,
diff --git a/internal/provider/source_datascope_data_source_sdk.go b/internal/provider/source_datascope_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_datascope_resource.go b/internal/provider/source_datascope_resource.go
old mode 100755
new mode 100644
index 6226166f8..ac2203d15
--- a/internal/provider/source_datascope_resource.go
+++ b/internal/provider/source_datascope_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceDatascopeResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "datascope",
- ),
- },
- Description: `must be one of ["datascope"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Start date for the data to be replicated`,
@@ -143,7 +132,7 @@ func (r *SourceDatascopeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDatascope(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_datascope_resource_sdk.go b/internal/provider/source_datascope_resource_sdk.go
old mode 100755
new mode 100644
index f654711bb..521d7c4a8
--- a/internal/provider/source_datascope_resource_sdk.go
+++ b/internal/provider/source_datascope_resource_sdk.go
@@ -9,12 +9,10 @@ import (
func (r *SourceDatascopeResourceModel) ToCreateSDKType() *shared.SourceDatascopeCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceDatascopeDatascope(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceDatascope{
- APIKey: apiKey,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_delighted_data_source.go b/internal/provider/source_delighted_data_source.go
old mode 100755
new mode 100644
index 5331bc74c..e0b4c3d56
--- a/internal/provider/source_delighted_data_source.go
+++ b/internal/provider/source_delighted_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -64,15 +63,6 @@ func (r *SourceDelightedDataSource) Schema(ctx context.Context, req datasource.S
},
Description: `The date from which you'd like to replicate the data`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "delighted",
- ),
- },
- Description: `must be one of ["delighted"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_delighted_data_source_sdk.go b/internal/provider/source_delighted_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_delighted_resource.go b/internal/provider/source_delighted_resource.go
old mode 100755
new mode 100644
index 88aa83548..4a1ab40b1
--- a/internal/provider/source_delighted_resource.go
+++ b/internal/provider/source_delighted_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -66,15 +65,6 @@ func (r *SourceDelightedResource) Schema(ctx context.Context, req resource.Schem
},
Description: `The date from which you'd like to replicate the data`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "delighted",
- ),
- },
- Description: `must be one of ["delighted"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +137,7 @@ func (r *SourceDelightedResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDelighted(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_delighted_resource_sdk.go b/internal/provider/source_delighted_resource_sdk.go
old mode 100755
new mode 100644
index cf3cae9a2..6bdaa2483
--- a/internal/provider/source_delighted_resource_sdk.go
+++ b/internal/provider/source_delighted_resource_sdk.go
@@ -11,11 +11,9 @@ import (
func (r *SourceDelightedResourceModel) ToCreateSDKType() *shared.SourceDelightedCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
since, _ := time.Parse(time.RFC3339Nano, r.Configuration.Since.ValueString())
- sourceType := shared.SourceDelightedDelighted(r.Configuration.SourceType.ValueString())
configuration := shared.SourceDelighted{
- APIKey: apiKey,
- Since: since,
- SourceType: sourceType,
+ APIKey: apiKey,
+ Since: since,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_dixa_data_source.go b/internal/provider/source_dixa_data_source.go
old mode 100755
new mode 100644
index 430ba7472..fead3231b
--- a/internal/provider/source_dixa_data_source.go
+++ b/internal/provider/source_dixa_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceDixaDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `Number of days to batch into one request. Max 31.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dixa",
- ),
- },
- Description: `must be one of ["dixa"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The connector pulls records updated from this date onwards.`,
diff --git a/internal/provider/source_dixa_data_source_sdk.go b/internal/provider/source_dixa_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_dixa_resource.go b/internal/provider/source_dixa_resource.go
old mode 100755
new mode 100644
index e7eba4786..3d0e47f1d
--- a/internal/provider/source_dixa_resource.go
+++ b/internal/provider/source_dixa_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceDixaResource) Schema(ctx context.Context, req resource.SchemaRequ
Optional: true,
Description: `Number of days to batch into one request. Max 31.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dixa",
- ),
- },
- Description: `must be one of ["dixa"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The connector pulls records updated from this date onwards.`,
@@ -147,7 +136,7 @@ func (r *SourceDixaResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDixa(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_dixa_resource_sdk.go b/internal/provider/source_dixa_resource_sdk.go
old mode 100755
new mode 100644
index a2ab53e21..2840f337a
--- a/internal/provider/source_dixa_resource_sdk.go
+++ b/internal/provider/source_dixa_resource_sdk.go
@@ -15,13 +15,11 @@ func (r *SourceDixaResourceModel) ToCreateSDKType() *shared.SourceDixaCreateRequ
} else {
batchSize = nil
}
- sourceType := shared.SourceDixaDixa(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceDixa{
- APIToken: apiToken,
- BatchSize: batchSize,
- SourceType: sourceType,
- StartDate: startDate,
+ APIToken: apiToken,
+ BatchSize: batchSize,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_dockerhub_data_source.go b/internal/provider/source_dockerhub_data_source.go
old mode 100755
new mode 100644
index 6eaf070b8..5e2c9813e
--- a/internal/provider/source_dockerhub_data_source.go
+++ b/internal/provider/source_dockerhub_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceDockerhubDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dockerhub",
- ),
- },
- Description: `must be one of ["dockerhub"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_dockerhub_data_source_sdk.go b/internal/provider/source_dockerhub_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_dockerhub_resource.go b/internal/provider/source_dockerhub_resource.go
old mode 100755
new mode 100644
index b7fbf86f1..7326518c6
--- a/internal/provider/source_dockerhub_resource.go
+++ b/internal/provider/source_dockerhub_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceDockerhubResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dockerhub",
- ),
- },
- Description: `must be one of ["dockerhub"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceDockerhubResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDockerhub(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_dockerhub_resource_sdk.go b/internal/provider/source_dockerhub_resource_sdk.go
old mode 100755
new mode 100644
index 319386b59..379f9605d
--- a/internal/provider/source_dockerhub_resource_sdk.go
+++ b/internal/provider/source_dockerhub_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceDockerhubResourceModel) ToCreateSDKType() *shared.SourceDockerhubCreateRequest {
dockerUsername := r.Configuration.DockerUsername.ValueString()
- sourceType := shared.SourceDockerhubDockerhub(r.Configuration.SourceType.ValueString())
configuration := shared.SourceDockerhub{
DockerUsername: dockerUsername,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_dremio_data_source.go b/internal/provider/source_dremio_data_source.go
old mode 100755
new mode 100644
index 75d85cbc0..3edf65fb9
--- a/internal/provider/source_dremio_data_source.go
+++ b/internal/provider/source_dremio_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceDremioDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `URL of your Dremio instance`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dremio",
- ),
- },
- Description: `must be one of ["dremio"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_dremio_data_source_sdk.go b/internal/provider/source_dremio_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_dremio_resource.go b/internal/provider/source_dremio_resource.go
old mode 100755
new mode 100644
index 3b9c533e6..00f02dd7f
--- a/internal/provider/source_dremio_resource.go
+++ b/internal/provider/source_dremio_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,18 +57,9 @@ func (r *SourceDremioResource) Schema(ctx context.Context, req resource.SchemaRe
Description: `API Key that is generated when you authenticate to Dremio API`,
},
"base_url": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `URL of your Dremio instance`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dremio",
- ),
- },
- Description: `must be one of ["dremio"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceDremioResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDremio(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_dremio_resource_sdk.go b/internal/provider/source_dremio_resource_sdk.go
old mode 100755
new mode 100644
index 82ab4d97b..d45364447
--- a/internal/provider/source_dremio_resource_sdk.go
+++ b/internal/provider/source_dremio_resource_sdk.go
@@ -9,12 +9,15 @@ import (
func (r *SourceDremioResourceModel) ToCreateSDKType() *shared.SourceDremioCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- baseURL := r.Configuration.BaseURL.ValueString()
- sourceType := shared.SourceDremioDremio(r.Configuration.SourceType.ValueString())
+ baseURL := new(string)
+ if !r.Configuration.BaseURL.IsUnknown() && !r.Configuration.BaseURL.IsNull() {
+ *baseURL = r.Configuration.BaseURL.ValueString()
+ } else {
+ baseURL = nil
+ }
configuration := shared.SourceDremio{
- APIKey: apiKey,
- BaseURL: baseURL,
- SourceType: sourceType,
+ APIKey: apiKey,
+ BaseURL: baseURL,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -40,7 +43,12 @@ func (r *SourceDremioResourceModel) ToGetSDKType() *shared.SourceDremioCreateReq
func (r *SourceDremioResourceModel) ToUpdateSDKType() *shared.SourceDremioPutRequest {
apiKey := r.Configuration.APIKey.ValueString()
- baseURL := r.Configuration.BaseURL.ValueString()
+ baseURL := new(string)
+ if !r.Configuration.BaseURL.IsUnknown() && !r.Configuration.BaseURL.IsNull() {
+ *baseURL = r.Configuration.BaseURL.ValueString()
+ } else {
+ baseURL = nil
+ }
configuration := shared.SourceDremioUpdate{
APIKey: apiKey,
BaseURL: baseURL,
diff --git a/internal/provider/source_dynamodb_data_source.go b/internal/provider/source_dynamodb_data_source.go
old mode 100755
new mode 100644
index c8edeaab4..e976849a7
--- a/internal/provider/source_dynamodb_data_source.go
+++ b/internal/provider/source_dynamodb_data_source.go
@@ -103,15 +103,6 @@ func (r *SourceDynamodbDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The corresponding secret to the access key id.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dynamodb",
- ),
- },
- Description: `must be one of ["dynamodb"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_dynamodb_data_source_sdk.go b/internal/provider/source_dynamodb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_dynamodb_resource.go b/internal/provider/source_dynamodb_resource.go
old mode 100755
new mode 100644
index e5590c9c1..5343302c3
--- a/internal/provider/source_dynamodb_resource.go
+++ b/internal/provider/source_dynamodb_resource.go
@@ -105,15 +105,6 @@ func (r *SourceDynamodbResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The corresponding secret to the access key id.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "dynamodb",
- ),
- },
- Description: `must be one of ["dynamodb"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -186,7 +177,7 @@ func (r *SourceDynamodbResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceDynamodb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_dynamodb_resource_sdk.go b/internal/provider/source_dynamodb_resource_sdk.go
old mode 100755
new mode 100644
index 89ef85438..328c47185
--- a/internal/provider/source_dynamodb_resource_sdk.go
+++ b/internal/provider/source_dynamodb_resource_sdk.go
@@ -28,14 +28,12 @@ func (r *SourceDynamodbResourceModel) ToCreateSDKType() *shared.SourceDynamodbCr
reservedAttributeNames = nil
}
secretAccessKey := r.Configuration.SecretAccessKey.ValueString()
- sourceType := shared.SourceDynamodbDynamodb(r.Configuration.SourceType.ValueString())
configuration := shared.SourceDynamodb{
AccessKeyID: accessKeyID,
Endpoint: endpoint,
Region: region,
ReservedAttributeNames: reservedAttributeNames,
SecretAccessKey: secretAccessKey,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_e2etestcloud_data_source.go b/internal/provider/source_e2etestcloud_data_source.go
old mode 100755
new mode 100644
index 69a91fcef..f06e5c051
--- a/internal/provider/source_e2etestcloud_data_source.go
+++ b/internal/provider/source_e2etestcloud_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -71,15 +70,6 @@ func (r *SourceE2eTestCloudDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MULTI_STREAM",
- ),
- },
- Description: `must be one of ["MULTI_STREAM"]`,
- },
},
Description: `A catalog with multiple data streams, each with a different schema.`,
},
@@ -98,15 +88,6 @@ func (r *SourceE2eTestCloudDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SINGLE_STREAM",
- ),
- },
- Description: `must be one of ["SINGLE_STREAM"]`,
- },
},
Description: `A catalog with one or multiple streams that share the same schema.`,
},
@@ -117,15 +98,6 @@ func (r *SourceE2eTestCloudDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MULTI_STREAM",
- ),
- },
- Description: `must be one of ["MULTI_STREAM"]`,
- },
},
Description: `A catalog with multiple data streams, each with a different schema.`,
},
@@ -144,15 +116,6 @@ func (r *SourceE2eTestCloudDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SINGLE_STREAM",
- ),
- },
- Description: `must be one of ["SINGLE_STREAM"]`,
- },
},
Description: `A catalog with one or multiple streams that share the same schema.`,
},
@@ -165,24 +128,6 @@ func (r *SourceE2eTestCloudDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "e2e-test-cloud",
- ),
- },
- Description: `must be one of ["e2e-test-cloud"]`,
- },
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CONTINUOUS_FEED",
- ),
- },
- Description: `must be one of ["CONTINUOUS_FEED"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_e2etestcloud_data_source_sdk.go b/internal/provider/source_e2etestcloud_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_e2etestcloud_resource.go b/internal/provider/source_e2etestcloud_resource.go
old mode 100755
new mode 100644
index 460cec7dd..fb14a2228
--- a/internal/provider/source_e2etestcloud_resource.go
+++ b/internal/provider/source_e2etestcloud_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -56,7 +55,7 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Attributes: map[string]schema.Attribute{
"max_messages": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Number of records to emit per stream. Min 1. Max 100 billion.`,
},
"message_interval_ms": schema.Int64Attribute{
@@ -70,18 +69,9 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"stream_schemas": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MULTI_STREAM",
- ),
- },
- Description: `must be one of ["MULTI_STREAM"]`,
- },
},
Description: `A catalog with multiple data streams, each with a different schema.`,
},
@@ -93,22 +83,13 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Description: `Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.`,
},
"stream_name": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Name of the data stream.`,
},
"stream_schema": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SINGLE_STREAM",
- ),
- },
- Description: `must be one of ["SINGLE_STREAM"]`,
- },
},
Description: `A catalog with one or multiple streams that share the same schema.`,
},
@@ -116,18 +97,9 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Attributes: map[string]schema.Attribute{
"stream_schemas": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "MULTI_STREAM",
- ),
- },
- Description: `must be one of ["MULTI_STREAM"]`,
- },
},
Description: `A catalog with multiple data streams, each with a different schema.`,
},
@@ -139,22 +111,13 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Description: `Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.`,
},
"stream_name": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Name of the data stream.`,
},
"stream_schema": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SINGLE_STREAM",
- ),
- },
- Description: `must be one of ["SINGLE_STREAM"]`,
- },
},
Description: `A catalog with one or multiple streams that share the same schema.`,
},
@@ -167,24 +130,6 @@ func (r *SourceE2eTestCloudResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Description: `When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "e2e-test-cloud",
- ),
- },
- Description: `must be one of ["e2e-test-cloud"]`,
- },
- "type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CONTINUOUS_FEED",
- ),
- },
- Description: `must be one of ["CONTINUOUS_FEED"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -257,7 +202,7 @@ func (r *SourceE2eTestCloudResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceE2eTestCloud(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_e2etestcloud_resource_sdk.go b/internal/provider/source_e2etestcloud_resource_sdk.go
old mode 100755
new mode 100644
index 17cef7c53..0e22ed57e
--- a/internal/provider/source_e2etestcloud_resource_sdk.go
+++ b/internal/provider/source_e2etestcloud_resource_sdk.go
@@ -8,7 +8,12 @@ import (
)
func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTestCloudCreateRequest {
- maxMessages := r.Configuration.MaxMessages.ValueInt64()
+ maxMessages := new(int64)
+ if !r.Configuration.MaxMessages.IsUnknown() && !r.Configuration.MaxMessages.IsNull() {
+ *maxMessages = r.Configuration.MaxMessages.ValueInt64()
+ } else {
+ maxMessages = nil
+ }
messageIntervalMs := new(int64)
if !r.Configuration.MessageIntervalMs.IsUnknown() && !r.Configuration.MessageIntervalMs.IsNull() {
*messageIntervalMs = r.Configuration.MessageIntervalMs.ValueInt64()
@@ -24,14 +29,22 @@ func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTes
} else {
streamDuplication = nil
}
- streamName := r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamName.ValueString()
- streamSchema := r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamSchema.ValueString()
- typeVar := shared.SourceE2eTestCloudMockCatalogSingleSchemaType(r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.Type.ValueString())
+ streamName := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamName.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamName.IsNull() {
+ *streamName = r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamName.ValueString()
+ } else {
+ streamName = nil
+ }
+ streamSchema := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamSchema.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamSchema.IsNull() {
+ *streamSchema = r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogSingleSchema.StreamSchema.ValueString()
+ } else {
+ streamSchema = nil
+ }
sourceE2eTestCloudMockCatalogSingleSchema = &shared.SourceE2eTestCloudMockCatalogSingleSchema{
StreamDuplication: streamDuplication,
StreamName: streamName,
StreamSchema: streamSchema,
- Type: typeVar,
}
}
if sourceE2eTestCloudMockCatalogSingleSchema != nil {
@@ -41,11 +54,14 @@ func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTes
}
var sourceE2eTestCloudMockCatalogMultiSchema *shared.SourceE2eTestCloudMockCatalogMultiSchema
if r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema != nil {
- streamSchemas := r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema.StreamSchemas.ValueString()
- typeVar1 := shared.SourceE2eTestCloudMockCatalogMultiSchemaType(r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema.Type.ValueString())
+ streamSchemas := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema.StreamSchemas.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema.StreamSchemas.IsNull() {
+ *streamSchemas = r.Configuration.MockCatalog.SourceE2eTestCloudMockCatalogMultiSchema.StreamSchemas.ValueString()
+ } else {
+ streamSchemas = nil
+ }
sourceE2eTestCloudMockCatalogMultiSchema = &shared.SourceE2eTestCloudMockCatalogMultiSchema{
StreamSchemas: streamSchemas,
- Type: typeVar1,
}
}
if sourceE2eTestCloudMockCatalogMultiSchema != nil {
@@ -59,20 +75,11 @@ func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTes
} else {
seed = nil
}
- sourceType := shared.SourceE2eTestCloudE2eTestCloud(r.Configuration.SourceType.ValueString())
- typeVar2 := new(shared.SourceE2eTestCloudType)
- if !r.Configuration.Type.IsUnknown() && !r.Configuration.Type.IsNull() {
- *typeVar2 = shared.SourceE2eTestCloudType(r.Configuration.Type.ValueString())
- } else {
- typeVar2 = nil
- }
configuration := shared.SourceE2eTestCloud{
MaxMessages: maxMessages,
MessageIntervalMs: messageIntervalMs,
MockCatalog: mockCatalog,
Seed: seed,
- SourceType: sourceType,
- Type: typeVar2,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -97,7 +104,12 @@ func (r *SourceE2eTestCloudResourceModel) ToGetSDKType() *shared.SourceE2eTestCl
}
func (r *SourceE2eTestCloudResourceModel) ToUpdateSDKType() *shared.SourceE2eTestCloudPutRequest {
- maxMessages := r.Configuration.MaxMessages.ValueInt64()
+ maxMessages := new(int64)
+ if !r.Configuration.MaxMessages.IsUnknown() && !r.Configuration.MaxMessages.IsNull() {
+ *maxMessages = r.Configuration.MaxMessages.ValueInt64()
+ } else {
+ maxMessages = nil
+ }
messageIntervalMs := new(int64)
if !r.Configuration.MessageIntervalMs.IsUnknown() && !r.Configuration.MessageIntervalMs.IsNull() {
*messageIntervalMs = r.Configuration.MessageIntervalMs.ValueInt64()
@@ -113,14 +125,22 @@ func (r *SourceE2eTestCloudResourceModel) ToUpdateSDKType() *shared.SourceE2eTes
} else {
streamDuplication = nil
}
- streamName := r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamName.ValueString()
- streamSchema := r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamSchema.ValueString()
- typeVar := shared.SourceE2eTestCloudUpdateMockCatalogSingleSchemaType(r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.Type.ValueString())
+ streamName := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamName.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamName.IsNull() {
+ *streamName = r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamName.ValueString()
+ } else {
+ streamName = nil
+ }
+ streamSchema := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamSchema.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamSchema.IsNull() {
+ *streamSchema = r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogSingleSchema.StreamSchema.ValueString()
+ } else {
+ streamSchema = nil
+ }
sourceE2eTestCloudUpdateMockCatalogSingleSchema = &shared.SourceE2eTestCloudUpdateMockCatalogSingleSchema{
StreamDuplication: streamDuplication,
StreamName: streamName,
StreamSchema: streamSchema,
- Type: typeVar,
}
}
if sourceE2eTestCloudUpdateMockCatalogSingleSchema != nil {
@@ -130,11 +150,14 @@ func (r *SourceE2eTestCloudResourceModel) ToUpdateSDKType() *shared.SourceE2eTes
}
var sourceE2eTestCloudUpdateMockCatalogMultiSchema *shared.SourceE2eTestCloudUpdateMockCatalogMultiSchema
if r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema != nil {
- streamSchemas := r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema.StreamSchemas.ValueString()
- typeVar1 := shared.SourceE2eTestCloudUpdateMockCatalogMultiSchemaType(r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema.Type.ValueString())
+ streamSchemas := new(string)
+ if !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema.StreamSchemas.IsUnknown() && !r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema.StreamSchemas.IsNull() {
+ *streamSchemas = r.Configuration.MockCatalog.SourceE2eTestCloudUpdateMockCatalogMultiSchema.StreamSchemas.ValueString()
+ } else {
+ streamSchemas = nil
+ }
sourceE2eTestCloudUpdateMockCatalogMultiSchema = &shared.SourceE2eTestCloudUpdateMockCatalogMultiSchema{
StreamSchemas: streamSchemas,
- Type: typeVar1,
}
}
if sourceE2eTestCloudUpdateMockCatalogMultiSchema != nil {
@@ -148,18 +171,11 @@ func (r *SourceE2eTestCloudResourceModel) ToUpdateSDKType() *shared.SourceE2eTes
} else {
seed = nil
}
- typeVar2 := new(shared.SourceE2eTestCloudUpdateType)
- if !r.Configuration.Type.IsUnknown() && !r.Configuration.Type.IsNull() {
- *typeVar2 = shared.SourceE2eTestCloudUpdateType(r.Configuration.Type.ValueString())
- } else {
- typeVar2 = nil
- }
configuration := shared.SourceE2eTestCloudUpdate{
MaxMessages: maxMessages,
MessageIntervalMs: messageIntervalMs,
MockCatalog: mockCatalog,
Seed: seed,
- Type: typeVar2,
}
name := r.Name.ValueString()
workspaceID := r.WorkspaceID.ValueString()
diff --git a/internal/provider/source_emailoctopus_data_source.go b/internal/provider/source_emailoctopus_data_source.go
old mode 100755
new mode 100644
index a9b4f9275..5fad148dc
--- a/internal/provider/source_emailoctopus_data_source.go
+++ b/internal/provider/source_emailoctopus_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceEmailoctopusDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `EmailOctopus API Key. See the docs for information on how to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "emailoctopus",
- ),
- },
- Description: `must be one of ["emailoctopus"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_emailoctopus_data_source_sdk.go b/internal/provider/source_emailoctopus_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_emailoctopus_resource.go b/internal/provider/source_emailoctopus_resource.go
old mode 100755
new mode 100644
index b899a6c24..a3b4b2cde
--- a/internal/provider/source_emailoctopus_resource.go
+++ b/internal/provider/source_emailoctopus_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceEmailoctopusResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `EmailOctopus API Key. See the docs for information on how to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "emailoctopus",
- ),
- },
- Description: `must be one of ["emailoctopus"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceEmailoctopusResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceEmailoctopus(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_emailoctopus_resource_sdk.go b/internal/provider/source_emailoctopus_resource_sdk.go
old mode 100755
new mode 100644
index fefd5dc41..d9ed62c46
--- a/internal/provider/source_emailoctopus_resource_sdk.go
+++ b/internal/provider/source_emailoctopus_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceEmailoctopusResourceModel) ToCreateSDKType() *shared.SourceEmailoctopusCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceEmailoctopusEmailoctopus(r.Configuration.SourceType.ValueString())
configuration := shared.SourceEmailoctopus{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_exchangerates_data_source.go b/internal/provider/source_exchangerates_data_source.go
old mode 100755
new mode 100644
index f69f80eb8..b5a594638
--- a/internal/provider/source_exchangerates_data_source.go
+++ b/internal/provider/source_exchangerates_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceExchangeRatesDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Ignore weekends? (Exchanges don't run on weekends)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "exchange-rates",
- ),
- },
- Description: `must be one of ["exchange-rates"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_exchangerates_data_source_sdk.go b/internal/provider/source_exchangerates_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_exchangerates_resource.go b/internal/provider/source_exchangerates_resource.go
old mode 100755
new mode 100644
index e5fea23d3..cee15d4af
--- a/internal/provider/source_exchangerates_resource.go
+++ b/internal/provider/source_exchangerates_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceExchangeRatesResource) Schema(ctx context.Context, req resource.S
Optional: true,
Description: `Ignore weekends? (Exchanges don't run on weekends)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "exchange-rates",
- ),
- },
- Description: `must be one of ["exchange-rates"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceExchangeRatesResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceExchangeRates(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_exchangerates_resource_sdk.go b/internal/provider/source_exchangerates_resource_sdk.go
old mode 100755
new mode 100644
index c886b5c1a..d2b7f95c4
--- a/internal/provider/source_exchangerates_resource_sdk.go
+++ b/internal/provider/source_exchangerates_resource_sdk.go
@@ -22,13 +22,11 @@ func (r *SourceExchangeRatesResourceModel) ToCreateSDKType() *shared.SourceExcha
} else {
ignoreWeekends = nil
}
- sourceType := shared.SourceExchangeRatesExchangeRates(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceExchangeRates{
AccessKey: accessKey,
Base: base,
IgnoreWeekends: ignoreWeekends,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_facebookmarketing_data_source.go b/internal/provider/source_facebookmarketing_data_source.go
old mode 100755
new mode 100644
index 684622497..05111bb1c
--- a/internal/provider/source_facebookmarketing_data_source.go
+++ b/internal/provider/source_facebookmarketing_data_source.go
@@ -174,15 +174,6 @@ func (r *SourceFacebookMarketingDataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "facebook-marketing",
- ),
- },
- Description: `must be one of ["facebook-marketing"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_facebookmarketing_data_source_sdk.go b/internal/provider/source_facebookmarketing_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_facebookmarketing_resource.go b/internal/provider/source_facebookmarketing_resource.go
old mode 100755
new mode 100644
index 367473bb8..bd88057c6
--- a/internal/provider/source_facebookmarketing_resource.go
+++ b/internal/provider/source_facebookmarketing_resource.go
@@ -176,15 +176,6 @@ func (r *SourceFacebookMarketingResource) Schema(ctx context.Context, req resour
Optional: true,
Description: `Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "facebook-marketing",
- ),
- },
- Description: `must be one of ["facebook-marketing"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -264,7 +255,7 @@ func (r *SourceFacebookMarketingResource) Create(ctx context.Context, req resour
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFacebookMarketing(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_facebookmarketing_resource_sdk.go b/internal/provider/source_facebookmarketing_resource_sdk.go
old mode 100755
new mode 100644
index 24c9dd2c3..2614d09ac
--- a/internal/provider/source_facebookmarketing_resource_sdk.go
+++ b/internal/provider/source_facebookmarketing_resource_sdk.go
@@ -129,7 +129,6 @@ func (r *SourceFacebookMarketingResourceModel) ToCreateSDKType() *shared.SourceF
} else {
pageSize = nil
}
- sourceType := shared.SourceFacebookMarketingFacebookMarketing(r.Configuration.SourceType.ValueString())
startDate1, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceFacebookMarketing{
AccessToken: accessToken,
@@ -144,7 +143,6 @@ func (r *SourceFacebookMarketingResourceModel) ToCreateSDKType() *shared.SourceF
InsightsLookbackWindow: insightsLookbackWindow1,
MaxBatchSize: maxBatchSize,
PageSize: pageSize,
- SourceType: sourceType,
StartDate: startDate1,
}
name1 := r.Name.ValueString()
diff --git a/internal/provider/source_facebookpages_data_source.go b/internal/provider/source_facebookpages_data_source.go
old mode 100755
new mode 100644
index 41d632dee..01d383a8f
--- a/internal/provider/source_facebookpages_data_source.go
+++ b/internal/provider/source_facebookpages_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceFacebookPagesDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Page ID`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "facebook-pages",
- ),
- },
- Description: `must be one of ["facebook-pages"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_facebookpages_data_source_sdk.go b/internal/provider/source_facebookpages_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_facebookpages_resource.go b/internal/provider/source_facebookpages_resource.go
old mode 100755
new mode 100644
index d3d9ed49d..c6fcb34d1
--- a/internal/provider/source_facebookpages_resource.go
+++ b/internal/provider/source_facebookpages_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceFacebookPagesResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Page ID`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "facebook-pages",
- ),
- },
- Description: `must be one of ["facebook-pages"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceFacebookPagesResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFacebookPages(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_facebookpages_resource_sdk.go b/internal/provider/source_facebookpages_resource_sdk.go
old mode 100755
new mode 100644
index 4660521a4..847fd910d
--- a/internal/provider/source_facebookpages_resource_sdk.go
+++ b/internal/provider/source_facebookpages_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceFacebookPagesResourceModel) ToCreateSDKType() *shared.SourceFacebookPagesCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
pageID := r.Configuration.PageID.ValueString()
- sourceType := shared.SourceFacebookPagesFacebookPages(r.Configuration.SourceType.ValueString())
configuration := shared.SourceFacebookPages{
AccessToken: accessToken,
PageID: pageID,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_faker_data_source.go b/internal/provider/source_faker_data_source.go
old mode 100755
new mode 100644
index fb3af204e..8504c3ae2
--- a/internal/provider/source_faker_data_source.go
+++ b/internal/provider/source_faker_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -72,15 +70,6 @@ func (r *SourceFakerDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "faker",
- ),
- },
- Description: `must be one of ["faker"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_faker_data_source_sdk.go b/internal/provider/source_faker_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_faker_resource.go b/internal/provider/source_faker_resource.go
old mode 100755
new mode 100644
index da31613f6..fb66fad51
--- a/internal/provider/source_faker_resource.go
+++ b/internal/provider/source_faker_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,7 +57,7 @@ func (r *SourceFakerResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted.`,
},
"count": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `How many users should be generated in total. This setting does not apply to the purchases or products stream.`,
},
"parallelism": schema.Int64Attribute{
@@ -74,15 +72,6 @@ func (r *SourceFakerResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "faker",
- ),
- },
- Description: `must be one of ["faker"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -155,7 +144,7 @@ func (r *SourceFakerResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFaker(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_faker_resource_sdk.go b/internal/provider/source_faker_resource_sdk.go
old mode 100755
new mode 100644
index eab80f519..25ba47bfe
--- a/internal/provider/source_faker_resource_sdk.go
+++ b/internal/provider/source_faker_resource_sdk.go
@@ -14,7 +14,12 @@ func (r *SourceFakerResourceModel) ToCreateSDKType() *shared.SourceFakerCreateRe
} else {
alwaysUpdated = nil
}
- count := r.Configuration.Count.ValueInt64()
+ count := new(int64)
+ if !r.Configuration.Count.IsUnknown() && !r.Configuration.Count.IsNull() {
+ *count = r.Configuration.Count.ValueInt64()
+ } else {
+ count = nil
+ }
parallelism := new(int64)
if !r.Configuration.Parallelism.IsUnknown() && !r.Configuration.Parallelism.IsNull() {
*parallelism = r.Configuration.Parallelism.ValueInt64()
@@ -33,14 +38,12 @@ func (r *SourceFakerResourceModel) ToCreateSDKType() *shared.SourceFakerCreateRe
} else {
seed = nil
}
- sourceType := shared.SourceFakerFaker(r.Configuration.SourceType.ValueString())
configuration := shared.SourceFaker{
AlwaysUpdated: alwaysUpdated,
Count: count,
Parallelism: parallelism,
RecordsPerSlice: recordsPerSlice,
Seed: seed,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -71,7 +74,12 @@ func (r *SourceFakerResourceModel) ToUpdateSDKType() *shared.SourceFakerPutReque
} else {
alwaysUpdated = nil
}
- count := r.Configuration.Count.ValueInt64()
+ count := new(int64)
+ if !r.Configuration.Count.IsUnknown() && !r.Configuration.Count.IsNull() {
+ *count = r.Configuration.Count.ValueInt64()
+ } else {
+ count = nil
+ }
parallelism := new(int64)
if !r.Configuration.Parallelism.IsUnknown() && !r.Configuration.Parallelism.IsNull() {
*parallelism = r.Configuration.Parallelism.ValueInt64()
diff --git a/internal/provider/source_fauna_data_source.go b/internal/provider/source_fauna_data_source.go
old mode 100755
new mode 100644
index f839d5605..05d40c034
--- a/internal/provider/source_fauna_data_source.go
+++ b/internal/provider/source_fauna_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -60,18 +59,8 @@ func (r *SourceFaunaDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Attributes: map[string]schema.Attribute{
"source_fauna_collection_deletion_mode_disabled": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "deletion_mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ignore",
- ),
- },
- Description: `must be one of ["ignore"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
`Disabled - Leave this feature disabled, and ignore deleted documents.
` + "\n" +
@@ -84,15 +73,6 @@ func (r *SourceFaunaDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Name of the "deleted at" column.`,
},
- "deletion_mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "deleted_field",
- ),
- },
- Description: `must be one of ["deleted_field"]`,
- },
},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
@@ -100,18 +80,8 @@ func (r *SourceFaunaDataSource) Schema(ctx context.Context, req datasource.Schem
`Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.`,
},
"source_fauna_update_collection_deletion_mode_disabled": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "deletion_mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ignore",
- ),
- },
- Description: `must be one of ["ignore"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
`Disabled - Leave this feature disabled, and ignore deleted documents.
` + "\n" +
@@ -124,15 +94,6 @@ func (r *SourceFaunaDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Name of the "deleted at" column.`,
},
- "deletion_mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "deleted_field",
- ),
- },
- Description: `must be one of ["deleted_field"]`,
- },
},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
@@ -173,15 +134,6 @@ func (r *SourceFaunaDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Fauna secret, used when authenticating with the database.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fauna",
- ),
- },
- Description: `must be one of ["fauna"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_fauna_data_source_sdk.go b/internal/provider/source_fauna_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_fauna_resource.go b/internal/provider/source_fauna_resource.go
old mode 100755
new mode 100644
index f6d1969fe..3deb8f220
--- a/internal/provider/source_fauna_resource.go
+++ b/internal/provider/source_fauna_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -62,18 +61,8 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Attributes: map[string]schema.Attribute{
"source_fauna_collection_deletion_mode_disabled": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "deletion_mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ignore",
- ),
- },
- Description: `must be one of ["ignore"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
`Disabled - Leave this feature disabled, and ignore deleted documents.
` + "\n" +
@@ -83,18 +72,9 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Attributes: map[string]schema.Attribute{
"column": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Name of the "deleted at" column.`,
},
- "deletion_mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "deleted_field",
- ),
- },
- Description: `must be one of ["deleted_field"]`,
- },
},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
@@ -102,18 +82,8 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
`Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.`,
},
"source_fauna_update_collection_deletion_mode_disabled": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "deletion_mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ignore",
- ),
- },
- Description: `must be one of ["ignore"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
`Disabled - Leave this feature disabled, and ignore deleted documents.
` + "\n" +
@@ -123,18 +93,9 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Attributes: map[string]schema.Attribute{
"column": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Name of the "deleted at" column.`,
},
- "deletion_mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "deleted_field",
- ),
- },
- Description: `must be one of ["deleted_field"]`,
- },
},
MarkdownDescription: `This only applies to incremental syncs.
` + "\n" +
`Enabling deletion mode informs your destination of deleted documents.
` + "\n" +
@@ -151,7 +112,7 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
`Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.`,
},
"page_size": schema.Int64Attribute{
- Required: true,
+ Optional: true,
MarkdownDescription: `The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail.
` + "\n" +
`Choose your page size based on how large the documents are.
` + "\n" +
`See the docs.`,
@@ -160,30 +121,21 @@ func (r *SourceFaunaResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Settings for the Fauna Collection.`,
},
"domain": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Domain of Fauna to query. Defaults db.fauna.com. See the docs.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Endpoint port.`,
},
"scheme": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `URL scheme.`,
},
"secret": schema.StringAttribute{
Required: true,
Description: `Fauna secret, used when authenticating with the database.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "fauna",
- ),
- },
- Description: `must be one of ["fauna"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -256,7 +208,7 @@ func (r *SourceFaunaResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFauna(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_fauna_resource_sdk.go b/internal/provider/source_fauna_resource_sdk.go
old mode 100755
new mode 100644
index 044422a44..7cbf374a0
--- a/internal/provider/source_fauna_resource_sdk.go
+++ b/internal/provider/source_fauna_resource_sdk.go
@@ -13,10 +13,7 @@ func (r *SourceFaunaResourceModel) ToCreateSDKType() *shared.SourceFaunaCreateRe
var deletions shared.SourceFaunaCollectionDeletionMode
var sourceFaunaCollectionDeletionModeDisabled *shared.SourceFaunaCollectionDeletionModeDisabled
if r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeDisabled != nil {
- deletionMode := shared.SourceFaunaCollectionDeletionModeDisabledDeletionMode(r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeDisabled.DeletionMode.ValueString())
- sourceFaunaCollectionDeletionModeDisabled = &shared.SourceFaunaCollectionDeletionModeDisabled{
- DeletionMode: deletionMode,
- }
+ sourceFaunaCollectionDeletionModeDisabled = &shared.SourceFaunaCollectionDeletionModeDisabled{}
}
if sourceFaunaCollectionDeletionModeDisabled != nil {
deletions = shared.SourceFaunaCollectionDeletionMode{
@@ -25,11 +22,14 @@ func (r *SourceFaunaResourceModel) ToCreateSDKType() *shared.SourceFaunaCreateRe
}
var sourceFaunaCollectionDeletionModeEnabled *shared.SourceFaunaCollectionDeletionModeEnabled
if r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled != nil {
- column := r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled.Column.ValueString()
- deletionMode1 := shared.SourceFaunaCollectionDeletionModeEnabledDeletionMode(r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled.DeletionMode.ValueString())
+ column := new(string)
+ if !r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled.Column.IsUnknown() && !r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled.Column.IsNull() {
+ *column = r.Configuration.Collection.Deletions.SourceFaunaCollectionDeletionModeEnabled.Column.ValueString()
+ } else {
+ column = nil
+ }
sourceFaunaCollectionDeletionModeEnabled = &shared.SourceFaunaCollectionDeletionModeEnabled{
- Column: column,
- DeletionMode: deletionMode1,
+ Column: column,
}
}
if sourceFaunaCollectionDeletionModeEnabled != nil {
@@ -37,24 +37,42 @@ func (r *SourceFaunaResourceModel) ToCreateSDKType() *shared.SourceFaunaCreateRe
SourceFaunaCollectionDeletionModeEnabled: sourceFaunaCollectionDeletionModeEnabled,
}
}
- pageSize := r.Configuration.Collection.PageSize.ValueInt64()
+ pageSize := new(int64)
+ if !r.Configuration.Collection.PageSize.IsUnknown() && !r.Configuration.Collection.PageSize.IsNull() {
+ *pageSize = r.Configuration.Collection.PageSize.ValueInt64()
+ } else {
+ pageSize = nil
+ }
collection = &shared.SourceFaunaCollection{
Deletions: deletions,
PageSize: pageSize,
}
}
- domain := r.Configuration.Domain.ValueString()
- port := r.Configuration.Port.ValueInt64()
- scheme := r.Configuration.Scheme.ValueString()
+ domain := new(string)
+ if !r.Configuration.Domain.IsUnknown() && !r.Configuration.Domain.IsNull() {
+ *domain = r.Configuration.Domain.ValueString()
+ } else {
+ domain = nil
+ }
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ scheme := new(string)
+ if !r.Configuration.Scheme.IsUnknown() && !r.Configuration.Scheme.IsNull() {
+ *scheme = r.Configuration.Scheme.ValueString()
+ } else {
+ scheme = nil
+ }
secret := r.Configuration.Secret.ValueString()
- sourceType := shared.SourceFaunaFauna(r.Configuration.SourceType.ValueString())
configuration := shared.SourceFauna{
Collection: collection,
Domain: domain,
Port: port,
Scheme: scheme,
Secret: secret,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -84,10 +102,7 @@ func (r *SourceFaunaResourceModel) ToUpdateSDKType() *shared.SourceFaunaPutReque
var deletions shared.SourceFaunaUpdateCollectionDeletionMode
var sourceFaunaUpdateCollectionDeletionModeDisabled *shared.SourceFaunaUpdateCollectionDeletionModeDisabled
if r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeDisabled != nil {
- deletionMode := shared.SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode(r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeDisabled.DeletionMode.ValueString())
- sourceFaunaUpdateCollectionDeletionModeDisabled = &shared.SourceFaunaUpdateCollectionDeletionModeDisabled{
- DeletionMode: deletionMode,
- }
+ sourceFaunaUpdateCollectionDeletionModeDisabled = &shared.SourceFaunaUpdateCollectionDeletionModeDisabled{}
}
if sourceFaunaUpdateCollectionDeletionModeDisabled != nil {
deletions = shared.SourceFaunaUpdateCollectionDeletionMode{
@@ -96,11 +111,14 @@ func (r *SourceFaunaResourceModel) ToUpdateSDKType() *shared.SourceFaunaPutReque
}
var sourceFaunaUpdateCollectionDeletionModeEnabled *shared.SourceFaunaUpdateCollectionDeletionModeEnabled
if r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled != nil {
- column := r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled.Column.ValueString()
- deletionMode1 := shared.SourceFaunaUpdateCollectionDeletionModeEnabledDeletionMode(r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled.DeletionMode.ValueString())
+ column := new(string)
+ if !r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled.Column.IsUnknown() && !r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled.Column.IsNull() {
+ *column = r.Configuration.Collection.Deletions.SourceFaunaUpdateCollectionDeletionModeEnabled.Column.ValueString()
+ } else {
+ column = nil
+ }
sourceFaunaUpdateCollectionDeletionModeEnabled = &shared.SourceFaunaUpdateCollectionDeletionModeEnabled{
- Column: column,
- DeletionMode: deletionMode1,
+ Column: column,
}
}
if sourceFaunaUpdateCollectionDeletionModeEnabled != nil {
@@ -108,15 +126,35 @@ func (r *SourceFaunaResourceModel) ToUpdateSDKType() *shared.SourceFaunaPutReque
SourceFaunaUpdateCollectionDeletionModeEnabled: sourceFaunaUpdateCollectionDeletionModeEnabled,
}
}
- pageSize := r.Configuration.Collection.PageSize.ValueInt64()
+ pageSize := new(int64)
+ if !r.Configuration.Collection.PageSize.IsUnknown() && !r.Configuration.Collection.PageSize.IsNull() {
+ *pageSize = r.Configuration.Collection.PageSize.ValueInt64()
+ } else {
+ pageSize = nil
+ }
collection = &shared.SourceFaunaUpdateCollection{
Deletions: deletions,
PageSize: pageSize,
}
}
- domain := r.Configuration.Domain.ValueString()
- port := r.Configuration.Port.ValueInt64()
- scheme := r.Configuration.Scheme.ValueString()
+ domain := new(string)
+ if !r.Configuration.Domain.IsUnknown() && !r.Configuration.Domain.IsNull() {
+ *domain = r.Configuration.Domain.ValueString()
+ } else {
+ domain = nil
+ }
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
+ scheme := new(string)
+ if !r.Configuration.Scheme.IsUnknown() && !r.Configuration.Scheme.IsNull() {
+ *scheme = r.Configuration.Scheme.ValueString()
+ } else {
+ scheme = nil
+ }
secret := r.Configuration.Secret.ValueString()
configuration := shared.SourceFaunaUpdate{
Collection: collection,
diff --git a/internal/provider/source_filesecure_data_source.go b/internal/provider/source_filesecure_data_source.go
old mode 100755
new mode 100644
index be66e39a3..59d7f1473
--- a/internal/provider/source_filesecure_data_source.go
+++ b/internal/provider/source_filesecure_data_source.go
@@ -88,15 +88,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AzBlob",
- ),
- },
- Description: `must be one of ["AzBlob"]`,
- },
"storage_account": schema.StringAttribute{
Computed: true,
Description: `The globally unique name of the storage account that the desired blob sits within. See here for more details.`,
@@ -111,30 +102,12 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS",
- ),
- },
- Description: `must be one of ["GCS"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
"source_file_secure_storage_provider_https_public_web": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HTTPS",
- ),
- },
- Description: `must be one of ["HTTPS"]`,
- },
"user_agent": schema.BoolAttribute{
Computed: true,
Description: `Add User-Agent to request`,
@@ -153,15 +126,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
@@ -177,15 +141,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SCP",
- ),
- },
- Description: `must be one of ["SCP"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -204,15 +159,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SFTP",
- ),
- },
- Description: `must be one of ["SFTP"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -231,15 +177,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH",
- ),
- },
- Description: `must be one of ["SSH"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -257,15 +194,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AzBlob",
- ),
- },
- Description: `must be one of ["AzBlob"]`,
- },
"storage_account": schema.StringAttribute{
Computed: true,
Description: `The globally unique name of the storage account that the desired blob sits within. See here for more details.`,
@@ -280,30 +208,12 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS",
- ),
- },
- Description: `must be one of ["GCS"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
"source_file_secure_update_storage_provider_https_public_web": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HTTPS",
- ),
- },
- Description: `must be one of ["HTTPS"]`,
- },
"user_agent": schema.BoolAttribute{
Computed: true,
Description: `Add User-Agent to request`,
@@ -322,15 +232,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
@@ -346,15 +247,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SCP",
- ),
- },
- Description: `must be one of ["SCP"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -373,15 +265,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SFTP",
- ),
- },
- Description: `must be one of ["SFTP"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -400,15 +283,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
"port": schema.StringAttribute{
Computed: true,
},
- "storage": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH",
- ),
- },
- Description: `must be one of ["SSH"]`,
- },
"user": schema.StringAttribute{
Computed: true,
},
@@ -425,15 +299,6 @@ func (r *SourceFileSecureDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "file-secure",
- ),
- },
- Description: `must be one of ["file-secure"]`,
- },
"url": schema.StringAttribute{
Computed: true,
Description: `The URL path to access the file which should be replicated.`,
diff --git a/internal/provider/source_filesecure_data_source_sdk.go b/internal/provider/source_filesecure_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_filesecure_resource.go b/internal/provider/source_filesecure_resource.go
old mode 100755
new mode 100644
index 5a4eec7f3..132d60d87
--- a/internal/provider/source_filesecure_resource.go
+++ b/internal/provider/source_filesecure_resource.go
@@ -60,7 +60,7 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Description: `The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only).`,
},
"format": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"csv",
@@ -90,15 +90,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AzBlob",
- ),
- },
- Description: `must be one of ["AzBlob"]`,
- },
"storage_account": schema.StringAttribute{
Required: true,
Description: `The globally unique name of the storage account that the desired blob sits within. See here for more details.`,
@@ -113,30 +104,12 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS",
- ),
- },
- Description: `must be one of ["GCS"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
"source_file_secure_storage_provider_https_public_web": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HTTPS",
- ),
- },
- Description: `must be one of ["HTTPS"]`,
- },
"user_agent": schema.BoolAttribute{
Optional: true,
Description: `Add User-Agent to request`,
@@ -155,15 +128,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
@@ -179,15 +143,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SCP",
- ),
- },
- Description: `must be one of ["SCP"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -206,15 +161,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SFTP",
- ),
- },
- Description: `must be one of ["SFTP"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -233,15 +179,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH",
- ),
- },
- Description: `must be one of ["SSH"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -259,15 +196,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "AzBlob",
- ),
- },
- Description: `must be one of ["AzBlob"]`,
- },
"storage_account": schema.StringAttribute{
Required: true,
Description: `The globally unique name of the storage account that the desired blob sits within. See here for more details.`,
@@ -282,30 +210,12 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "GCS",
- ),
- },
- Description: `must be one of ["GCS"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
"source_file_secure_update_storage_provider_https_public_web": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "HTTPS",
- ),
- },
- Description: `must be one of ["HTTPS"]`,
- },
"user_agent": schema.BoolAttribute{
Optional: true,
Description: `Add User-Agent to request`,
@@ -324,15 +234,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.`,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "S3",
- ),
- },
- Description: `must be one of ["S3"]`,
- },
},
Description: `The storage Provider or Location of the file(s) which should be replicated.`,
},
@@ -348,15 +249,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SCP",
- ),
- },
- Description: `must be one of ["SCP"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -375,15 +267,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SFTP",
- ),
- },
- Description: `must be one of ["SFTP"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -402,15 +285,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
"port": schema.StringAttribute{
Optional: true,
},
- "storage": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH",
- ),
- },
- Description: `must be one of ["SSH"]`,
- },
"user": schema.StringAttribute{
Required: true,
},
@@ -427,15 +301,6 @@ func (r *SourceFileSecureResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "file-secure",
- ),
- },
- Description: `must be one of ["file-secure"]`,
- },
"url": schema.StringAttribute{
Required: true,
Description: `The URL path to access the file which should be replicated.`,
@@ -512,7 +377,7 @@ func (r *SourceFileSecureResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFileSecure(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_filesecure_resource_sdk.go b/internal/provider/source_filesecure_resource_sdk.go
old mode 100755
new mode 100644
index e9b05229e..8b25f18b3
--- a/internal/provider/source_filesecure_resource_sdk.go
+++ b/internal/provider/source_filesecure_resource_sdk.go
@@ -9,11 +9,15 @@ import (
func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecureCreateRequest {
datasetName := r.Configuration.DatasetName.ValueString()
- format := shared.SourceFileSecureFileFormat(r.Configuration.Format.ValueString())
+ format := new(shared.SourceFileSecureFileFormat)
+ if !r.Configuration.Format.IsUnknown() && !r.Configuration.Format.IsNull() {
+ *format = shared.SourceFileSecureFileFormat(r.Configuration.Format.ValueString())
+ } else {
+ format = nil
+ }
var provider shared.SourceFileSecureStorageProvider
var sourceFileSecureStorageProviderHTTPSPublicWeb *shared.SourceFileSecureStorageProviderHTTPSPublicWeb
if r.Configuration.Provider.SourceFileSecureStorageProviderHTTPSPublicWeb != nil {
- storage := shared.SourceFileSecureStorageProviderHTTPSPublicWebStorage(r.Configuration.Provider.SourceFileSecureStorageProviderHTTPSPublicWeb.Storage.ValueString())
userAgent := new(bool)
if !r.Configuration.Provider.SourceFileSecureStorageProviderHTTPSPublicWeb.UserAgent.IsUnknown() && !r.Configuration.Provider.SourceFileSecureStorageProviderHTTPSPublicWeb.UserAgent.IsNull() {
*userAgent = r.Configuration.Provider.SourceFileSecureStorageProviderHTTPSPublicWeb.UserAgent.ValueBool()
@@ -21,7 +25,6 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
userAgent = nil
}
sourceFileSecureStorageProviderHTTPSPublicWeb = &shared.SourceFileSecureStorageProviderHTTPSPublicWeb{
- Storage: storage,
UserAgent: userAgent,
}
}
@@ -38,10 +41,8 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
serviceAccountJSON = nil
}
- storage1 := shared.SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage(r.Configuration.Provider.SourceFileSecureStorageProviderGCSGoogleCloudStorage.Storage.ValueString())
sourceFileSecureStorageProviderGCSGoogleCloudStorage = &shared.SourceFileSecureStorageProviderGCSGoogleCloudStorage{
ServiceAccountJSON: serviceAccountJSON,
- Storage: storage1,
}
}
if sourceFileSecureStorageProviderGCSGoogleCloudStorage != nil {
@@ -63,11 +64,9 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
awsSecretAccessKey = nil
}
- storage2 := shared.SourceFileSecureStorageProviderS3AmazonWebServicesStorage(r.Configuration.Provider.SourceFileSecureStorageProviderS3AmazonWebServices.Storage.ValueString())
sourceFileSecureStorageProviderS3AmazonWebServices = &shared.SourceFileSecureStorageProviderS3AmazonWebServices{
AwsAccessKeyID: awsAccessKeyID,
AwsSecretAccessKey: awsSecretAccessKey,
- Storage: storage2,
}
}
if sourceFileSecureStorageProviderS3AmazonWebServices != nil {
@@ -89,12 +88,10 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
sharedKey = nil
}
- storage3 := shared.SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorage(r.Configuration.Provider.SourceFileSecureStorageProviderAzBlobAzureBlobStorage.Storage.ValueString())
storageAccount := r.Configuration.Provider.SourceFileSecureStorageProviderAzBlobAzureBlobStorage.StorageAccount.ValueString()
sourceFileSecureStorageProviderAzBlobAzureBlobStorage = &shared.SourceFileSecureStorageProviderAzBlobAzureBlobStorage{
SasToken: sasToken,
SharedKey: sharedKey,
- Storage: storage3,
StorageAccount: storageAccount,
}
}
@@ -118,13 +115,11 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
port = nil
}
- storage4 := shared.SourceFileSecureStorageProviderSSHSecureShellStorage(r.Configuration.Provider.SourceFileSecureStorageProviderSSHSecureShell.Storage.ValueString())
user := r.Configuration.Provider.SourceFileSecureStorageProviderSSHSecureShell.User.ValueString()
sourceFileSecureStorageProviderSSHSecureShell = &shared.SourceFileSecureStorageProviderSSHSecureShell{
Host: host,
Password: password,
Port: port,
- Storage: storage4,
User: user,
}
}
@@ -148,13 +143,11 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
port1 = nil
}
- storage5 := shared.SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage(r.Configuration.Provider.SourceFileSecureStorageProviderSCPSecureCopyProtocol.Storage.ValueString())
user1 := r.Configuration.Provider.SourceFileSecureStorageProviderSCPSecureCopyProtocol.User.ValueString()
sourceFileSecureStorageProviderSCPSecureCopyProtocol = &shared.SourceFileSecureStorageProviderSCPSecureCopyProtocol{
Host: host1,
Password: password1,
Port: port1,
- Storage: storage5,
User: user1,
}
}
@@ -178,13 +171,11 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
port2 = nil
}
- storage6 := shared.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorage(r.Configuration.Provider.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol.Storage.ValueString())
user2 := r.Configuration.Provider.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol.User.ValueString()
sourceFileSecureStorageProviderSFTPSecureFileTransferProtocol = &shared.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol{
Host: host2,
Password: password2,
Port: port2,
- Storage: storage6,
User: user2,
}
}
@@ -199,14 +190,12 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu
} else {
readerOptions = nil
}
- sourceType := shared.SourceFileSecureFileSecure(r.Configuration.SourceType.ValueString())
url := r.Configuration.URL.ValueString()
configuration := shared.SourceFileSecure{
DatasetName: datasetName,
Format: format,
Provider: provider,
ReaderOptions: readerOptions,
- SourceType: sourceType,
URL: url,
}
name := r.Name.ValueString()
@@ -233,11 +222,15 @@ func (r *SourceFileSecureResourceModel) ToGetSDKType() *shared.SourceFileSecureC
func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecurePutRequest {
datasetName := r.Configuration.DatasetName.ValueString()
- format := shared.SourceFileSecureUpdateFileFormat(r.Configuration.Format.ValueString())
+ format := new(shared.SourceFileSecureUpdateFileFormat)
+ if !r.Configuration.Format.IsUnknown() && !r.Configuration.Format.IsNull() {
+ *format = shared.SourceFileSecureUpdateFileFormat(r.Configuration.Format.ValueString())
+ } else {
+ format = nil
+ }
var provider shared.SourceFileSecureUpdateStorageProvider
var sourceFileSecureUpdateStorageProviderHTTPSPublicWeb *shared.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb
if r.Configuration.Provider.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb != nil {
- storage := shared.SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb.Storage.ValueString())
userAgent := new(bool)
if !r.Configuration.Provider.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb.UserAgent.IsUnknown() && !r.Configuration.Provider.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb.UserAgent.IsNull() {
*userAgent = r.Configuration.Provider.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb.UserAgent.ValueBool()
@@ -245,7 +238,6 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
userAgent = nil
}
sourceFileSecureUpdateStorageProviderHTTPSPublicWeb = &shared.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb{
- Storage: storage,
UserAgent: userAgent,
}
}
@@ -262,10 +254,8 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
serviceAccountJSON = nil
}
- storage1 := shared.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage.Storage.ValueString())
sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage = &shared.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage{
ServiceAccountJSON: serviceAccountJSON,
- Storage: storage1,
}
}
if sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage != nil {
@@ -287,11 +277,9 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
awsSecretAccessKey = nil
}
- storage2 := shared.SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderS3AmazonWebServices.Storage.ValueString())
sourceFileSecureUpdateStorageProviderS3AmazonWebServices = &shared.SourceFileSecureUpdateStorageProviderS3AmazonWebServices{
AwsAccessKeyID: awsAccessKeyID,
AwsSecretAccessKey: awsSecretAccessKey,
- Storage: storage2,
}
}
if sourceFileSecureUpdateStorageProviderS3AmazonWebServices != nil {
@@ -313,12 +301,10 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
sharedKey = nil
}
- storage3 := shared.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage.Storage.ValueString())
storageAccount := r.Configuration.Provider.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage.StorageAccount.ValueString()
sourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage = &shared.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage{
SasToken: sasToken,
SharedKey: sharedKey,
- Storage: storage3,
StorageAccount: storageAccount,
}
}
@@ -342,13 +328,11 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
port = nil
}
- storage4 := shared.SourceFileSecureUpdateStorageProviderSSHSecureShellStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSSHSecureShell.Storage.ValueString())
user := r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSSHSecureShell.User.ValueString()
sourceFileSecureUpdateStorageProviderSSHSecureShell = &shared.SourceFileSecureUpdateStorageProviderSSHSecureShell{
Host: host,
Password: password,
Port: port,
- Storage: storage4,
User: user,
}
}
@@ -372,13 +356,11 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
port1 = nil
}
- storage5 := shared.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol.Storage.ValueString())
user1 := r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol.User.ValueString()
sourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol = &shared.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol{
Host: host1,
Password: password1,
Port: port1,
- Storage: storage5,
User: user1,
}
}
@@ -402,13 +384,11 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu
} else {
port2 = nil
}
- storage6 := shared.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStorage(r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol.Storage.ValueString())
user2 := r.Configuration.Provider.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol.User.ValueString()
sourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol = &shared.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol{
Host: host2,
Password: password2,
Port: port2,
- Storage: storage6,
User: user2,
}
}
diff --git a/internal/provider/source_firebolt_data_source.go b/internal/provider/source_firebolt_data_source.go
old mode 100755
new mode 100644
index 6dd072324..24356a78d
--- a/internal/provider/source_firebolt_data_source.go
+++ b/internal/provider/source_firebolt_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -72,15 +70,6 @@ func (r *SourceFireboltDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Firebolt password.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firebolt",
- ),
- },
- Description: `must be one of ["firebolt"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Firebolt email address you use to login.`,
diff --git a/internal/provider/source_firebolt_data_source_sdk.go b/internal/provider/source_firebolt_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_firebolt_resource.go b/internal/provider/source_firebolt_resource.go
old mode 100755
new mode 100644
index f344fb97c..90acace1d
--- a/internal/provider/source_firebolt_resource.go
+++ b/internal/provider/source_firebolt_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -74,15 +72,6 @@ func (r *SourceFireboltResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Firebolt password.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "firebolt",
- ),
- },
- Description: `must be one of ["firebolt"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Firebolt email address you use to login.`,
@@ -159,7 +148,7 @@ func (r *SourceFireboltResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFirebolt(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_firebolt_resource_sdk.go b/internal/provider/source_firebolt_resource_sdk.go
old mode 100755
new mode 100644
index 7667b6b69..01cb6f057
--- a/internal/provider/source_firebolt_resource_sdk.go
+++ b/internal/provider/source_firebolt_resource_sdk.go
@@ -28,16 +28,14 @@ func (r *SourceFireboltResourceModel) ToCreateSDKType() *shared.SourceFireboltCr
host = nil
}
password := r.Configuration.Password.ValueString()
- sourceType := shared.SourceFireboltFirebolt(r.Configuration.SourceType.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceFirebolt{
- Account: account,
- Database: database,
- Engine: engine,
- Host: host,
- Password: password,
- SourceType: sourceType,
- Username: username,
+ Account: account,
+ Database: database,
+ Engine: engine,
+ Host: host,
+ Password: password,
+ Username: username,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_freshcaller_data_source.go b/internal/provider/source_freshcaller_data_source.go
old mode 100755
new mode 100644
index fbe2dc59a..2c260ebb6
--- a/internal/provider/source_freshcaller_data_source.go
+++ b/internal/provider/source_freshcaller_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceFreshcallerDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshcaller",
- ),
- },
- Description: `must be one of ["freshcaller"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_freshcaller_data_source_sdk.go b/internal/provider/source_freshcaller_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_freshcaller_resource.go b/internal/provider/source_freshcaller_resource.go
old mode 100755
new mode 100644
index cc5ee6787..9151a9098
--- a/internal/provider/source_freshcaller_resource.go
+++ b/internal/provider/source_freshcaller_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceFreshcallerResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshcaller",
- ),
- },
- Description: `must be one of ["freshcaller"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -159,7 +149,7 @@ func (r *SourceFreshcallerResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFreshcaller(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_freshcaller_resource_sdk.go b/internal/provider/source_freshcaller_resource_sdk.go
old mode 100755
new mode 100644
index a054c25d5..cc640bfbd
--- a/internal/provider/source_freshcaller_resource_sdk.go
+++ b/internal/provider/source_freshcaller_resource_sdk.go
@@ -17,7 +17,6 @@ func (r *SourceFreshcallerResourceModel) ToCreateSDKType() *shared.SourceFreshca
} else {
requestsPerMinute = nil
}
- sourceType := shared.SourceFreshcallerFreshcaller(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
syncLagMinutes := new(int64)
if !r.Configuration.SyncLagMinutes.IsUnknown() && !r.Configuration.SyncLagMinutes.IsNull() {
@@ -29,7 +28,6 @@ func (r *SourceFreshcallerResourceModel) ToCreateSDKType() *shared.SourceFreshca
APIKey: apiKey,
Domain: domain,
RequestsPerMinute: requestsPerMinute,
- SourceType: sourceType,
StartDate: startDate,
SyncLagMinutes: syncLagMinutes,
}
diff --git a/internal/provider/source_freshdesk_data_source.go b/internal/provider/source_freshdesk_data_source.go
old mode 100755
new mode 100644
index 6adc96e50..748bfba3d
--- a/internal/provider/source_freshdesk_data_source.go
+++ b/internal/provider/source_freshdesk_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceFreshdeskDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshdesk",
- ),
- },
- Description: `must be one of ["freshdesk"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_freshdesk_data_source_sdk.go b/internal/provider/source_freshdesk_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_freshdesk_resource.go b/internal/provider/source_freshdesk_resource.go
old mode 100755
new mode 100644
index 9f0627064..6e7316cc8
--- a/internal/provider/source_freshdesk_resource.go
+++ b/internal/provider/source_freshdesk_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceFreshdeskResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshdesk",
- ),
- },
- Description: `must be one of ["freshdesk"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceFreshdeskResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFreshdesk(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_freshdesk_resource_sdk.go b/internal/provider/source_freshdesk_resource_sdk.go
old mode 100755
new mode 100644
index c38e4c191..296fc8653
--- a/internal/provider/source_freshdesk_resource_sdk.go
+++ b/internal/provider/source_freshdesk_resource_sdk.go
@@ -17,7 +17,6 @@ func (r *SourceFreshdeskResourceModel) ToCreateSDKType() *shared.SourceFreshdesk
} else {
requestsPerMinute = nil
}
- sourceType := shared.SourceFreshdeskFreshdesk(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -28,7 +27,6 @@ func (r *SourceFreshdeskResourceModel) ToCreateSDKType() *shared.SourceFreshdesk
APIKey: apiKey,
Domain: domain,
RequestsPerMinute: requestsPerMinute,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_freshsales_data_source.go b/internal/provider/source_freshsales_data_source.go
old mode 100755
new mode 100644
index 14ab8778b..718eac677
--- a/internal/provider/source_freshsales_data_source.go
+++ b/internal/provider/source_freshsales_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceFreshsalesDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `The Name of your Freshsales domain`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshsales",
- ),
- },
- Description: `must be one of ["freshsales"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_freshsales_data_source_sdk.go b/internal/provider/source_freshsales_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_freshsales_resource.go b/internal/provider/source_freshsales_resource.go
old mode 100755
new mode 100644
index 356b049c6..442f30b9d
--- a/internal/provider/source_freshsales_resource.go
+++ b/internal/provider/source_freshsales_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceFreshsalesResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `The Name of your Freshsales domain`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "freshsales",
- ),
- },
- Description: `must be one of ["freshsales"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceFreshsalesResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceFreshsales(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_freshsales_resource_sdk.go b/internal/provider/source_freshsales_resource_sdk.go
old mode 100755
new mode 100644
index ba29f5598..780f1dac1
--- a/internal/provider/source_freshsales_resource_sdk.go
+++ b/internal/provider/source_freshsales_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceFreshsalesResourceModel) ToCreateSDKType() *shared.SourceFreshsalesCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
domainName := r.Configuration.DomainName.ValueString()
- sourceType := shared.SourceFreshsalesFreshsales(r.Configuration.SourceType.ValueString())
configuration := shared.SourceFreshsales{
APIKey: apiKey,
DomainName: domainName,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_gainsightpx_data_source.go b/internal/provider/source_gainsightpx_data_source.go
old mode 100755
new mode 100644
index 98a467c86..9e445c1aa
--- a/internal/provider/source_gainsightpx_data_source.go
+++ b/internal/provider/source_gainsightpx_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceGainsightPxDataSource struct {
// SourceGainsightPxDataSourceModel describes the data model.
type SourceGainsightPxDataSourceModel struct {
- Configuration SourceGainsightPx `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceGainsightPxDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gainsight-px",
- ),
- },
- Description: `must be one of ["gainsight-px"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_gainsightpx_data_source_sdk.go b/internal/provider/source_gainsightpx_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_gainsightpx_resource.go b/internal/provider/source_gainsightpx_resource.go
old mode 100755
new mode 100644
index 8791701a4..b8381d3c7
--- a/internal/provider/source_gainsightpx_resource.go
+++ b/internal/provider/source_gainsightpx_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceGainsightPxResource struct {
// SourceGainsightPxResourceModel describes the resource data model.
type SourceGainsightPxResourceModel struct {
- Configuration SourceGainsightPx `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceGainsightPxResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceGainsightPxResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gainsight-px",
- ),
- },
- Description: `must be one of ["gainsight-px"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceGainsightPxResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGainsightPx(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_gainsightpx_resource_sdk.go b/internal/provider/source_gainsightpx_resource_sdk.go
old mode 100755
new mode 100644
index f51a933ad..5e21d7c2e
--- a/internal/provider/source_gainsightpx_resource_sdk.go
+++ b/internal/provider/source_gainsightpx_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceGainsightPxResourceModel) ToCreateSDKType() *shared.SourceGainsightPxCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceGainsightPxGainsightPx(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGainsightPx{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_gcs_data_source.go b/internal/provider/source_gcs_data_source.go
old mode 100755
new mode 100644
index d9867bc6d..fe1cb13ed
--- a/internal/provider/source_gcs_data_source.go
+++ b/internal/provider/source_gcs_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceGcsDataSource) Schema(ctx context.Context, req datasource.SchemaR
Computed: true,
Description: `Enter your Google Cloud service account key in JSON format`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gcs",
- ),
- },
- Description: `must be one of ["gcs"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_gcs_data_source_sdk.go b/internal/provider/source_gcs_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_gcs_resource.go b/internal/provider/source_gcs_resource.go
old mode 100755
new mode 100644
index ddfd647d0..03d7a4877
--- a/internal/provider/source_gcs_resource.go
+++ b/internal/provider/source_gcs_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceGcsResource) Schema(ctx context.Context, req resource.SchemaReque
Required: true,
Description: `Enter your Google Cloud service account key in JSON format`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gcs",
- ),
- },
- Description: `must be one of ["gcs"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceGcsResource) Create(ctx context.Context, req resource.CreateReque
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGcs(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_gcs_resource_sdk.go b/internal/provider/source_gcs_resource_sdk.go
old mode 100755
new mode 100644
index 465b221e1..2ce3581fe
--- a/internal/provider/source_gcs_resource_sdk.go
+++ b/internal/provider/source_gcs_resource_sdk.go
@@ -11,12 +11,10 @@ func (r *SourceGcsResourceModel) ToCreateSDKType() *shared.SourceGcsCreateReques
gcsBucket := r.Configuration.GcsBucket.ValueString()
gcsPath := r.Configuration.GcsPath.ValueString()
serviceAccount := r.Configuration.ServiceAccount.ValueString()
- sourceType := shared.SourceGcsGcs(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGcs{
GcsBucket: gcsBucket,
GcsPath: gcsPath,
ServiceAccount: serviceAccount,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_getlago_data_source.go b/internal/provider/source_getlago_data_source.go
old mode 100755
new mode 100644
index 648e64108..ba46d4aff
--- a/internal/provider/source_getlago_data_source.go
+++ b/internal/provider/source_getlago_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceGetlagoDataSource struct {
// SourceGetlagoDataSourceModel describes the data model.
type SourceGetlagoDataSourceModel struct {
- Configuration SourceGetlago `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceGetlagoDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Your API Key. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "getlago",
- ),
- },
- Description: `must be one of ["getlago"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_getlago_data_source_sdk.go b/internal/provider/source_getlago_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_getlago_resource.go b/internal/provider/source_getlago_resource.go
old mode 100755
new mode 100644
index 2d3970378..735b82f05
--- a/internal/provider/source_getlago_resource.go
+++ b/internal/provider/source_getlago_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceGetlagoResource struct {
// SourceGetlagoResourceModel describes the resource data model.
type SourceGetlagoResourceModel struct {
- Configuration SourceGetlago `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceGetlagoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceGetlagoResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Your API Key. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "getlago",
- ),
- },
- Description: `must be one of ["getlago"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceGetlagoResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGetlago(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_getlago_resource_sdk.go b/internal/provider/source_getlago_resource_sdk.go
old mode 100755
new mode 100644
index 39038e575..4ba0c8609
--- a/internal/provider/source_getlago_resource_sdk.go
+++ b/internal/provider/source_getlago_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceGetlagoResourceModel) ToCreateSDKType() *shared.SourceGetlagoCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceGetlagoGetlago(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGetlago{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_github_data_source.go b/internal/provider/source_github_data_source.go
old mode 100755
new mode 100644
index 5f50b7b0a..bf2f258f2
--- a/internal/provider/source_github_data_source.go
+++ b/internal/provider/source_github_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -75,30 +74,12 @@ func (r *SourceGithubDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `OAuth Client secret`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- Description: `must be one of ["OAuth Credentials"]`,
- },
},
Description: `Choose how to authenticate to GitHub`,
},
"source_github_authentication_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- Description: `must be one of ["PAT Credentials"]`,
- },
"personal_access_token": schema.StringAttribute{
Computed: true,
Description: `Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","`,
@@ -121,30 +102,12 @@ func (r *SourceGithubDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `OAuth Client secret`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- Description: `must be one of ["OAuth Credentials"]`,
- },
},
Description: `Choose how to authenticate to GitHub`,
},
"source_github_update_authentication_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- Description: `must be one of ["PAT Credentials"]`,
- },
"personal_access_token": schema.StringAttribute{
Computed: true,
Description: `Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","`,
@@ -166,15 +129,6 @@ func (r *SourceGithubDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The GitHub API allows for a maximum of 5000 requests per hour (15000 for Github Enterprise). You can specify a lower value to limit your use of the API quota.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "github",
- ),
- },
- Description: `must be one of ["github"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_github_data_source_sdk.go b/internal/provider/source_github_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_github_resource.go b/internal/provider/source_github_resource.go
old mode 100755
new mode 100644
index eca9bf75a..5f1d3e70e
--- a/internal/provider/source_github_resource.go
+++ b/internal/provider/source_github_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -77,30 +76,12 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `OAuth Client secret`,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- Description: `must be one of ["OAuth Credentials"]`,
- },
},
Description: `Choose how to authenticate to GitHub`,
},
"source_github_authentication_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- Description: `must be one of ["PAT Credentials"]`,
- },
"personal_access_token": schema.StringAttribute{
Required: true,
Description: `Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","`,
@@ -123,30 +104,12 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `OAuth Client secret`,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- Description: `must be one of ["OAuth Credentials"]`,
- },
},
Description: `Choose how to authenticate to GitHub`,
},
"source_github_update_authentication_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "PAT Credentials",
- ),
- },
- Description: `must be one of ["PAT Credentials"]`,
- },
"personal_access_token": schema.StringAttribute{
Required: true,
Description: `Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","`,
@@ -168,15 +131,6 @@ func (r *SourceGithubResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `The GitHub API allows for a maximum of 5000 requests per hour (15000 for Github Enterprise). You can specify a lower value to limit your use of the API quota.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "github",
- ),
- },
- Description: `must be one of ["github"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -256,7 +210,7 @@ func (r *SourceGithubResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGithub(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_github_resource_sdk.go b/internal/provider/source_github_resource_sdk.go
old mode 100755
new mode 100644
index 1a3e07ee0..08471bdaa
--- a/internal/provider/source_github_resource_sdk.go
+++ b/internal/provider/source_github_resource_sdk.go
@@ -32,17 +32,10 @@ func (r *SourceGithubResourceModel) ToCreateSDKType() *shared.SourceGithubCreate
} else {
clientSecret = nil
}
- optionTitle := new(shared.SourceGithubAuthenticationOAuthOptionTitle)
- if !r.Configuration.Credentials.SourceGithubAuthenticationOAuth.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceGithubAuthenticationOAuth.OptionTitle.IsNull() {
- *optionTitle = shared.SourceGithubAuthenticationOAuthOptionTitle(r.Configuration.Credentials.SourceGithubAuthenticationOAuth.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
sourceGithubAuthenticationOAuth = &shared.SourceGithubAuthenticationOAuth{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
}
}
if sourceGithubAuthenticationOAuth != nil {
@@ -52,15 +45,8 @@ func (r *SourceGithubResourceModel) ToCreateSDKType() *shared.SourceGithubCreate
}
var sourceGithubAuthenticationPersonalAccessToken *shared.SourceGithubAuthenticationPersonalAccessToken
if r.Configuration.Credentials.SourceGithubAuthenticationPersonalAccessToken != nil {
- optionTitle1 := new(shared.SourceGithubAuthenticationPersonalAccessTokenOptionTitle)
- if !r.Configuration.Credentials.SourceGithubAuthenticationPersonalAccessToken.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceGithubAuthenticationPersonalAccessToken.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceGithubAuthenticationPersonalAccessTokenOptionTitle(r.Configuration.Credentials.SourceGithubAuthenticationPersonalAccessToken.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
personalAccessToken := r.Configuration.Credentials.SourceGithubAuthenticationPersonalAccessToken.PersonalAccessToken.ValueString()
sourceGithubAuthenticationPersonalAccessToken = &shared.SourceGithubAuthenticationPersonalAccessToken{
- OptionTitle: optionTitle1,
PersonalAccessToken: personalAccessToken,
}
}
@@ -77,14 +63,12 @@ func (r *SourceGithubResourceModel) ToCreateSDKType() *shared.SourceGithubCreate
} else {
requestsPerHour = nil
}
- sourceType := shared.SourceGithubGithub(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceGithub{
Branch: branch,
Credentials: credentials,
Repository: repository,
RequestsPerHour: requestsPerHour,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -133,17 +117,10 @@ func (r *SourceGithubResourceModel) ToUpdateSDKType() *shared.SourceGithubPutReq
} else {
clientSecret = nil
}
- optionTitle := new(shared.SourceGithubUpdateAuthenticationOAuthOptionTitle)
- if !r.Configuration.Credentials.SourceGithubUpdateAuthenticationOAuth.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceGithubUpdateAuthenticationOAuth.OptionTitle.IsNull() {
- *optionTitle = shared.SourceGithubUpdateAuthenticationOAuthOptionTitle(r.Configuration.Credentials.SourceGithubUpdateAuthenticationOAuth.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
sourceGithubUpdateAuthenticationOAuth = &shared.SourceGithubUpdateAuthenticationOAuth{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
}
}
if sourceGithubUpdateAuthenticationOAuth != nil {
@@ -153,15 +130,8 @@ func (r *SourceGithubResourceModel) ToUpdateSDKType() *shared.SourceGithubPutReq
}
var sourceGithubUpdateAuthenticationPersonalAccessToken *shared.SourceGithubUpdateAuthenticationPersonalAccessToken
if r.Configuration.Credentials.SourceGithubUpdateAuthenticationPersonalAccessToken != nil {
- optionTitle1 := new(shared.SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle)
- if !r.Configuration.Credentials.SourceGithubUpdateAuthenticationPersonalAccessToken.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceGithubUpdateAuthenticationPersonalAccessToken.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle(r.Configuration.Credentials.SourceGithubUpdateAuthenticationPersonalAccessToken.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
personalAccessToken := r.Configuration.Credentials.SourceGithubUpdateAuthenticationPersonalAccessToken.PersonalAccessToken.ValueString()
sourceGithubUpdateAuthenticationPersonalAccessToken = &shared.SourceGithubUpdateAuthenticationPersonalAccessToken{
- OptionTitle: optionTitle1,
PersonalAccessToken: personalAccessToken,
}
}
diff --git a/internal/provider/source_gitlab_data_source.go b/internal/provider/source_gitlab_data_source.go
old mode 100755
new mode 100644
index 1b32d1046..b3c2a6db3
--- a/internal/provider/source_gitlab_data_source.go
+++ b/internal/provider/source_gitlab_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -67,15 +66,6 @@ func (r *SourceGitlabDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API ID of the Gitlab developer application.`,
@@ -104,15 +94,6 @@ func (r *SourceGitlabDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Log into your Gitlab account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_gitlab_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -122,15 +103,6 @@ func (r *SourceGitlabDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API ID of the Gitlab developer application.`,
@@ -159,15 +131,6 @@ func (r *SourceGitlabDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Log into your Gitlab account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
},
@@ -183,15 +146,6 @@ func (r *SourceGitlabDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gitlab",
- ),
- },
- Description: `must be one of ["gitlab"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_gitlab_data_source_sdk.go b/internal/provider/source_gitlab_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_gitlab_resource.go b/internal/provider/source_gitlab_resource.go
old mode 100755
new mode 100644
index d6787758e..5a29cc8fb
--- a/internal/provider/source_gitlab_resource.go
+++ b/internal/provider/source_gitlab_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -69,15 +68,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API ID of the Gitlab developer application.`,
@@ -106,15 +96,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Log into your Gitlab account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_gitlab_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -124,15 +105,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API ID of the Gitlab developer application.`,
@@ -161,15 +133,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Log into your Gitlab account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
},
@@ -185,15 +148,6 @@ func (r *SourceGitlabResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gitlab",
- ),
- },
- Description: `must be one of ["gitlab"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -273,7 +227,7 @@ func (r *SourceGitlabResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGitlab(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_gitlab_resource_sdk.go b/internal/provider/source_gitlab_resource_sdk.go
old mode 100755
new mode 100644
index 52dc916b2..31d99cfff
--- a/internal/provider/source_gitlab_resource_sdk.go
+++ b/internal/provider/source_gitlab_resource_sdk.go
@@ -19,19 +19,12 @@ func (r *SourceGitlabResourceModel) ToCreateSDKType() *shared.SourceGitlabCreate
var sourceGitlabAuthorizationMethodOAuth20 *shared.SourceGitlabAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceGitlabAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceGitlabAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceGitlabAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceGitlabAuthorizationMethodOAuth20 = &shared.SourceGitlabAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -46,15 +39,8 @@ func (r *SourceGitlabResourceModel) ToCreateSDKType() *shared.SourceGitlabCreate
var sourceGitlabAuthorizationMethodPrivateToken *shared.SourceGitlabAuthorizationMethodPrivateToken
if r.Configuration.Credentials.SourceGitlabAuthorizationMethodPrivateToken != nil {
accessToken1 := r.Configuration.Credentials.SourceGitlabAuthorizationMethodPrivateToken.AccessToken.ValueString()
- authType1 := new(shared.SourceGitlabAuthorizationMethodPrivateTokenAuthType)
- if !r.Configuration.Credentials.SourceGitlabAuthorizationMethodPrivateToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGitlabAuthorizationMethodPrivateToken.AuthType.IsNull() {
- *authType1 = shared.SourceGitlabAuthorizationMethodPrivateTokenAuthType(r.Configuration.Credentials.SourceGitlabAuthorizationMethodPrivateToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceGitlabAuthorizationMethodPrivateToken = &shared.SourceGitlabAuthorizationMethodPrivateToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceGitlabAuthorizationMethodPrivateToken != nil {
@@ -74,14 +60,12 @@ func (r *SourceGitlabResourceModel) ToCreateSDKType() *shared.SourceGitlabCreate
} else {
projects = nil
}
- sourceType := shared.SourceGitlabGitlab(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceGitlab{
APIURL: apiURL,
Credentials: credentials,
Groups: groups,
Projects: projects,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -117,19 +101,12 @@ func (r *SourceGitlabResourceModel) ToUpdateSDKType() *shared.SourceGitlabPutReq
var sourceGitlabUpdateAuthorizationMethodOAuth20 *shared.SourceGitlabUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceGitlabUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceGitlabUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceGitlabUpdateAuthorizationMethodOAuth20 = &shared.SourceGitlabUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -144,15 +121,8 @@ func (r *SourceGitlabResourceModel) ToUpdateSDKType() *shared.SourceGitlabPutReq
var sourceGitlabUpdateAuthorizationMethodPrivateToken *shared.SourceGitlabUpdateAuthorizationMethodPrivateToken
if r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodPrivateToken != nil {
accessToken1 := r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodPrivateToken.AccessToken.ValueString()
- authType1 := new(shared.SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType)
- if !r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodPrivateToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodPrivateToken.AuthType.IsNull() {
- *authType1 = shared.SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType(r.Configuration.Credentials.SourceGitlabUpdateAuthorizationMethodPrivateToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceGitlabUpdateAuthorizationMethodPrivateToken = &shared.SourceGitlabUpdateAuthorizationMethodPrivateToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceGitlabUpdateAuthorizationMethodPrivateToken != nil {
diff --git a/internal/provider/source_glassfrog_data_source.go b/internal/provider/source_glassfrog_data_source.go
old mode 100755
new mode 100644
index df08c109c..b5b1fdf24
--- a/internal/provider/source_glassfrog_data_source.go
+++ b/internal/provider/source_glassfrog_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceGlassfrogDataSource struct {
// SourceGlassfrogDataSourceModel describes the data model.
type SourceGlassfrogDataSourceModel struct {
- Configuration SourceGlassfrog `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceGlassfrogDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `API key provided by Glassfrog`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "glassfrog",
- ),
- },
- Description: `must be one of ["glassfrog"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_glassfrog_data_source_sdk.go b/internal/provider/source_glassfrog_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_glassfrog_resource.go b/internal/provider/source_glassfrog_resource.go
old mode 100755
new mode 100644
index c62e6df03..7474a2d97
--- a/internal/provider/source_glassfrog_resource.go
+++ b/internal/provider/source_glassfrog_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceGlassfrogResource struct {
// SourceGlassfrogResourceModel describes the resource data model.
type SourceGlassfrogResourceModel struct {
- Configuration SourceGlassfrog `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceGlassfrogResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceGlassfrogResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `API key provided by Glassfrog`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "glassfrog",
- ),
- },
- Description: `must be one of ["glassfrog"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceGlassfrogResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGlassfrog(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_glassfrog_resource_sdk.go b/internal/provider/source_glassfrog_resource_sdk.go
old mode 100755
new mode 100644
index 1871473d9..d9f10a39b
--- a/internal/provider/source_glassfrog_resource_sdk.go
+++ b/internal/provider/source_glassfrog_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceGlassfrogResourceModel) ToCreateSDKType() *shared.SourceGlassfrogCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceGlassfrogGlassfrog(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGlassfrog{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_gnews_data_source.go b/internal/provider/source_gnews_data_source.go
old mode 100755
new mode 100644
index 7bdfff5b3..a6b82d8e7
--- a/internal/provider/source_gnews_data_source.go
+++ b/internal/provider/source_gnews_data_source.go
@@ -169,15 +169,6 @@ func (r *SourceGnewsDataSource) Schema(ctx context.Context, req datasource.Schem
` - publishedAt = sort by publication date, the articles with the most recent publication date are returned first` + "\n" +
` - relevance = sort by best match to keywords, the articles with the best match are returned first`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gnews",
- ),
- },
- Description: `must be one of ["gnews"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)`,
diff --git a/internal/provider/source_gnews_data_source_sdk.go b/internal/provider/source_gnews_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_gnews_resource.go b/internal/provider/source_gnews_resource.go
old mode 100755
new mode 100644
index 14150d08f..64cce6f91
--- a/internal/provider/source_gnews_resource.go
+++ b/internal/provider/source_gnews_resource.go
@@ -171,15 +171,6 @@ func (r *SourceGnewsResource) Schema(ctx context.Context, req resource.SchemaReq
` - publishedAt = sort by publication date, the articles with the most recent publication date are returned first` + "\n" +
` - relevance = sort by best match to keywords, the articles with the best match are returned first`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gnews",
- ),
- },
- Description: `must be one of ["gnews"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Description: `This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)`,
@@ -291,7 +282,7 @@ func (r *SourceGnewsResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGnews(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_gnews_resource_sdk.go b/internal/provider/source_gnews_resource_sdk.go
old mode 100755
new mode 100644
index 9d2254134..d835e1d93
--- a/internal/provider/source_gnews_resource_sdk.go
+++ b/internal/provider/source_gnews_resource_sdk.go
@@ -42,7 +42,6 @@ func (r *SourceGnewsResourceModel) ToCreateSDKType() *shared.SourceGnewsCreateRe
} else {
sortby = nil
}
- sourceType := shared.SourceGnewsGnews(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -70,7 +69,6 @@ func (r *SourceGnewsResourceModel) ToCreateSDKType() *shared.SourceGnewsCreateRe
Nullable: nullable,
Query: query,
Sortby: sortby,
- SourceType: sourceType,
StartDate: startDate,
TopHeadlinesQuery: topHeadlinesQuery,
TopHeadlinesTopic: topHeadlinesTopic,
diff --git a/internal/provider/source_googleads_data_source.go b/internal/provider/source_googleads_data_source.go
old mode 100755
new mode 100644
index db2bb51ab..d2c1dd397
--- a/internal/provider/source_googleads_data_source.go
+++ b/internal/provider/source_googleads_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -112,15 +111,6 @@ func (r *SourceGoogleAdsDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `If your access to the customer account is through a manager account, this field is required, and must be set to the 10-digit customer ID of the manager account. For more information about this field, refer to Google's documentation.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-ads",
- ),
- },
- Description: `must be one of ["google-ads"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_googleads_data_source_sdk.go b/internal/provider/source_googleads_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googleads_resource.go b/internal/provider/source_googleads_resource.go
old mode 100755
new mode 100644
index 03201a523..80154883e
--- a/internal/provider/source_googleads_resource.go
+++ b/internal/provider/source_googleads_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -114,15 +113,6 @@ func (r *SourceGoogleAdsResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `If your access to the customer account is through a manager account, this field is required, and must be set to the 10-digit customer ID of the manager account. For more information about this field, refer to Google's documentation.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-ads",
- ),
- },
- Description: `must be one of ["google-ads"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -202,7 +192,7 @@ func (r *SourceGoogleAdsResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleAds(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googleads_resource_sdk.go b/internal/provider/source_googleads_resource_sdk.go
old mode 100755
new mode 100644
index 1e5453a54..824599e6f
--- a/internal/provider/source_googleads_resource_sdk.go
+++ b/internal/provider/source_googleads_resource_sdk.go
@@ -54,7 +54,6 @@ func (r *SourceGoogleAdsResourceModel) ToCreateSDKType() *shared.SourceGoogleAds
} else {
loginCustomerID = nil
}
- sourceType := shared.SourceGoogleAdsGoogleAds(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -68,7 +67,6 @@ func (r *SourceGoogleAdsResourceModel) ToCreateSDKType() *shared.SourceGoogleAds
CustomerID: customerID,
EndDate: endDate,
LoginCustomerID: loginCustomerID,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_googleanalyticsdataapi_data_source.go b/internal/provider/source_googleanalyticsdataapi_data_source.go
old mode 100755
new mode 100644
index 3de45f0c0..cadf0d281
--- a/internal/provider/source_googleanalyticsdataapi_data_source.go
+++ b/internal/provider/source_googleanalyticsdataapi_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceGoogleAnalyticsDataAPIDataSource) Schema(ctx context.Context, req
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -90,15 +80,6 @@ func (r *SourceGoogleAnalyticsDataAPIDataSource) Schema(ctx context.Context, req
"source_google_analytics_data_api_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Computed: true,
Description: `The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.`,
@@ -113,15 +94,6 @@ func (r *SourceGoogleAnalyticsDataAPIDataSource) Schema(ctx context.Context, req
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -140,15 +112,6 @@ func (r *SourceGoogleAnalyticsDataAPIDataSource) Schema(ctx context.Context, req
"source_google_analytics_data_api_update_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Computed: true,
Description: `The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.`,
@@ -177,15 +140,6 @@ func (r *SourceGoogleAnalyticsDataAPIDataSource) Schema(ctx context.Context, req
Computed: true,
Description: `The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-analytics-data-api",
- ),
- },
- Description: `must be one of ["google-analytics-data-api"]`,
- },
"window_in_days": schema.Int64Attribute{
Computed: true,
Description: `The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation.`,
diff --git a/internal/provider/source_googleanalyticsdataapi_data_source_sdk.go b/internal/provider/source_googleanalyticsdataapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googleanalyticsdataapi_resource.go b/internal/provider/source_googleanalyticsdataapi_resource.go
old mode 100755
new mode 100644
index 3359ef86d..31a31d13f
--- a/internal/provider/source_googleanalyticsdataapi_resource.go
+++ b/internal/provider/source_googleanalyticsdataapi_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -92,15 +82,6 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r
"source_google_analytics_data_api_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Required: true,
Description: `The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.`,
@@ -115,15 +96,6 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -142,15 +114,6 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r
"source_google_analytics_data_api_update_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Required: true,
Description: `The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.`,
@@ -179,15 +142,6 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Schema(ctx context.Context, req r
Required: true,
Description: `The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-analytics-data-api",
- ),
- },
- Description: `must be one of ["google-analytics-data-api"]`,
- },
"window_in_days": schema.Int64Attribute{
Optional: true,
Description: `The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation.`,
@@ -264,7 +218,7 @@ func (r *SourceGoogleAnalyticsDataAPIResource) Create(ctx context.Context, req r
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleAnalyticsDataAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go
old mode 100755
new mode 100644
index ab4f95893..2ead79cdf
--- a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go
+++ b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go
@@ -19,18 +19,11 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So
} else {
accessToken = nil
}
- authType := new(shared.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.AuthType.IsNull() {
- *authType = shared.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth.RefreshToken.ValueString()
sourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth = &shared.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -43,15 +36,8 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So
}
var sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication != nil {
- authType1 := new(shared.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication.AuthType.IsNull() {
- *authType1 = shared.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
credentialsJSON := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication.CredentialsJSON.ValueString()
sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication{
- AuthType: authType1,
CredentialsJSON: credentialsJSON,
}
}
@@ -69,7 +55,6 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So
}
dateRangesStartDate := customTypes.MustDateFromString(r.Configuration.DateRangesStartDate.ValueString())
propertyID := r.Configuration.PropertyID.ValueString()
- sourceType := shared.SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI(r.Configuration.SourceType.ValueString())
windowInDays := new(int64)
if !r.Configuration.WindowInDays.IsUnknown() && !r.Configuration.WindowInDays.IsNull() {
*windowInDays = r.Configuration.WindowInDays.ValueInt64()
@@ -81,7 +66,6 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So
CustomReports: customReports,
DateRangesStartDate: dateRangesStartDate,
PropertyID: propertyID,
- SourceType: sourceType,
WindowInDays: windowInDays,
}
name := r.Name.ValueString()
@@ -117,18 +101,11 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToUpdateSDKType() *shared.So
} else {
accessToken = nil
}
- authType := new(shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.AuthType.IsNull() {
- *authType = shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth.RefreshToken.ValueString()
sourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth = &shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -141,15 +118,8 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToUpdateSDKType() *shared.So
}
var sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication != nil {
- authType1 := new(shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication.AuthType.IsNull() {
- *authType1 = shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
credentialsJSON := r.Configuration.Credentials.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication.CredentialsJSON.ValueString()
sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication{
- AuthType: authType1,
CredentialsJSON: credentialsJSON,
}
}
diff --git a/internal/provider/source_googleanalyticsv4_data_source.go b/internal/provider/source_googleanalyticsv4_data_source.go
old mode 100755
new mode 100644
index 0c232d992..a6ea90ff5
--- a/internal/provider/source_googleanalyticsv4_data_source.go
+++ b/internal/provider/source_googleanalyticsv4_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceGoogleAnalyticsV4DataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -90,15 +80,6 @@ func (r *SourceGoogleAnalyticsV4DataSource) Schema(ctx context.Context, req data
"source_google_analytics_v4_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Computed: true,
Description: `The JSON key of the service account to use for authorization`,
@@ -113,15 +94,6 @@ func (r *SourceGoogleAnalyticsV4DataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -140,15 +112,6 @@ func (r *SourceGoogleAnalyticsV4DataSource) Schema(ctx context.Context, req data
"source_google_analytics_v4_update_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Computed: true,
Description: `The JSON key of the service account to use for authorization`,
@@ -166,15 +129,6 @@ func (r *SourceGoogleAnalyticsV4DataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-analytics-v4",
- ),
- },
- Description: `must be one of ["google-analytics-v4"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_googleanalyticsv4_data_source_sdk.go b/internal/provider/source_googleanalyticsv4_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googleanalyticsv4_resource.go b/internal/provider/source_googleanalyticsv4_resource.go
old mode 100755
new mode 100644
index d5652470e..094b740b0
--- a/internal/provider/source_googleanalyticsv4_resource.go
+++ b/internal/provider/source_googleanalyticsv4_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceGoogleAnalyticsV4Resource) Schema(ctx context.Context, req resour
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -92,15 +82,6 @@ func (r *SourceGoogleAnalyticsV4Resource) Schema(ctx context.Context, req resour
"source_google_analytics_v4_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Required: true,
Description: `The JSON key of the service account to use for authorization`,
@@ -115,15 +96,6 @@ func (r *SourceGoogleAnalyticsV4Resource) Schema(ctx context.Context, req resour
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Google Analytics developer application.`,
@@ -142,15 +114,6 @@ func (r *SourceGoogleAnalyticsV4Resource) Schema(ctx context.Context, req resour
"source_google_analytics_v4_update_credentials_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"credentials_json": schema.StringAttribute{
Required: true,
Description: `The JSON key of the service account to use for authorization`,
@@ -168,15 +131,6 @@ func (r *SourceGoogleAnalyticsV4Resource) Schema(ctx context.Context, req resour
Optional: true,
Description: `A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-analytics-v4",
- ),
- },
- Description: `must be one of ["google-analytics-v4"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -264,7 +218,7 @@ func (r *SourceGoogleAnalyticsV4Resource) Create(ctx context.Context, req resour
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleAnalyticsV4(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googleanalyticsv4_resource_sdk.go b/internal/provider/source_googleanalyticsv4_resource_sdk.go
old mode 100755
new mode 100644
index 0b4bd4e81..eed6d6508
--- a/internal/provider/source_googleanalyticsv4_resource_sdk.go
+++ b/internal/provider/source_googleanalyticsv4_resource_sdk.go
@@ -19,18 +19,11 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG
} else {
accessToken = nil
}
- authType := new(shared.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.AuthType.IsNull() {
- *authType = shared.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth.RefreshToken.ValueString()
sourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth = &shared.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -43,15 +36,8 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG
}
var sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication != nil {
- authType1 := new(shared.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication.AuthType.IsNull() {
- *authType1 = shared.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
credentialsJSON := r.Configuration.Credentials.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication.CredentialsJSON.ValueString()
sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication{
- AuthType: authType1,
CredentialsJSON: credentialsJSON,
}
}
@@ -67,7 +53,6 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG
} else {
customReports = nil
}
- sourceType := shared.SourceGoogleAnalyticsV4GoogleAnalyticsV4(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
viewID := r.Configuration.ViewID.ValueString()
windowInDays := new(int64)
@@ -79,7 +64,6 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG
configuration := shared.SourceGoogleAnalyticsV4{
Credentials: credentials,
CustomReports: customReports,
- SourceType: sourceType,
StartDate: startDate,
ViewID: viewID,
WindowInDays: windowInDays,
@@ -117,18 +101,11 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToUpdateSDKType() *shared.SourceG
} else {
accessToken = nil
}
- authType := new(shared.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.AuthType.IsNull() {
- *authType = shared.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth.RefreshToken.ValueString()
sourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth = &shared.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -141,15 +118,8 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToUpdateSDKType() *shared.SourceG
}
var sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication != nil {
- authType1 := new(shared.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthType)
- if !r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication.AuthType.IsNull() {
- *authType1 = shared.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication.AuthType.ValueString())
- } else {
- authType1 = nil
- }
credentialsJSON := r.Configuration.Credentials.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication.CredentialsJSON.ValueString()
sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication = &shared.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication{
- AuthType: authType1,
CredentialsJSON: credentialsJSON,
}
}
diff --git a/internal/provider/source_googledirectory_data_source.go b/internal/provider/source_googledirectory_data_source.go
old mode 100755
new mode 100644
index cb0bb4afd..c7633f269
--- a/internal/provider/source_googledirectory_data_source.go
+++ b/internal/provider/source_googledirectory_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,16 +62,6 @@ func (r *SourceGoogleDirectoryDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The contents of the JSON service account key. See the docs for more information on how to generate this key.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service accounts",
- ),
- },
- MarkdownDescription: `must be one of ["Service accounts"]` + "\n" +
- `Authentication Scenario`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The email of the user, which has permissions to access the Google Workspace Admin APIs.`,
@@ -91,16 +80,6 @@ func (r *SourceGoogleDirectoryDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Client Secret of the developer application.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Web server app",
- ),
- },
- MarkdownDescription: `must be one of ["Web server app"]` + "\n" +
- `Authentication Scenario`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `The Token for obtaining a new access token.`,
@@ -115,16 +94,6 @@ func (r *SourceGoogleDirectoryDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The contents of the JSON service account key. See the docs for more information on how to generate this key.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service accounts",
- ),
- },
- MarkdownDescription: `must be one of ["Service accounts"]` + "\n" +
- `Authentication Scenario`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The email of the user, which has permissions to access the Google Workspace Admin APIs.`,
@@ -143,16 +112,6 @@ func (r *SourceGoogleDirectoryDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Client Secret of the developer application.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Web server app",
- ),
- },
- MarkdownDescription: `must be one of ["Web server app"]` + "\n" +
- `Authentication Scenario`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `The Token for obtaining a new access token.`,
@@ -166,15 +125,6 @@ func (r *SourceGoogleDirectoryDataSource) Schema(ctx context.Context, req dataso
},
Description: `Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-directory",
- ),
- },
- Description: `must be one of ["google-directory"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_googledirectory_data_source_sdk.go b/internal/provider/source_googledirectory_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googledirectory_resource.go b/internal/provider/source_googledirectory_resource.go
old mode 100755
new mode 100644
index 4ce8d1962..0cc679709
--- a/internal/provider/source_googledirectory_resource.go
+++ b/internal/provider/source_googledirectory_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,16 +64,6 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The contents of the JSON service account key. See the docs for more information on how to generate this key.`,
},
- "credentials_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service accounts",
- ),
- },
- MarkdownDescription: `must be one of ["Service accounts"]` + "\n" +
- `Authentication Scenario`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The email of the user, which has permissions to access the Google Workspace Admin APIs.`,
@@ -93,16 +82,6 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Client Secret of the developer application.`,
},
- "credentials_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Web server app",
- ),
- },
- MarkdownDescription: `must be one of ["Web server app"]` + "\n" +
- `Authentication Scenario`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
Description: `The Token for obtaining a new access token.`,
@@ -117,16 +96,6 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The contents of the JSON service account key. See the docs for more information on how to generate this key.`,
},
- "credentials_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service accounts",
- ),
- },
- MarkdownDescription: `must be one of ["Service accounts"]` + "\n" +
- `Authentication Scenario`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The email of the user, which has permissions to access the Google Workspace Admin APIs.`,
@@ -145,16 +114,6 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Client Secret of the developer application.`,
},
- "credentials_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Web server app",
- ),
- },
- MarkdownDescription: `must be one of ["Web server app"]` + "\n" +
- `Authentication Scenario`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
Description: `The Token for obtaining a new access token.`,
@@ -168,15 +127,6 @@ func (r *SourceGoogleDirectoryResource) Schema(ctx context.Context, req resource
},
Description: `Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-directory",
- ),
- },
- Description: `must be one of ["google-directory"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -249,7 +199,7 @@ func (r *SourceGoogleDirectoryResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleDirectory(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googledirectory_resource_sdk.go b/internal/provider/source_googledirectory_resource_sdk.go
old mode 100755
new mode 100644
index 5ad80051a..fff76bf27
--- a/internal/provider/source_googledirectory_resource_sdk.go
+++ b/internal/provider/source_googledirectory_resource_sdk.go
@@ -14,18 +14,11 @@ func (r *SourceGoogleDirectoryResourceModel) ToCreateSDKType() *shared.SourceGoo
if r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth != nil {
clientID := r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.ClientSecret.ValueString()
- credentialsTitle := new(shared.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle)
- if !r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.IsUnknown() && !r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.IsNull() {
- *credentialsTitle = shared.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle(r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.ValueString())
- } else {
- credentialsTitle = nil
- }
refreshToken := r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth.RefreshToken.ValueString()
sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth = &shared.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth{
- ClientID: clientID,
- ClientSecret: clientSecret,
- CredentialsTitle: credentialsTitle,
- RefreshToken: refreshToken,
+ ClientID: clientID,
+ ClientSecret: clientSecret,
+ RefreshToken: refreshToken,
}
}
if sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth != nil {
@@ -36,17 +29,10 @@ func (r *SourceGoogleDirectoryResourceModel) ToCreateSDKType() *shared.SourceGoo
var sourceGoogleDirectoryGoogleCredentialsServiceAccountKey *shared.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey
if r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey != nil {
credentialsJSON := r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey.CredentialsJSON.ValueString()
- credentialsTitle1 := new(shared.SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitle)
- if !r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey.CredentialsTitle.IsUnknown() && !r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey.CredentialsTitle.IsNull() {
- *credentialsTitle1 = shared.SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitle(r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey.CredentialsTitle.ValueString())
- } else {
- credentialsTitle1 = nil
- }
email := r.Configuration.Credentials.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey.Email.ValueString()
sourceGoogleDirectoryGoogleCredentialsServiceAccountKey = &shared.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey{
- CredentialsJSON: credentialsJSON,
- CredentialsTitle: credentialsTitle1,
- Email: email,
+ CredentialsJSON: credentialsJSON,
+ Email: email,
}
}
if sourceGoogleDirectoryGoogleCredentialsServiceAccountKey != nil {
@@ -55,10 +41,8 @@ func (r *SourceGoogleDirectoryResourceModel) ToCreateSDKType() *shared.SourceGoo
}
}
}
- sourceType := shared.SourceGoogleDirectoryGoogleDirectory(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGoogleDirectory{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -89,18 +73,11 @@ func (r *SourceGoogleDirectoryResourceModel) ToUpdateSDKType() *shared.SourceGoo
if r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth != nil {
clientID := r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.ClientSecret.ValueString()
- credentialsTitle := new(shared.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle)
- if !r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.IsUnknown() && !r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.IsNull() {
- *credentialsTitle = shared.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle(r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.CredentialsTitle.ValueString())
- } else {
- credentialsTitle = nil
- }
refreshToken := r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth.RefreshToken.ValueString()
sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth = &shared.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth{
- ClientID: clientID,
- ClientSecret: clientSecret,
- CredentialsTitle: credentialsTitle,
- RefreshToken: refreshToken,
+ ClientID: clientID,
+ ClientSecret: clientSecret,
+ RefreshToken: refreshToken,
}
}
if sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth != nil {
@@ -111,17 +88,10 @@ func (r *SourceGoogleDirectoryResourceModel) ToUpdateSDKType() *shared.SourceGoo
var sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey *shared.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey
if r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey != nil {
credentialsJSON := r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey.CredentialsJSON.ValueString()
- credentialsTitle1 := new(shared.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitle)
- if !r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey.CredentialsTitle.IsUnknown() && !r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey.CredentialsTitle.IsNull() {
- *credentialsTitle1 = shared.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitle(r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey.CredentialsTitle.ValueString())
- } else {
- credentialsTitle1 = nil
- }
email := r.Configuration.Credentials.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey.Email.ValueString()
sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey = &shared.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey{
- CredentialsJSON: credentialsJSON,
- CredentialsTitle: credentialsTitle1,
- Email: email,
+ CredentialsJSON: credentialsJSON,
+ Email: email,
}
}
if sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey != nil {
diff --git a/internal/provider/source_googlepagespeedinsights_data_source.go b/internal/provider/source_googlepagespeedinsights_data_source.go
old mode 100755
new mode 100644
index 72a3406ee..e9616d8b7
--- a/internal/provider/source_googlepagespeedinsights_data_source.go
+++ b/internal/provider/source_googlepagespeedinsights_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *SourceGooglePagespeedInsightsDataSource) Schema(ctx context.Context, re
ElementType: types.StringType,
Description: `Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo".`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-pagespeed-insights",
- ),
- },
- Description: `must be one of ["google-pagespeed-insights"]`,
- },
"strategies": schema.ListAttribute{
Computed: true,
ElementType: types.StringType,
diff --git a/internal/provider/source_googlepagespeedinsights_data_source_sdk.go b/internal/provider/source_googlepagespeedinsights_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googlepagespeedinsights_resource.go b/internal/provider/source_googlepagespeedinsights_resource.go
old mode 100755
new mode 100644
index 7f59ac721..095fbf93b
--- a/internal/provider/source_googlepagespeedinsights_resource.go
+++ b/internal/provider/source_googlepagespeedinsights_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -63,15 +61,6 @@ func (r *SourceGooglePagespeedInsightsResource) Schema(ctx context.Context, req
ElementType: types.StringType,
Description: `Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo".`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-pagespeed-insights",
- ),
- },
- Description: `must be one of ["google-pagespeed-insights"]`,
- },
"strategies": schema.ListAttribute{
Required: true,
ElementType: types.StringType,
@@ -154,7 +143,7 @@ func (r *SourceGooglePagespeedInsightsResource) Create(ctx context.Context, req
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGooglePagespeedInsights(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googlepagespeedinsights_resource_sdk.go b/internal/provider/source_googlepagespeedinsights_resource_sdk.go
old mode 100755
new mode 100644
index c1cc06ddb..a25c064a5
--- a/internal/provider/source_googlepagespeedinsights_resource_sdk.go
+++ b/internal/provider/source_googlepagespeedinsights_resource_sdk.go
@@ -18,7 +18,6 @@ func (r *SourceGooglePagespeedInsightsResourceModel) ToCreateSDKType() *shared.S
for _, categoriesItem := range r.Configuration.Categories {
categories = append(categories, shared.SourceGooglePagespeedInsightsCategories(categoriesItem.ValueString()))
}
- sourceType := shared.SourceGooglePagespeedInsightsGooglePagespeedInsights(r.Configuration.SourceType.ValueString())
var strategies []shared.SourceGooglePagespeedInsightsStrategies = nil
for _, strategiesItem := range r.Configuration.Strategies {
strategies = append(strategies, shared.SourceGooglePagespeedInsightsStrategies(strategiesItem.ValueString()))
@@ -30,7 +29,6 @@ func (r *SourceGooglePagespeedInsightsResourceModel) ToCreateSDKType() *shared.S
configuration := shared.SourceGooglePagespeedInsights{
APIKey: apiKey,
Categories: categories,
- SourceType: sourceType,
Strategies: strategies,
Urls: urls,
}
diff --git a/internal/provider/source_googlesearchconsole_data_source.go b/internal/provider/source_googlesearchconsole_data_source.go
old mode 100755
new mode 100644
index 22daef8b9..10ef87419
--- a/internal/provider/source_googlesearchconsole_data_source.go
+++ b/internal/provider/source_googlesearchconsole_data_source.go
@@ -63,15 +63,6 @@ func (r *SourceGoogleSearchConsoleDataSource) Schema(ctx context.Context, req da
Computed: true,
Description: `Access token for making authenticated requests. Read more here.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of your Google Search Console developer application. Read more here.`,
@@ -89,15 +80,6 @@ func (r *SourceGoogleSearchConsoleDataSource) Schema(ctx context.Context, req da
"source_google_search_console_authentication_type_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The email of the user which has permissions to access the Google Workspace Admin APIs.`,
@@ -115,15 +97,6 @@ func (r *SourceGoogleSearchConsoleDataSource) Schema(ctx context.Context, req da
Computed: true,
Description: `Access token for making authenticated requests. Read more here.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of your Google Search Console developer application. Read more here.`,
@@ -141,15 +114,6 @@ func (r *SourceGoogleSearchConsoleDataSource) Schema(ctx context.Context, req da
"source_google_search_console_update_authentication_type_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The email of the user which has permissions to access the Google Workspace Admin APIs.`,
@@ -209,15 +173,6 @@ func (r *SourceGoogleSearchConsoleDataSource) Schema(ctx context.Context, req da
ElementType: types.StringType,
Description: `The URLs of the website property attached to your GSC account. Learn more about properties here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-search-console",
- ),
- },
- Description: `must be one of ["google-search-console"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_googlesearchconsole_data_source_sdk.go b/internal/provider/source_googlesearchconsole_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googlesearchconsole_resource.go b/internal/provider/source_googlesearchconsole_resource.go
old mode 100755
new mode 100644
index 9152d546a..9b020d6be
--- a/internal/provider/source_googlesearchconsole_resource.go
+++ b/internal/provider/source_googlesearchconsole_resource.go
@@ -65,15 +65,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso
Optional: true,
Description: `Access token for making authenticated requests. Read more here.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of your Google Search Console developer application. Read more here.`,
@@ -91,15 +82,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso
"source_google_search_console_authentication_type_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The email of the user which has permissions to access the Google Workspace Admin APIs.`,
@@ -117,15 +99,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso
Optional: true,
Description: `Access token for making authenticated requests. Read more here.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of your Google Search Console developer application. Read more here.`,
@@ -143,15 +116,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso
"source_google_search_console_update_authentication_type_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The email of the user which has permissions to access the Google Workspace Admin APIs.`,
@@ -211,15 +175,6 @@ func (r *SourceGoogleSearchConsoleResource) Schema(ctx context.Context, req reso
ElementType: types.StringType,
Description: `The URLs of the website property attached to your GSC account. Learn more about properties here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-search-console",
- ),
- },
- Description: `must be one of ["google-search-console"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -299,7 +254,7 @@ func (r *SourceGoogleSearchConsoleResource) Create(ctx context.Context, req reso
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleSearchConsole(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googlesearchconsole_resource_sdk.go b/internal/provider/source_googlesearchconsole_resource_sdk.go
old mode 100755
new mode 100644
index 3aa2b46fb..81013d631
--- a/internal/provider/source_googlesearchconsole_resource_sdk.go
+++ b/internal/provider/source_googlesearchconsole_resource_sdk.go
@@ -18,13 +18,11 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc
} else {
accessToken = nil
}
- authType := shared.SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType(r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeOAuth.AuthType.ValueString())
clientID := r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeOAuth.RefreshToken.ValueString()
sourceGoogleSearchConsoleAuthenticationTypeOAuth = &shared.SourceGoogleSearchConsoleAuthenticationTypeOAuth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -37,11 +35,9 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc
}
var sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication *shared.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication
if r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication != nil {
- authType1 := shared.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticationAuthType(r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication.AuthType.ValueString())
email := r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication.Email.ValueString()
serviceAccountInfo := r.Configuration.Authorization.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication.ServiceAccountInfo.ValueString()
sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication = &shared.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication{
- AuthType: authType1,
Email: email,
ServiceAccountInfo: serviceAccountInfo,
}
@@ -85,7 +81,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc
for _, siteUrlsItem := range r.Configuration.SiteUrls {
siteUrls = append(siteUrls, siteUrlsItem.ValueString())
}
- sourceType := shared.SourceGoogleSearchConsoleGoogleSearchConsole(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -99,7 +94,6 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc
DataState: dataState,
EndDate: endDate,
SiteUrls: siteUrls,
- SourceType: sourceType,
StartDate: startDate,
}
name1 := r.Name.ValueString()
@@ -134,13 +128,11 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToUpdateSDKType() *shared.Sourc
} else {
accessToken = nil
}
- authType := shared.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType(r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth.AuthType.ValueString())
clientID := r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth.RefreshToken.ValueString()
sourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth = &shared.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -153,11 +145,9 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToUpdateSDKType() *shared.Sourc
}
var sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication *shared.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication
if r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication != nil {
- authType1 := shared.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthenticationAuthType(r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication.AuthType.ValueString())
email := r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication.Email.ValueString()
serviceAccountInfo := r.Configuration.Authorization.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication.ServiceAccountInfo.ValueString()
sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication = &shared.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication{
- AuthType: authType1,
Email: email,
ServiceAccountInfo: serviceAccountInfo,
}
diff --git a/internal/provider/source_googlesheets_data_source.go b/internal/provider/source_googlesheets_data_source.go
old mode 100755
new mode 100644
index 0c561e58a..869a0eed8
--- a/internal/provider/source_googlesheets_data_source.go
+++ b/internal/provider/source_googlesheets_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -59,15 +58,6 @@ func (r *SourceGoogleSheetsDataSource) Schema(ctx context.Context, req datasourc
"source_google_sheets_authentication_authenticate_via_google_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Enter your Google application's Client ID. See Google's documentation for more information.`,
@@ -86,15 +76,6 @@ func (r *SourceGoogleSheetsDataSource) Schema(ctx context.Context, req datasourc
"source_google_sheets_authentication_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"service_account_info": schema.StringAttribute{
Computed: true,
Description: `The JSON key of the service account to use for authorization. Read more here.`,
@@ -105,15 +86,6 @@ func (r *SourceGoogleSheetsDataSource) Schema(ctx context.Context, req datasourc
"source_google_sheets_update_authentication_authenticate_via_google_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Enter your Google application's Client ID. See Google's documentation for more information.`,
@@ -132,15 +104,6 @@ func (r *SourceGoogleSheetsDataSource) Schema(ctx context.Context, req datasourc
"source_google_sheets_update_authentication_service_account_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"service_account_info": schema.StringAttribute{
Computed: true,
Description: `The JSON key of the service account to use for authorization. Read more here.`,
@@ -158,15 +121,6 @@ func (r *SourceGoogleSheetsDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-sheets",
- ),
- },
- Description: `must be one of ["google-sheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Computed: true,
Description: `Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.`,
diff --git a/internal/provider/source_googlesheets_data_source_sdk.go b/internal/provider/source_googlesheets_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googlesheets_resource.go b/internal/provider/source_googlesheets_resource.go
old mode 100755
new mode 100644
index 11413f548..1bfbe5de0
--- a/internal/provider/source_googlesheets_resource.go
+++ b/internal/provider/source_googlesheets_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,15 +60,6 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc
"source_google_sheets_authentication_authenticate_via_google_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Enter your Google application's Client ID. See Google's documentation for more information.`,
@@ -88,15 +78,6 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc
"source_google_sheets_authentication_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"service_account_info": schema.StringAttribute{
Required: true,
Description: `The JSON key of the service account to use for authorization. Read more here.`,
@@ -107,15 +88,6 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc
"source_google_sheets_update_authentication_authenticate_via_google_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Enter your Google application's Client ID. See Google's documentation for more information.`,
@@ -134,15 +106,6 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc
"source_google_sheets_update_authentication_service_account_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service",
- ),
- },
- Description: `must be one of ["Service"]`,
- },
"service_account_info": schema.StringAttribute{
Required: true,
Description: `The JSON key of the service account to use for authorization. Read more here.`,
@@ -160,15 +123,6 @@ func (r *SourceGoogleSheetsResource) Schema(ctx context.Context, req resource.Sc
Optional: true,
Description: `Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-sheets",
- ),
- },
- Description: `must be one of ["google-sheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Required: true,
Description: `Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.`,
@@ -245,7 +199,7 @@ func (r *SourceGoogleSheetsResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleSheets(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googlesheets_resource_sdk.go b/internal/provider/source_googlesheets_resource_sdk.go
old mode 100755
new mode 100644
index d217bd4dc..7b18867d2
--- a/internal/provider/source_googlesheets_resource_sdk.go
+++ b/internal/provider/source_googlesheets_resource_sdk.go
@@ -11,12 +11,10 @@ func (r *SourceGoogleSheetsResourceModel) ToCreateSDKType() *shared.SourceGoogle
var credentials shared.SourceGoogleSheetsAuthentication
var sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth *shared.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth
if r.Configuration.Credentials.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth != nil {
- authType := shared.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType(r.Configuration.Credentials.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth.RefreshToken.ValueString()
sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth = &shared.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -29,10 +27,8 @@ func (r *SourceGoogleSheetsResourceModel) ToCreateSDKType() *shared.SourceGoogle
}
var sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication *shared.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication != nil {
- authType1 := shared.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication.AuthType.ValueString())
serviceAccountInfo := r.Configuration.Credentials.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication.ServiceAccountInfo.ValueString()
sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication = &shared.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication{
- AuthType: authType1,
ServiceAccountInfo: serviceAccountInfo,
}
}
@@ -47,12 +43,10 @@ func (r *SourceGoogleSheetsResourceModel) ToCreateSDKType() *shared.SourceGoogle
} else {
namesConversion = nil
}
- sourceType := shared.SourceGoogleSheetsGoogleSheets(r.Configuration.SourceType.ValueString())
spreadsheetID := r.Configuration.SpreadsheetID.ValueString()
configuration := shared.SourceGoogleSheets{
Credentials: credentials,
NamesConversion: namesConversion,
- SourceType: sourceType,
SpreadsheetID: spreadsheetID,
}
name := r.Name.ValueString()
@@ -81,12 +75,10 @@ func (r *SourceGoogleSheetsResourceModel) ToUpdateSDKType() *shared.SourceGoogle
var credentials shared.SourceGoogleSheetsUpdateAuthentication
var sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth *shared.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth
if r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth != nil {
- authType := shared.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthType(r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth.RefreshToken.ValueString()
sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth = &shared.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -99,10 +91,8 @@ func (r *SourceGoogleSheetsResourceModel) ToUpdateSDKType() *shared.SourceGoogle
}
var sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication *shared.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication
if r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication != nil {
- authType1 := shared.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAuthType(r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication.AuthType.ValueString())
serviceAccountInfo := r.Configuration.Credentials.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication.ServiceAccountInfo.ValueString()
sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication = &shared.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication{
- AuthType: authType1,
ServiceAccountInfo: serviceAccountInfo,
}
}
diff --git a/internal/provider/source_googlewebfonts_data_source.go b/internal/provider/source_googlewebfonts_data_source.go
old mode 100755
new mode 100644
index d1e5544f8..2f20e215d
--- a/internal/provider/source_googlewebfonts_data_source.go
+++ b/internal/provider/source_googlewebfonts_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceGoogleWebfontsDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Optional, to find how to sort`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-webfonts",
- ),
- },
- Description: `must be one of ["google-webfonts"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_googlewebfonts_data_source_sdk.go b/internal/provider/source_googlewebfonts_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googlewebfonts_resource.go b/internal/provider/source_googlewebfonts_resource.go
old mode 100755
new mode 100644
index a3193d208..e520851c4
--- a/internal/provider/source_googlewebfonts_resource.go
+++ b/internal/provider/source_googlewebfonts_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceGoogleWebfontsResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `Optional, to find how to sort`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-webfonts",
- ),
- },
- Description: `must be one of ["google-webfonts"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -151,7 +140,7 @@ func (r *SourceGoogleWebfontsResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleWebfonts(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googlewebfonts_resource_sdk.go b/internal/provider/source_googlewebfonts_resource_sdk.go
old mode 100755
new mode 100644
index 173025433..1fc9fa335
--- a/internal/provider/source_googlewebfonts_resource_sdk.go
+++ b/internal/provider/source_googlewebfonts_resource_sdk.go
@@ -27,13 +27,11 @@ func (r *SourceGoogleWebfontsResourceModel) ToCreateSDKType() *shared.SourceGoog
} else {
sort = nil
}
- sourceType := shared.SourceGoogleWebfontsGoogleWebfonts(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGoogleWebfonts{
Alt: alt,
APIKey: apiKey,
PrettyPrint: prettyPrint,
Sort: sort,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_googleworkspaceadminreports_data_source.go b/internal/provider/source_googleworkspaceadminreports_data_source.go
old mode 100755
new mode 100644
index 358cb284c..063bf59c5
--- a/internal/provider/source_googleworkspaceadminreports_data_source.go
+++ b/internal/provider/source_googleworkspaceadminreports_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceGoogleWorkspaceAdminReportsDataSource) Schema(ctx context.Context
Computed: true,
Description: `Sets the range of time shown in the report. Reports API allows from up to 180 days ago. `,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-workspace-admin-reports",
- ),
- },
- Description: `must be one of ["google-workspace-admin-reports"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_googleworkspaceadminreports_data_source_sdk.go b/internal/provider/source_googleworkspaceadminreports_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_googleworkspaceadminreports_resource.go b/internal/provider/source_googleworkspaceadminreports_resource.go
old mode 100755
new mode 100644
index fd51059db..a706d49b6
--- a/internal/provider/source_googleworkspaceadminreports_resource.go
+++ b/internal/provider/source_googleworkspaceadminreports_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceGoogleWorkspaceAdminReportsResource) Schema(ctx context.Context,
Optional: true,
Description: `Sets the range of time shown in the report. Reports API allows from up to 180 days ago. `,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "google-workspace-admin-reports",
- ),
- },
- Description: `must be one of ["google-workspace-admin-reports"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceGoogleWorkspaceAdminReportsResource) Create(ctx context.Context,
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGoogleWorkspaceAdminReports(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_googleworkspaceadminreports_resource_sdk.go b/internal/provider/source_googleworkspaceadminreports_resource_sdk.go
old mode 100755
new mode 100644
index 2960fa054..4c03e6080
--- a/internal/provider/source_googleworkspaceadminreports_resource_sdk.go
+++ b/internal/provider/source_googleworkspaceadminreports_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *SourceGoogleWorkspaceAdminReportsResourceModel) ToCreateSDKType() *shar
} else {
lookback = nil
}
- sourceType := shared.SourceGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReports(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGoogleWorkspaceAdminReports{
CredentialsJSON: credentialsJSON,
Email: email,
Lookback: lookback,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_greenhouse_data_source.go b/internal/provider/source_greenhouse_data_source.go
old mode 100755
new mode 100644
index f1a1cd16d..5cddf7334
--- a/internal/provider/source_greenhouse_data_source.go
+++ b/internal/provider/source_greenhouse_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceGreenhouseDataSource struct {
// SourceGreenhouseDataSourceModel describes the data model.
type SourceGreenhouseDataSourceModel struct {
- Configuration SourceGreenhouse `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceGreenhouseDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Greenhouse API Key. See the docs for more information on how to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "greenhouse",
- ),
- },
- Description: `must be one of ["greenhouse"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_greenhouse_data_source_sdk.go b/internal/provider/source_greenhouse_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_greenhouse_resource.go b/internal/provider/source_greenhouse_resource.go
old mode 100755
new mode 100644
index 95238ef3e..b0828c64a
--- a/internal/provider/source_greenhouse_resource.go
+++ b/internal/provider/source_greenhouse_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceGreenhouseResource struct {
// SourceGreenhouseResourceModel describes the resource data model.
type SourceGreenhouseResourceModel struct {
- Configuration SourceGreenhouse `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceGreenhouseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceGreenhouseResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Greenhouse API Key. See the docs for more information on how to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "greenhouse",
- ),
- },
- Description: `must be one of ["greenhouse"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceGreenhouseResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGreenhouse(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_greenhouse_resource_sdk.go b/internal/provider/source_greenhouse_resource_sdk.go
old mode 100755
new mode 100644
index fe04cffc4..166909037
--- a/internal/provider/source_greenhouse_resource_sdk.go
+++ b/internal/provider/source_greenhouse_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceGreenhouseResourceModel) ToCreateSDKType() *shared.SourceGreenhouseCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceGreenhouseGreenhouse(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGreenhouse{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_gridly_data_source.go b/internal/provider/source_gridly_data_source.go
old mode 100755
new mode 100644
index 2f42ffcb7..f6d277589
--- a/internal/provider/source_gridly_data_source.go
+++ b/internal/provider/source_gridly_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *SourceGridlyDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `ID of a grid, or can be ID of a branch`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gridly",
- ),
- },
- Description: `must be one of ["gridly"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_gridly_data_source_sdk.go b/internal/provider/source_gridly_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_gridly_resource.go b/internal/provider/source_gridly_resource.go
old mode 100755
new mode 100644
index c86069539..e1eabaee9
--- a/internal/provider/source_gridly_resource.go
+++ b/internal/provider/source_gridly_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *SourceGridlyResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `ID of a grid, or can be ID of a branch`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "gridly",
- ),
- },
- Description: `must be one of ["gridly"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -142,7 +131,7 @@ func (r *SourceGridlyResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceGridly(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_gridly_resource_sdk.go b/internal/provider/source_gridly_resource_sdk.go
old mode 100755
new mode 100644
index 505bf4e6f..f15fe97ab
--- a/internal/provider/source_gridly_resource_sdk.go
+++ b/internal/provider/source_gridly_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceGridlyResourceModel) ToCreateSDKType() *shared.SourceGridlyCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
gridID := r.Configuration.GridID.ValueString()
- sourceType := shared.SourceGridlyGridly(r.Configuration.SourceType.ValueString())
configuration := shared.SourceGridly{
- APIKey: apiKey,
- GridID: gridID,
- SourceType: sourceType,
+ APIKey: apiKey,
+ GridID: gridID,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_harvest_data_source.go b/internal/provider/source_harvest_data_source.go
old mode 100755
new mode 100644
index 7bfeb0f59..8246a19bd
--- a/internal/provider/source_harvest_data_source.go
+++ b/internal/provider/source_harvest_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceHarvestDataSource struct {
// SourceHarvestDataSourceModel describes the data model.
type SourceHarvestDataSourceModel struct {
- Configuration SourceHarvest1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceHarvest `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -63,14 +62,12 @@ func (r *SourceHarvestDataSource) Schema(ctx context.Context, req datasource.Sch
"source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -84,53 +81,35 @@ func (r *SourceHarvestDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `Log into Harvest and then create new personal access token.`,
- },
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `Log into Harvest and then create new personal access token.`,
+ },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -144,39 +123,23 @@ func (r *SourceHarvestDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `Log into Harvest and then create new personal access token.`,
- },
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `Log into Harvest and then create new personal access token.`,
+ },
},
Description: `Choose how to authenticate to Harvest.`,
},
@@ -200,15 +163,6 @@ func (r *SourceHarvestDataSource) Schema(ctx context.Context, req datasource.Sch
},
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "harvest",
- ),
- },
- Description: `must be one of ["harvest"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_harvest_data_source_sdk.go b/internal/provider/source_harvest_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_harvest_resource.go b/internal/provider/source_harvest_resource.go
old mode 100755
new mode 100644
index 0c30849d9..509f77f2c
--- a/internal/provider/source_harvest_resource.go
+++ b/internal/provider/source_harvest_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,14 +64,12 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
"source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Required: true,
@@ -86,32 +83,12 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Required: true,
- Description: `Log into Harvest and then create new personal access token.`,
- },
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -119,20 +96,22 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
+ "api_token": schema.StringAttribute{
+ Required: true,
+ Description: `Log into Harvest and then create new personal access token.`,
+ },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Required: true,
@@ -146,32 +125,12 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Harvest.`,
},
"source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Required: true,
- Description: `Log into Harvest and then create new personal access token.`,
- },
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -179,6 +138,10 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
+ "api_token": schema.StringAttribute{
+ Required: true,
+ Description: `Log into Harvest and then create new personal access token.`,
+ },
},
Description: `Choose how to authenticate to Harvest.`,
},
@@ -202,15 +165,6 @@ func (r *SourceHarvestResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "harvest",
- ),
- },
- Description: `must be one of ["harvest"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -283,7 +237,7 @@ func (r *SourceHarvestResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceHarvest(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_harvest_resource_sdk.go b/internal/provider/source_harvest_resource_sdk.go
old mode 100755
new mode 100644
index 1aac94b56..739ea0af5
--- a/internal/provider/source_harvest_resource_sdk.go
+++ b/internal/provider/source_harvest_resource_sdk.go
@@ -15,25 +15,18 @@ func (r *SourceHarvestResourceModel) ToCreateSDKType() *shared.SourceHarvestCrea
if r.Configuration.Credentials != nil {
var sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth *shared.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth
if r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
- authType := new(shared.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType)
- if !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.IsNull() {
- *authType = shared.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType(r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
- clientID := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth.RefreshToken.ValueString()
sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth = &shared.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth{
- AuthType: authType,
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
}
if sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
@@ -43,21 +36,14 @@ func (r *SourceHarvestResourceModel) ToCreateSDKType() *shared.SourceHarvestCrea
}
var sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken *shared.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken
if r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- apiToken := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.APIToken.ValueString()
- authType1 := new(shared.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType(r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiToken := r.Configuration.Credentials.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken.APIToken.ValueString()
sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken = &shared.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken{
- APIToken: apiToken,
- AuthType: authType1,
AdditionalProperties: additionalProperties1,
+ APIToken: apiToken,
}
}
if sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
@@ -73,13 +59,11 @@ func (r *SourceHarvestResourceModel) ToCreateSDKType() *shared.SourceHarvestCrea
replicationEndDate = nil
}
replicationStartDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.ReplicationStartDate.ValueString())
- sourceType := shared.SourceHarvestHarvest(r.Configuration.SourceType.ValueString())
configuration := shared.SourceHarvest{
AccountID: accountID,
Credentials: credentials,
ReplicationEndDate: replicationEndDate,
ReplicationStartDate: replicationStartDate,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -109,25 +93,18 @@ func (r *SourceHarvestResourceModel) ToUpdateSDKType() *shared.SourceHarvestPutR
if r.Configuration.Credentials != nil {
var sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth *shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth
if r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
- authType := new(shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType)
- if !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.IsNull() {
- *authType = shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType(r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
- clientID := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth.RefreshToken.ValueString()
sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth = &shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth{
- AuthType: authType,
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
}
if sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
@@ -137,21 +114,14 @@ func (r *SourceHarvestResourceModel) ToUpdateSDKType() *shared.SourceHarvestPutR
}
var sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken *shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
if r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- apiToken := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.APIToken.ValueString()
- authType1 := new(shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType(r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiToken := r.Configuration.Credentials.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken.APIToken.ValueString()
sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken = &shared.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken{
- APIToken: apiToken,
- AuthType: authType1,
AdditionalProperties: additionalProperties1,
+ APIToken: apiToken,
}
}
if sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
diff --git a/internal/provider/source_hubplanner_data_source.go b/internal/provider/source_hubplanner_data_source.go
old mode 100755
new mode 100644
index ce9c4267f..ac39ca1d0
--- a/internal/provider/source_hubplanner_data_source.go
+++ b/internal/provider/source_hubplanner_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceHubplannerDataSource struct {
// SourceHubplannerDataSourceModel describes the data model.
type SourceHubplannerDataSourceModel struct {
- Configuration SourceHubplanner `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceHubplannerDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "hubplanner",
- ),
- },
- Description: `must be one of ["hubplanner"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_hubplanner_data_source_sdk.go b/internal/provider/source_hubplanner_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_hubplanner_resource.go b/internal/provider/source_hubplanner_resource.go
old mode 100755
new mode 100644
index b2ce65b2b..d688fa24a
--- a/internal/provider/source_hubplanner_resource.go
+++ b/internal/provider/source_hubplanner_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceHubplannerResource struct {
// SourceHubplannerResourceModel describes the resource data model.
type SourceHubplannerResourceModel struct {
- Configuration SourceHubplanner `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceHubplannerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceHubplannerResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "hubplanner",
- ),
- },
- Description: `must be one of ["hubplanner"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceHubplannerResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceHubplanner(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_hubplanner_resource_sdk.go b/internal/provider/source_hubplanner_resource_sdk.go
old mode 100755
new mode 100644
index 186617581..b6420e372
--- a/internal/provider/source_hubplanner_resource_sdk.go
+++ b/internal/provider/source_hubplanner_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceHubplannerResourceModel) ToCreateSDKType() *shared.SourceHubplannerCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceHubplannerHubplanner(r.Configuration.SourceType.ValueString())
configuration := shared.SourceHubplanner{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_hubspot_data_source.go b/internal/provider/source_hubspot_data_source.go
old mode 100755
new mode 100644
index 98d6207bb..347de30d5
--- a/internal/provider/source_hubspot_data_source.go
+++ b/internal/provider/source_hubspot_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -67,16 +66,6 @@ func (r *SourceHubspotDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `Name of the credentials`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.`,
@@ -91,16 +80,6 @@ func (r *SourceHubspotDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `HubSpot Access token. See the Hubspot docs if you need help finding this token.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Private App Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["Private App Credentials"]` + "\n" +
- `Name of the credentials set`,
- },
},
Description: `Choose how to authenticate to HubSpot.`,
},
@@ -115,16 +94,6 @@ func (r *SourceHubspotDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `Name of the credentials`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.`,
@@ -139,16 +108,6 @@ func (r *SourceHubspotDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `HubSpot Access token. See the Hubspot docs if you need help finding this token.`,
},
- "credentials_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Private App Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["Private App Credentials"]` + "\n" +
- `Name of the credentials set`,
- },
},
Description: `Choose how to authenticate to HubSpot.`,
},
@@ -158,15 +117,6 @@ func (r *SourceHubspotDataSource) Schema(ctx context.Context, req datasource.Sch
},
Description: `Choose how to authenticate to HubSpot.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "hubspot",
- ),
- },
- Description: `must be one of ["hubspot"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_hubspot_data_source_sdk.go b/internal/provider/source_hubspot_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_hubspot_resource.go b/internal/provider/source_hubspot_resource.go
old mode 100755
new mode 100644
index 0d7ca0151..c483728e6
--- a/internal/provider/source_hubspot_resource.go
+++ b/internal/provider/source_hubspot_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -69,16 +68,6 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `Name of the credentials`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
Description: `Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.`,
@@ -93,16 +82,6 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `HubSpot Access token. See the Hubspot docs if you need help finding this token.`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Private App Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["Private App Credentials"]` + "\n" +
- `Name of the credentials set`,
- },
},
Description: `Choose how to authenticate to HubSpot.`,
},
@@ -117,16 +96,6 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["OAuth Credentials"]` + "\n" +
- `Name of the credentials`,
- },
"refresh_token": schema.StringAttribute{
Required: true,
Description: `Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.`,
@@ -141,16 +110,6 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `HubSpot Access token. See the Hubspot docs if you need help finding this token.`,
},
- "credentials_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Private App Credentials",
- ),
- },
- MarkdownDescription: `must be one of ["Private App Credentials"]` + "\n" +
- `Name of the credentials set`,
- },
},
Description: `Choose how to authenticate to HubSpot.`,
},
@@ -160,15 +119,6 @@ func (r *SourceHubspotResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Choose how to authenticate to HubSpot.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "hubspot",
- ),
- },
- Description: `must be one of ["hubspot"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -248,7 +198,7 @@ func (r *SourceHubspotResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceHubspot(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_hubspot_resource_sdk.go b/internal/provider/source_hubspot_resource_sdk.go
old mode 100755
new mode 100644
index c8c4ec64f..fa7cf57ec
--- a/internal/provider/source_hubspot_resource_sdk.go
+++ b/internal/provider/source_hubspot_resource_sdk.go
@@ -14,13 +14,11 @@ func (r *SourceHubspotResourceModel) ToCreateSDKType() *shared.SourceHubspotCrea
if r.Configuration.Credentials.SourceHubspotAuthenticationOAuth != nil {
clientID := r.Configuration.Credentials.SourceHubspotAuthenticationOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceHubspotAuthenticationOAuth.ClientSecret.ValueString()
- credentialsTitle := shared.SourceHubspotAuthenticationOAuthAuthType(r.Configuration.Credentials.SourceHubspotAuthenticationOAuth.CredentialsTitle.ValueString())
refreshToken := r.Configuration.Credentials.SourceHubspotAuthenticationOAuth.RefreshToken.ValueString()
sourceHubspotAuthenticationOAuth = &shared.SourceHubspotAuthenticationOAuth{
- ClientID: clientID,
- ClientSecret: clientSecret,
- CredentialsTitle: credentialsTitle,
- RefreshToken: refreshToken,
+ ClientID: clientID,
+ ClientSecret: clientSecret,
+ RefreshToken: refreshToken,
}
}
if sourceHubspotAuthenticationOAuth != nil {
@@ -31,10 +29,8 @@ func (r *SourceHubspotResourceModel) ToCreateSDKType() *shared.SourceHubspotCrea
var sourceHubspotAuthenticationPrivateApp *shared.SourceHubspotAuthenticationPrivateApp
if r.Configuration.Credentials.SourceHubspotAuthenticationPrivateApp != nil {
accessToken := r.Configuration.Credentials.SourceHubspotAuthenticationPrivateApp.AccessToken.ValueString()
- credentialsTitle1 := shared.SourceHubspotAuthenticationPrivateAppAuthType(r.Configuration.Credentials.SourceHubspotAuthenticationPrivateApp.CredentialsTitle.ValueString())
sourceHubspotAuthenticationPrivateApp = &shared.SourceHubspotAuthenticationPrivateApp{
- AccessToken: accessToken,
- CredentialsTitle: credentialsTitle1,
+ AccessToken: accessToken,
}
}
if sourceHubspotAuthenticationPrivateApp != nil {
@@ -42,11 +38,9 @@ func (r *SourceHubspotResourceModel) ToCreateSDKType() *shared.SourceHubspotCrea
SourceHubspotAuthenticationPrivateApp: sourceHubspotAuthenticationPrivateApp,
}
}
- sourceType := shared.SourceHubspotHubspot(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceHubspot{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -77,13 +71,11 @@ func (r *SourceHubspotResourceModel) ToUpdateSDKType() *shared.SourceHubspotPutR
if r.Configuration.Credentials.SourceHubspotUpdateAuthenticationOAuth != nil {
clientID := r.Configuration.Credentials.SourceHubspotUpdateAuthenticationOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceHubspotUpdateAuthenticationOAuth.ClientSecret.ValueString()
- credentialsTitle := shared.SourceHubspotUpdateAuthenticationOAuthAuthType(r.Configuration.Credentials.SourceHubspotUpdateAuthenticationOAuth.CredentialsTitle.ValueString())
refreshToken := r.Configuration.Credentials.SourceHubspotUpdateAuthenticationOAuth.RefreshToken.ValueString()
sourceHubspotUpdateAuthenticationOAuth = &shared.SourceHubspotUpdateAuthenticationOAuth{
- ClientID: clientID,
- ClientSecret: clientSecret,
- CredentialsTitle: credentialsTitle,
- RefreshToken: refreshToken,
+ ClientID: clientID,
+ ClientSecret: clientSecret,
+ RefreshToken: refreshToken,
}
}
if sourceHubspotUpdateAuthenticationOAuth != nil {
@@ -94,10 +86,8 @@ func (r *SourceHubspotResourceModel) ToUpdateSDKType() *shared.SourceHubspotPutR
var sourceHubspotUpdateAuthenticationPrivateApp *shared.SourceHubspotUpdateAuthenticationPrivateApp
if r.Configuration.Credentials.SourceHubspotUpdateAuthenticationPrivateApp != nil {
accessToken := r.Configuration.Credentials.SourceHubspotUpdateAuthenticationPrivateApp.AccessToken.ValueString()
- credentialsTitle1 := shared.SourceHubspotUpdateAuthenticationPrivateAppAuthType(r.Configuration.Credentials.SourceHubspotUpdateAuthenticationPrivateApp.CredentialsTitle.ValueString())
sourceHubspotUpdateAuthenticationPrivateApp = &shared.SourceHubspotUpdateAuthenticationPrivateApp{
- AccessToken: accessToken,
- CredentialsTitle: credentialsTitle1,
+ AccessToken: accessToken,
}
}
if sourceHubspotUpdateAuthenticationPrivateApp != nil {
diff --git a/internal/provider/source_insightly_data_source.go b/internal/provider/source_insightly_data_source.go
old mode 100755
new mode 100644
index 7649c42e6..52d51166b
--- a/internal/provider/source_insightly_data_source.go
+++ b/internal/provider/source_insightly_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourceInsightlyDataSource) Schema(ctx context.Context, req datasource.S
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "insightly",
- ),
- },
- Description: `must be one of ["insightly"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams.`,
diff --git a/internal/provider/source_insightly_data_source_sdk.go b/internal/provider/source_insightly_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_insightly_resource.go b/internal/provider/source_insightly_resource.go
old mode 100755
new mode 100644
index 2cefb82eb..41801d627
--- a/internal/provider/source_insightly_resource.go
+++ b/internal/provider/source_insightly_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourceInsightlyResource) Schema(ctx context.Context, req resource.Schem
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "insightly",
- ),
- },
- Description: `must be one of ["insightly"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams.`,
@@ -143,7 +132,7 @@ func (r *SourceInsightlyResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceInsightly(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_insightly_resource_sdk.go b/internal/provider/source_insightly_resource_sdk.go
old mode 100755
new mode 100644
index 052dbae7a..05bdbd4a6
--- a/internal/provider/source_insightly_resource_sdk.go
+++ b/internal/provider/source_insightly_resource_sdk.go
@@ -8,7 +8,6 @@ import (
)
func (r *SourceInsightlyResourceModel) ToCreateSDKType() *shared.SourceInsightlyCreateRequest {
- sourceType := shared.SourceInsightlyInsightly(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -22,9 +21,8 @@ func (r *SourceInsightlyResourceModel) ToCreateSDKType() *shared.SourceInsightly
token = nil
}
configuration := shared.SourceInsightly{
- SourceType: sourceType,
- StartDate: startDate,
- Token: token,
+ StartDate: startDate,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_instagram_data_source.go b/internal/provider/source_instagram_data_source.go
old mode 100755
new mode 100644
index fbcc8cac4..b7a475bff
--- a/internal/provider/source_instagram_data_source.go
+++ b/internal/provider/source_instagram_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceInstagramDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The Client Secret for your Oauth application`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "instagram",
- ),
- },
- Description: `must be one of ["instagram"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_instagram_data_source_sdk.go b/internal/provider/source_instagram_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_instagram_resource.go b/internal/provider/source_instagram_resource.go
old mode 100755
new mode 100644
index 794ea1ed9..69db1fdc5
--- a/internal/provider/source_instagram_resource.go
+++ b/internal/provider/source_instagram_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceInstagramResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `The Client Secret for your Oauth application`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "instagram",
- ),
- },
- Description: `must be one of ["instagram"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceInstagramResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceInstagram(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_instagram_resource_sdk.go b/internal/provider/source_instagram_resource_sdk.go
old mode 100755
new mode 100644
index 0ad22e08c..0111a84e8
--- a/internal/provider/source_instagram_resource_sdk.go
+++ b/internal/provider/source_instagram_resource_sdk.go
@@ -22,13 +22,11 @@ func (r *SourceInstagramResourceModel) ToCreateSDKType() *shared.SourceInstagram
} else {
clientSecret = nil
}
- sourceType := shared.SourceInstagramInstagram(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceInstagram{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_instatus_data_source.go b/internal/provider/source_instatus_data_source.go
old mode 100755
new mode 100644
index 3ee64abca..230395186
--- a/internal/provider/source_instatus_data_source.go
+++ b/internal/provider/source_instatus_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceInstatusDataSource struct {
// SourceInstatusDataSourceModel describes the data model.
type SourceInstatusDataSourceModel struct {
- Configuration SourceInstatus `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceInstatusDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Instatus REST API key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "instatus",
- ),
- },
- Description: `must be one of ["instatus"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_instatus_data_source_sdk.go b/internal/provider/source_instatus_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_instatus_resource.go b/internal/provider/source_instatus_resource.go
old mode 100755
new mode 100644
index 22a829fd4..b2d1a0d6f
--- a/internal/provider/source_instatus_resource.go
+++ b/internal/provider/source_instatus_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceInstatusResource struct {
// SourceInstatusResourceModel describes the resource data model.
type SourceInstatusResourceModel struct {
- Configuration SourceInstatus `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceInstatusResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceInstatusResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Instatus REST API key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "instatus",
- ),
- },
- Description: `must be one of ["instatus"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceInstatusResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceInstatus(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_instatus_resource_sdk.go b/internal/provider/source_instatus_resource_sdk.go
old mode 100755
new mode 100644
index c92a836db..493dd8a5e
--- a/internal/provider/source_instatus_resource_sdk.go
+++ b/internal/provider/source_instatus_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceInstatusResourceModel) ToCreateSDKType() *shared.SourceInstatusCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceInstatusInstatus(r.Configuration.SourceType.ValueString())
configuration := shared.SourceInstatus{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_intercom_data_source.go b/internal/provider/source_intercom_data_source.go
old mode 100755
new mode 100644
index 83a103ec4..dce615202
--- a/internal/provider/source_intercom_data_source.go
+++ b/internal/provider/source_intercom_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceIntercomDataSource struct {
// SourceIntercomDataSourceModel describes the data model.
type SourceIntercomDataSourceModel struct {
- Configuration SourceIntercom `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceInstagram `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -65,15 +64,6 @@ func (r *SourceIntercomDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Client Secret for your Intercom application.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "intercom",
- ),
- },
- Description: `must be one of ["intercom"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_intercom_data_source_sdk.go b/internal/provider/source_intercom_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_intercom_resource.go b/internal/provider/source_intercom_resource.go
old mode 100755
new mode 100644
index 41a8570b7..6c5815328
--- a/internal/provider/source_intercom_resource.go
+++ b/internal/provider/source_intercom_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -35,12 +34,12 @@ type SourceIntercomResource struct {
// SourceIntercomResourceModel describes the resource data model.
type SourceIntercomResourceModel struct {
- Configuration SourceIntercom `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceInstagram `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceIntercomResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -67,15 +66,6 @@ func (r *SourceIntercomResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Client Secret for your Intercom application.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "intercom",
- ),
- },
- Description: `must be one of ["intercom"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceIntercomResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceIntercom(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_intercom_resource_sdk.go b/internal/provider/source_intercom_resource_sdk.go
old mode 100755
new mode 100644
index 294ac16be..ea1d6c2d8
--- a/internal/provider/source_intercom_resource_sdk.go
+++ b/internal/provider/source_intercom_resource_sdk.go
@@ -22,13 +22,11 @@ func (r *SourceIntercomResourceModel) ToCreateSDKType() *shared.SourceIntercomCr
} else {
clientSecret = nil
}
- sourceType := shared.SourceIntercomIntercom(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceIntercom{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_ip2whois_data_source.go b/internal/provider/source_ip2whois_data_source.go
old mode 100755
new mode 100644
index cbbc7dd5e..0fc21cf5f
--- a/internal/provider/source_ip2whois_data_source.go
+++ b/internal/provider/source_ip2whois_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceIp2whoisDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Domain name. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ip2whois",
- ),
- },
- Description: `must be one of ["ip2whois"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_ip2whois_data_source_sdk.go b/internal/provider/source_ip2whois_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_ip2whois_resource.go b/internal/provider/source_ip2whois_resource.go
old mode 100755
new mode 100644
index 5f59df069..44483f426
--- a/internal/provider/source_ip2whois_resource.go
+++ b/internal/provider/source_ip2whois_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceIp2whoisResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Domain name. See here.`,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "ip2whois",
- ),
- },
- Description: `must be one of ["ip2whois"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceIp2whoisResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceIp2whois(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_ip2whois_resource_sdk.go b/internal/provider/source_ip2whois_resource_sdk.go
old mode 100755
new mode 100644
index a72344578..22b7d7b5b
--- a/internal/provider/source_ip2whois_resource_sdk.go
+++ b/internal/provider/source_ip2whois_resource_sdk.go
@@ -20,16 +20,9 @@ func (r *SourceIp2whoisResourceModel) ToCreateSDKType() *shared.SourceIp2whoisCr
} else {
domain = nil
}
- sourceType := new(shared.SourceIp2whoisIp2whois)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceIp2whoisIp2whois(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
configuration := shared.SourceIp2whois{
- APIKey: apiKey,
- Domain: domain,
- SourceType: sourceType,
+ APIKey: apiKey,
+ Domain: domain,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_iterable_data_source.go b/internal/provider/source_iterable_data_source.go
old mode 100755
new mode 100644
index e8bd496a6..531998569
--- a/internal/provider/source_iterable_data_source.go
+++ b/internal/provider/source_iterable_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceIterableDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Iterable API Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "iterable",
- ),
- },
- Description: `must be one of ["iterable"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_iterable_data_source_sdk.go b/internal/provider/source_iterable_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_iterable_resource.go b/internal/provider/source_iterable_resource.go
old mode 100755
new mode 100644
index 3b6362af0..df831864e
--- a/internal/provider/source_iterable_resource.go
+++ b/internal/provider/source_iterable_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceIterableResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Iterable API Key. See the docs for more information on how to obtain this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "iterable",
- ),
- },
- Description: `must be one of ["iterable"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -147,7 +137,7 @@ func (r *SourceIterableResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceIterable(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_iterable_resource_sdk.go b/internal/provider/source_iterable_resource_sdk.go
old mode 100755
new mode 100644
index c9aa886db..35875066c
--- a/internal/provider/source_iterable_resource_sdk.go
+++ b/internal/provider/source_iterable_resource_sdk.go
@@ -10,12 +10,10 @@ import (
func (r *SourceIterableResourceModel) ToCreateSDKType() *shared.SourceIterableCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceIterableIterable(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceIterable{
- APIKey: apiKey,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_jira_data_source.go b/internal/provider/source_jira_data_source.go
old mode 100755
new mode 100644
index aaacbfaeb..561b13ef2
--- a/internal/provider/source_jira_data_source.go
+++ b/internal/provider/source_jira_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -82,15 +81,6 @@ func (r *SourceJiraDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `Render issue fields in HTML format in addition to Jira JSON-like format.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jira",
- ),
- },
- Description: `must be one of ["jira"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_jira_data_source_sdk.go b/internal/provider/source_jira_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_jira_resource.go b/internal/provider/source_jira_resource.go
old mode 100755
new mode 100644
index 68b7c47ca..4c136d8dd
--- a/internal/provider/source_jira_resource.go
+++ b/internal/provider/source_jira_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -84,15 +83,6 @@ func (r *SourceJiraResource) Schema(ctx context.Context, req resource.SchemaRequ
Optional: true,
Description: `Render issue fields in HTML format in addition to Jira JSON-like format.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jira",
- ),
- },
- Description: `must be one of ["jira"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -172,7 +162,7 @@ func (r *SourceJiraResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceJira(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_jira_resource_sdk.go b/internal/provider/source_jira_resource_sdk.go
old mode 100755
new mode 100644
index 11c35104c..9029c0a55
--- a/internal/provider/source_jira_resource_sdk.go
+++ b/internal/provider/source_jira_resource_sdk.go
@@ -34,7 +34,6 @@ func (r *SourceJiraResourceModel) ToCreateSDKType() *shared.SourceJiraCreateRequ
} else {
renderFields = nil
}
- sourceType := shared.SourceJiraJira(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -49,7 +48,6 @@ func (r *SourceJiraResourceModel) ToCreateSDKType() *shared.SourceJiraCreateRequ
ExpandIssueChangelog: expandIssueChangelog,
Projects: projects,
RenderFields: renderFields,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_k6cloud_data_source.go b/internal/provider/source_k6cloud_data_source.go
old mode 100755
new mode 100644
index 7b8bc5616..197219b76
--- a/internal/provider/source_k6cloud_data_source.go
+++ b/internal/provider/source_k6cloud_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceK6CloudDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Your API Token. See here. The key is case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "k6-cloud",
- ),
- },
- Description: `must be one of ["k6-cloud"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_k6cloud_data_source_sdk.go b/internal/provider/source_k6cloud_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_k6cloud_resource.go b/internal/provider/source_k6cloud_resource.go
old mode 100755
new mode 100644
index b1338b338..c79803a37
--- a/internal/provider/source_k6cloud_resource.go
+++ b/internal/provider/source_k6cloud_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceK6CloudResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Your API Token. See here. The key is case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "k6-cloud",
- ),
- },
- Description: `must be one of ["k6-cloud"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceK6CloudResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceK6Cloud(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_k6cloud_resource_sdk.go b/internal/provider/source_k6cloud_resource_sdk.go
old mode 100755
new mode 100644
index 36e121be6..9eb4663f9
--- a/internal/provider/source_k6cloud_resource_sdk.go
+++ b/internal/provider/source_k6cloud_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceK6CloudResourceModel) ToCreateSDKType() *shared.SourceK6CloudCreateRequest {
apiToken := r.Configuration.APIToken.ValueString()
- sourceType := shared.SourceK6CloudK6Cloud(r.Configuration.SourceType.ValueString())
configuration := shared.SourceK6Cloud{
- APIToken: apiToken,
- SourceType: sourceType,
+ APIToken: apiToken,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_klarna_data_source.go b/internal/provider/source_klarna_data_source.go
old mode 100755
new mode 100644
index e1444a5a6..4f1cb523f
--- a/internal/provider/source_klarna_data_source.go
+++ b/internal/provider/source_klarna_data_source.go
@@ -72,15 +72,6 @@ func (r *SourceKlarnaDataSource) Schema(ctx context.Context, req datasource.Sche
MarkdownDescription: `must be one of ["eu", "us", "oc"]` + "\n" +
`Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "klarna",
- ),
- },
- Description: `must be one of ["klarna"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)`,
diff --git a/internal/provider/source_klarna_data_source_sdk.go b/internal/provider/source_klarna_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_klarna_resource.go b/internal/provider/source_klarna_resource.go
old mode 100755
new mode 100644
index d8b6c8e5a..e66f91a3e
--- a/internal/provider/source_klarna_resource.go
+++ b/internal/provider/source_klarna_resource.go
@@ -59,7 +59,7 @@ func (r *SourceKlarnaResource) Schema(ctx context.Context, req resource.SchemaRe
Description: `A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication)`,
},
"playground": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `Propertie defining if connector is used against playground or production environment`,
},
"region": schema.StringAttribute{
@@ -74,15 +74,6 @@ func (r *SourceKlarnaResource) Schema(ctx context.Context, req resource.SchemaRe
MarkdownDescription: `must be one of ["eu", "us", "oc"]` + "\n" +
`Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "klarna",
- ),
- },
- Description: `must be one of ["klarna"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)`,
@@ -159,7 +150,7 @@ func (r *SourceKlarnaResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceKlarna(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_klarna_resource_sdk.go b/internal/provider/source_klarna_resource_sdk.go
old mode 100755
new mode 100644
index 94f49cfa7..8a6a2aa3c
--- a/internal/provider/source_klarna_resource_sdk.go
+++ b/internal/provider/source_klarna_resource_sdk.go
@@ -9,15 +9,18 @@ import (
func (r *SourceKlarnaResourceModel) ToCreateSDKType() *shared.SourceKlarnaCreateRequest {
password := r.Configuration.Password.ValueString()
- playground := r.Configuration.Playground.ValueBool()
+ playground := new(bool)
+ if !r.Configuration.Playground.IsUnknown() && !r.Configuration.Playground.IsNull() {
+ *playground = r.Configuration.Playground.ValueBool()
+ } else {
+ playground = nil
+ }
region := shared.SourceKlarnaRegion(r.Configuration.Region.ValueString())
- sourceType := shared.SourceKlarnaKlarna(r.Configuration.SourceType.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceKlarna{
Password: password,
Playground: playground,
Region: region,
- SourceType: sourceType,
Username: username,
}
name := r.Name.ValueString()
@@ -44,7 +47,12 @@ func (r *SourceKlarnaResourceModel) ToGetSDKType() *shared.SourceKlarnaCreateReq
func (r *SourceKlarnaResourceModel) ToUpdateSDKType() *shared.SourceKlarnaPutRequest {
password := r.Configuration.Password.ValueString()
- playground := r.Configuration.Playground.ValueBool()
+ playground := new(bool)
+ if !r.Configuration.Playground.IsUnknown() && !r.Configuration.Playground.IsNull() {
+ *playground = r.Configuration.Playground.ValueBool()
+ } else {
+ playground = nil
+ }
region := shared.SourceKlarnaUpdateRegion(r.Configuration.Region.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceKlarnaUpdate{
diff --git a/internal/provider/source_klaviyo_data_source.go b/internal/provider/source_klaviyo_data_source.go
old mode 100755
new mode 100644
index 0400255d1..f80e4eec1
--- a/internal/provider/source_klaviyo_data_source.go
+++ b/internal/provider/source_klaviyo_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceKlaviyoDataSource struct {
// SourceKlaviyoDataSourceModel describes the data model.
type SourceKlaviyoDataSourceModel struct {
- Configuration SourceKlaviyo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceIterable `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -57,15 +56,6 @@ func (r *SourceKlaviyoDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Klaviyo API Key. See our docs if you need help finding this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "klaviyo",
- ),
- },
- Description: `must be one of ["klaviyo"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_klaviyo_data_source_sdk.go b/internal/provider/source_klaviyo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_klaviyo_resource.go b/internal/provider/source_klaviyo_resource.go
old mode 100755
new mode 100644
index ce406358e..cff597d45
--- a/internal/provider/source_klaviyo_resource.go
+++ b/internal/provider/source_klaviyo_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -35,12 +34,12 @@ type SourceKlaviyoResource struct {
// SourceKlaviyoResourceModel describes the resource data model.
type SourceKlaviyoResourceModel struct {
- Configuration SourceKlaviyo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceIterable `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceKlaviyoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -59,15 +58,6 @@ func (r *SourceKlaviyoResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Klaviyo API Key. See our docs if you need help finding this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "klaviyo",
- ),
- },
- Description: `must be one of ["klaviyo"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -147,7 +137,7 @@ func (r *SourceKlaviyoResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceKlaviyo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_klaviyo_resource_sdk.go b/internal/provider/source_klaviyo_resource_sdk.go
old mode 100755
new mode 100644
index d53377af1..306bbdfac
--- a/internal/provider/source_klaviyo_resource_sdk.go
+++ b/internal/provider/source_klaviyo_resource_sdk.go
@@ -10,12 +10,10 @@ import (
func (r *SourceKlaviyoResourceModel) ToCreateSDKType() *shared.SourceKlaviyoCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceKlaviyoKlaviyo(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceKlaviyo{
- APIKey: apiKey,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_kustomersinger_data_source.go b/internal/provider/source_kustomersinger_data_source.go
old mode 100755
new mode 100644
index 0ce09811c..a9e684df6
--- a/internal/provider/source_kustomersinger_data_source.go
+++ b/internal/provider/source_kustomersinger_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceKustomerSingerDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Kustomer API Token. See the docs on how to obtain this`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kustomer-singer",
- ),
- },
- Description: `must be one of ["kustomer-singer"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The date from which you'd like to replicate the data`,
diff --git a/internal/provider/source_kustomersinger_data_source_sdk.go b/internal/provider/source_kustomersinger_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_kustomersinger_resource.go b/internal/provider/source_kustomersinger_resource.go
old mode 100755
new mode 100644
index 1ec3392ce..00f7fb6e5
--- a/internal/provider/source_kustomersinger_resource.go
+++ b/internal/provider/source_kustomersinger_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceKustomerSingerResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Kustomer API Token. See the docs on how to obtain this`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kustomer-singer",
- ),
- },
- Description: `must be one of ["kustomer-singer"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The date from which you'd like to replicate the data`,
@@ -143,7 +132,7 @@ func (r *SourceKustomerSingerResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceKustomerSinger(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_kustomersinger_resource_sdk.go b/internal/provider/source_kustomersinger_resource_sdk.go
old mode 100755
new mode 100644
index 47c139b24..7341d33d4
--- a/internal/provider/source_kustomersinger_resource_sdk.go
+++ b/internal/provider/source_kustomersinger_resource_sdk.go
@@ -9,12 +9,10 @@ import (
func (r *SourceKustomerSingerResourceModel) ToCreateSDKType() *shared.SourceKustomerSingerCreateRequest {
apiToken := r.Configuration.APIToken.ValueString()
- sourceType := shared.SourceKustomerSingerKustomerSinger(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceKustomerSinger{
- APIToken: apiToken,
- SourceType: sourceType,
- StartDate: startDate,
+ APIToken: apiToken,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_kyve_data_source.go b/internal/provider/source_kyve_data_source.go
old mode 100755
new mode 100644
index 78e25a1ae..28fe2ba99
--- a/internal/provider/source_kyve_data_source.go
+++ b/internal/provider/source_kyve_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceKyveDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `The IDs of the KYVE storage pool you want to archive. (Comma separated)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kyve",
- ),
- },
- Description: `must be one of ["kyve"]`,
- },
"start_ids": schema.StringAttribute{
Computed: true,
Description: `The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)`,
diff --git a/internal/provider/source_kyve_data_source_sdk.go b/internal/provider/source_kyve_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_kyve_resource.go b/internal/provider/source_kyve_resource.go
old mode 100755
new mode 100644
index 9df2914f6..a588d9d5f
--- a/internal/provider/source_kyve_resource.go
+++ b/internal/provider/source_kyve_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceKyveResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `The IDs of the KYVE storage pool you want to archive. (Comma separated)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "kyve",
- ),
- },
- Description: `must be one of ["kyve"]`,
- },
"start_ids": schema.StringAttribute{
Required: true,
Description: `The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)`,
@@ -155,7 +144,7 @@ func (r *SourceKyveResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceKyve(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_kyve_resource_sdk.go b/internal/provider/source_kyve_resource_sdk.go
old mode 100755
new mode 100644
index ccc94ace3..c8063ebc2
--- a/internal/provider/source_kyve_resource_sdk.go
+++ b/internal/provider/source_kyve_resource_sdk.go
@@ -21,7 +21,6 @@ func (r *SourceKyveResourceModel) ToCreateSDKType() *shared.SourceKyveCreateRequ
pageSize = nil
}
poolIds := r.Configuration.PoolIds.ValueString()
- sourceType := shared.SourceKyveKyve(r.Configuration.SourceType.ValueString())
startIds := r.Configuration.StartIds.ValueString()
urlBase := new(string)
if !r.Configuration.URLBase.IsUnknown() && !r.Configuration.URLBase.IsNull() {
@@ -30,12 +29,11 @@ func (r *SourceKyveResourceModel) ToCreateSDKType() *shared.SourceKyveCreateRequ
urlBase = nil
}
configuration := shared.SourceKyve{
- MaxPages: maxPages,
- PageSize: pageSize,
- PoolIds: poolIds,
- SourceType: sourceType,
- StartIds: startIds,
- URLBase: urlBase,
+ MaxPages: maxPages,
+ PageSize: pageSize,
+ PoolIds: poolIds,
+ StartIds: startIds,
+ URLBase: urlBase,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_launchdarkly_data_source.go b/internal/provider/source_launchdarkly_data_source.go
old mode 100755
new mode 100644
index 6a934e1e6..26236e67d
--- a/internal/provider/source_launchdarkly_data_source.go
+++ b/internal/provider/source_launchdarkly_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceLaunchdarklyDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Your Access token. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "launchdarkly",
- ),
- },
- Description: `must be one of ["launchdarkly"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_launchdarkly_data_source_sdk.go b/internal/provider/source_launchdarkly_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_launchdarkly_resource.go b/internal/provider/source_launchdarkly_resource.go
old mode 100755
new mode 100644
index 95cfa4aa6..7d49c5405
--- a/internal/provider/source_launchdarkly_resource.go
+++ b/internal/provider/source_launchdarkly_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceLaunchdarklyResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Your Access token. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "launchdarkly",
- ),
- },
- Description: `must be one of ["launchdarkly"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceLaunchdarklyResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLaunchdarkly(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_launchdarkly_resource_sdk.go b/internal/provider/source_launchdarkly_resource_sdk.go
old mode 100755
new mode 100644
index b27a94577..d34c8de66
--- a/internal/provider/source_launchdarkly_resource_sdk.go
+++ b/internal/provider/source_launchdarkly_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceLaunchdarklyResourceModel) ToCreateSDKType() *shared.SourceLaunchdarklyCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
- sourceType := shared.SourceLaunchdarklyLaunchdarkly(r.Configuration.SourceType.ValueString())
configuration := shared.SourceLaunchdarkly{
AccessToken: accessToken,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_lemlist_data_source.go b/internal/provider/source_lemlist_data_source.go
old mode 100755
new mode 100644
index f2c6dce4b..2b74376f0
--- a/internal/provider/source_lemlist_data_source.go
+++ b/internal/provider/source_lemlist_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceLemlistDataSource struct {
// SourceLemlistDataSourceModel describes the data model.
type SourceLemlistDataSourceModel struct {
- Configuration SourceLemlist `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceLemlistDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Lemlist API key,`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lemlist",
- ),
- },
- Description: `must be one of ["lemlist"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_lemlist_data_source_sdk.go b/internal/provider/source_lemlist_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_lemlist_resource.go b/internal/provider/source_lemlist_resource.go
old mode 100755
new mode 100644
index 6702061dd..b2af7e20d
--- a/internal/provider/source_lemlist_resource.go
+++ b/internal/provider/source_lemlist_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceLemlistResource struct {
// SourceLemlistResourceModel describes the resource data model.
type SourceLemlistResourceModel struct {
- Configuration SourceLemlist `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceLemlistResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceLemlistResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Lemlist API key,`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lemlist",
- ),
- },
- Description: `must be one of ["lemlist"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceLemlistResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLemlist(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_lemlist_resource_sdk.go b/internal/provider/source_lemlist_resource_sdk.go
old mode 100755
new mode 100644
index 1a709fee7..c8ddd8766
--- a/internal/provider/source_lemlist_resource_sdk.go
+++ b/internal/provider/source_lemlist_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceLemlistResourceModel) ToCreateSDKType() *shared.SourceLemlistCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceLemlistLemlist(r.Configuration.SourceType.ValueString())
configuration := shared.SourceLemlist{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_leverhiring_data_source.go b/internal/provider/source_leverhiring_data_source.go
old mode 100755
new mode 100644
index fec3157d5..f90102e36
--- a/internal/provider/source_leverhiring_data_source.go
+++ b/internal/provider/source_leverhiring_data_source.go
@@ -63,30 +63,12 @@ func (r *SourceLeverHiringDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Api Key of your Lever Hiring account.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Api Key",
- ),
- },
- Description: `must be one of ["Api Key"]`,
- },
},
Description: `Choose how to authenticate to Lever Hiring.`,
},
"source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Lever Hiring developer application.`,
@@ -109,30 +91,12 @@ func (r *SourceLeverHiringDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Api Key of your Lever Hiring account.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Api Key",
- ),
- },
- Description: `must be one of ["Api Key"]`,
- },
},
Description: `Choose how to authenticate to Lever Hiring.`,
},
"source_lever_hiring_update_authentication_mechanism_authenticate_via_lever_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Lever Hiring developer application.`,
@@ -165,15 +129,6 @@ func (r *SourceLeverHiringDataSource) Schema(ctx context.Context, req datasource
MarkdownDescription: `must be one of ["Production", "Sandbox"]` + "\n" +
`The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lever-hiring",
- ),
- },
- Description: `must be one of ["lever-hiring"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.`,
diff --git a/internal/provider/source_leverhiring_data_source_sdk.go b/internal/provider/source_leverhiring_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_leverhiring_resource.go b/internal/provider/source_leverhiring_resource.go
old mode 100755
new mode 100644
index 81fc65b09..afef5902d
--- a/internal/provider/source_leverhiring_resource.go
+++ b/internal/provider/source_leverhiring_resource.go
@@ -65,30 +65,12 @@ func (r *SourceLeverHiringResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The Api Key of your Lever Hiring account.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Api Key",
- ),
- },
- Description: `must be one of ["Api Key"]`,
- },
},
Description: `Choose how to authenticate to Lever Hiring.`,
},
"source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your Lever Hiring developer application.`,
@@ -111,30 +93,12 @@ func (r *SourceLeverHiringResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The Api Key of your Lever Hiring account.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Api Key",
- ),
- },
- Description: `must be one of ["Api Key"]`,
- },
},
Description: `Choose how to authenticate to Lever Hiring.`,
},
"source_lever_hiring_update_authentication_mechanism_authenticate_via_lever_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your Lever Hiring developer application.`,
@@ -167,15 +131,6 @@ func (r *SourceLeverHiringResource) Schema(ctx context.Context, req resource.Sch
MarkdownDescription: `must be one of ["Production", "Sandbox"]` + "\n" +
`The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lever-hiring",
- ),
- },
- Description: `must be one of ["lever-hiring"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.`,
@@ -252,7 +207,7 @@ func (r *SourceLeverHiringResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLeverHiring(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_leverhiring_resource_sdk.go b/internal/provider/source_leverhiring_resource_sdk.go
old mode 100755
new mode 100644
index 62d59ed33..f974d1a09
--- a/internal/provider/source_leverhiring_resource_sdk.go
+++ b/internal/provider/source_leverhiring_resource_sdk.go
@@ -12,12 +12,6 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi
if r.Configuration.Credentials != nil {
var sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth *shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth
if r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
- authType := new(shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType)
- if !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.IsNull() {
- *authType = shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType(r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := new(string)
if !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.ValueString()
@@ -32,7 +26,6 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi
}
refreshToken := r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth.RefreshToken.ValueString()
sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth = &shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -46,15 +39,8 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi
var sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey *shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey
if r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey.APIKey.ValueString()
- authType1 := new(shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType)
- if !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.IsNull() {
- *authType1 = shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType(r.Configuration.Credentials.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey = &shared.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
@@ -69,12 +55,10 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi
} else {
environment = nil
}
- sourceType := shared.SourceLeverHiringLeverHiring(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceLeverHiring{
Credentials: credentials,
Environment: environment,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -104,12 +88,6 @@ func (r *SourceLeverHiringResourceModel) ToUpdateSDKType() *shared.SourceLeverHi
if r.Configuration.Credentials != nil {
var sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth *shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth
if r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
- authType := new(shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType)
- if !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.IsNull() {
- *authType = shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType(r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := new(string)
if !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.ClientID.ValueString()
@@ -124,7 +102,6 @@ func (r *SourceLeverHiringResourceModel) ToUpdateSDKType() *shared.SourceLeverHi
}
refreshToken := r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth.RefreshToken.ValueString()
sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth = &shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -138,15 +115,8 @@ func (r *SourceLeverHiringResourceModel) ToUpdateSDKType() *shared.SourceLeverHi
var sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey *shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey
if r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey.APIKey.ValueString()
- authType1 := new(shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType)
- if !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.IsNull() {
- *authType1 = shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType(r.Configuration.Credentials.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey = &shared.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
diff --git a/internal/provider/source_linkedinads_data_source.go b/internal/provider/source_linkedinads_data_source.go
old mode 100755
new mode 100644
index ec25069f9..ace19f8d1
--- a/internal/provider/source_linkedinads_data_source.go
+++ b/internal/provider/source_linkedinads_data_source.go
@@ -122,29 +122,11 @@ func (r *SourceLinkedinAdsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The access token generated for your developer application. Refer to our documentation for more information.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_ads_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of your developer application. Refer to our documentation for more information.`,
@@ -166,29 +148,11 @@ func (r *SourceLinkedinAdsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The access token generated for your developer application. Refer to our documentation for more information.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_ads_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of your developer application. Refer to our documentation for more information.`,
@@ -208,15 +172,6 @@ func (r *SourceLinkedinAdsDataSource) Schema(ctx context.Context, req datasource
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linkedin-ads",
- ),
- },
- Description: `must be one of ["linkedin-ads"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_linkedinads_data_source_sdk.go b/internal/provider/source_linkedinads_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_linkedinads_resource.go b/internal/provider/source_linkedinads_resource.go
old mode 100755
new mode 100644
index ca24efad9..888d52182
--- a/internal/provider/source_linkedinads_resource.go
+++ b/internal/provider/source_linkedinads_resource.go
@@ -124,29 +124,11 @@ func (r *SourceLinkedinAdsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The access token generated for your developer application. Refer to our documentation for more information.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_ads_authentication_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of your developer application. Refer to our documentation for more information.`,
@@ -168,29 +150,11 @@ func (r *SourceLinkedinAdsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The access token generated for your developer application. Refer to our documentation for more information.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_ads_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of your developer application. Refer to our documentation for more information.`,
@@ -210,15 +174,6 @@ func (r *SourceLinkedinAdsResource) Schema(ctx context.Context, req resource.Sch
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linkedin-ads",
- ),
- },
- Description: `must be one of ["linkedin-ads"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -298,7 +253,7 @@ func (r *SourceLinkedinAdsResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLinkedinAds(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_linkedinads_resource_sdk.go b/internal/provider/source_linkedinads_resource_sdk.go
old mode 100755
new mode 100644
index dcfecef45..1edf360db
--- a/internal/provider/source_linkedinads_resource_sdk.go
+++ b/internal/provider/source_linkedinads_resource_sdk.go
@@ -28,17 +28,10 @@ func (r *SourceLinkedinAdsResourceModel) ToCreateSDKType() *shared.SourceLinkedi
if r.Configuration.Credentials != nil {
var sourceLinkedinAdsAuthenticationOAuth20 *shared.SourceLinkedinAdsAuthenticationOAuth20
if r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20 != nil {
- authMethod := new(shared.SourceLinkedinAdsAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceLinkedinAdsAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceLinkedinAdsAuthenticationOAuth20.RefreshToken.ValueString()
sourceLinkedinAdsAuthenticationOAuth20 = &shared.SourceLinkedinAdsAuthenticationOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -52,15 +45,8 @@ func (r *SourceLinkedinAdsResourceModel) ToCreateSDKType() *shared.SourceLinkedi
var sourceLinkedinAdsAuthenticationAccessToken *shared.SourceLinkedinAdsAuthenticationAccessToken
if r.Configuration.Credentials.SourceLinkedinAdsAuthenticationAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceLinkedinAdsAuthenticationAccessToken.AccessToken.ValueString()
- authMethod1 := new(shared.SourceLinkedinAdsAuthenticationAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinAdsAuthenticationAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinAdsAuthenticationAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceLinkedinAdsAuthenticationAccessTokenAuthMethod(r.Configuration.Credentials.SourceLinkedinAdsAuthenticationAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceLinkedinAdsAuthenticationAccessToken = &shared.SourceLinkedinAdsAuthenticationAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourceLinkedinAdsAuthenticationAccessToken != nil {
@@ -69,13 +55,11 @@ func (r *SourceLinkedinAdsResourceModel) ToCreateSDKType() *shared.SourceLinkedi
}
}
}
- sourceType := shared.SourceLinkedinAdsLinkedinAds(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceLinkedinAds{
AccountIds: accountIds,
AdAnalyticsReports: adAnalyticsReports,
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name1 := r.Name.ValueString()
@@ -120,17 +104,10 @@ func (r *SourceLinkedinAdsResourceModel) ToUpdateSDKType() *shared.SourceLinkedi
if r.Configuration.Credentials != nil {
var sourceLinkedinAdsUpdateAuthenticationOAuth20 *shared.SourceLinkedinAdsUpdateAuthenticationOAuth20
if r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20 != nil {
- authMethod := new(shared.SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationOAuth20.RefreshToken.ValueString()
sourceLinkedinAdsUpdateAuthenticationOAuth20 = &shared.SourceLinkedinAdsUpdateAuthenticationOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -144,15 +121,8 @@ func (r *SourceLinkedinAdsResourceModel) ToUpdateSDKType() *shared.SourceLinkedi
var sourceLinkedinAdsUpdateAuthenticationAccessToken *shared.SourceLinkedinAdsUpdateAuthenticationAccessToken
if r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationAccessToken.AccessToken.ValueString()
- authMethod1 := new(shared.SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod(r.Configuration.Credentials.SourceLinkedinAdsUpdateAuthenticationAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceLinkedinAdsUpdateAuthenticationAccessToken = &shared.SourceLinkedinAdsUpdateAuthenticationAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourceLinkedinAdsUpdateAuthenticationAccessToken != nil {
diff --git a/internal/provider/source_linkedinpages_data_source.go b/internal/provider/source_linkedinpages_data_source.go
old mode 100755
new mode 100644
index 4086a1ea3..7b8d7f705
--- a/internal/provider/source_linkedinpages_data_source.go
+++ b/internal/provider/source_linkedinpages_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,29 +62,11 @@ func (r *SourceLinkedinPagesDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_pages_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of the LinkedIn developer application.`,
@@ -107,29 +88,11 @@ func (r *SourceLinkedinPagesDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_pages_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The client ID of the LinkedIn developer application.`,
@@ -153,15 +116,6 @@ func (r *SourceLinkedinPagesDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `Specify the Organization ID`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linkedin-pages",
- ),
- },
- Description: `must be one of ["linkedin-pages"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_linkedinpages_data_source_sdk.go b/internal/provider/source_linkedinpages_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_linkedinpages_resource.go b/internal/provider/source_linkedinpages_resource.go
old mode 100755
new mode 100644
index c36890622..8fdf8e1a0
--- a/internal/provider/source_linkedinpages_resource.go
+++ b/internal/provider/source_linkedinpages_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,29 +64,11 @@ func (r *SourceLinkedinPagesResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_pages_authentication_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of the LinkedIn developer application.`,
@@ -109,29 +90,11 @@ func (r *SourceLinkedinPagesResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.`,
},
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_linkedin_pages_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oAuth2.0",
- ),
- },
- Description: `must be one of ["oAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The client ID of the LinkedIn developer application.`,
@@ -155,15 +118,6 @@ func (r *SourceLinkedinPagesResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `Specify the Organization ID`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linkedin-pages",
- ),
- },
- Description: `must be one of ["linkedin-pages"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -236,7 +190,7 @@ func (r *SourceLinkedinPagesResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLinkedinPages(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_linkedinpages_resource_sdk.go b/internal/provider/source_linkedinpages_resource_sdk.go
old mode 100755
new mode 100644
index 270cfeaeb..646ea6b50
--- a/internal/provider/source_linkedinpages_resource_sdk.go
+++ b/internal/provider/source_linkedinpages_resource_sdk.go
@@ -12,17 +12,10 @@ func (r *SourceLinkedinPagesResourceModel) ToCreateSDKType() *shared.SourceLinke
if r.Configuration.Credentials != nil {
var sourceLinkedinPagesAuthenticationOAuth20 *shared.SourceLinkedinPagesAuthenticationOAuth20
if r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20 != nil {
- authMethod := new(shared.SourceLinkedinPagesAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceLinkedinPagesAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceLinkedinPagesAuthenticationOAuth20.RefreshToken.ValueString()
sourceLinkedinPagesAuthenticationOAuth20 = &shared.SourceLinkedinPagesAuthenticationOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -36,15 +29,8 @@ func (r *SourceLinkedinPagesResourceModel) ToCreateSDKType() *shared.SourceLinke
var sourceLinkedinPagesAuthenticationAccessToken *shared.SourceLinkedinPagesAuthenticationAccessToken
if r.Configuration.Credentials.SourceLinkedinPagesAuthenticationAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceLinkedinPagesAuthenticationAccessToken.AccessToken.ValueString()
- authMethod1 := new(shared.SourceLinkedinPagesAuthenticationAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinPagesAuthenticationAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinPagesAuthenticationAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceLinkedinPagesAuthenticationAccessTokenAuthMethod(r.Configuration.Credentials.SourceLinkedinPagesAuthenticationAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceLinkedinPagesAuthenticationAccessToken = &shared.SourceLinkedinPagesAuthenticationAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourceLinkedinPagesAuthenticationAccessToken != nil {
@@ -54,11 +40,9 @@ func (r *SourceLinkedinPagesResourceModel) ToCreateSDKType() *shared.SourceLinke
}
}
orgID := r.Configuration.OrgID.ValueString()
- sourceType := shared.SourceLinkedinPagesLinkedinPages(r.Configuration.SourceType.ValueString())
configuration := shared.SourceLinkedinPages{
Credentials: credentials,
OrgID: orgID,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -87,17 +71,10 @@ func (r *SourceLinkedinPagesResourceModel) ToUpdateSDKType() *shared.SourceLinke
if r.Configuration.Credentials != nil {
var sourceLinkedinPagesUpdateAuthenticationOAuth20 *shared.SourceLinkedinPagesUpdateAuthenticationOAuth20
if r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20 != nil {
- authMethod := new(shared.SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.AuthMethod.IsNull() {
- *authMethod = shared.SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod(r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.AuthMethod.ValueString())
- } else {
- authMethod = nil
- }
clientID := r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationOAuth20.RefreshToken.ValueString()
sourceLinkedinPagesUpdateAuthenticationOAuth20 = &shared.SourceLinkedinPagesUpdateAuthenticationOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -111,15 +88,8 @@ func (r *SourceLinkedinPagesResourceModel) ToUpdateSDKType() *shared.SourceLinke
var sourceLinkedinPagesUpdateAuthenticationAccessToken *shared.SourceLinkedinPagesUpdateAuthenticationAccessToken
if r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationAccessToken.AccessToken.ValueString()
- authMethod1 := new(shared.SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod)
- if !r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationAccessToken.AuthMethod.IsUnknown() && !r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationAccessToken.AuthMethod.IsNull() {
- *authMethod1 = shared.SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod(r.Configuration.Credentials.SourceLinkedinPagesUpdateAuthenticationAccessToken.AuthMethod.ValueString())
- } else {
- authMethod1 = nil
- }
sourceLinkedinPagesUpdateAuthenticationAccessToken = &shared.SourceLinkedinPagesUpdateAuthenticationAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourceLinkedinPagesUpdateAuthenticationAccessToken != nil {
diff --git a/internal/provider/source_linnworks_data_source.go b/internal/provider/source_linnworks_data_source.go
old mode 100755
new mode 100644
index 9e5c7e90c..af932cf08
--- a/internal/provider/source_linnworks_data_source.go
+++ b/internal/provider/source_linnworks_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -61,15 +60,6 @@ func (r *SourceLinnworksDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Linnworks Application Secret`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linnworks",
- ),
- },
- Description: `must be one of ["linnworks"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_linnworks_data_source_sdk.go b/internal/provider/source_linnworks_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_linnworks_resource.go b/internal/provider/source_linnworks_resource.go
old mode 100755
new mode 100644
index 7641f5322..03c839744
--- a/internal/provider/source_linnworks_resource.go
+++ b/internal/provider/source_linnworks_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -63,15 +62,6 @@ func (r *SourceLinnworksResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Linnworks Application Secret`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "linnworks",
- ),
- },
- Description: `must be one of ["linnworks"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -154,7 +144,7 @@ func (r *SourceLinnworksResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLinnworks(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_linnworks_resource_sdk.go b/internal/provider/source_linnworks_resource_sdk.go
old mode 100755
new mode 100644
index e252ce722..555652fc7
--- a/internal/provider/source_linnworks_resource_sdk.go
+++ b/internal/provider/source_linnworks_resource_sdk.go
@@ -11,13 +11,11 @@ import (
func (r *SourceLinnworksResourceModel) ToCreateSDKType() *shared.SourceLinnworksCreateRequest {
applicationID := r.Configuration.ApplicationID.ValueString()
applicationSecret := r.Configuration.ApplicationSecret.ValueString()
- sourceType := shared.SourceLinnworksLinnworks(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
token := r.Configuration.Token.ValueString()
configuration := shared.SourceLinnworks{
ApplicationID: applicationID,
ApplicationSecret: applicationSecret,
- SourceType: sourceType,
StartDate: startDate,
Token: token,
}
diff --git a/internal/provider/source_lokalise_data_source.go b/internal/provider/source_lokalise_data_source.go
old mode 100755
new mode 100644
index fe1e24c68..e8b91de4d
--- a/internal/provider/source_lokalise_data_source.go
+++ b/internal/provider/source_lokalise_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceLokaliseDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Lokalise project ID. Available at Project Settings > General.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lokalise",
- ),
- },
- Description: `must be one of ["lokalise"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_lokalise_data_source_sdk.go b/internal/provider/source_lokalise_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_lokalise_resource.go b/internal/provider/source_lokalise_resource.go
old mode 100755
new mode 100644
index fc57f6c61..9d602354f
--- a/internal/provider/source_lokalise_resource.go
+++ b/internal/provider/source_lokalise_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceLokaliseResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Lokalise project ID. Available at Project Settings > General.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "lokalise",
- ),
- },
- Description: `must be one of ["lokalise"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceLokaliseResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceLokalise(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_lokalise_resource_sdk.go b/internal/provider/source_lokalise_resource_sdk.go
old mode 100755
new mode 100644
index 188d44d4b..d93924d8b
--- a/internal/provider/source_lokalise_resource_sdk.go
+++ b/internal/provider/source_lokalise_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceLokaliseResourceModel) ToCreateSDKType() *shared.SourceLokaliseCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
projectID := r.Configuration.ProjectID.ValueString()
- sourceType := shared.SourceLokaliseLokalise(r.Configuration.SourceType.ValueString())
configuration := shared.SourceLokalise{
- APIKey: apiKey,
- ProjectID: projectID,
- SourceType: sourceType,
+ APIKey: apiKey,
+ ProjectID: projectID,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_mailchimp_data_source.go b/internal/provider/source_mailchimp_data_source.go
old mode 100755
new mode 100644
index f82f09404..0eac8c335
--- a/internal/provider/source_mailchimp_data_source.go
+++ b/internal/provider/source_mailchimp_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -66,15 +65,6 @@ func (r *SourceMailchimpDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Mailchimp API Key. See the docs for information on how to generate this key.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
},
},
"source_mailchimp_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -84,15 +74,6 @@ func (r *SourceMailchimpDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `An access token generated using the above client ID and secret.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -110,15 +91,6 @@ func (r *SourceMailchimpDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Mailchimp API Key. See the docs for information on how to generate this key.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
},
},
"source_mailchimp_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -128,15 +100,6 @@ func (r *SourceMailchimpDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `An access token generated using the above client ID and secret.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -152,15 +115,6 @@ func (r *SourceMailchimpDataSource) Schema(ctx context.Context, req datasource.S
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailchimp",
- ),
- },
- Description: `must be one of ["mailchimp"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_mailchimp_data_source_sdk.go b/internal/provider/source_mailchimp_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mailchimp_resource.go b/internal/provider/source_mailchimp_resource.go
old mode 100755
new mode 100644
index f85f0cc82..4d4d2b1a2
--- a/internal/provider/source_mailchimp_resource.go
+++ b/internal/provider/source_mailchimp_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -68,15 +67,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Mailchimp API Key. See the docs for information on how to generate this key.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
},
},
"source_mailchimp_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -86,15 +76,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `An access token generated using the above client ID and secret.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your OAuth application.`,
@@ -112,15 +93,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Mailchimp API Key. See the docs for information on how to generate this key.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
},
},
"source_mailchimp_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
@@ -130,15 +102,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `An access token generated using the above client ID and secret.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your OAuth application.`,
@@ -154,15 +117,6 @@ func (r *SourceMailchimpResource) Schema(ctx context.Context, req resource.Schem
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailchimp",
- ),
- },
- Description: `must be one of ["mailchimp"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -235,7 +189,7 @@ func (r *SourceMailchimpResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMailchimp(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mailchimp_resource_sdk.go b/internal/provider/source_mailchimp_resource_sdk.go
old mode 100755
new mode 100644
index 01eac8861..858a4f195
--- a/internal/provider/source_mailchimp_resource_sdk.go
+++ b/internal/provider/source_mailchimp_resource_sdk.go
@@ -19,7 +19,6 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp
var sourceMailchimpAuthenticationOAuth20 *shared.SourceMailchimpAuthenticationOAuth20
if r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20.AccessToken.ValueString()
- authType := shared.SourceMailchimpAuthenticationOAuth20AuthType(r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20.AuthType.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceMailchimpAuthenticationOAuth20.ClientID.ValueString()
@@ -34,7 +33,6 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp
}
sourceMailchimpAuthenticationOAuth20 = &shared.SourceMailchimpAuthenticationOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -47,10 +45,8 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp
var sourceMailchimpAuthenticationAPIKey *shared.SourceMailchimpAuthenticationAPIKey
if r.Configuration.Credentials.SourceMailchimpAuthenticationAPIKey != nil {
apikey := r.Configuration.Credentials.SourceMailchimpAuthenticationAPIKey.Apikey.ValueString()
- authType1 := shared.SourceMailchimpAuthenticationAPIKeyAuthType(r.Configuration.Credentials.SourceMailchimpAuthenticationAPIKey.AuthType.ValueString())
sourceMailchimpAuthenticationAPIKey = &shared.SourceMailchimpAuthenticationAPIKey{
- Apikey: apikey,
- AuthType: authType1,
+ Apikey: apikey,
}
}
if sourceMailchimpAuthenticationAPIKey != nil {
@@ -59,11 +55,9 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp
}
}
}
- sourceType := shared.SourceMailchimpMailchimp(r.Configuration.SourceType.ValueString())
configuration := shared.SourceMailchimp{
CampaignID: campaignID,
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -99,7 +93,6 @@ func (r *SourceMailchimpResourceModel) ToUpdateSDKType() *shared.SourceMailchimp
var sourceMailchimpUpdateAuthenticationOAuth20 *shared.SourceMailchimpUpdateAuthenticationOAuth20
if r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20.AccessToken.ValueString()
- authType := shared.SourceMailchimpUpdateAuthenticationOAuth20AuthType(r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20.AuthType.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationOAuth20.ClientID.ValueString()
@@ -114,7 +107,6 @@ func (r *SourceMailchimpResourceModel) ToUpdateSDKType() *shared.SourceMailchimp
}
sourceMailchimpUpdateAuthenticationOAuth20 = &shared.SourceMailchimpUpdateAuthenticationOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -127,10 +119,8 @@ func (r *SourceMailchimpResourceModel) ToUpdateSDKType() *shared.SourceMailchimp
var sourceMailchimpUpdateAuthenticationAPIKey *shared.SourceMailchimpUpdateAuthenticationAPIKey
if r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationAPIKey != nil {
apikey := r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationAPIKey.Apikey.ValueString()
- authType1 := shared.SourceMailchimpUpdateAuthenticationAPIKeyAuthType(r.Configuration.Credentials.SourceMailchimpUpdateAuthenticationAPIKey.AuthType.ValueString())
sourceMailchimpUpdateAuthenticationAPIKey = &shared.SourceMailchimpUpdateAuthenticationAPIKey{
- Apikey: apikey,
- AuthType: authType1,
+ Apikey: apikey,
}
}
if sourceMailchimpUpdateAuthenticationAPIKey != nil {
diff --git a/internal/provider/source_mailgun_data_source.go b/internal/provider/source_mailgun_data_source.go
old mode 100755
new mode 100644
index 7e8bf062a..7ab7ab9bd
--- a/internal/provider/source_mailgun_data_source.go
+++ b/internal/provider/source_mailgun_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -61,15 +60,6 @@ func (r *SourceMailgunDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Primary account API key to access your Mailgun data.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailgun",
- ),
- },
- Description: `must be one of ["mailgun"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_mailgun_data_source_sdk.go b/internal/provider/source_mailgun_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mailgun_resource.go b/internal/provider/source_mailgun_resource.go
old mode 100755
new mode 100644
index a076803d7..13eddaeff
--- a/internal/provider/source_mailgun_resource.go
+++ b/internal/provider/source_mailgun_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -63,15 +62,6 @@ func (r *SourceMailgunResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Primary account API key to access your Mailgun data.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailgun",
- ),
- },
- Description: `must be one of ["mailgun"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -151,7 +141,7 @@ func (r *SourceMailgunResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMailgun(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mailgun_resource_sdk.go b/internal/provider/source_mailgun_resource_sdk.go
old mode 100755
new mode 100644
index 1896a9f7d..933a14972
--- a/internal/provider/source_mailgun_resource_sdk.go
+++ b/internal/provider/source_mailgun_resource_sdk.go
@@ -16,7 +16,6 @@ func (r *SourceMailgunResourceModel) ToCreateSDKType() *shared.SourceMailgunCrea
domainRegion = nil
}
privateKey := r.Configuration.PrivateKey.ValueString()
- sourceType := shared.SourceMailgunMailgun(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -26,7 +25,6 @@ func (r *SourceMailgunResourceModel) ToCreateSDKType() *shared.SourceMailgunCrea
configuration := shared.SourceMailgun{
DomainRegion: domainRegion,
PrivateKey: privateKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_mailjetsms_data_source.go b/internal/provider/source_mailjetsms_data_source.go
old mode 100755
new mode 100644
index 05a857404..70e6e6d10
--- a/internal/provider/source_mailjetsms_data_source.go
+++ b/internal/provider/source_mailjetsms_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceMailjetSmsDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailjet-sms",
- ),
- },
- Description: `must be one of ["mailjet-sms"]`,
- },
"start_date": schema.Int64Attribute{
Computed: true,
Description: `Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp.`,
diff --git a/internal/provider/source_mailjetsms_data_source_sdk.go b/internal/provider/source_mailjetsms_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mailjetsms_resource.go b/internal/provider/source_mailjetsms_resource.go
old mode 100755
new mode 100644
index a5146aaf5..fab68e0a6
--- a/internal/provider/source_mailjetsms_resource.go
+++ b/internal/provider/source_mailjetsms_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceMailjetSmsResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mailjet-sms",
- ),
- },
- Description: `must be one of ["mailjet-sms"]`,
- },
"start_date": schema.Int64Attribute{
Optional: true,
Description: `Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp.`,
@@ -147,7 +136,7 @@ func (r *SourceMailjetSmsResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMailjetSms(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mailjetsms_resource_sdk.go b/internal/provider/source_mailjetsms_resource_sdk.go
old mode 100755
new mode 100644
index 6c96f394b..962df9453
--- a/internal/provider/source_mailjetsms_resource_sdk.go
+++ b/internal/provider/source_mailjetsms_resource_sdk.go
@@ -14,7 +14,6 @@ func (r *SourceMailjetSmsResourceModel) ToCreateSDKType() *shared.SourceMailjetS
} else {
endDate = nil
}
- sourceType := shared.SourceMailjetSmsMailjetSms(r.Configuration.SourceType.ValueString())
startDate := new(int64)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueInt64()
@@ -23,10 +22,9 @@ func (r *SourceMailjetSmsResourceModel) ToCreateSDKType() *shared.SourceMailjetS
}
token := r.Configuration.Token.ValueString()
configuration := shared.SourceMailjetSms{
- EndDate: endDate,
- SourceType: sourceType,
- StartDate: startDate,
- Token: token,
+ EndDate: endDate,
+ StartDate: startDate,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_marketo_data_source.go b/internal/provider/source_marketo_data_source.go
old mode 100755
new mode 100644
index 7fb1f386c..ed464e460
--- a/internal/provider/source_marketo_data_source.go
+++ b/internal/provider/source_marketo_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceMarketoDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Your Marketo Base URL. See the docs for info on how to obtain this.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "marketo",
- ),
- },
- Description: `must be one of ["marketo"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_marketo_data_source_sdk.go b/internal/provider/source_marketo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_marketo_resource.go b/internal/provider/source_marketo_resource.go
old mode 100755
new mode 100644
index 366fd5332..ceaa33589
--- a/internal/provider/source_marketo_resource.go
+++ b/internal/provider/source_marketo_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceMarketoResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Your Marketo Base URL. See the docs for info on how to obtain this.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "marketo",
- ),
- },
- Description: `must be one of ["marketo"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceMarketoResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMarketo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_marketo_resource_sdk.go b/internal/provider/source_marketo_resource_sdk.go
old mode 100755
new mode 100644
index 38bd15d4f..f1730dd55
--- a/internal/provider/source_marketo_resource_sdk.go
+++ b/internal/provider/source_marketo_resource_sdk.go
@@ -12,13 +12,11 @@ func (r *SourceMarketoResourceModel) ToCreateSDKType() *shared.SourceMarketoCrea
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
domainURL := r.Configuration.DomainURL.ValueString()
- sourceType := shared.SourceMarketoMarketo(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceMarketo{
ClientID: clientID,
ClientSecret: clientSecret,
DomainURL: domainURL,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_metabase_data_source.go b/internal/provider/source_metabase_data_source.go
old mode 100755
new mode 100644
index e4d597e12..0f1effdd6
--- a/internal/provider/source_metabase_data_source.go
+++ b/internal/provider/source_metabase_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceMetabaseDataSource) Schema(ctx context.Context, req datasource.Sc
`` + "```" + ` Then copy the value of the ` + "`" + `id` + "`" + ` field returned by a successful call to that API.` + "\n" +
`Note that by default, sessions are good for 14 days and needs to be regenerated.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "metabase",
- ),
- },
- Description: `must be one of ["metabase"]`,
- },
"username": schema.StringAttribute{
Computed: true,
},
diff --git a/internal/provider/source_metabase_data_source_sdk.go b/internal/provider/source_metabase_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_metabase_resource.go b/internal/provider/source_metabase_resource.go
old mode 100755
new mode 100644
index 1cfb98f48..98493aa4a
--- a/internal/provider/source_metabase_resource.go
+++ b/internal/provider/source_metabase_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceMetabaseResource) Schema(ctx context.Context, req resource.Schema
`` + "```" + ` Then copy the value of the ` + "`" + `id` + "`" + ` field returned by a successful call to that API.` + "\n" +
`Note that by default, sessions are good for 14 days and needs to be regenerated.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "metabase",
- ),
- },
- Description: `must be one of ["metabase"]`,
- },
"username": schema.StringAttribute{
Optional: true,
},
@@ -154,7 +143,7 @@ func (r *SourceMetabaseResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMetabase(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_metabase_resource_sdk.go b/internal/provider/source_metabase_resource_sdk.go
old mode 100755
new mode 100644
index 7956843e0..091c2fe8f
--- a/internal/provider/source_metabase_resource_sdk.go
+++ b/internal/provider/source_metabase_resource_sdk.go
@@ -21,7 +21,6 @@ func (r *SourceMetabaseResourceModel) ToCreateSDKType() *shared.SourceMetabaseCr
} else {
sessionToken = nil
}
- sourceType := shared.SourceMetabaseMetabase(r.Configuration.SourceType.ValueString())
username := new(string)
if !r.Configuration.Username.IsUnknown() && !r.Configuration.Username.IsNull() {
*username = r.Configuration.Username.ValueString()
@@ -32,7 +31,6 @@ func (r *SourceMetabaseResourceModel) ToCreateSDKType() *shared.SourceMetabaseCr
InstanceAPIURL: instanceAPIURL,
Password: password,
SessionToken: sessionToken,
- SourceType: sourceType,
Username: username,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_microsoftteams_data_source.go b/internal/provider/source_microsoftteams_data_source.go
old mode 100755
new mode 100644
index 1b0ba90c1..96f160c6f
--- a/internal/provider/source_microsoftteams_data_source.go
+++ b/internal/provider/source_microsoftteams_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -59,15 +58,6 @@ func (r *SourceMicrosoftTeamsDataSource) Schema(ctx context.Context, req datasou
"source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -86,15 +76,6 @@ func (r *SourceMicrosoftTeamsDataSource) Schema(ctx context.Context, req datasou
"source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -117,15 +98,6 @@ func (r *SourceMicrosoftTeamsDataSource) Schema(ctx context.Context, req datasou
"source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -144,15 +116,6 @@ func (r *SourceMicrosoftTeamsDataSource) Schema(ctx context.Context, req datasou
"source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -182,15 +145,6 @@ func (r *SourceMicrosoftTeamsDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "microsoft-teams",
- ),
- },
- Description: `must be one of ["microsoft-teams"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_microsoftteams_data_source_sdk.go b/internal/provider/source_microsoftteams_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_microsoftteams_resource.go b/internal/provider/source_microsoftteams_resource.go
old mode 100755
new mode 100644
index a10145d77..e0b0c6420
--- a/internal/provider/source_microsoftteams_resource.go
+++ b/internal/provider/source_microsoftteams_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,15 +60,6 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource.
"source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -88,15 +78,6 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource.
"source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -119,15 +100,6 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource.
"source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -146,15 +118,6 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource.
"source_microsoft_teams_update_authentication_mechanism_authenticate_via_microsoft_o_auth_2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Microsoft Teams developer application.`,
@@ -184,15 +147,6 @@ func (r *SourceMicrosoftTeamsResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "microsoft-teams",
- ),
- },
- Description: `must be one of ["microsoft-teams"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -265,7 +219,7 @@ func (r *SourceMicrosoftTeamsResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMicrosoftTeams(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_microsoftteams_resource_sdk.go b/internal/provider/source_microsoftteams_resource_sdk.go
old mode 100755
new mode 100644
index ce1c8429d..a9f549a36
--- a/internal/provider/source_microsoftteams_resource_sdk.go
+++ b/internal/provider/source_microsoftteams_resource_sdk.go
@@ -12,18 +12,11 @@ func (r *SourceMicrosoftTeamsResourceModel) ToCreateSDKType() *shared.SourceMicr
if r.Configuration.Credentials != nil {
var sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 *shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
if r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
- authType := new(shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType)
- if !r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.IsNull() {
- *authType = shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType(r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.RefreshToken.ValueString()
tenantID := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.TenantID.ValueString()
sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 = &shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -37,17 +30,10 @@ func (r *SourceMicrosoftTeamsResourceModel) ToCreateSDKType() *shared.SourceMicr
}
var sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft *shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft
if r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft != nil {
- authType1 := new(shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthType)
- if !r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.IsNull() {
- *authType1 = shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthType(r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.ValueString())
- } else {
- authType1 = nil
- }
clientId1 := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.ClientID.ValueString()
clientSecret1 := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.ClientSecret.ValueString()
tenantId1 := r.Configuration.Credentials.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft.TenantID.ValueString()
sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft = &shared.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft{
- AuthType: authType1,
ClientID: clientId1,
ClientSecret: clientSecret1,
TenantID: tenantId1,
@@ -60,11 +46,9 @@ func (r *SourceMicrosoftTeamsResourceModel) ToCreateSDKType() *shared.SourceMicr
}
}
period := r.Configuration.Period.ValueString()
- sourceType := shared.SourceMicrosoftTeamsMicrosoftTeams(r.Configuration.SourceType.ValueString())
configuration := shared.SourceMicrosoftTeams{
Credentials: credentials,
Period: period,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -93,18 +77,11 @@ func (r *SourceMicrosoftTeamsResourceModel) ToUpdateSDKType() *shared.SourceMicr
if r.Configuration.Credentials != nil {
var sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 *shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
if r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
- authType := new(shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType)
- if !r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.IsNull() {
- *authType = shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType(r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.RefreshToken.ValueString()
tenantID := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20.TenantID.ValueString()
sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 = &shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -118,17 +95,10 @@ func (r *SourceMicrosoftTeamsResourceModel) ToUpdateSDKType() *shared.SourceMicr
}
var sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft *shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft
if r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft != nil {
- authType1 := new(shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthType)
- if !r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.IsNull() {
- *authType1 = shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthType(r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.AuthType.ValueString())
- } else {
- authType1 = nil
- }
clientId1 := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.ClientID.ValueString()
clientSecret1 := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.ClientSecret.ValueString()
tenantId1 := r.Configuration.Credentials.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft.TenantID.ValueString()
sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft = &shared.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft{
- AuthType: authType1,
ClientID: clientId1,
ClientSecret: clientSecret1,
TenantID: tenantId1,
diff --git a/internal/provider/source_mixpanel_data_source.go b/internal/provider/source_mixpanel_data_source.go
old mode 100755
new mode 100644
index 80de35b4c..cc1b48c66
--- a/internal/provider/source_mixpanel_data_source.go
+++ b/internal/provider/source_mixpanel_data_source.go
@@ -67,30 +67,12 @@ func (r *SourceMixpanelDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Mixpanel project secret. See the docs for more information on how to obtain this.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Project Secret",
- ),
- },
- Description: `must be one of ["Project Secret"]`,
- },
},
Description: `Choose how to authenticate to Mixpanel`,
},
"source_mixpanel_authentication_wildcard_service_account": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service Account",
- ),
- },
- Description: `must be one of ["Service Account"]`,
- },
"secret": schema.StringAttribute{
Computed: true,
Description: `Mixpanel Service Account Secret. See the docs for more information on how to obtain this.`,
@@ -109,30 +91,12 @@ func (r *SourceMixpanelDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Mixpanel project secret. See the docs for more information on how to obtain this.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Project Secret",
- ),
- },
- Description: `must be one of ["Project Secret"]`,
- },
},
Description: `Choose how to authenticate to Mixpanel`,
},
"source_mixpanel_update_authentication_wildcard_service_account": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service Account",
- ),
- },
- Description: `must be one of ["Service Account"]`,
- },
"secret": schema.StringAttribute{
Computed: true,
Description: `Mixpanel Service Account Secret. See the docs for more information on how to obtain this.`,
@@ -184,15 +148,6 @@ func (r *SourceMixpanelDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mixpanel",
- ),
- },
- Description: `must be one of ["mixpanel"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_mixpanel_data_source_sdk.go b/internal/provider/source_mixpanel_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mixpanel_resource.go b/internal/provider/source_mixpanel_resource.go
old mode 100755
new mode 100644
index ee9121a43..c17adc9fb
--- a/internal/provider/source_mixpanel_resource.go
+++ b/internal/provider/source_mixpanel_resource.go
@@ -69,30 +69,12 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Mixpanel project secret. See the docs for more information on how to obtain this.`,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Project Secret",
- ),
- },
- Description: `must be one of ["Project Secret"]`,
- },
},
Description: `Choose how to authenticate to Mixpanel`,
},
"source_mixpanel_authentication_wildcard_service_account": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service Account",
- ),
- },
- Description: `must be one of ["Service Account"]`,
- },
"secret": schema.StringAttribute{
Required: true,
Description: `Mixpanel Service Account Secret. See the docs for more information on how to obtain this.`,
@@ -111,30 +93,12 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Mixpanel project secret. See the docs for more information on how to obtain this.`,
},
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Project Secret",
- ),
- },
- Description: `must be one of ["Project Secret"]`,
- },
},
Description: `Choose how to authenticate to Mixpanel`,
},
"source_mixpanel_update_authentication_wildcard_service_account": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "option_title": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Service Account",
- ),
- },
- Description: `must be one of ["Service Account"]`,
- },
"secret": schema.StringAttribute{
Required: true,
Description: `Mixpanel Service Account Secret. See the docs for more information on how to obtain this.`,
@@ -186,15 +150,6 @@ func (r *SourceMixpanelResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.`,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mixpanel",
- ),
- },
- Description: `must be one of ["mixpanel"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -274,7 +229,7 @@ func (r *SourceMixpanelResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMixpanel(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mixpanel_resource_sdk.go b/internal/provider/source_mixpanel_resource_sdk.go
old mode 100755
new mode 100644
index c9610900e..e530d2d12
--- a/internal/provider/source_mixpanel_resource_sdk.go
+++ b/internal/provider/source_mixpanel_resource_sdk.go
@@ -19,18 +19,11 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr
if r.Configuration.Credentials != nil {
var sourceMixpanelAuthenticationWildcardServiceAccount *shared.SourceMixpanelAuthenticationWildcardServiceAccount
if r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount != nil {
- optionTitle := new(shared.SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle)
- if !r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount.OptionTitle.IsNull() {
- *optionTitle = shared.SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle(r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
secret := r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount.Secret.ValueString()
username := r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardServiceAccount.Username.ValueString()
sourceMixpanelAuthenticationWildcardServiceAccount = &shared.SourceMixpanelAuthenticationWildcardServiceAccount{
- OptionTitle: optionTitle,
- Secret: secret,
- Username: username,
+ Secret: secret,
+ Username: username,
}
}
if sourceMixpanelAuthenticationWildcardServiceAccount != nil {
@@ -41,15 +34,8 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr
var sourceMixpanelAuthenticationWildcardProjectSecret *shared.SourceMixpanelAuthenticationWildcardProjectSecret
if r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardProjectSecret != nil {
apiSecret := r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardProjectSecret.APISecret.ValueString()
- optionTitle1 := new(shared.SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle)
- if !r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardProjectSecret.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardProjectSecret.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle(r.Configuration.Credentials.SourceMixpanelAuthenticationWildcardProjectSecret.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
sourceMixpanelAuthenticationWildcardProjectSecret = &shared.SourceMixpanelAuthenticationWildcardProjectSecret{
- APISecret: apiSecret,
- OptionTitle: optionTitle1,
+ APISecret: apiSecret,
}
}
if sourceMixpanelAuthenticationWildcardProjectSecret != nil {
@@ -94,12 +80,6 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr
} else {
selectPropertiesByDefault = nil
}
- sourceType := new(shared.SourceMixpanelMixpanel)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceMixpanelMixpanel(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -115,7 +95,6 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr
ProjectTimezone: projectTimezone,
Region: region,
SelectPropertiesByDefault: selectPropertiesByDefault,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -151,18 +130,11 @@ func (r *SourceMixpanelResourceModel) ToUpdateSDKType() *shared.SourceMixpanelPu
if r.Configuration.Credentials != nil {
var sourceMixpanelUpdateAuthenticationWildcardServiceAccount *shared.SourceMixpanelUpdateAuthenticationWildcardServiceAccount
if r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount != nil {
- optionTitle := new(shared.SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle)
- if !r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount.OptionTitle.IsNull() {
- *optionTitle = shared.SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle(r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount.OptionTitle.ValueString())
- } else {
- optionTitle = nil
- }
secret := r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount.Secret.ValueString()
username := r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardServiceAccount.Username.ValueString()
sourceMixpanelUpdateAuthenticationWildcardServiceAccount = &shared.SourceMixpanelUpdateAuthenticationWildcardServiceAccount{
- OptionTitle: optionTitle,
- Secret: secret,
- Username: username,
+ Secret: secret,
+ Username: username,
}
}
if sourceMixpanelUpdateAuthenticationWildcardServiceAccount != nil {
@@ -173,15 +145,8 @@ func (r *SourceMixpanelResourceModel) ToUpdateSDKType() *shared.SourceMixpanelPu
var sourceMixpanelUpdateAuthenticationWildcardProjectSecret *shared.SourceMixpanelUpdateAuthenticationWildcardProjectSecret
if r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardProjectSecret != nil {
apiSecret := r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardProjectSecret.APISecret.ValueString()
- optionTitle1 := new(shared.SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle)
- if !r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardProjectSecret.OptionTitle.IsUnknown() && !r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardProjectSecret.OptionTitle.IsNull() {
- *optionTitle1 = shared.SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle(r.Configuration.Credentials.SourceMixpanelUpdateAuthenticationWildcardProjectSecret.OptionTitle.ValueString())
- } else {
- optionTitle1 = nil
- }
sourceMixpanelUpdateAuthenticationWildcardProjectSecret = &shared.SourceMixpanelUpdateAuthenticationWildcardProjectSecret{
- APISecret: apiSecret,
- OptionTitle: optionTitle1,
+ APISecret: apiSecret,
}
}
if sourceMixpanelUpdateAuthenticationWildcardProjectSecret != nil {
diff --git a/internal/provider/source_monday_data_source.go b/internal/provider/source_monday_data_source.go
old mode 100755
new mode 100644
index ecbc54cb8..dc3c251a5
--- a/internal/provider/source_monday_data_source.go
+++ b/internal/provider/source_monday_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceMondayDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `API Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_monday_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -81,15 +71,6 @@ func (r *SourceMondayDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -111,15 +92,6 @@ func (r *SourceMondayDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `API Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_monday_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -129,15 +101,6 @@ func (r *SourceMondayDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -157,15 +120,6 @@ func (r *SourceMondayDataSource) Schema(ctx context.Context, req datasource.Sche
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "monday",
- ),
- },
- Description: `must be one of ["monday"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_monday_data_source_sdk.go b/internal/provider/source_monday_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_monday_resource.go b/internal/provider/source_monday_resource.go
old mode 100755
new mode 100644
index 0a50cf7a3..dbee750cb
--- a/internal/provider/source_monday_resource.go
+++ b/internal/provider/source_monday_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `API Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_monday_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -83,15 +73,6 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -113,15 +94,6 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `API Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_monday_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -131,15 +103,6 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -159,15 +122,6 @@ func (r *SourceMondayResource) Schema(ctx context.Context, req resource.SchemaRe
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "monday",
- ),
- },
- Description: `must be one of ["monday"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -240,7 +194,7 @@ func (r *SourceMondayResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMonday(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_monday_resource_sdk.go b/internal/provider/source_monday_resource_sdk.go
old mode 100755
new mode 100644
index fbd649fed..50d8d9944
--- a/internal/provider/source_monday_resource_sdk.go
+++ b/internal/provider/source_monday_resource_sdk.go
@@ -13,7 +13,6 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate
var sourceMondayAuthorizationMethodOAuth20 *shared.SourceMondayAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceMondayAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceMondayAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := shared.SourceMondayAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceMondayAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceMondayAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceMondayAuthorizationMethodOAuth20.ClientSecret.ValueString()
subdomain := new(string)
@@ -24,7 +23,6 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate
}
sourceMondayAuthorizationMethodOAuth20 = &shared.SourceMondayAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
Subdomain: subdomain,
@@ -38,10 +36,8 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate
var sourceMondayAuthorizationMethodAPIToken *shared.SourceMondayAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceMondayAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceMondayAuthorizationMethodAPIToken.APIToken.ValueString()
- authType1 := shared.SourceMondayAuthorizationMethodAPITokenAuthType(r.Configuration.Credentials.SourceMondayAuthorizationMethodAPIToken.AuthType.ValueString())
sourceMondayAuthorizationMethodAPIToken = &shared.SourceMondayAuthorizationMethodAPIToken{
APIToken: apiToken,
- AuthType: authType1,
}
}
if sourceMondayAuthorizationMethodAPIToken != nil {
@@ -50,10 +46,8 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate
}
}
}
- sourceType := shared.SourceMondayMonday(r.Configuration.SourceType.ValueString())
configuration := shared.SourceMonday{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -83,7 +77,6 @@ func (r *SourceMondayResourceModel) ToUpdateSDKType() *shared.SourceMondayPutReq
var sourceMondayUpdateAuthorizationMethodOAuth20 *shared.SourceMondayUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := shared.SourceMondayUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
subdomain := new(string)
@@ -94,7 +87,6 @@ func (r *SourceMondayResourceModel) ToUpdateSDKType() *shared.SourceMondayPutReq
}
sourceMondayUpdateAuthorizationMethodOAuth20 = &shared.SourceMondayUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
Subdomain: subdomain,
@@ -108,10 +100,8 @@ func (r *SourceMondayResourceModel) ToUpdateSDKType() *shared.SourceMondayPutReq
var sourceMondayUpdateAuthorizationMethodAPIToken *shared.SourceMondayUpdateAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodAPIToken.APIToken.ValueString()
- authType1 := shared.SourceMondayUpdateAuthorizationMethodAPITokenAuthType(r.Configuration.Credentials.SourceMondayUpdateAuthorizationMethodAPIToken.AuthType.ValueString())
sourceMondayUpdateAuthorizationMethodAPIToken = &shared.SourceMondayUpdateAuthorizationMethodAPIToken{
APIToken: apiToken,
- AuthType: authType1,
}
}
if sourceMondayUpdateAuthorizationMethodAPIToken != nil {
diff --git a/internal/provider/source_mongodb_data_source.go b/internal/provider/source_mongodb_data_source.go
old mode 100755
new mode 100644
index 907de685e..861914eb6
--- a/internal/provider/source_mongodb_data_source.go
+++ b/internal/provider/source_mongodb_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceMongodbDataSource struct {
// SourceMongodbDataSourceModel describes the data model.
type SourceMongodbDataSourceModel struct {
- Configuration SourceMongodb1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceMongodb `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -67,41 +66,23 @@ func (r *SourceMongodbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_mongodb_mongo_db_instance_type_mongo_db_atlas": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "cluster_url": schema.StringAttribute{
- Computed: true,
- Description: `The URL of a cluster to connect to.`,
- },
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "atlas",
- ),
- },
- Description: `must be one of ["atlas"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "cluster_url": schema.StringAttribute{
+ Computed: true,
+ Description: `The URL of a cluster to connect to.`,
+ },
},
Description: `The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.`,
},
"source_mongodb_mongo_db_instance_type_replica_set": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "replica",
- ),
- },
- Description: `must be one of ["replica"]`,
- },
"replica_set": schema.StringAttribute{
Computed: true,
Description: `A replica set in MongoDB is a group of mongod processes that maintain the same data set.`,
@@ -120,15 +101,6 @@ func (r *SourceMongodbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The host name of the Mongo database.`,
},
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "standalone",
- ),
- },
- Description: `must be one of ["standalone"]`,
- },
"port": schema.Int64Attribute{
Computed: true,
Description: `The port of the Mongo database.`,
@@ -139,41 +111,23 @@ func (r *SourceMongodbDataSource) Schema(ctx context.Context, req datasource.Sch
"source_mongodb_update_mongo_db_instance_type_mongo_db_atlas": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "cluster_url": schema.StringAttribute{
- Computed: true,
- Description: `The URL of a cluster to connect to.`,
- },
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "atlas",
- ),
- },
- Description: `must be one of ["atlas"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "cluster_url": schema.StringAttribute{
+ Computed: true,
+ Description: `The URL of a cluster to connect to.`,
+ },
},
Description: `The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.`,
},
"source_mongodb_update_mongo_db_instance_type_replica_set": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "replica",
- ),
- },
- Description: `must be one of ["replica"]`,
- },
"replica_set": schema.StringAttribute{
Computed: true,
Description: `A replica set in MongoDB is a group of mongod processes that maintain the same data set.`,
@@ -192,15 +146,6 @@ func (r *SourceMongodbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The host name of the Mongo database.`,
},
- "instance": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "standalone",
- ),
- },
- Description: `must be one of ["standalone"]`,
- },
"port": schema.Int64Attribute{
Computed: true,
Description: `The port of the Mongo database.`,
@@ -218,15 +163,6 @@ func (r *SourceMongodbDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The password associated with this username.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb",
- ),
- },
- Description: `must be one of ["mongodb"]`,
- },
"user": schema.StringAttribute{
Computed: true,
Description: `The username which is used to access the database.`,
diff --git a/internal/provider/source_mongodb_data_source_sdk.go b/internal/provider/source_mongodb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mongodb_resource.go b/internal/provider/source_mongodb_resource.go
old mode 100755
new mode 100644
index ed1431835..df4ad171b
--- a/internal/provider/source_mongodb_resource.go
+++ b/internal/provider/source_mongodb_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -69,19 +68,6 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
"source_mongodb_mongo_db_instance_type_mongo_db_atlas": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "cluster_url": schema.StringAttribute{
- Required: true,
- Description: `The URL of a cluster to connect to.`,
- },
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "atlas",
- ),
- },
- Description: `must be one of ["atlas"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -89,21 +75,16 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
+ "cluster_url": schema.StringAttribute{
+ Required: true,
+ Description: `The URL of a cluster to connect to.`,
+ },
},
Description: `The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.`,
},
"source_mongodb_mongo_db_instance_type_replica_set": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "replica",
- ),
- },
- Description: `must be one of ["replica"]`,
- },
"replica_set": schema.StringAttribute{
Optional: true,
Description: `A replica set in MongoDB is a group of mongod processes that maintain the same data set.`,
@@ -122,17 +103,8 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The host name of the Mongo database.`,
},
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "standalone",
- ),
- },
- Description: `must be one of ["standalone"]`,
- },
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port of the Mongo database.`,
},
},
@@ -141,19 +113,6 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
"source_mongodb_update_mongo_db_instance_type_mongo_db_atlas": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "cluster_url": schema.StringAttribute{
- Required: true,
- Description: `The URL of a cluster to connect to.`,
- },
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "atlas",
- ),
- },
- Description: `must be one of ["atlas"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -161,21 +120,16 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
},
Description: `Parsed as JSON.`,
},
+ "cluster_url": schema.StringAttribute{
+ Required: true,
+ Description: `The URL of a cluster to connect to.`,
+ },
},
Description: `The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.`,
},
"source_mongodb_update_mongo_db_instance_type_replica_set": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "replica",
- ),
- },
- Description: `must be one of ["replica"]`,
- },
"replica_set": schema.StringAttribute{
Optional: true,
Description: `A replica set in MongoDB is a group of mongod processes that maintain the same data set.`,
@@ -194,17 +148,8 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The host name of the Mongo database.`,
},
- "instance": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "standalone",
- ),
- },
- Description: `must be one of ["standalone"]`,
- },
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port of the Mongo database.`,
},
},
@@ -220,15 +165,6 @@ func (r *SourceMongodbResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `The password associated with this username.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb",
- ),
- },
- Description: `must be one of ["mongodb"]`,
- },
"user": schema.StringAttribute{
Optional: true,
Description: `The username which is used to access the database.`,
@@ -305,7 +241,7 @@ func (r *SourceMongodbResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMongodb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mongodb_resource_sdk.go b/internal/provider/source_mongodb_resource_sdk.go
old mode 100755
new mode 100644
index 018f5e04d..7f113cec0
--- a/internal/provider/source_mongodb_resource_sdk.go
+++ b/internal/provider/source_mongodb_resource_sdk.go
@@ -21,12 +21,15 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
var sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance *shared.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
if r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
host := r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Host.ValueString()
- instance := shared.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
- port := r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsNull() {
+ *port = r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ } else {
+ port = nil
+ }
sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance = &shared.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance{
- Host: host,
- Instance: instance,
- Port: port,
+ Host: host,
+ Port: port,
}
}
if sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
@@ -36,7 +39,6 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
}
var sourceMongodbMongoDbInstanceTypeReplicaSet *shared.SourceMongodbMongoDbInstanceTypeReplicaSet
if r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet != nil {
- instance1 := shared.SourceMongodbMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet.Instance.ValueString())
replicaSet := new(string)
if !r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.IsNull() {
*replicaSet = r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet.ReplicaSet.ValueString()
@@ -45,7 +47,6 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
}
serverAddresses := r.Configuration.InstanceType.SourceMongodbMongoDbInstanceTypeReplicaSet.ServerAddresses.ValueString()
sourceMongodbMongoDbInstanceTypeReplicaSet = &shared.SourceMongodbMongoDbInstanceTypeReplicaSet{
- Instance: instance1,
ReplicaSet: replicaSet,
ServerAddresses: serverAddresses,
}
@@ -57,16 +58,14 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
}
var sourceMongodbMongoDBInstanceTypeMongoDBAtlas *shared.SourceMongodbMongoDBInstanceTypeMongoDBAtlas
if r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
- clusterURL := r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
- instance2 := shared.SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
var additionalProperties interface{}
if !r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clusterURL := r.Configuration.InstanceType.SourceMongodbMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
sourceMongodbMongoDBInstanceTypeMongoDBAtlas = &shared.SourceMongodbMongoDBInstanceTypeMongoDBAtlas{
- ClusterURL: clusterURL,
- Instance: instance2,
AdditionalProperties: additionalProperties,
+ ClusterURL: clusterURL,
}
}
if sourceMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
@@ -81,7 +80,6 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
} else {
password = nil
}
- sourceType := shared.SourceMongodbMongodb(r.Configuration.SourceType.ValueString())
user := new(string)
if !r.Configuration.User.IsUnknown() && !r.Configuration.User.IsNull() {
*user = r.Configuration.User.ValueString()
@@ -93,7 +91,6 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea
Database: database,
InstanceType: instanceType,
Password: password,
- SourceType: sourceType,
User: user,
}
name := r.Name.ValueString()
@@ -131,12 +128,15 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR
var sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance *shared.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
if r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
host := r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Host.ValueString()
- instance := shared.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance(r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Instance.ValueString())
- port := r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.IsNull() {
+ *port = r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance.Port.ValueInt64()
+ } else {
+ port = nil
+ }
sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance = &shared.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance{
- Host: host,
- Instance: instance,
- Port: port,
+ Host: host,
+ Port: port,
}
}
if sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
@@ -146,7 +146,6 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR
}
var sourceMongodbUpdateMongoDbInstanceTypeReplicaSet *shared.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet
if r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet != nil {
- instance1 := shared.SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance(r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet.Instance.ValueString())
replicaSet := new(string)
if !r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.IsNull() {
*replicaSet = r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet.ReplicaSet.ValueString()
@@ -155,7 +154,6 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR
}
serverAddresses := r.Configuration.InstanceType.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet.ServerAddresses.ValueString()
sourceMongodbUpdateMongoDbInstanceTypeReplicaSet = &shared.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet{
- Instance: instance1,
ReplicaSet: replicaSet,
ServerAddresses: serverAddresses,
}
@@ -167,16 +165,14 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR
}
var sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas *shared.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
if r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
- clusterURL := r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
- instance2 := shared.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance(r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.Instance.ValueString())
var additionalProperties interface{}
if !r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.IsUnknown() && !r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clusterURL := r.Configuration.InstanceType.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas.ClusterURL.ValueString()
sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas = &shared.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas{
- ClusterURL: clusterURL,
- Instance: instance2,
AdditionalProperties: additionalProperties,
+ ClusterURL: clusterURL,
}
}
if sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
diff --git a/internal/provider/source_mongodbinternalpoc_data_source.go b/internal/provider/source_mongodbinternalpoc_data_source.go
old mode 100755
new mode 100644
index 1e06a70e6..f052d3bd6
--- a/internal/provider/source_mongodbinternalpoc_data_source.go
+++ b/internal/provider/source_mongodbinternalpoc_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceMongodbInternalPocDataSource) Schema(ctx context.Context, req dat
Computed: true,
Description: `The name of the replica set to be replicated.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb-internal-poc",
- ),
- },
- Description: `must be one of ["mongodb-internal-poc"]`,
- },
"user": schema.StringAttribute{
Computed: true,
Description: `The username which is used to access the database.`,
diff --git a/internal/provider/source_mongodbinternalpoc_data_source_sdk.go b/internal/provider/source_mongodbinternalpoc_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mongodbinternalpoc_resource.go b/internal/provider/source_mongodbinternalpoc_resource.go
old mode 100755
new mode 100644
index ff1977ff6..1af8c7d89
--- a/internal/provider/source_mongodbinternalpoc_resource.go
+++ b/internal/provider/source_mongodbinternalpoc_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceMongodbInternalPocResource) Schema(ctx context.Context, req resou
Optional: true,
Description: `The name of the replica set to be replicated.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mongodb-internal-poc",
- ),
- },
- Description: `must be one of ["mongodb-internal-poc"]`,
- },
"user": schema.StringAttribute{
Optional: true,
Description: `The username which is used to access the database.`,
@@ -155,7 +144,7 @@ func (r *SourceMongodbInternalPocResource) Create(ctx context.Context, req resou
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMongodbInternalPoc(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mongodbinternalpoc_resource_sdk.go b/internal/provider/source_mongodbinternalpoc_resource_sdk.go
old mode 100755
new mode 100644
index 9e784063b..5d6625040
--- a/internal/provider/source_mongodbinternalpoc_resource_sdk.go
+++ b/internal/provider/source_mongodbinternalpoc_resource_sdk.go
@@ -32,7 +32,6 @@ func (r *SourceMongodbInternalPocResourceModel) ToCreateSDKType() *shared.Source
} else {
replicaSet = nil
}
- sourceType := shared.SourceMongodbInternalPocMongodbInternalPoc(r.Configuration.SourceType.ValueString())
user := new(string)
if !r.Configuration.User.IsUnknown() && !r.Configuration.User.IsNull() {
*user = r.Configuration.User.ValueString()
@@ -44,7 +43,6 @@ func (r *SourceMongodbInternalPocResourceModel) ToCreateSDKType() *shared.Source
ConnectionString: connectionString,
Password: password,
ReplicaSet: replicaSet,
- SourceType: sourceType,
User: user,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_mssql_data_source.go b/internal/provider/source_mssql_data_source.go
old mode 100755
new mode 100644
index fcf445595..a055714b3
--- a/internal/provider/source_mssql_data_source.go
+++ b/internal/provider/source_mssql_data_source.go
@@ -94,15 +94,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"snapshot_isolation": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -118,18 +109,8 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.`,
},
"source_mssql_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_mssql_update_update_method_read_changes_using_change_data_capture_cdc": schema.SingleNestedAttribute{
@@ -150,15 +131,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"snapshot_isolation": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -174,18 +146,8 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.`,
},
"source_mssql_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -199,31 +161,12 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
ElementType: types.StringType,
Description: `The list of schemas to sync from. Defaults to user. Case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mssql",
- ),
- },
- Description: `must be one of ["mssql"]`,
- },
"ssl_method": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_mssql_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"source_mssql_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -233,31 +176,12 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
"source_mssql_update_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"source_mssql_update_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -267,15 +191,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
@@ -289,19 +204,8 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Attributes: map[string]schema.Attribute{
"source_mssql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -311,16 +215,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -347,16 +241,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -369,19 +253,8 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -391,16 +264,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -427,16 +290,6 @@ func (r *SourceMssqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_mssql_data_source_sdk.go b/internal/provider/source_mssql_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mssql_resource.go b/internal/provider/source_mssql_resource.go
old mode 100755
new mode 100644
index 81820013d..58e897da2
--- a/internal/provider/source_mssql_resource.go
+++ b/internal/provider/source_mssql_resource.go
@@ -96,15 +96,6 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"snapshot_isolation": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -120,18 +111,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.`,
},
"source_mssql_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_mssql_update_update_method_read_changes_using_change_data_capture_cdc": schema.SingleNestedAttribute{
@@ -152,15 +133,6 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"snapshot_isolation": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -176,18 +148,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.`,
},
"source_mssql_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -201,31 +163,12 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
ElementType: types.StringType,
Description: `The list of schemas to sync from. Defaults to user. Case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mssql",
- ),
- },
- Description: `must be one of ["mssql"]`,
- },
"ssl_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_mssql_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"source_mssql_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -235,31 +178,12 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
"source_mssql_update_ssl_method_encrypted_trust_server_certificate": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_trust_server_certificate",
- ),
- },
- Description: `must be one of ["encrypted_trust_server_certificate"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Use the certificate provided by the server without verification. (For testing purposes only!)`,
},
"source_mssql_update_ssl_method_encrypted_verify_certificate": schema.SingleNestedAttribute{
@@ -269,15 +193,6 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Specifies the host name of the server. The value of this property must match the subject property of the certificate.`,
},
- "ssl_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
},
Description: `Verify and use the certificate provided by the server.`,
},
@@ -291,19 +206,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Attributes: map[string]schema.Attribute{
"source_mssql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -313,18 +217,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -349,18 +243,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -371,19 +255,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mssql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -393,18 +266,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -429,18 +292,8 @@ func (r *SourceMssqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -532,7 +385,7 @@ func (r *SourceMssqlResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMssql(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mssql_resource_sdk.go b/internal/provider/source_mssql_resource_sdk.go
old mode 100755
new mode 100644
index 4dfb51698..22abc3502
--- a/internal/provider/source_mssql_resource_sdk.go
+++ b/internal/provider/source_mssql_resource_sdk.go
@@ -39,7 +39,6 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
} else {
initialWaitingSeconds = nil
}
- method := shared.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod(r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC.Method.ValueString())
snapshotIsolation := new(shared.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel)
if !r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.IsUnknown() && !r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.IsNull() {
*snapshotIsolation = shared.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel(r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.ValueString())
@@ -49,7 +48,6 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
sourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC = &shared.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC{
DataToSync: dataToSync,
InitialWaitingSeconds: initialWaitingSeconds,
- Method: method,
SnapshotIsolation: snapshotIsolation,
}
}
@@ -60,10 +58,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
}
var sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor *shared.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method1 := shared.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method1,
- }
+ sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = &shared.SourceMssqlUpdateMethod{
@@ -75,15 +70,11 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
}
- sourceType := shared.SourceMssqlMssql(r.Configuration.SourceType.ValueString())
var sslMethod *shared.SourceMssqlSSLMethod
if r.Configuration.SslMethod != nil {
var sourceMssqlSSLMethodEncryptedTrustServerCertificate *shared.SourceMssqlSSLMethodEncryptedTrustServerCertificate
if r.Configuration.SslMethod.SourceMssqlSSLMethodEncryptedTrustServerCertificate != nil {
- sslMethod1 := shared.SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod(r.Configuration.SslMethod.SourceMssqlSSLMethodEncryptedTrustServerCertificate.SslMethod.ValueString())
- sourceMssqlSSLMethodEncryptedTrustServerCertificate = &shared.SourceMssqlSSLMethodEncryptedTrustServerCertificate{
- SslMethod: sslMethod1,
- }
+ sourceMssqlSSLMethodEncryptedTrustServerCertificate = &shared.SourceMssqlSSLMethodEncryptedTrustServerCertificate{}
}
if sourceMssqlSSLMethodEncryptedTrustServerCertificate != nil {
sslMethod = &shared.SourceMssqlSSLMethod{
@@ -98,10 +89,8 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
} else {
hostNameInCertificate = nil
}
- sslMethod2 := shared.SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethod(r.Configuration.SslMethod.SourceMssqlSSLMethodEncryptedVerifyCertificate.SslMethod.ValueString())
sourceMssqlSSLMethodEncryptedVerifyCertificate = &shared.SourceMssqlSSLMethodEncryptedVerifyCertificate{
HostNameInCertificate: hostNameInCertificate,
- SslMethod: sslMethod2,
}
}
if sourceMssqlSSLMethodEncryptedVerifyCertificate != nil {
@@ -114,10 +103,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
if r.Configuration.TunnelMethod != nil {
var sourceMssqlSSHTunnelMethodNoTunnel *shared.SourceMssqlSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceMssqlSSHTunnelMethodNoTunnel = &shared.SourceMssqlSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceMssqlSSHTunnelMethodNoTunnel = &shared.SourceMssqlSSHTunnelMethodNoTunnel{}
}
if sourceMssqlSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceMssqlSSHTunnelMethod{
@@ -128,15 +114,18 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
if r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceMssqlSSHTunnelMethodSSHKeyAuthentication = &shared.SourceMssqlSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -147,13 +136,16 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
var sourceMssqlSSHTunnelMethodPasswordAuthentication *shared.SourceMssqlSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceMssqlSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceMssqlSSHTunnelMethodPasswordAuthentication = &shared.SourceMssqlSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -174,7 +166,6 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe
Port: port,
ReplicationMethod: replicationMethod,
Schemas: schemas,
- SourceType: sourceType,
SslMethod: sslMethod,
TunnelMethod: tunnelMethod,
Username: username,
@@ -233,7 +224,6 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
} else {
initialWaitingSeconds = nil
}
- method := shared.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod(r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC.Method.ValueString())
snapshotIsolation := new(shared.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel)
if !r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.IsUnknown() && !r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.IsNull() {
*snapshotIsolation = shared.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel(r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC.SnapshotIsolation.ValueString())
@@ -243,7 +233,6 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
sourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC = &shared.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC{
DataToSync: dataToSync,
InitialWaitingSeconds: initialWaitingSeconds,
- Method: method,
SnapshotIsolation: snapshotIsolation,
}
}
@@ -254,10 +243,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
}
var sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor *shared.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method1 := shared.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method1,
- }
+ sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = &shared.SourceMssqlUpdateUpdateMethod{
@@ -273,10 +259,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
if r.Configuration.SslMethod != nil {
var sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate *shared.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate
if r.Configuration.SslMethod.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
- sslMethod1 := shared.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod(r.Configuration.SslMethod.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate.SslMethod.ValueString())
- sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate = &shared.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate{
- SslMethod: sslMethod1,
- }
+ sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate = &shared.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate{}
}
if sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
sslMethod = &shared.SourceMssqlUpdateSSLMethod{
@@ -291,10 +274,8 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
} else {
hostNameInCertificate = nil
}
- sslMethod2 := shared.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod(r.Configuration.SslMethod.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate.SslMethod.ValueString())
sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate = &shared.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate{
HostNameInCertificate: hostNameInCertificate,
- SslMethod: sslMethod2,
}
}
if sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate != nil {
@@ -307,10 +288,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
if r.Configuration.TunnelMethod != nil {
var sourceMssqlUpdateSSHTunnelMethodNoTunnel *shared.SourceMssqlUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceMssqlUpdateSSHTunnelMethodNoTunnel = &shared.SourceMssqlUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceMssqlUpdateSSHTunnelMethodNoTunnel = &shared.SourceMssqlUpdateSSHTunnelMethodNoTunnel{}
}
if sourceMssqlUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceMssqlUpdateSSHTunnelMethod{
@@ -321,15 +299,18 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
if r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -340,13 +321,16 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque
var sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication *shared.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_myhours_data_source.go b/internal/provider/source_myhours_data_source.go
old mode 100755
new mode 100644
index 3d371a099..bd8f278f4
--- a/internal/provider/source_myhours_data_source.go
+++ b/internal/provider/source_myhours_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceMyHoursDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The password associated to the username`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "my-hours",
- ),
- },
- Description: `must be one of ["my-hours"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Start date for collecting time logs`,
diff --git a/internal/provider/source_myhours_data_source_sdk.go b/internal/provider/source_myhours_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_myhours_resource.go b/internal/provider/source_myhours_resource.go
old mode 100755
new mode 100644
index 45b84f1c5..2a7681b77
--- a/internal/provider/source_myhours_resource.go
+++ b/internal/provider/source_myhours_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceMyHoursResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The password associated to the username`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "my-hours",
- ),
- },
- Description: `must be one of ["my-hours"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Start date for collecting time logs`,
@@ -151,7 +140,7 @@ func (r *SourceMyHoursResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMyHours(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_myhours_resource_sdk.go b/internal/provider/source_myhours_resource_sdk.go
old mode 100755
new mode 100644
index 3ecc5dfdd..da8377675
--- a/internal/provider/source_myhours_resource_sdk.go
+++ b/internal/provider/source_myhours_resource_sdk.go
@@ -16,13 +16,11 @@ func (r *SourceMyHoursResourceModel) ToCreateSDKType() *shared.SourceMyHoursCrea
logsBatchSize = nil
}
password := r.Configuration.Password.ValueString()
- sourceType := shared.SourceMyHoursMyHours(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceMyHours{
Email: email,
LogsBatchSize: logsBatchSize,
Password: password,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_mysql_data_source.go b/internal/provider/source_mysql_data_source.go
old mode 100755
new mode 100644
index f4c2fad0f..78767ccad
--- a/internal/provider/source_mysql_data_source.go
+++ b/internal/provider/source_mysql_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -83,15 +82,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"server_time_zone": schema.StringAttribute{
Computed: true,
Description: `Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.`,
@@ -100,18 +90,8 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.`,
},
"source_mysql_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_mysql_update_update_method_read_changes_using_binary_log_cdc": schema.SingleNestedAttribute{
@@ -121,15 +101,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"server_time_zone": schema.StringAttribute{
Computed: true,
Description: `Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.`,
@@ -138,18 +109,8 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.`,
},
"source_mysql_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -158,46 +119,17 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
},
Description: `Configures how data is extracted from the database.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mysql",
- ),
- },
- Description: `must be one of ["mysql"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_mysql_ssl_modes_preferred": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "preferred",
- ),
- },
- Description: `must be one of ["preferred"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.`,
},
"source_mysql_ssl_modes_required": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "required",
- ),
- },
- Description: `must be one of ["required"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.`,
},
"source_mysql_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -219,15 +151,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_ca",
- ),
- },
- Description: `must be one of ["verify_ca"]`,
- },
},
Description: `Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match.`,
},
@@ -250,46 +173,17 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_identity",
- ),
- },
- Description: `must be one of ["verify_identity"]`,
- },
},
Description: `Always connect with SSL. Verify both CA and Hostname.`,
},
"source_mysql_update_ssl_modes_preferred": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "preferred",
- ),
- },
- Description: `must be one of ["preferred"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.`,
},
"source_mysql_update_ssl_modes_required": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "required",
- ),
- },
- Description: `must be one of ["required"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.`,
},
"source_mysql_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -311,15 +205,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_ca",
- ),
- },
- Description: `must be one of ["verify_ca"]`,
- },
},
Description: `Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match.`,
},
@@ -342,15 +227,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_identity",
- ),
- },
- Description: `must be one of ["verify_identity"]`,
- },
},
Description: `Always connect with SSL. Verify both CA and Hostname.`,
},
@@ -364,19 +240,8 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Attributes: map[string]schema.Attribute{
"source_mysql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -386,16 +251,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -422,16 +277,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -444,19 +289,8 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -466,16 +300,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -502,16 +326,6 @@ func (r *SourceMysqlDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_mysql_data_source_sdk.go b/internal/provider/source_mysql_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_mysql_resource.go b/internal/provider/source_mysql_resource.go
old mode 100755
new mode 100644
index a0ae28168..d679609e4
--- a/internal/provider/source_mysql_resource.go
+++ b/internal/provider/source_mysql_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -72,7 +71,7 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `The password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The port to connect to.`,
},
"replication_method": schema.SingleNestedAttribute{
@@ -85,15 +84,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"server_time_zone": schema.StringAttribute{
Optional: true,
Description: `Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.`,
@@ -102,18 +92,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.`,
},
"source_mysql_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_mysql_update_update_method_read_changes_using_binary_log_cdc": schema.SingleNestedAttribute{
@@ -123,15 +103,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"server_time_zone": schema.StringAttribute{
Optional: true,
Description: `Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.`,
@@ -140,18 +111,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.`,
},
"source_mysql_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "STANDARD",
- ),
- },
- Description: `must be one of ["STANDARD"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -160,46 +121,17 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
},
Description: `Configures how data is extracted from the database.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "mysql",
- ),
- },
- Description: `must be one of ["mysql"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_mysql_ssl_modes_preferred": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "preferred",
- ),
- },
- Description: `must be one of ["preferred"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.`,
},
"source_mysql_ssl_modes_required": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "required",
- ),
- },
- Description: `must be one of ["required"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.`,
},
"source_mysql_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -221,15 +153,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_ca",
- ),
- },
- Description: `must be one of ["verify_ca"]`,
- },
},
Description: `Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match.`,
},
@@ -252,46 +175,17 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_identity",
- ),
- },
- Description: `must be one of ["verify_identity"]`,
- },
},
Description: `Always connect with SSL. Verify both CA and Hostname.`,
},
"source_mysql_update_ssl_modes_preferred": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "preferred",
- ),
- },
- Description: `must be one of ["preferred"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.`,
},
"source_mysql_update_ssl_modes_required": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "required",
- ),
- },
- Description: `must be one of ["required"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.`,
},
"source_mysql_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
@@ -313,15 +207,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_ca",
- ),
- },
- Description: `must be one of ["verify_ca"]`,
- },
},
Description: `Always connect with SSL. Verifies CA, but allows connection even if Hostname does not match.`,
},
@@ -344,15 +229,6 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Description: `Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify_identity",
- ),
- },
- Description: `must be one of ["verify_identity"]`,
- },
},
Description: `Always connect with SSL. Verify both CA and Hostname.`,
},
@@ -366,19 +242,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Optional: true,
Attributes: map[string]schema.Attribute{
"source_mysql_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -388,18 +253,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -424,18 +279,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -446,19 +291,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_mysql_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -468,18 +302,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -504,18 +328,8 @@ func (r *SourceMysqlResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -607,7 +421,7 @@ func (r *SourceMysqlResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceMysql(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_mysql_resource_sdk.go b/internal/provider/source_mysql_resource_sdk.go
old mode 100755
new mode 100644
index 25c466314..ca5a5f5dd
--- a/internal/provider/source_mysql_resource_sdk.go
+++ b/internal/provider/source_mysql_resource_sdk.go
@@ -22,7 +22,12 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod shared.SourceMysqlUpdateMethod
var sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC *shared.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC
if r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC != nil {
@@ -32,7 +37,6 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
} else {
initialWaitingSeconds = nil
}
- method := shared.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod(r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC.Method.ValueString())
serverTimeZone := new(string)
if !r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.IsUnknown() && !r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.IsNull() {
*serverTimeZone = r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.ValueString()
@@ -41,7 +45,6 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
}
sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC = &shared.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC{
InitialWaitingSeconds: initialWaitingSeconds,
- Method: method,
ServerTimeZone: serverTimeZone,
}
}
@@ -52,25 +55,18 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
}
var sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor *shared.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method1 := shared.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method1,
- }
+ sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = shared.SourceMysqlUpdateMethod{
SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor: sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor,
}
}
- sourceType := shared.SourceMysqlMysql(r.Configuration.SourceType.ValueString())
var sslMode *shared.SourceMysqlSSLModes
if r.Configuration.SslMode != nil {
var sourceMysqlSSLModesPreferred *shared.SourceMysqlSSLModesPreferred
if r.Configuration.SslMode.SourceMysqlSSLModesPreferred != nil {
- mode := shared.SourceMysqlSSLModesPreferredMode(r.Configuration.SslMode.SourceMysqlSSLModesPreferred.Mode.ValueString())
- sourceMysqlSSLModesPreferred = &shared.SourceMysqlSSLModesPreferred{
- Mode: mode,
- }
+ sourceMysqlSSLModesPreferred = &shared.SourceMysqlSSLModesPreferred{}
}
if sourceMysqlSSLModesPreferred != nil {
sslMode = &shared.SourceMysqlSSLModes{
@@ -79,10 +75,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
}
var sourceMysqlSSLModesRequired *shared.SourceMysqlSSLModesRequired
if r.Configuration.SslMode.SourceMysqlSSLModesRequired != nil {
- mode1 := shared.SourceMysqlSSLModesRequiredMode(r.Configuration.SslMode.SourceMysqlSSLModesRequired.Mode.ValueString())
- sourceMysqlSSLModesRequired = &shared.SourceMysqlSSLModesRequired{
- Mode: mode1,
- }
+ sourceMysqlSSLModesRequired = &shared.SourceMysqlSSLModesRequired{}
}
if sourceMysqlSSLModesRequired != nil {
sslMode = &shared.SourceMysqlSSLModes{
@@ -110,13 +103,11 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
} else {
clientKeyPassword = nil
}
- mode2 := shared.SourceMysqlSSLModesVerifyCAMode(r.Configuration.SslMode.SourceMysqlSSLModesVerifyCA.Mode.ValueString())
sourceMysqlSSLModesVerifyCA = &shared.SourceMysqlSSLModesVerifyCA{
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode2,
}
}
if sourceMysqlSSLModesVerifyCA != nil {
@@ -145,13 +136,11 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
} else {
clientKeyPassword1 = nil
}
- mode3 := shared.SourceMysqlSSLModesVerifyIdentityMode(r.Configuration.SslMode.SourceMysqlSSLModesVerifyIdentity.Mode.ValueString())
sourceMysqlSSLModesVerifyIdentity = &shared.SourceMysqlSSLModesVerifyIdentity{
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode3,
}
}
if sourceMysqlSSLModesVerifyIdentity != nil {
@@ -164,10 +153,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
if r.Configuration.TunnelMethod != nil {
var sourceMysqlSSHTunnelMethodNoTunnel *shared.SourceMysqlSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceMysqlSSHTunnelMethodNoTunnel = &shared.SourceMysqlSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceMysqlSSHTunnelMethodNoTunnel = &shared.SourceMysqlSSHTunnelMethodNoTunnel{}
}
if sourceMysqlSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceMysqlSSHTunnelMethod{
@@ -178,15 +164,18 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
if r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceMysqlSSHTunnelMethodSSHKeyAuthentication = &shared.SourceMysqlSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -197,13 +186,16 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
var sourceMysqlSSHTunnelMethodPasswordAuthentication *shared.SourceMysqlSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceMysqlSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceMysqlSSHTunnelMethodPasswordAuthentication = &shared.SourceMysqlSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -223,7 +215,6 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe
Password: password,
Port: port,
ReplicationMethod: replicationMethod,
- SourceType: sourceType,
SslMode: sslMode,
TunnelMethod: tunnelMethod,
Username: username,
@@ -265,7 +256,12 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod shared.SourceMysqlUpdateUpdateMethod
var sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC *shared.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC
if r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC != nil {
@@ -275,7 +271,6 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
} else {
initialWaitingSeconds = nil
}
- method := shared.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod(r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC.Method.ValueString())
serverTimeZone := new(string)
if !r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.IsUnknown() && !r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.IsNull() {
*serverTimeZone = r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC.ServerTimeZone.ValueString()
@@ -284,7 +279,6 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
}
sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC = &shared.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC{
InitialWaitingSeconds: initialWaitingSeconds,
- Method: method,
ServerTimeZone: serverTimeZone,
}
}
@@ -295,10 +289,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
}
var sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor *shared.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method1 := shared.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method1,
- }
+ sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = shared.SourceMysqlUpdateUpdateMethod{
@@ -309,10 +300,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
if r.Configuration.SslMode != nil {
var sourceMysqlUpdateSSLModesPreferred *shared.SourceMysqlUpdateSSLModesPreferred
if r.Configuration.SslMode.SourceMysqlUpdateSSLModesPreferred != nil {
- mode := shared.SourceMysqlUpdateSSLModesPreferredMode(r.Configuration.SslMode.SourceMysqlUpdateSSLModesPreferred.Mode.ValueString())
- sourceMysqlUpdateSSLModesPreferred = &shared.SourceMysqlUpdateSSLModesPreferred{
- Mode: mode,
- }
+ sourceMysqlUpdateSSLModesPreferred = &shared.SourceMysqlUpdateSSLModesPreferred{}
}
if sourceMysqlUpdateSSLModesPreferred != nil {
sslMode = &shared.SourceMysqlUpdateSSLModes{
@@ -321,10 +309,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
}
var sourceMysqlUpdateSSLModesRequired *shared.SourceMysqlUpdateSSLModesRequired
if r.Configuration.SslMode.SourceMysqlUpdateSSLModesRequired != nil {
- mode1 := shared.SourceMysqlUpdateSSLModesRequiredMode(r.Configuration.SslMode.SourceMysqlUpdateSSLModesRequired.Mode.ValueString())
- sourceMysqlUpdateSSLModesRequired = &shared.SourceMysqlUpdateSSLModesRequired{
- Mode: mode1,
- }
+ sourceMysqlUpdateSSLModesRequired = &shared.SourceMysqlUpdateSSLModesRequired{}
}
if sourceMysqlUpdateSSLModesRequired != nil {
sslMode = &shared.SourceMysqlUpdateSSLModes{
@@ -352,13 +337,11 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
} else {
clientKeyPassword = nil
}
- mode2 := shared.SourceMysqlUpdateSSLModesVerifyCAMode(r.Configuration.SslMode.SourceMysqlUpdateSSLModesVerifyCA.Mode.ValueString())
sourceMysqlUpdateSSLModesVerifyCA = &shared.SourceMysqlUpdateSSLModesVerifyCA{
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode2,
}
}
if sourceMysqlUpdateSSLModesVerifyCA != nil {
@@ -387,13 +370,11 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
} else {
clientKeyPassword1 = nil
}
- mode3 := shared.SourceMysqlUpdateSSLModesVerifyIdentityMode(r.Configuration.SslMode.SourceMysqlUpdateSSLModesVerifyIdentity.Mode.ValueString())
sourceMysqlUpdateSSLModesVerifyIdentity = &shared.SourceMysqlUpdateSSLModesVerifyIdentity{
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode3,
}
}
if sourceMysqlUpdateSSLModesVerifyIdentity != nil {
@@ -406,10 +387,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
if r.Configuration.TunnelMethod != nil {
var sourceMysqlUpdateSSHTunnelMethodNoTunnel *shared.SourceMysqlUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceMysqlUpdateSSHTunnelMethodNoTunnel = &shared.SourceMysqlUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceMysqlUpdateSSHTunnelMethodNoTunnel = &shared.SourceMysqlUpdateSSHTunnelMethodNoTunnel{}
}
if sourceMysqlUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceMysqlUpdateSSHTunnelMethod{
@@ -420,15 +398,18 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
if r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -439,13 +420,16 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque
var sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication *shared.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_netsuite_data_source.go b/internal/provider/source_netsuite_data_source.go
old mode 100755
new mode 100644
index d09b27043..e0427bd6a
--- a/internal/provider/source_netsuite_data_source.go
+++ b/internal/provider/source_netsuite_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -69,15 +67,6 @@ func (r *SourceNetsuiteDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Netsuite realm e.g. 2344535, as for ` + "`" + `production` + "`" + ` or 2344535_SB1, as for the ` + "`" + `sandbox` + "`" + ``,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "netsuite",
- ),
- },
- Description: `must be one of ["netsuite"]`,
- },
"start_datetime": schema.StringAttribute{
Computed: true,
Description: `Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ"`,
diff --git a/internal/provider/source_netsuite_data_source_sdk.go b/internal/provider/source_netsuite_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_netsuite_resource.go b/internal/provider/source_netsuite_resource.go
old mode 100755
new mode 100644
index fc30631cb..27645e34a
--- a/internal/provider/source_netsuite_resource.go
+++ b/internal/provider/source_netsuite_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -71,15 +69,6 @@ func (r *SourceNetsuiteResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Netsuite realm e.g. 2344535, as for ` + "`" + `production` + "`" + ` or 2344535_SB1, as for the ` + "`" + `sandbox` + "`" + ``,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "netsuite",
- ),
- },
- Description: `must be one of ["netsuite"]`,
- },
"start_datetime": schema.StringAttribute{
Required: true,
Description: `Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ"`,
@@ -168,7 +157,7 @@ func (r *SourceNetsuiteResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceNetsuite(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_netsuite_resource_sdk.go b/internal/provider/source_netsuite_resource_sdk.go
old mode 100755
new mode 100644
index becf37a80..4d33a634c
--- a/internal/provider/source_netsuite_resource_sdk.go
+++ b/internal/provider/source_netsuite_resource_sdk.go
@@ -15,7 +15,6 @@ func (r *SourceNetsuiteResourceModel) ToCreateSDKType() *shared.SourceNetsuiteCr
objectTypes = append(objectTypes, objectTypesItem.ValueString())
}
realm := r.Configuration.Realm.ValueString()
- sourceType := shared.SourceNetsuiteNetsuite(r.Configuration.SourceType.ValueString())
startDatetime := r.Configuration.StartDatetime.ValueString()
tokenKey := r.Configuration.TokenKey.ValueString()
tokenSecret := r.Configuration.TokenSecret.ValueString()
@@ -30,7 +29,6 @@ func (r *SourceNetsuiteResourceModel) ToCreateSDKType() *shared.SourceNetsuiteCr
ConsumerSecret: consumerSecret,
ObjectTypes: objectTypes,
Realm: realm,
- SourceType: sourceType,
StartDatetime: startDatetime,
TokenKey: tokenKey,
TokenSecret: tokenSecret,
diff --git a/internal/provider/source_notion_data_source.go b/internal/provider/source_notion_data_source.go
old mode 100755
new mode 100644
index 1feec1771..3119b6b01
--- a/internal/provider/source_notion_data_source.go
+++ b/internal/provider/source_notion_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -59,15 +58,6 @@ func (r *SourceNotionDataSource) Schema(ctx context.Context, req datasource.Sche
"source_notion_authenticate_using_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `Notion API access token, see the docs for more information on how to obtain this token.`,
@@ -82,15 +72,6 @@ func (r *SourceNotionDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token is a token you received by complete the OauthWebFlow of Notion.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The ClientID of your Notion integration.`,
@@ -105,15 +86,6 @@ func (r *SourceNotionDataSource) Schema(ctx context.Context, req datasource.Sche
"source_notion_update_authenticate_using_access_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `Notion API access token, see the docs for more information on how to obtain this token.`,
@@ -128,15 +100,6 @@ func (r *SourceNotionDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Access Token is a token you received by complete the OauthWebFlow of Notion.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The ClientID of your Notion integration.`,
@@ -154,15 +117,6 @@ func (r *SourceNotionDataSource) Schema(ctx context.Context, req datasource.Sche
},
Description: `Pick an authentication method.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "notion",
- ),
- },
- Description: `must be one of ["notion"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_notion_data_source_sdk.go b/internal/provider/source_notion_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_notion_resource.go b/internal/provider/source_notion_resource.go
old mode 100755
new mode 100644
index fa0b495be..fa0c084a5
--- a/internal/provider/source_notion_resource.go
+++ b/internal/provider/source_notion_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,15 +60,6 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe
"source_notion_authenticate_using_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `Notion API access token, see the docs for more information on how to obtain this token.`,
@@ -84,15 +74,6 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token is a token you received by complete the OauthWebFlow of Notion.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The ClientID of your Notion integration.`,
@@ -107,15 +88,6 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe
"source_notion_update_authenticate_using_access_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "token",
- ),
- },
- Description: `must be one of ["token"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `Notion API access token, see the docs for more information on how to obtain this token.`,
@@ -130,15 +102,6 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Access Token is a token you received by complete the OauthWebFlow of Notion.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth2.0",
- ),
- },
- Description: `must be one of ["OAuth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The ClientID of your Notion integration.`,
@@ -156,15 +119,6 @@ func (r *SourceNotionResource) Schema(ctx context.Context, req resource.SchemaRe
},
Description: `Pick an authentication method.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "notion",
- ),
- },
- Description: `must be one of ["notion"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -244,7 +198,7 @@ func (r *SourceNotionResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceNotion(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_notion_resource_sdk.go b/internal/provider/source_notion_resource_sdk.go
old mode 100755
new mode 100644
index f769e56fa..1f2824dd9
--- a/internal/provider/source_notion_resource_sdk.go
+++ b/internal/provider/source_notion_resource_sdk.go
@@ -14,12 +14,10 @@ func (r *SourceNotionResourceModel) ToCreateSDKType() *shared.SourceNotionCreate
var sourceNotionAuthenticateUsingOAuth20 *shared.SourceNotionAuthenticateUsingOAuth20
if r.Configuration.Credentials.SourceNotionAuthenticateUsingOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceNotionAuthenticateUsingOAuth20.AccessToken.ValueString()
- authType := shared.SourceNotionAuthenticateUsingOAuth20AuthType(r.Configuration.Credentials.SourceNotionAuthenticateUsingOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceNotionAuthenticateUsingOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceNotionAuthenticateUsingOAuth20.ClientSecret.ValueString()
sourceNotionAuthenticateUsingOAuth20 = &shared.SourceNotionAuthenticateUsingOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -31,11 +29,9 @@ func (r *SourceNotionResourceModel) ToCreateSDKType() *shared.SourceNotionCreate
}
var sourceNotionAuthenticateUsingAccessToken *shared.SourceNotionAuthenticateUsingAccessToken
if r.Configuration.Credentials.SourceNotionAuthenticateUsingAccessToken != nil {
- authType1 := shared.SourceNotionAuthenticateUsingAccessTokenAuthType(r.Configuration.Credentials.SourceNotionAuthenticateUsingAccessToken.AuthType.ValueString())
token := r.Configuration.Credentials.SourceNotionAuthenticateUsingAccessToken.Token.ValueString()
sourceNotionAuthenticateUsingAccessToken = &shared.SourceNotionAuthenticateUsingAccessToken{
- AuthType: authType1,
- Token: token,
+ Token: token,
}
}
if sourceNotionAuthenticateUsingAccessToken != nil {
@@ -44,11 +40,9 @@ func (r *SourceNotionResourceModel) ToCreateSDKType() *shared.SourceNotionCreate
}
}
}
- sourceType := shared.SourceNotionNotion(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceNotion{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -79,12 +73,10 @@ func (r *SourceNotionResourceModel) ToUpdateSDKType() *shared.SourceNotionPutReq
var sourceNotionUpdateAuthenticateUsingOAuth20 *shared.SourceNotionUpdateAuthenticateUsingOAuth20
if r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingOAuth20.AccessToken.ValueString()
- authType := shared.SourceNotionUpdateAuthenticateUsingOAuth20AuthType(r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingOAuth20.ClientSecret.ValueString()
sourceNotionUpdateAuthenticateUsingOAuth20 = &shared.SourceNotionUpdateAuthenticateUsingOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -96,11 +88,9 @@ func (r *SourceNotionResourceModel) ToUpdateSDKType() *shared.SourceNotionPutReq
}
var sourceNotionUpdateAuthenticateUsingAccessToken *shared.SourceNotionUpdateAuthenticateUsingAccessToken
if r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingAccessToken != nil {
- authType1 := shared.SourceNotionUpdateAuthenticateUsingAccessTokenAuthType(r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingAccessToken.AuthType.ValueString())
token := r.Configuration.Credentials.SourceNotionUpdateAuthenticateUsingAccessToken.Token.ValueString()
sourceNotionUpdateAuthenticateUsingAccessToken = &shared.SourceNotionUpdateAuthenticateUsingAccessToken{
- AuthType: authType1,
- Token: token,
+ Token: token,
}
}
if sourceNotionUpdateAuthenticateUsingAccessToken != nil {
diff --git a/internal/provider/source_nytimes_data_source.go b/internal/provider/source_nytimes_data_source.go
old mode 100755
new mode 100644
index 13e0abc42..f41f36c73
--- a/internal/provider/source_nytimes_data_source.go
+++ b/internal/provider/source_nytimes_data_source.go
@@ -89,15 +89,6 @@ func (r *SourceNytimesDataSource) Schema(ctx context.Context, req datasource.Sch
MarkdownDescription: `must be one of ["facebook"]` + "\n" +
`Share Type`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "nytimes",
- ),
- },
- Description: `must be one of ["nytimes"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_nytimes_data_source_sdk.go b/internal/provider/source_nytimes_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_nytimes_resource.go b/internal/provider/source_nytimes_resource.go
old mode 100755
new mode 100644
index a2102b3ec..7bb076a11
--- a/internal/provider/source_nytimes_resource.go
+++ b/internal/provider/source_nytimes_resource.go
@@ -91,15 +91,6 @@ func (r *SourceNytimesResource) Schema(ctx context.Context, req resource.SchemaR
MarkdownDescription: `must be one of ["facebook"]` + "\n" +
`Share Type`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "nytimes",
- ),
- },
- Description: `must be one of ["nytimes"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -179,7 +170,7 @@ func (r *SourceNytimesResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceNytimes(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_nytimes_resource_sdk.go b/internal/provider/source_nytimes_resource_sdk.go
old mode 100755
new mode 100644
index a4c13ca98..0d92778ea
--- a/internal/provider/source_nytimes_resource_sdk.go
+++ b/internal/provider/source_nytimes_resource_sdk.go
@@ -23,15 +23,13 @@ func (r *SourceNytimesResourceModel) ToCreateSDKType() *shared.SourceNytimesCrea
} else {
shareType = nil
}
- sourceType := shared.SourceNytimesNytimes(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceNytimes{
- APIKey: apiKey,
- EndDate: endDate,
- Period: period,
- ShareType: shareType,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ EndDate: endDate,
+ Period: period,
+ ShareType: shareType,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_okta_data_source.go b/internal/provider/source_okta_data_source.go
old mode 100755
new mode 100644
index bb47a0f41..cd728c5aa
--- a/internal/provider/source_okta_data_source.go
+++ b/internal/provider/source_okta_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,29 +62,11 @@ func (r *SourceOktaDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `An Okta token. See the docs for instructions on how to generate it.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_okta_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -107,29 +88,11 @@ func (r *SourceOktaDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `An Okta token. See the docs for instructions on how to generate it.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_okta_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -153,15 +116,6 @@ func (r *SourceOktaDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `The Okta domain. See the docs for instructions on how to find it.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "okta",
- ),
- },
- Description: `must be one of ["okta"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_okta_data_source_sdk.go b/internal/provider/source_okta_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_okta_resource.go b/internal/provider/source_okta_resource.go
old mode 100755
new mode 100644
index 8c53197fc..2f886679a
--- a/internal/provider/source_okta_resource.go
+++ b/internal/provider/source_okta_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,29 +64,11 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `An Okta token. See the docs for instructions on how to generate it.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_okta_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -109,29 +90,11 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `An Okta token. See the docs for instructions on how to generate it.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
},
},
"source_okta_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -155,15 +118,6 @@ func (r *SourceOktaResource) Schema(ctx context.Context, req resource.SchemaRequ
Optional: true,
Description: `The Okta domain. See the docs for instructions on how to find it.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "okta",
- ),
- },
- Description: `must be one of ["okta"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Description: `UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated.`,
@@ -240,7 +194,7 @@ func (r *SourceOktaResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOkta(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_okta_resource_sdk.go b/internal/provider/source_okta_resource_sdk.go
old mode 100755
new mode 100644
index f22f66282..53e794fc8
--- a/internal/provider/source_okta_resource_sdk.go
+++ b/internal/provider/source_okta_resource_sdk.go
@@ -12,12 +12,10 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ
if r.Configuration.Credentials != nil {
var sourceOktaAuthorizationMethodOAuth20 *shared.SourceOktaAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceOktaAuthorizationMethodOAuth20 != nil {
- authType := shared.SourceOktaAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceOktaAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceOktaAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceOktaAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceOktaAuthorizationMethodOAuth20.RefreshToken.ValueString()
sourceOktaAuthorizationMethodOAuth20 = &shared.SourceOktaAuthorizationMethodOAuth20{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -31,10 +29,8 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ
var sourceOktaAuthorizationMethodAPIToken *shared.SourceOktaAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceOktaAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceOktaAuthorizationMethodAPIToken.APIToken.ValueString()
- authType1 := shared.SourceOktaAuthorizationMethodAPITokenAuthType(r.Configuration.Credentials.SourceOktaAuthorizationMethodAPIToken.AuthType.ValueString())
sourceOktaAuthorizationMethodAPIToken = &shared.SourceOktaAuthorizationMethodAPIToken{
APIToken: apiToken,
- AuthType: authType1,
}
}
if sourceOktaAuthorizationMethodAPIToken != nil {
@@ -49,7 +45,6 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ
} else {
domain = nil
}
- sourceType := shared.SourceOktaOkta(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -59,7 +54,6 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ
configuration := shared.SourceOkta{
Credentials: credentials,
Domain: domain,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -89,12 +83,10 @@ func (r *SourceOktaResourceModel) ToUpdateSDKType() *shared.SourceOktaPutRequest
if r.Configuration.Credentials != nil {
var sourceOktaUpdateAuthorizationMethodOAuth20 *shared.SourceOktaUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodOAuth20 != nil {
- authType := shared.SourceOktaUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
sourceOktaUpdateAuthorizationMethodOAuth20 = &shared.SourceOktaUpdateAuthorizationMethodOAuth20{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -108,10 +100,8 @@ func (r *SourceOktaResourceModel) ToUpdateSDKType() *shared.SourceOktaPutRequest
var sourceOktaUpdateAuthorizationMethodAPIToken *shared.SourceOktaUpdateAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodAPIToken.APIToken.ValueString()
- authType1 := shared.SourceOktaUpdateAuthorizationMethodAPITokenAuthType(r.Configuration.Credentials.SourceOktaUpdateAuthorizationMethodAPIToken.AuthType.ValueString())
sourceOktaUpdateAuthorizationMethodAPIToken = &shared.SourceOktaUpdateAuthorizationMethodAPIToken{
APIToken: apiToken,
- AuthType: authType1,
}
}
if sourceOktaUpdateAuthorizationMethodAPIToken != nil {
diff --git a/internal/provider/source_omnisend_data_source.go b/internal/provider/source_omnisend_data_source.go
old mode 100755
new mode 100644
index 126ccad51..0ee42b20e
--- a/internal/provider/source_omnisend_data_source.go
+++ b/internal/provider/source_omnisend_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceOmnisendDataSource struct {
// SourceOmnisendDataSourceModel describes the data model.
type SourceOmnisendDataSourceModel struct {
- Configuration SourceOmnisend `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceOmnisendDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "omnisend",
- ),
- },
- Description: `must be one of ["omnisend"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_omnisend_data_source_sdk.go b/internal/provider/source_omnisend_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_omnisend_resource.go b/internal/provider/source_omnisend_resource.go
old mode 100755
new mode 100644
index 07ab889c6..1fe2736ee
--- a/internal/provider/source_omnisend_resource.go
+++ b/internal/provider/source_omnisend_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceOmnisendResource struct {
// SourceOmnisendResourceModel describes the resource data model.
type SourceOmnisendResourceModel struct {
- Configuration SourceOmnisend `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceOmnisendResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceOmnisendResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "omnisend",
- ),
- },
- Description: `must be one of ["omnisend"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceOmnisendResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOmnisend(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_omnisend_resource_sdk.go b/internal/provider/source_omnisend_resource_sdk.go
old mode 100755
new mode 100644
index 49239e314..221d7395a
--- a/internal/provider/source_omnisend_resource_sdk.go
+++ b/internal/provider/source_omnisend_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceOmnisendResourceModel) ToCreateSDKType() *shared.SourceOmnisendCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceOmnisendOmnisend(r.Configuration.SourceType.ValueString())
configuration := shared.SourceOmnisend{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_onesignal_data_source.go b/internal/provider/source_onesignal_data_source.go
old mode 100755
new mode 100644
index d8bdbdada..6d9d6cdbb
--- a/internal/provider/source_onesignal_data_source.go
+++ b/internal/provider/source_onesignal_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -74,15 +73,6 @@ func (r *SourceOnesignalDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "onesignal",
- ),
- },
- Description: `must be one of ["onesignal"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_onesignal_data_source_sdk.go b/internal/provider/source_onesignal_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_onesignal_resource.go b/internal/provider/source_onesignal_resource.go
old mode 100755
new mode 100644
index f5ac90772..0d6c1d51a
--- a/internal/provider/source_onesignal_resource.go
+++ b/internal/provider/source_onesignal_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -76,15 +75,6 @@ func (r *SourceOnesignalResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "onesignal",
- ),
- },
- Description: `must be one of ["onesignal"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -168,7 +158,7 @@ func (r *SourceOnesignalResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOnesignal(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_onesignal_resource_sdk.go b/internal/provider/source_onesignal_resource_sdk.go
old mode 100755
new mode 100644
index a57e1e65d..dd2f46c1e
--- a/internal/provider/source_onesignal_resource_sdk.go
+++ b/internal/provider/source_onesignal_resource_sdk.go
@@ -26,13 +26,11 @@ func (r *SourceOnesignalResourceModel) ToCreateSDKType() *shared.SourceOnesignal
})
}
outcomeNames := r.Configuration.OutcomeNames.ValueString()
- sourceType := shared.SourceOnesignalOnesignal(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
userAuthKey := r.Configuration.UserAuthKey.ValueString()
configuration := shared.SourceOnesignal{
Applications: applications,
OutcomeNames: outcomeNames,
- SourceType: sourceType,
StartDate: startDate,
UserAuthKey: userAuthKey,
}
diff --git a/internal/provider/source_oracle_data_source.go b/internal/provider/source_oracle_data_source.go
old mode 100755
new mode 100644
index 0201ea993..47f89731b
--- a/internal/provider/source_oracle_data_source.go
+++ b/internal/provider/source_oracle_data_source.go
@@ -59,15 +59,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
"source_oracle_connect_by_service_name": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "service_name",
- ),
- },
- Description: `must be one of ["service_name"]`,
- },
"service_name": schema.StringAttribute{
Computed: true,
},
@@ -77,15 +68,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
"source_oracle_connect_by_system_id_sid": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sid",
- ),
- },
- Description: `must be one of ["sid"]`,
- },
"sid": schema.StringAttribute{
Computed: true,
},
@@ -95,15 +77,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
"source_oracle_update_connect_by_service_name": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "service_name",
- ),
- },
- Description: `must be one of ["service_name"]`,
- },
"service_name": schema.StringAttribute{
Computed: true,
},
@@ -113,15 +86,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
"source_oracle_update_connect_by_system_id_sid": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sid",
- ),
- },
- Description: `must be one of ["sid"]`,
- },
"sid": schema.StringAttribute{
Computed: true,
},
@@ -152,30 +116,12 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
MarkdownDescription: `must be one of ["AES256", "RC4_56", "3DES168"]` + "\n" +
`This parameter defines what encryption algorithm is used.`,
},
- "encryption_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "client_nne",
- ),
- },
- Description: `must be one of ["client_nne"]`,
- },
},
Description: `The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.`,
},
"source_oracle_encryption_tls_encrypted_verify_certificate": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "encryption_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
"ssl_certificate": schema.StringAttribute{
Computed: true,
Description: `Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.`,
@@ -198,30 +144,12 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
MarkdownDescription: `must be one of ["AES256", "RC4_56", "3DES168"]` + "\n" +
`This parameter defines what encryption algorithm is used.`,
},
- "encryption_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "client_nne",
- ),
- },
- Description: `must be one of ["client_nne"]`,
- },
},
Description: `The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.`,
},
"source_oracle_update_encryption_tls_encrypted_verify_certificate": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "encryption_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
"ssl_certificate": schema.StringAttribute{
Computed: true,
Description: `Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.`,
@@ -259,32 +187,12 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
ElementType: types.StringType,
Description: `The list of schemas to sync from. Defaults to user. Case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oracle",
- ),
- },
- Description: `must be one of ["oracle"]`,
- },
"tunnel_method": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_oracle_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -294,16 +202,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -330,16 +228,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -352,19 +240,8 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -374,16 +251,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -410,16 +277,6 @@ func (r *SourceOracleDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_oracle_data_source_sdk.go b/internal/provider/source_oracle_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_oracle_resource.go b/internal/provider/source_oracle_resource.go
old mode 100755
new mode 100644
index 169821167..597516528
--- a/internal/provider/source_oracle_resource.go
+++ b/internal/provider/source_oracle_resource.go
@@ -61,15 +61,6 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
"source_oracle_connect_by_service_name": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "service_name",
- ),
- },
- Description: `must be one of ["service_name"]`,
- },
"service_name": schema.StringAttribute{
Required: true,
},
@@ -79,15 +70,6 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
"source_oracle_connect_by_system_id_sid": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sid",
- ),
- },
- Description: `must be one of ["sid"]`,
- },
"sid": schema.StringAttribute{
Required: true,
},
@@ -97,15 +79,6 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
"source_oracle_update_connect_by_service_name": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "service_name",
- ),
- },
- Description: `must be one of ["service_name"]`,
- },
"service_name": schema.StringAttribute{
Required: true,
},
@@ -115,15 +88,6 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
"source_oracle_update_connect_by_system_id_sid": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "connection_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sid",
- ),
- },
- Description: `must be one of ["sid"]`,
- },
"sid": schema.StringAttribute{
Required: true,
},
@@ -154,30 +118,12 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
MarkdownDescription: `must be one of ["AES256", "RC4_56", "3DES168"]` + "\n" +
`This parameter defines what encryption algorithm is used.`,
},
- "encryption_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "client_nne",
- ),
- },
- Description: `must be one of ["client_nne"]`,
- },
},
Description: `The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.`,
},
"source_oracle_encryption_tls_encrypted_verify_certificate": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "encryption_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
"ssl_certificate": schema.StringAttribute{
Required: true,
Description: `Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.`,
@@ -200,30 +146,12 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
MarkdownDescription: `must be one of ["AES256", "RC4_56", "3DES168"]` + "\n" +
`This parameter defines what encryption algorithm is used.`,
},
- "encryption_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "client_nne",
- ),
- },
- Description: `must be one of ["client_nne"]`,
- },
},
Description: `The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.`,
},
"source_oracle_update_encryption_tls_encrypted_verify_certificate": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "encryption_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "encrypted_verify_certificate",
- ),
- },
- Description: `must be one of ["encrypted_verify_certificate"]`,
- },
"ssl_certificate": schema.StringAttribute{
Required: true,
Description: `Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.`,
@@ -250,7 +178,7 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Description: `The password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
MarkdownDescription: `Port of the database.` + "\n" +
`Oracle Corporations recommends the following port numbers:` + "\n" +
`1521 - Default listening port for client connections to the listener. ` + "\n" +
@@ -261,32 +189,12 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
ElementType: types.StringType,
Description: `The list of schemas to sync from. Defaults to user. Case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oracle",
- ),
- },
- Description: `must be one of ["oracle"]`,
- },
"tunnel_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_oracle_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -296,18 +204,8 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -332,18 +230,8 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -354,19 +242,8 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_oracle_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -376,18 +253,8 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -412,18 +279,8 @@ func (r *SourceOracleResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -515,7 +372,7 @@ func (r *SourceOracleResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOracle(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_oracle_resource_sdk.go b/internal/provider/source_oracle_resource_sdk.go
old mode 100755
new mode 100644
index 5987adc96..4e3f34ec5
--- a/internal/provider/source_oracle_resource_sdk.go
+++ b/internal/provider/source_oracle_resource_sdk.go
@@ -12,16 +12,9 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
if r.Configuration.ConnectionData != nil {
var sourceOracleConnectByServiceName *shared.SourceOracleConnectByServiceName
if r.Configuration.ConnectionData.SourceOracleConnectByServiceName != nil {
- connectionType := new(shared.SourceOracleConnectByServiceNameConnectionType)
- if !r.Configuration.ConnectionData.SourceOracleConnectByServiceName.ConnectionType.IsUnknown() && !r.Configuration.ConnectionData.SourceOracleConnectByServiceName.ConnectionType.IsNull() {
- *connectionType = shared.SourceOracleConnectByServiceNameConnectionType(r.Configuration.ConnectionData.SourceOracleConnectByServiceName.ConnectionType.ValueString())
- } else {
- connectionType = nil
- }
serviceName := r.Configuration.ConnectionData.SourceOracleConnectByServiceName.ServiceName.ValueString()
sourceOracleConnectByServiceName = &shared.SourceOracleConnectByServiceName{
- ConnectionType: connectionType,
- ServiceName: serviceName,
+ ServiceName: serviceName,
}
}
if sourceOracleConnectByServiceName != nil {
@@ -31,16 +24,9 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
}
var sourceOracleConnectBySystemIDSID *shared.SourceOracleConnectBySystemIDSID
if r.Configuration.ConnectionData.SourceOracleConnectBySystemIDSID != nil {
- connectionType1 := new(shared.SourceOracleConnectBySystemIDSIDConnectionType)
- if !r.Configuration.ConnectionData.SourceOracleConnectBySystemIDSID.ConnectionType.IsUnknown() && !r.Configuration.ConnectionData.SourceOracleConnectBySystemIDSID.ConnectionType.IsNull() {
- *connectionType1 = shared.SourceOracleConnectBySystemIDSIDConnectionType(r.Configuration.ConnectionData.SourceOracleConnectBySystemIDSID.ConnectionType.ValueString())
- } else {
- connectionType1 = nil
- }
sid := r.Configuration.ConnectionData.SourceOracleConnectBySystemIDSID.Sid.ValueString()
sourceOracleConnectBySystemIDSID = &shared.SourceOracleConnectBySystemIDSID{
- ConnectionType: connectionType1,
- Sid: sid,
+ Sid: sid,
}
}
if sourceOracleConnectBySystemIDSID != nil {
@@ -58,10 +44,8 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
} else {
encryptionAlgorithm = nil
}
- encryptionMethod := shared.SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethod(r.Configuration.Encryption.SourceOracleEncryptionNativeNetworkEncryptionNNE.EncryptionMethod.ValueString())
sourceOracleEncryptionNativeNetworkEncryptionNNE = &shared.SourceOracleEncryptionNativeNetworkEncryptionNNE{
EncryptionAlgorithm: encryptionAlgorithm,
- EncryptionMethod: encryptionMethod,
}
}
if sourceOracleEncryptionNativeNetworkEncryptionNNE != nil {
@@ -71,11 +55,9 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
}
var sourceOracleEncryptionTLSEncryptedVerifyCertificate *shared.SourceOracleEncryptionTLSEncryptedVerifyCertificate
if r.Configuration.Encryption.SourceOracleEncryptionTLSEncryptedVerifyCertificate != nil {
- encryptionMethod1 := shared.SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod(r.Configuration.Encryption.SourceOracleEncryptionTLSEncryptedVerifyCertificate.EncryptionMethod.ValueString())
sslCertificate := r.Configuration.Encryption.SourceOracleEncryptionTLSEncryptedVerifyCertificate.SslCertificate.ValueString()
sourceOracleEncryptionTLSEncryptedVerifyCertificate = &shared.SourceOracleEncryptionTLSEncryptedVerifyCertificate{
- EncryptionMethod: encryptionMethod1,
- SslCertificate: sslCertificate,
+ SslCertificate: sslCertificate,
}
}
if sourceOracleEncryptionTLSEncryptedVerifyCertificate != nil {
@@ -96,20 +78,21 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var schemas []string = nil
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
}
- sourceType := shared.SourceOracleOracle(r.Configuration.SourceType.ValueString())
var tunnelMethod *shared.SourceOracleSSHTunnelMethod
if r.Configuration.TunnelMethod != nil {
var sourceOracleSSHTunnelMethodNoTunnel *shared.SourceOracleSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceOracleSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceOracleSSHTunnelMethodNoTunnel = &shared.SourceOracleSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceOracleSSHTunnelMethodNoTunnel = &shared.SourceOracleSSHTunnelMethodNoTunnel{}
}
if sourceOracleSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceOracleSSHTunnelMethod{
@@ -120,15 +103,18 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
if r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceOracleSSHTunnelMethodSSHKeyAuthentication = &shared.SourceOracleSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceOracleSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -139,13 +125,16 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
var sourceOracleSSHTunnelMethodPasswordAuthentication *shared.SourceOracleSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceOracleSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceOracleSSHTunnelMethodPasswordAuthentication = &shared.SourceOracleSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -166,7 +155,6 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate
Password: password,
Port: port,
Schemas: schemas,
- SourceType: sourceType,
TunnelMethod: tunnelMethod,
Username: username,
}
@@ -197,16 +185,9 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
if r.Configuration.ConnectionData != nil {
var sourceOracleUpdateConnectByServiceName *shared.SourceOracleUpdateConnectByServiceName
if r.Configuration.ConnectionData.SourceOracleUpdateConnectByServiceName != nil {
- connectionType := new(shared.SourceOracleUpdateConnectByServiceNameConnectionType)
- if !r.Configuration.ConnectionData.SourceOracleUpdateConnectByServiceName.ConnectionType.IsUnknown() && !r.Configuration.ConnectionData.SourceOracleUpdateConnectByServiceName.ConnectionType.IsNull() {
- *connectionType = shared.SourceOracleUpdateConnectByServiceNameConnectionType(r.Configuration.ConnectionData.SourceOracleUpdateConnectByServiceName.ConnectionType.ValueString())
- } else {
- connectionType = nil
- }
serviceName := r.Configuration.ConnectionData.SourceOracleUpdateConnectByServiceName.ServiceName.ValueString()
sourceOracleUpdateConnectByServiceName = &shared.SourceOracleUpdateConnectByServiceName{
- ConnectionType: connectionType,
- ServiceName: serviceName,
+ ServiceName: serviceName,
}
}
if sourceOracleUpdateConnectByServiceName != nil {
@@ -216,16 +197,9 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
}
var sourceOracleUpdateConnectBySystemIDSID *shared.SourceOracleUpdateConnectBySystemIDSID
if r.Configuration.ConnectionData.SourceOracleUpdateConnectBySystemIDSID != nil {
- connectionType1 := new(shared.SourceOracleUpdateConnectBySystemIDSIDConnectionType)
- if !r.Configuration.ConnectionData.SourceOracleUpdateConnectBySystemIDSID.ConnectionType.IsUnknown() && !r.Configuration.ConnectionData.SourceOracleUpdateConnectBySystemIDSID.ConnectionType.IsNull() {
- *connectionType1 = shared.SourceOracleUpdateConnectBySystemIDSIDConnectionType(r.Configuration.ConnectionData.SourceOracleUpdateConnectBySystemIDSID.ConnectionType.ValueString())
- } else {
- connectionType1 = nil
- }
sid := r.Configuration.ConnectionData.SourceOracleUpdateConnectBySystemIDSID.Sid.ValueString()
sourceOracleUpdateConnectBySystemIDSID = &shared.SourceOracleUpdateConnectBySystemIDSID{
- ConnectionType: connectionType1,
- Sid: sid,
+ Sid: sid,
}
}
if sourceOracleUpdateConnectBySystemIDSID != nil {
@@ -243,10 +217,8 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
} else {
encryptionAlgorithm = nil
}
- encryptionMethod := shared.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethod(r.Configuration.Encryption.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE.EncryptionMethod.ValueString())
sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE = &shared.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE{
EncryptionAlgorithm: encryptionAlgorithm,
- EncryptionMethod: encryptionMethod,
}
}
if sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE != nil {
@@ -256,11 +228,9 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
}
var sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate *shared.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate
if r.Configuration.Encryption.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate != nil {
- encryptionMethod1 := shared.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethod(r.Configuration.Encryption.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate.EncryptionMethod.ValueString())
sslCertificate := r.Configuration.Encryption.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate.SslCertificate.ValueString()
sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate = &shared.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate{
- EncryptionMethod: encryptionMethod1,
- SslCertificate: sslCertificate,
+ SslCertificate: sslCertificate,
}
}
if sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate != nil {
@@ -281,7 +251,12 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var schemas []string = nil
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
@@ -290,10 +265,7 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
if r.Configuration.TunnelMethod != nil {
var sourceOracleUpdateSSHTunnelMethodNoTunnel *shared.SourceOracleUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourceOracleUpdateSSHTunnelMethodNoTunnel = &shared.SourceOracleUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourceOracleUpdateSSHTunnelMethodNoTunnel = &shared.SourceOracleUpdateSSHTunnelMethodNoTunnel{}
}
if sourceOracleUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourceOracleUpdateSSHTunnelMethod{
@@ -304,15 +276,18 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
if r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -323,13 +298,16 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq
var sourceOracleUpdateSSHTunnelMethodPasswordAuthentication *shared.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourceOracleUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_orb_data_source.go b/internal/provider/source_orb_data_source.go
old mode 100755
new mode 100644
index a379c0d18..8743540a7
--- a/internal/provider/source_orb_data_source.go
+++ b/internal/provider/source_orb_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -69,15 +67,6 @@ func (r *SourceOrbDataSource) Schema(ctx context.Context, req datasource.SchemaR
Computed: true,
Description: `Orb Plan ID to filter subscriptions that should have usage fetched.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "orb",
- ),
- },
- Description: `must be one of ["orb"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the ` + "`" + `timeframe_start` + "`" + ` API parameter.`,
diff --git a/internal/provider/source_orb_data_source_sdk.go b/internal/provider/source_orb_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_orb_resource.go b/internal/provider/source_orb_resource.go
old mode 100755
new mode 100644
index ecec3ecb5..2d21c787c
--- a/internal/provider/source_orb_resource.go
+++ b/internal/provider/source_orb_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -71,15 +69,6 @@ func (r *SourceOrbResource) Schema(ctx context.Context, req resource.SchemaReque
Optional: true,
Description: `Orb Plan ID to filter subscriptions that should have usage fetched.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "orb",
- ),
- },
- Description: `must be one of ["orb"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the ` + "`" + `timeframe_start` + "`" + ` API parameter.`,
@@ -165,7 +154,7 @@ func (r *SourceOrbResource) Create(ctx context.Context, req resource.CreateReque
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOrb(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_orb_resource_sdk.go b/internal/provider/source_orb_resource_sdk.go
old mode 100755
new mode 100644
index 5c249155d..635d25ab8
--- a/internal/provider/source_orb_resource_sdk.go
+++ b/internal/provider/source_orb_resource_sdk.go
@@ -25,7 +25,6 @@ func (r *SourceOrbResourceModel) ToCreateSDKType() *shared.SourceOrbCreateReques
} else {
planID = nil
}
- sourceType := shared.SourceOrbOrb(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
var stringEventPropertiesKeys []string = nil
for _, stringEventPropertiesKeysItem := range r.Configuration.StringEventPropertiesKeys {
@@ -42,7 +41,6 @@ func (r *SourceOrbResourceModel) ToCreateSDKType() *shared.SourceOrbCreateReques
LookbackWindowDays: lookbackWindowDays,
NumericEventPropertiesKeys: numericEventPropertiesKeys,
PlanID: planID,
- SourceType: sourceType,
StartDate: startDate,
StringEventPropertiesKeys: stringEventPropertiesKeys,
SubscriptionUsageGroupingKey: subscriptionUsageGroupingKey,
diff --git a/internal/provider/source_orbit_data_source.go b/internal/provider/source_orbit_data_source.go
old mode 100755
new mode 100644
index 5999c1943..b14f444c2
--- a/internal/provider/source_orbit_data_source.go
+++ b/internal/provider/source_orbit_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceOrbitDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Authorizes you to work with Orbit workspaces associated with the token.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "orbit",
- ),
- },
- Description: `must be one of ["orbit"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Date in the format 2022-06-26. Only load members whose last activities are after this date.`,
diff --git a/internal/provider/source_orbit_data_source_sdk.go b/internal/provider/source_orbit_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_orbit_resource.go b/internal/provider/source_orbit_resource.go
old mode 100755
new mode 100644
index f1e8d50e0..62e446262
--- a/internal/provider/source_orbit_resource.go
+++ b/internal/provider/source_orbit_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceOrbitResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Authorizes you to work with Orbit workspaces associated with the token.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "orbit",
- ),
- },
- Description: `must be one of ["orbit"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Description: `Date in the format 2022-06-26. Only load members whose last activities are after this date.`,
@@ -147,7 +136,7 @@ func (r *SourceOrbitResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOrbit(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_orbit_resource_sdk.go b/internal/provider/source_orbit_resource_sdk.go
old mode 100755
new mode 100644
index 9114b95b6..8594f1a9f
--- a/internal/provider/source_orbit_resource_sdk.go
+++ b/internal/provider/source_orbit_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *SourceOrbitResourceModel) ToCreateSDKType() *shared.SourceOrbitCreateRequest {
apiToken := r.Configuration.APIToken.ValueString()
- sourceType := shared.SourceOrbitOrbit(r.Configuration.SourceType.ValueString())
startDate := new(string)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate = r.Configuration.StartDate.ValueString()
@@ -18,10 +17,9 @@ func (r *SourceOrbitResourceModel) ToCreateSDKType() *shared.SourceOrbitCreateRe
}
workspace := r.Configuration.Workspace.ValueString()
configuration := shared.SourceOrbit{
- APIToken: apiToken,
- SourceType: sourceType,
- StartDate: startDate,
- Workspace: workspace,
+ APIToken: apiToken,
+ StartDate: startDate,
+ Workspace: workspace,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_outbrainamplify_data_source.go b/internal/provider/source_outbrainamplify_data_source.go
old mode 100755
new mode 100644
index cc993c0b3..c88843b34
--- a/internal/provider/source_outbrainamplify_data_source.go
+++ b/internal/provider/source_outbrainamplify_data_source.go
@@ -63,15 +63,6 @@ func (r *SourceOutbrainAmplifyDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
Description: `Credentials for making authenticated requests requires either username/password or access_token.`,
},
@@ -82,15 +73,6 @@ func (r *SourceOutbrainAmplifyDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Add Password for authentication.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Add Username for authentication.`,
@@ -105,15 +87,6 @@ func (r *SourceOutbrainAmplifyDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
Description: `Credentials for making authenticated requests requires either username/password or access_token.`,
},
@@ -124,15 +97,6 @@ func (r *SourceOutbrainAmplifyDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Add Password for authentication.`,
},
- "type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Add Username for authentication.`,
@@ -174,15 +138,6 @@ func (r *SourceOutbrainAmplifyDataSource) Schema(ctx context.Context, req dataso
MarkdownDescription: `must be one of ["daily", "weekly", "monthly"]` + "\n" +
`The granularity used for periodic data in reports. See the docs.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "outbrain-amplify",
- ),
- },
- Description: `must be one of ["outbrain-amplify"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_outbrainamplify_data_source_sdk.go b/internal/provider/source_outbrainamplify_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_outbrainamplify_resource.go b/internal/provider/source_outbrainamplify_resource.go
old mode 100755
new mode 100644
index f534ef8be..d6e125238
--- a/internal/provider/source_outbrainamplify_resource.go
+++ b/internal/provider/source_outbrainamplify_resource.go
@@ -65,15 +65,6 @@ func (r *SourceOutbrainAmplifyResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
Description: `Credentials for making authenticated requests requires either username/password or access_token.`,
},
@@ -84,15 +75,6 @@ func (r *SourceOutbrainAmplifyResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Add Password for authentication.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Add Username for authentication.`,
@@ -107,15 +89,6 @@ func (r *SourceOutbrainAmplifyResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
Description: `Credentials for making authenticated requests requires either username/password or access_token.`,
},
@@ -126,15 +99,6 @@ func (r *SourceOutbrainAmplifyResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Add Password for authentication.`,
},
- "type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username_password",
- ),
- },
- Description: `must be one of ["username_password"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Add Username for authentication.`,
@@ -176,15 +140,6 @@ func (r *SourceOutbrainAmplifyResource) Schema(ctx context.Context, req resource
MarkdownDescription: `must be one of ["daily", "weekly", "monthly"]` + "\n" +
`The granularity used for periodic data in reports. See the docs.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "outbrain-amplify",
- ),
- },
- Description: `must be one of ["outbrain-amplify"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.`,
@@ -261,7 +216,7 @@ func (r *SourceOutbrainAmplifyResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOutbrainAmplify(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_outbrainamplify_resource_sdk.go b/internal/provider/source_outbrainamplify_resource_sdk.go
old mode 100755
new mode 100644
index 76174f12d..b91189e19
--- a/internal/provider/source_outbrainamplify_resource_sdk.go
+++ b/internal/provider/source_outbrainamplify_resource_sdk.go
@@ -12,10 +12,8 @@ func (r *SourceOutbrainAmplifyResourceModel) ToCreateSDKType() *shared.SourceOut
var sourceOutbrainAmplifyAuthenticationMethodAccessToken *shared.SourceOutbrainAmplifyAuthenticationMethodAccessToken
if r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodAccessToken.AccessToken.ValueString()
- typeVar := shared.SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests(r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodAccessToken.Type.ValueString())
sourceOutbrainAmplifyAuthenticationMethodAccessToken = &shared.SourceOutbrainAmplifyAuthenticationMethodAccessToken{
AccessToken: accessToken,
- Type: typeVar,
}
}
if sourceOutbrainAmplifyAuthenticationMethodAccessToken != nil {
@@ -26,11 +24,9 @@ func (r *SourceOutbrainAmplifyResourceModel) ToCreateSDKType() *shared.SourceOut
var sourceOutbrainAmplifyAuthenticationMethodUsernamePassword *shared.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword
if r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword != nil {
password := r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword.Password.ValueString()
- typeVar1 := shared.SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest(r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword.Type.ValueString())
username := r.Configuration.Credentials.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword.Username.ValueString()
sourceOutbrainAmplifyAuthenticationMethodUsernamePassword = &shared.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword{
Password: password,
- Type: typeVar1,
Username: username,
}
}
@@ -57,14 +53,12 @@ func (r *SourceOutbrainAmplifyResourceModel) ToCreateSDKType() *shared.SourceOut
} else {
reportGranularity = nil
}
- sourceType := shared.SourceOutbrainAmplifyOutbrainAmplify(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceOutbrainAmplify{
Credentials: credentials,
EndDate: endDate,
GeoLocationBreakdown: geoLocationBreakdown,
ReportGranularity: reportGranularity,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -94,10 +88,8 @@ func (r *SourceOutbrainAmplifyResourceModel) ToUpdateSDKType() *shared.SourceOut
var sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken *shared.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken
if r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken != nil {
accessToken := r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken.AccessToken.ValueString()
- typeVar := shared.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests(r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken.Type.ValueString())
sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken = &shared.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken{
AccessToken: accessToken,
- Type: typeVar,
}
}
if sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken != nil {
@@ -108,11 +100,9 @@ func (r *SourceOutbrainAmplifyResourceModel) ToUpdateSDKType() *shared.SourceOut
var sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword *shared.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword
if r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword != nil {
password := r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword.Password.ValueString()
- typeVar1 := shared.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest(r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword.Type.ValueString())
username := r.Configuration.Credentials.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword.Username.ValueString()
sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword = &shared.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword{
Password: password,
- Type: typeVar1,
Username: username,
}
}
diff --git a/internal/provider/source_outreach_data_source.go b/internal/provider/source_outreach_data_source.go
old mode 100755
new mode 100644
index b54e06692..d01c68b2d
--- a/internal/provider/source_outreach_data_source.go
+++ b/internal/provider/source_outreach_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceOutreachDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The token for obtaining the new access token.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "outreach",
- ),
- },
- Description: `must be one of ["outreach"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.`,
diff --git a/internal/provider/source_outreach_data_source_sdk.go b/internal/provider/source_outreach_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_outreach_resource.go b/internal/provider/source_outreach_resource.go
old mode 100755
new mode 100644
index ac603cf50..c67ef5961
--- a/internal/provider/source_outreach_resource.go
+++ b/internal/provider/source_outreach_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceOutreachResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The token for obtaining the new access token.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "outreach",
- ),
- },
- Description: `must be one of ["outreach"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.`,
@@ -155,7 +144,7 @@ func (r *SourceOutreachResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceOutreach(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_outreach_resource_sdk.go b/internal/provider/source_outreach_resource_sdk.go
old mode 100755
new mode 100644
index 4092c82a4..299f3d3f3
--- a/internal/provider/source_outreach_resource_sdk.go
+++ b/internal/provider/source_outreach_resource_sdk.go
@@ -12,14 +12,12 @@ func (r *SourceOutreachResourceModel) ToCreateSDKType() *shared.SourceOutreachCr
clientSecret := r.Configuration.ClientSecret.ValueString()
redirectURI := r.Configuration.RedirectURI.ValueString()
refreshToken := r.Configuration.RefreshToken.ValueString()
- sourceType := shared.SourceOutreachOutreach(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceOutreach{
ClientID: clientID,
ClientSecret: clientSecret,
RedirectURI: redirectURI,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_paypaltransaction_data_source.go b/internal/provider/source_paypaltransaction_data_source.go
old mode 100755
new mode 100644
index 378acee90..9d05eaf7d
--- a/internal/provider/source_paypaltransaction_data_source.go
+++ b/internal/provider/source_paypaltransaction_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -69,15 +68,6 @@ func (r *SourcePaypalTransactionDataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `The key to refresh the expired access token.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "paypal-transaction",
- ),
- },
- Description: `must be one of ["paypal-transaction"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_paypaltransaction_data_source_sdk.go b/internal/provider/source_paypaltransaction_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_paypaltransaction_resource.go b/internal/provider/source_paypaltransaction_resource.go
old mode 100755
new mode 100644
index 8502448c7..c6292e575
--- a/internal/provider/source_paypaltransaction_resource.go
+++ b/internal/provider/source_paypaltransaction_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -64,22 +63,13 @@ func (r *SourcePaypalTransactionResource) Schema(ctx context.Context, req resour
Description: `The Client Secret of your Paypal developer application.`,
},
"is_sandbox": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `Determines whether to use the sandbox or production environment.`,
},
"refresh_token": schema.StringAttribute{
Optional: true,
Description: `The key to refresh the expired access token.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "paypal-transaction",
- ),
- },
- Description: `must be one of ["paypal-transaction"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -159,7 +149,7 @@ func (r *SourcePaypalTransactionResource) Create(ctx context.Context, req resour
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePaypalTransaction(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_paypaltransaction_resource_sdk.go b/internal/provider/source_paypaltransaction_resource_sdk.go
old mode 100755
new mode 100644
index a75107f8d..77a91bf40
--- a/internal/provider/source_paypaltransaction_resource_sdk.go
+++ b/internal/provider/source_paypaltransaction_resource_sdk.go
@@ -11,21 +11,24 @@ import (
func (r *SourcePaypalTransactionResourceModel) ToCreateSDKType() *shared.SourcePaypalTransactionCreateRequest {
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
- isSandbox := r.Configuration.IsSandbox.ValueBool()
+ isSandbox := new(bool)
+ if !r.Configuration.IsSandbox.IsUnknown() && !r.Configuration.IsSandbox.IsNull() {
+ *isSandbox = r.Configuration.IsSandbox.ValueBool()
+ } else {
+ isSandbox = nil
+ }
refreshToken := new(string)
if !r.Configuration.RefreshToken.IsUnknown() && !r.Configuration.RefreshToken.IsNull() {
*refreshToken = r.Configuration.RefreshToken.ValueString()
} else {
refreshToken = nil
}
- sourceType := shared.SourcePaypalTransactionPaypalTransaction(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourcePaypalTransaction{
ClientID: clientID,
ClientSecret: clientSecret,
IsSandbox: isSandbox,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -53,7 +56,12 @@ func (r *SourcePaypalTransactionResourceModel) ToGetSDKType() *shared.SourcePayp
func (r *SourcePaypalTransactionResourceModel) ToUpdateSDKType() *shared.SourcePaypalTransactionPutRequest {
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
- isSandbox := r.Configuration.IsSandbox.ValueBool()
+ isSandbox := new(bool)
+ if !r.Configuration.IsSandbox.IsUnknown() && !r.Configuration.IsSandbox.IsNull() {
+ *isSandbox = r.Configuration.IsSandbox.ValueBool()
+ } else {
+ isSandbox = nil
+ }
refreshToken := new(string)
if !r.Configuration.RefreshToken.IsUnknown() && !r.Configuration.RefreshToken.IsNull() {
*refreshToken = r.Configuration.RefreshToken.ValueString()
diff --git a/internal/provider/source_paystack_data_source.go b/internal/provider/source_paystack_data_source.go
old mode 100755
new mode 100644
index ee2bb7fde..1106bbfe1
--- a/internal/provider/source_paystack_data_source.go
+++ b/internal/provider/source_paystack_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -61,15 +60,6 @@ func (r *SourcePaystackDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The Paystack API key (usually starts with 'sk_live_'; find yours here).`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "paystack",
- ),
- },
- Description: `must be one of ["paystack"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_paystack_data_source_sdk.go b/internal/provider/source_paystack_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_paystack_resource.go b/internal/provider/source_paystack_resource.go
old mode 100755
new mode 100644
index ee57a0993..2fe1b5d8f
--- a/internal/provider/source_paystack_resource.go
+++ b/internal/provider/source_paystack_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -63,15 +62,6 @@ func (r *SourcePaystackResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The Paystack API key (usually starts with 'sk_live_'; find yours here).`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "paystack",
- ),
- },
- Description: `must be one of ["paystack"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -151,7 +141,7 @@ func (r *SourcePaystackResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePaystack(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_paystack_resource_sdk.go b/internal/provider/source_paystack_resource_sdk.go
old mode 100755
new mode 100644
index 6eb4ce368..97597fc8c
--- a/internal/provider/source_paystack_resource_sdk.go
+++ b/internal/provider/source_paystack_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *SourcePaystackResourceModel) ToCreateSDKType() *shared.SourcePaystackCr
lookbackWindowDays = nil
}
secretKey := r.Configuration.SecretKey.ValueString()
- sourceType := shared.SourcePaystackPaystack(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourcePaystack{
LookbackWindowDays: lookbackWindowDays,
SecretKey: secretKey,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_pendo_data_source.go b/internal/provider/source_pendo_data_source.go
old mode 100755
new mode 100644
index 147c18387..dbf4442d2
--- a/internal/provider/source_pendo_data_source.go
+++ b/internal/provider/source_pendo_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourcePendoDataSource struct {
// SourcePendoDataSourceModel describes the data model.
type SourcePendoDataSourceModel struct {
- Configuration SourcePendo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -55,15 +53,6 @@ func (r *SourcePendoDataSource) Schema(ctx context.Context, req datasource.Schem
"api_key": schema.StringAttribute{
Computed: true,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pendo",
- ),
- },
- Description: `must be one of ["pendo"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_pendo_data_source_sdk.go b/internal/provider/source_pendo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pendo_resource.go b/internal/provider/source_pendo_resource.go
old mode 100755
new mode 100644
index f6b387046..ef837c40f
--- a/internal/provider/source_pendo_resource.go
+++ b/internal/provider/source_pendo_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourcePendoResource struct {
// SourcePendoResourceModel describes the resource data model.
type SourcePendoResourceModel struct {
- Configuration SourcePendo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourcePendoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -57,15 +55,6 @@ func (r *SourcePendoResource) Schema(ctx context.Context, req resource.SchemaReq
"api_key": schema.StringAttribute{
Required: true,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pendo",
- ),
- },
- Description: `must be one of ["pendo"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -138,7 +127,7 @@ func (r *SourcePendoResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePendo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pendo_resource_sdk.go b/internal/provider/source_pendo_resource_sdk.go
old mode 100755
new mode 100644
index 025fc1cc4..14d152670
--- a/internal/provider/source_pendo_resource_sdk.go
+++ b/internal/provider/source_pendo_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourcePendoResourceModel) ToCreateSDKType() *shared.SourcePendoCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourcePendoPendo(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePendo{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_persistiq_data_source.go b/internal/provider/source_persistiq_data_source.go
old mode 100755
new mode 100644
index 59dfd87b1..dd1386d8d
--- a/internal/provider/source_persistiq_data_source.go
+++ b/internal/provider/source_persistiq_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourcePersistiqDataSource struct {
// SourcePersistiqDataSourceModel describes the data model.
type SourcePersistiqDataSourceModel struct {
- Configuration SourcePersistiq `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourcePersistiqDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `PersistIq API Key. See the docs for more information on where to find that key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "persistiq",
- ),
- },
- Description: `must be one of ["persistiq"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_persistiq_data_source_sdk.go b/internal/provider/source_persistiq_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_persistiq_resource.go b/internal/provider/source_persistiq_resource.go
old mode 100755
new mode 100644
index f8f1f116b..467d8bedd
--- a/internal/provider/source_persistiq_resource.go
+++ b/internal/provider/source_persistiq_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourcePersistiqResource struct {
// SourcePersistiqResourceModel describes the resource data model.
type SourcePersistiqResourceModel struct {
- Configuration SourcePersistiq `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourcePersistiqResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourcePersistiqResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `PersistIq API Key. See the docs for more information on where to find that key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "persistiq",
- ),
- },
- Description: `must be one of ["persistiq"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourcePersistiqResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePersistiq(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_persistiq_resource_sdk.go b/internal/provider/source_persistiq_resource_sdk.go
old mode 100755
new mode 100644
index 8001ce73e..07f12f29f
--- a/internal/provider/source_persistiq_resource_sdk.go
+++ b/internal/provider/source_persistiq_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourcePersistiqResourceModel) ToCreateSDKType() *shared.SourcePersistiqCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourcePersistiqPersistiq(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePersistiq{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_pexelsapi_data_source.go b/internal/provider/source_pexelsapi_data_source.go
old mode 100755
new mode 100644
index f1c88657f..db0cd2bda
--- a/internal/provider/source_pexelsapi_data_source.go
+++ b/internal/provider/source_pexelsapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -76,15 +74,6 @@ func (r *SourcePexelsAPIDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pexels-api",
- ),
- },
- Description: `must be one of ["pexels-api"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_pexelsapi_data_source_sdk.go b/internal/provider/source_pexelsapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pexelsapi_resource.go b/internal/provider/source_pexelsapi_resource.go
old mode 100755
new mode 100644
index 7228ff335..e75cf511e
--- a/internal/provider/source_pexelsapi_resource.go
+++ b/internal/provider/source_pexelsapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -78,15 +76,6 @@ func (r *SourcePexelsAPIResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pexels-api",
- ),
- },
- Description: `must be one of ["pexels-api"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -159,7 +148,7 @@ func (r *SourcePexelsAPIResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePexelsAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pexelsapi_resource_sdk.go b/internal/provider/source_pexelsapi_resource_sdk.go
old mode 100755
new mode 100644
index fddcdfbcf..e89be2020
--- a/internal/provider/source_pexelsapi_resource_sdk.go
+++ b/internal/provider/source_pexelsapi_resource_sdk.go
@@ -34,7 +34,6 @@ func (r *SourcePexelsAPIResourceModel) ToCreateSDKType() *shared.SourcePexelsAPI
} else {
size = nil
}
- sourceType := shared.SourcePexelsAPIPexelsAPI(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePexelsAPI{
APIKey: apiKey,
Color: color,
@@ -42,7 +41,6 @@ func (r *SourcePexelsAPIResourceModel) ToCreateSDKType() *shared.SourcePexelsAPI
Orientation: orientation,
Query: query,
Size: size,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_pinterest_data_source.go b/internal/provider/source_pinterest_data_source.go
old mode 100755
new mode 100644
index b6fbbdf2e..c7b4c6bf3
--- a/internal/provider/source_pinterest_data_source.go
+++ b/internal/provider/source_pinterest_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,29 +62,11 @@ func (r *SourcePinterestDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The Access Token to make authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_pinterest_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application`,
@@ -107,29 +88,11 @@ func (r *SourcePinterestDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The Access Token to make authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_pinterest_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application`,
@@ -149,15 +112,6 @@ func (r *SourcePinterestDataSource) Schema(ctx context.Context, req datasource.S
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinterest",
- ),
- },
- Description: `must be one of ["pinterest"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_pinterest_data_source_sdk.go b/internal/provider/source_pinterest_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pinterest_resource.go b/internal/provider/source_pinterest_resource.go
old mode 100755
new mode 100644
index 9798839f1..4703483a2
--- a/internal/provider/source_pinterest_resource.go
+++ b/internal/provider/source_pinterest_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,29 +64,11 @@ func (r *SourcePinterestResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `The Access Token to make authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_pinterest_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your OAuth application`,
@@ -109,29 +90,11 @@ func (r *SourcePinterestResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `The Access Token to make authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_pinterest_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of your OAuth application`,
@@ -151,15 +114,6 @@ func (r *SourcePinterestResource) Schema(ctx context.Context, req resource.Schem
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pinterest",
- ),
- },
- Description: `must be one of ["pinterest"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -244,7 +198,7 @@ func (r *SourcePinterestResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePinterest(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pinterest_resource_sdk.go b/internal/provider/source_pinterest_resource_sdk.go
old mode 100755
new mode 100644
index c1b2d7017..39606d508
--- a/internal/provider/source_pinterest_resource_sdk.go
+++ b/internal/provider/source_pinterest_resource_sdk.go
@@ -13,7 +13,6 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest
if r.Configuration.Credentials != nil {
var sourcePinterestAuthorizationMethodOAuth20 *shared.SourcePinterestAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20 != nil {
- authMethod := shared.SourcePinterestAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -28,7 +27,6 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest
}
refreshToken := r.Configuration.Credentials.SourcePinterestAuthorizationMethodOAuth20.RefreshToken.ValueString()
sourcePinterestAuthorizationMethodOAuth20 = &shared.SourcePinterestAuthorizationMethodOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -42,10 +40,8 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest
var sourcePinterestAuthorizationMethodAccessToken *shared.SourcePinterestAuthorizationMethodAccessToken
if r.Configuration.Credentials.SourcePinterestAuthorizationMethodAccessToken != nil {
accessToken := r.Configuration.Credentials.SourcePinterestAuthorizationMethodAccessToken.AccessToken.ValueString()
- authMethod1 := shared.SourcePinterestAuthorizationMethodAccessTokenAuthMethod(r.Configuration.Credentials.SourcePinterestAuthorizationMethodAccessToken.AuthMethod.ValueString())
sourcePinterestAuthorizationMethodAccessToken = &shared.SourcePinterestAuthorizationMethodAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourcePinterestAuthorizationMethodAccessToken != nil {
@@ -54,7 +50,6 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest
}
}
}
- sourceType := shared.SourcePinterestPinterest(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
var status []shared.SourcePinterestStatus = nil
for _, statusItem := range r.Configuration.Status {
@@ -62,7 +57,6 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest
}
configuration := shared.SourcePinterest{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
Status: status,
}
@@ -93,7 +87,6 @@ func (r *SourcePinterestResourceModel) ToUpdateSDKType() *shared.SourcePinterest
if r.Configuration.Credentials != nil {
var sourcePinterestUpdateAuthorizationMethodOAuth20 *shared.SourcePinterestUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20 != nil {
- authMethod := shared.SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -108,7 +101,6 @@ func (r *SourcePinterestResourceModel) ToUpdateSDKType() *shared.SourcePinterest
}
refreshToken := r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
sourcePinterestUpdateAuthorizationMethodOAuth20 = &shared.SourcePinterestUpdateAuthorizationMethodOAuth20{
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -122,10 +114,8 @@ func (r *SourcePinterestResourceModel) ToUpdateSDKType() *shared.SourcePinterest
var sourcePinterestUpdateAuthorizationMethodAccessToken *shared.SourcePinterestUpdateAuthorizationMethodAccessToken
if r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodAccessToken != nil {
accessToken := r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodAccessToken.AccessToken.ValueString()
- authMethod1 := shared.SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethod(r.Configuration.Credentials.SourcePinterestUpdateAuthorizationMethodAccessToken.AuthMethod.ValueString())
sourcePinterestUpdateAuthorizationMethodAccessToken = &shared.SourcePinterestUpdateAuthorizationMethodAccessToken{
AccessToken: accessToken,
- AuthMethod: authMethod1,
}
}
if sourcePinterestUpdateAuthorizationMethodAccessToken != nil {
diff --git a/internal/provider/source_pipedrive_data_source.go b/internal/provider/source_pipedrive_data_source.go
old mode 100755
new mode 100644
index c784099d2..e3a137603
--- a/internal/provider/source_pipedrive_data_source.go
+++ b/internal/provider/source_pipedrive_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -60,15 +59,6 @@ func (r *SourcePipedriveDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The Pipedrive API Token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
},
},
"replication_start_date": schema.StringAttribute{
@@ -78,15 +68,6 @@ func (r *SourcePipedriveDataSource) Schema(ctx context.Context, req datasource.S
},
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pipedrive",
- ),
- },
- Description: `must be one of ["pipedrive"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_pipedrive_data_source_sdk.go b/internal/provider/source_pipedrive_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pipedrive_resource.go b/internal/provider/source_pipedrive_resource.go
old mode 100755
new mode 100644
index e65771de4..72f701d02
--- a/internal/provider/source_pipedrive_resource.go
+++ b/internal/provider/source_pipedrive_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -62,15 +61,6 @@ func (r *SourcePipedriveResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `The Pipedrive API Token.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
},
},
"replication_start_date": schema.StringAttribute{
@@ -80,15 +70,6 @@ func (r *SourcePipedriveResource) Schema(ctx context.Context, req resource.Schem
},
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pipedrive",
- ),
- },
- Description: `must be one of ["pipedrive"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -161,7 +142,7 @@ func (r *SourcePipedriveResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePipedrive(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pipedrive_resource_sdk.go b/internal/provider/source_pipedrive_resource_sdk.go
old mode 100755
new mode 100644
index 6f7391476..4f01aba71
--- a/internal/provider/source_pipedrive_resource_sdk.go
+++ b/internal/provider/source_pipedrive_resource_sdk.go
@@ -12,18 +12,14 @@ func (r *SourcePipedriveResourceModel) ToCreateSDKType() *shared.SourcePipedrive
var authorization *shared.SourcePipedriveAPIKeyAuthentication
if r.Configuration.Authorization != nil {
apiToken := r.Configuration.Authorization.APIToken.ValueString()
- authType := shared.SourcePipedriveAPIKeyAuthenticationAuthType(r.Configuration.Authorization.AuthType.ValueString())
authorization = &shared.SourcePipedriveAPIKeyAuthentication{
APIToken: apiToken,
- AuthType: authType,
}
}
replicationStartDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.ReplicationStartDate.ValueString())
- sourceType := shared.SourcePipedrivePipedrive(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePipedrive{
Authorization: authorization,
ReplicationStartDate: replicationStartDate,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -51,10 +47,8 @@ func (r *SourcePipedriveResourceModel) ToUpdateSDKType() *shared.SourcePipedrive
var authorization *shared.SourcePipedriveUpdateAPIKeyAuthentication
if r.Configuration.Authorization != nil {
apiToken := r.Configuration.Authorization.APIToken.ValueString()
- authType := shared.SourcePipedriveUpdateAPIKeyAuthenticationAuthType(r.Configuration.Authorization.AuthType.ValueString())
authorization = &shared.SourcePipedriveUpdateAPIKeyAuthentication{
APIToken: apiToken,
- AuthType: authType,
}
}
replicationStartDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.ReplicationStartDate.ValueString())
diff --git a/internal/provider/source_pocket_data_source.go b/internal/provider/source_pocket_data_source.go
old mode 100755
new mode 100644
index 36f5a9de8..9285747bb
--- a/internal/provider/source_pocket_data_source.go
+++ b/internal/provider/source_pocket_data_source.go
@@ -112,15 +112,6 @@ func (r *SourcePocketDataSource) Schema(ctx context.Context, req datasource.Sche
MarkdownDescription: `must be one of ["newest", "oldest", "title", "site"]` + "\n" +
`Sort retrieved items by the given criteria.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pocket",
- ),
- },
- Description: `must be one of ["pocket"]`,
- },
"state": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_pocket_data_source_sdk.go b/internal/provider/source_pocket_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pocket_resource.go b/internal/provider/source_pocket_resource.go
old mode 100755
new mode 100644
index ce3905b33..75c5274e8
--- a/internal/provider/source_pocket_resource.go
+++ b/internal/provider/source_pocket_resource.go
@@ -114,15 +114,6 @@ func (r *SourcePocketResource) Schema(ctx context.Context, req resource.SchemaRe
MarkdownDescription: `must be one of ["newest", "oldest", "title", "site"]` + "\n" +
`Sort retrieved items by the given criteria.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pocket",
- ),
- },
- Description: `must be one of ["pocket"]`,
- },
"state": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -211,7 +202,7 @@ func (r *SourcePocketResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePocket(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pocket_resource_sdk.go b/internal/provider/source_pocket_resource_sdk.go
old mode 100755
new mode 100644
index 5a3977290..a4ecb1b72
--- a/internal/provider/source_pocket_resource_sdk.go
+++ b/internal/provider/source_pocket_resource_sdk.go
@@ -52,7 +52,6 @@ func (r *SourcePocketResourceModel) ToCreateSDKType() *shared.SourcePocketCreate
} else {
sort = nil
}
- sourceType := shared.SourcePocketPocket(r.Configuration.SourceType.ValueString())
state := new(shared.SourcePocketState)
if !r.Configuration.State.IsUnknown() && !r.Configuration.State.IsNull() {
*state = shared.SourcePocketState(r.Configuration.State.ValueString())
@@ -75,7 +74,6 @@ func (r *SourcePocketResourceModel) ToCreateSDKType() *shared.SourcePocketCreate
Search: search,
Since: since,
Sort: sort,
- SourceType: sourceType,
State: state,
Tag: tag,
}
diff --git a/internal/provider/source_pokeapi_data_source.go b/internal/provider/source_pokeapi_data_source.go
old mode 100755
new mode 100644
index 3ed209593..1a3d1c3b9
--- a/internal/provider/source_pokeapi_data_source.go
+++ b/internal/provider/source_pokeapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourcePokeapiDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Pokemon requested from the API.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pokeapi",
- ),
- },
- Description: `must be one of ["pokeapi"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_pokeapi_data_source_sdk.go b/internal/provider/source_pokeapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pokeapi_resource.go b/internal/provider/source_pokeapi_resource.go
old mode 100755
new mode 100644
index 749227d6a..8a146fc86
--- a/internal/provider/source_pokeapi_resource.go
+++ b/internal/provider/source_pokeapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourcePokeapiResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Pokemon requested from the API.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pokeapi",
- ),
- },
- Description: `must be one of ["pokeapi"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourcePokeapiResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePokeapi(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pokeapi_resource_sdk.go b/internal/provider/source_pokeapi_resource_sdk.go
old mode 100755
new mode 100644
index e7fa08720..f68c76118
--- a/internal/provider/source_pokeapi_resource_sdk.go
+++ b/internal/provider/source_pokeapi_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourcePokeapiResourceModel) ToCreateSDKType() *shared.SourcePokeapiCreateRequest {
pokemonName := r.Configuration.PokemonName.ValueString()
- sourceType := shared.SourcePokeapiPokeapi(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePokeapi{
PokemonName: pokemonName,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_polygonstockapi_data_source.go b/internal/provider/source_polygonstockapi_data_source.go
old mode 100755
new mode 100644
index 70663cb3b..7d6bac4aa
--- a/internal/provider/source_polygonstockapi_data_source.go
+++ b/internal/provider/source_polygonstockapi_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -80,15 +79,6 @@ func (r *SourcePolygonStockAPIDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top).`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "polygon-stock-api",
- ),
- },
- Description: `must be one of ["polygon-stock-api"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_polygonstockapi_data_source_sdk.go b/internal/provider/source_polygonstockapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_polygonstockapi_resource.go b/internal/provider/source_polygonstockapi_resource.go
old mode 100755
new mode 100644
index 36e7da298..3db615710
--- a/internal/provider/source_polygonstockapi_resource.go
+++ b/internal/provider/source_polygonstockapi_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -82,15 +81,6 @@ func (r *SourcePolygonStockAPIResource) Schema(ctx context.Context, req resource
Optional: true,
Description: `Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top).`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "polygon-stock-api",
- ),
- },
- Description: `must be one of ["polygon-stock-api"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -178,7 +168,7 @@ func (r *SourcePolygonStockAPIResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePolygonStockAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_polygonstockapi_resource_sdk.go b/internal/provider/source_polygonstockapi_resource_sdk.go
old mode 100755
new mode 100644
index 82e31a88b..bd5923de0
--- a/internal/provider/source_polygonstockapi_resource_sdk.go
+++ b/internal/provider/source_polygonstockapi_resource_sdk.go
@@ -30,7 +30,6 @@ func (r *SourcePolygonStockAPIResourceModel) ToCreateSDKType() *shared.SourcePol
} else {
sort = nil
}
- sourceType := shared.SourcePolygonStockAPIPolygonStockAPI(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
stocksTicker := r.Configuration.StocksTicker.ValueString()
timespan := r.Configuration.Timespan.ValueString()
@@ -41,7 +40,6 @@ func (r *SourcePolygonStockAPIResourceModel) ToCreateSDKType() *shared.SourcePol
Limit: limit,
Multiplier: multiplier,
Sort: sort,
- SourceType: sourceType,
StartDate: startDate,
StocksTicker: stocksTicker,
Timespan: timespan,
diff --git a/internal/provider/source_postgres_data_source.go b/internal/provider/source_postgres_data_source.go
old mode 100755
new mode 100644
index 33d3caf26..e87c7e752
--- a/internal/provider/source_postgres_data_source.go
+++ b/internal/provider/source_postgres_data_source.go
@@ -32,11 +32,11 @@ type SourcePostgresDataSource struct {
// SourcePostgresDataSourceModel describes the data model.
type SourcePostgresDataSourceModel struct {
- Configuration SourcePostgres1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourcePostgres `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -77,23 +77,20 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Attributes: map[string]schema.Attribute{
"source_postgres_update_method_detect_changes_with_xmin_system_column": schema.SingleNestedAttribute{
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
+ Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
+ },
+ "source_postgres_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Xmin"]`,
+ Description: `Parsed as JSON.`,
},
- },
- Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
- },
- "source_postgres_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
"initial_waiting_seconds": schema.Int64Attribute{
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -109,15 +106,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -140,49 +128,29 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.`,
},
"source_postgres_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_postgres_update_update_method_detect_changes_with_xmin_system_column": schema.SingleNestedAttribute{
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
+ Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
+ },
+ "source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Xmin"]`,
+ Description: `Parsed as JSON.`,
},
- },
- Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
- },
- "source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
"initial_waiting_seconds": schema.Int64Attribute{
Computed: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -198,15 +166,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -229,29 +188,12 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.`,
},
"source_postgres_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -265,32 +207,14 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
ElementType: types.StringType,
Description: `The list of schemas (case sensitive) to sync from. Defaults to public.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postgres",
- ),
- },
- Description: `must be one of ["postgres"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_postgres_ssl_modes_allow": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -302,17 +226,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_ssl_modes_disable": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -324,17 +239,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_ssl_modes_prefer": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -346,17 +252,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_ssl_modes_require": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -368,6 +265,13 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -384,28 +288,19 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
},
"source_postgres_ssl_modes_verify_full": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -422,39 +317,14 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
"source_postgres_update_ssl_modes_allow": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -466,17 +336,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_update_ssl_modes_disable": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -488,17 +349,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_update_ssl_modes_prefer": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -510,17 +362,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_update_ssl_modes_require": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
@@ -532,6 +375,13 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
"source_postgres_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -548,28 +398,19 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
},
"source_postgres_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Computed: true,
Description: `CA certificate`,
@@ -586,22 +427,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
@@ -616,19 +441,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Attributes: map[string]schema.Attribute{
"source_postgres_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -638,16 +452,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -674,16 +478,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -696,19 +490,8 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -718,16 +501,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
@@ -754,16 +527,6 @@ func (r *SourcePostgresDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
Computed: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
diff --git a/internal/provider/source_postgres_data_source_sdk.go b/internal/provider/source_postgres_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_postgres_resource.go b/internal/provider/source_postgres_resource.go
old mode 100755
new mode 100644
index cd6641c86..7bc10b115
--- a/internal/provider/source_postgres_resource.go
+++ b/internal/provider/source_postgres_resource.go
@@ -72,30 +72,27 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"replication_method": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_postgres_update_method_detect_changes_with_xmin_system_column": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
- },
- Description: `must be one of ["Xmin"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
},
"source_postgres_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"initial_waiting_seconds": schema.Int64Attribute{
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -111,15 +108,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -142,49 +130,29 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.`,
},
"source_postgres_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
"source_postgres_update_update_method_detect_changes_with_xmin_system_column": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Xmin",
- ),
- },
- Description: `must be one of ["Xmin"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.`,
},
"source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"initial_waiting_seconds": schema.Int64Attribute{
Optional: true,
Description: `The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.`,
@@ -200,15 +168,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
MarkdownDescription: `must be one of ["While reading Data", "After loading Data in the destination"]` + "\n" +
`Determines when Airbtye should flush the LSN of processed WAL logs in the source database. ` + "`" + `After loading Data in the destination` + "`" + ` is default. If ` + "`" + `While reading Data` + "`" + ` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.`,
},
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "CDC",
- ),
- },
- Description: `must be one of ["CDC"]`,
- },
"plugin": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -231,29 +190,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `A plugin logical replication slot. Read about replication slots.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.`,
},
"source_postgres_update_update_method_scan_changes_with_user_defined_cursor": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Standard",
- ),
- },
- Description: `must be one of ["Standard"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).`,
},
},
@@ -267,30 +209,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
ElementType: types.StringType,
Description: `The list of schemas (case sensitive) to sync from. Defaults to public.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postgres",
- ),
- },
- Description: `must be one of ["postgres"]`,
- },
"ssl_mode": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_postgres_ssl_modes_allow": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -304,15 +228,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_ssl_modes_disable": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -326,15 +241,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_ssl_modes_prefer": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -348,15 +254,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_ssl_modes_require": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -370,6 +267,13 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -386,15 +290,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
+ },
+ Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
+ },
+ "source_postgres_ssl_modes_verify_full": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -402,12 +303,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
- },
- "source_postgres_ssl_modes_verify_full": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -424,37 +319,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
"source_postgres_update_ssl_modes_allow": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "allow",
- ),
- },
- Description: `must be one of ["allow"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -468,15 +338,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_update_ssl_modes_disable": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "disable",
- ),
- },
- Description: `must be one of ["disable"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -490,15 +351,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_update_ssl_modes_prefer": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prefer",
- ),
- },
- Description: `must be one of ["prefer"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -512,15 +364,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_update_ssl_modes_require": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "require",
- ),
- },
- Description: `must be one of ["require"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -534,6 +377,13 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
"source_postgres_update_ssl_modes_verify_ca": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -550,15 +400,12 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-ca",
- ),
- },
- Description: `must be one of ["verify-ca"]`,
- },
+ },
+ Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
+ },
+ "source_postgres_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -566,12 +413,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Always require encryption and verifies that the source database server has a valid SSL certificate.`,
- },
- "source_postgres_update_ssl_modes_verify_full": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"ca_certificate": schema.StringAttribute{
Required: true,
Description: `CA certificate`,
@@ -588,22 +429,6 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `Password for keystorage. If you do not add it - the password will be generated automatically.`,
},
- "mode": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "verify-full",
- ),
- },
- Description: `must be one of ["verify-full"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `This is the most secure mode. Always require encryption and verifies the identity of the source database server.`,
},
@@ -618,19 +443,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Attributes: map[string]schema.Attribute{
"source_postgres_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -640,18 +454,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -676,18 +480,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -698,19 +492,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_update_ssh_tunnel_method_no_tunnel": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "NO_TUNNEL",
- ),
- },
- MarkdownDescription: `must be one of ["NO_TUNNEL"]` + "\n" +
- `No ssh tunnel needed to connect to database`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.`,
},
"source_postgres_update_ssh_tunnel_method_password_authentication": schema.SingleNestedAttribute{
@@ -720,18 +503,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and password authentication`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -756,18 +529,8 @@ func (r *SourcePostgresResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Hostname of the jump server host that allows inbound ssh tunnel.`,
},
- "tunnel_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through a jump server tunnel host using username and ssh key`,
- },
"tunnel_port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port on the proxy/jump server that accepts inbound ssh connections.`,
},
"tunnel_user": schema.StringAttribute{
@@ -859,7 +622,7 @@ func (r *SourcePostgresResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePostgres(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_postgres_resource_sdk.go b/internal/provider/source_postgres_resource_sdk.go
old mode 100755
new mode 100644
index 1623a5ac9..b7a65fc8b
--- a/internal/provider/source_postgres_resource_sdk.go
+++ b/internal/provider/source_postgres_resource_sdk.go
@@ -23,11 +23,20 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod *shared.SourcePostgresUpdateMethod
if r.Configuration.ReplicationMethod != nil {
var sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC *shared.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC
if r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.ValueString()), &additionalProperties)
+ }
initialWaitingSeconds := new(int64)
if !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsNull() {
*initialWaitingSeconds = r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.ValueInt64()
@@ -40,7 +49,6 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
} else {
lsnCommitBehaviour = nil
}
- method := shared.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.Method.ValueString())
plugin := new(shared.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin)
if !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.IsNull() {
*plugin = shared.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.ValueString())
@@ -55,19 +63,14 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
queueSize = nil
}
replicationSlot := r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.ReplicationSlot.ValueString()
- var additionalProperties interface{}
- if !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC = &shared.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC{
+ AdditionalProperties: additionalProperties,
InitialWaitingSeconds: initialWaitingSeconds,
LsnCommitBehaviour: lsnCommitBehaviour,
- Method: method,
Plugin: plugin,
Publication: publication,
QueueSize: queueSize,
ReplicationSlot: replicationSlot,
- AdditionalProperties: additionalProperties,
}
}
if sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
@@ -77,10 +80,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn *shared.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn
if r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn != nil {
- method1 := shared.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn.Method.ValueString())
- sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn = &shared.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn{
- Method: method1,
- }
+ sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn = &shared.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn{}
}
if sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn != nil {
replicationMethod = &shared.SourcePostgresUpdateMethod{
@@ -89,10 +89,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor *shared.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method2 := shared.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method2,
- }
+ sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = &shared.SourcePostgresUpdateMethod{
@@ -104,18 +101,15 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
}
- sourceType := shared.SourcePostgresPostgres(r.Configuration.SourceType.ValueString())
var sslMode *shared.SourcePostgresSSLModes
if r.Configuration.SslMode != nil {
var sourcePostgresSSLModesDisable *shared.SourcePostgresSSLModesDisable
if r.Configuration.SslMode.SourcePostgresSSLModesDisable != nil {
- mode := shared.SourcePostgresSSLModesDisableMode(r.Configuration.SslMode.SourcePostgresSSLModesDisable.Mode.ValueString())
var additionalProperties1 interface{}
if !r.Configuration.SslMode.SourcePostgresSSLModesDisable.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesDisable.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesDisable.AdditionalProperties.ValueString()), &additionalProperties1)
}
sourcePostgresSSLModesDisable = &shared.SourcePostgresSSLModesDisable{
- Mode: mode,
AdditionalProperties: additionalProperties1,
}
}
@@ -126,13 +120,11 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresSSLModesAllow *shared.SourcePostgresSSLModesAllow
if r.Configuration.SslMode.SourcePostgresSSLModesAllow != nil {
- mode1 := shared.SourcePostgresSSLModesAllowMode(r.Configuration.SslMode.SourcePostgresSSLModesAllow.Mode.ValueString())
var additionalProperties2 interface{}
if !r.Configuration.SslMode.SourcePostgresSSLModesAllow.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesAllow.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesAllow.AdditionalProperties.ValueString()), &additionalProperties2)
}
sourcePostgresSSLModesAllow = &shared.SourcePostgresSSLModesAllow{
- Mode: mode1,
AdditionalProperties: additionalProperties2,
}
}
@@ -143,13 +135,11 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresSSLModesPrefer *shared.SourcePostgresSSLModesPrefer
if r.Configuration.SslMode.SourcePostgresSSLModesPrefer != nil {
- mode2 := shared.SourcePostgresSSLModesPreferMode(r.Configuration.SslMode.SourcePostgresSSLModesPrefer.Mode.ValueString())
var additionalProperties3 interface{}
if !r.Configuration.SslMode.SourcePostgresSSLModesPrefer.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesPrefer.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesPrefer.AdditionalProperties.ValueString()), &additionalProperties3)
}
sourcePostgresSSLModesPrefer = &shared.SourcePostgresSSLModesPrefer{
- Mode: mode2,
AdditionalProperties: additionalProperties3,
}
}
@@ -160,13 +150,11 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresSSLModesRequire *shared.SourcePostgresSSLModesRequire
if r.Configuration.SslMode.SourcePostgresSSLModesRequire != nil {
- mode3 := shared.SourcePostgresSSLModesRequireMode(r.Configuration.SslMode.SourcePostgresSSLModesRequire.Mode.ValueString())
var additionalProperties4 interface{}
if !r.Configuration.SslMode.SourcePostgresSSLModesRequire.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesRequire.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesRequire.AdditionalProperties.ValueString()), &additionalProperties4)
}
sourcePostgresSSLModesRequire = &shared.SourcePostgresSSLModesRequire{
- Mode: mode3,
AdditionalProperties: additionalProperties4,
}
}
@@ -177,6 +165,10 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresSSLModesVerifyCa *shared.SourcePostgresSSLModesVerifyCa
if r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa != nil {
+ var additionalProperties5 interface{}
+ if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
+ }
caCertificate := r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.CaCertificate.ValueString()
clientCertificate := new(string)
if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.ClientCertificate.IsNull() {
@@ -196,18 +188,12 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
} else {
clientKeyPassword = nil
}
- mode4 := shared.SourcePostgresSSLModesVerifyCaMode(r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.Mode.ValueString())
- var additionalProperties5 interface{}
- if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
- }
sourcePostgresSSLModesVerifyCa = &shared.SourcePostgresSSLModesVerifyCa{
+ AdditionalProperties: additionalProperties5,
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
- AdditionalProperties: additionalProperties5,
}
}
if sourcePostgresSSLModesVerifyCa != nil {
@@ -217,6 +203,10 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
}
var sourcePostgresSSLModesVerifyFull *shared.SourcePostgresSSLModesVerifyFull
if r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull != nil {
+ var additionalProperties6 interface{}
+ if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
+ }
caCertificate1 := r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.CaCertificate.ValueString()
clientCertificate1 := new(string)
if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.ClientCertificate.IsNull() {
@@ -236,18 +226,12 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.SourcePostgresSSLModesVerifyFullMode(r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.Mode.ValueString())
- var additionalProperties6 interface{}
- if !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
- }
sourcePostgresSSLModesVerifyFull = &shared.SourcePostgresSSLModesVerifyFull{
+ AdditionalProperties: additionalProperties6,
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
- AdditionalProperties: additionalProperties6,
}
}
if sourcePostgresSSLModesVerifyFull != nil {
@@ -260,10 +244,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
if r.Configuration.TunnelMethod != nil {
var sourcePostgresSSHTunnelMethodNoTunnel *shared.SourcePostgresSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourcePostgresSSHTunnelMethodNoTunnel = &shared.SourcePostgresSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourcePostgresSSHTunnelMethodNoTunnel = &shared.SourcePostgresSSHTunnelMethodNoTunnel{}
}
if sourcePostgresSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourcePostgresSSHTunnelMethod{
@@ -274,15 +255,18 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
if r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourcePostgresSSHTunnelMethodSSHKeyAuthentication = &shared.SourcePostgresSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourcePostgresSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -293,13 +277,16 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
var sourcePostgresSSHTunnelMethodPasswordAuthentication *shared.SourcePostgresSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourcePostgresSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourcePostgresSSHTunnelMethodPasswordAuthentication = &shared.SourcePostgresSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
@@ -320,7 +307,6 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr
Port: port,
ReplicationMethod: replicationMethod,
Schemas: schemas,
- SourceType: sourceType,
SslMode: sslMode,
TunnelMethod: tunnelMethod,
Username: username,
@@ -362,11 +348,20 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var replicationMethod *shared.SourcePostgresUpdateUpdateMethod
if r.Configuration.ReplicationMethod != nil {
var sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC *shared.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC
if r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.ValueString()), &additionalProperties)
+ }
initialWaitingSeconds := new(int64)
if !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.IsNull() {
*initialWaitingSeconds = r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.InitialWaitingSeconds.ValueInt64()
@@ -379,7 +374,6 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
} else {
lsnCommitBehaviour = nil
}
- method := shared.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.Method.ValueString())
plugin := new(shared.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin)
if !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.IsNull() {
*plugin = shared.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.Plugin.ValueString())
@@ -394,19 +388,14 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
queueSize = nil
}
replicationSlot := r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.ReplicationSlot.ValueString()
- var additionalProperties interface{}
- if !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsUnknown() && !r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC = &shared.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC{
+ AdditionalProperties: additionalProperties,
InitialWaitingSeconds: initialWaitingSeconds,
LsnCommitBehaviour: lsnCommitBehaviour,
- Method: method,
Plugin: plugin,
Publication: publication,
QueueSize: queueSize,
ReplicationSlot: replicationSlot,
- AdditionalProperties: additionalProperties,
}
}
if sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
@@ -416,10 +405,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn *shared.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn
if r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn != nil {
- method1 := shared.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn.Method.ValueString())
- sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn = &shared.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn{
- Method: method1,
- }
+ sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn = &shared.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn{}
}
if sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn != nil {
replicationMethod = &shared.SourcePostgresUpdateUpdateMethod{
@@ -428,10 +414,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor *shared.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor
if r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- method2 := shared.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod(r.Configuration.ReplicationMethod.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor.Method.ValueString())
- sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor{
- Method: method2,
- }
+ sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor = &shared.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor{}
}
if sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
replicationMethod = &shared.SourcePostgresUpdateUpdateMethod{
@@ -447,13 +430,11 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
if r.Configuration.SslMode != nil {
var sourcePostgresUpdateSSLModesDisable *shared.SourcePostgresUpdateSSLModesDisable
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesDisable != nil {
- mode := shared.SourcePostgresUpdateSSLModesDisableMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesDisable.Mode.ValueString())
var additionalProperties1 interface{}
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesDisable.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesDisable.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesDisable.AdditionalProperties.ValueString()), &additionalProperties1)
}
sourcePostgresUpdateSSLModesDisable = &shared.SourcePostgresUpdateSSLModesDisable{
- Mode: mode,
AdditionalProperties: additionalProperties1,
}
}
@@ -464,13 +445,11 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateSSLModesAllow *shared.SourcePostgresUpdateSSLModesAllow
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesAllow != nil {
- mode1 := shared.SourcePostgresUpdateSSLModesAllowMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesAllow.Mode.ValueString())
var additionalProperties2 interface{}
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesAllow.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesAllow.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesAllow.AdditionalProperties.ValueString()), &additionalProperties2)
}
sourcePostgresUpdateSSLModesAllow = &shared.SourcePostgresUpdateSSLModesAllow{
- Mode: mode1,
AdditionalProperties: additionalProperties2,
}
}
@@ -481,13 +460,11 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateSSLModesPrefer *shared.SourcePostgresUpdateSSLModesPrefer
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesPrefer != nil {
- mode2 := shared.SourcePostgresUpdateSSLModesPreferMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesPrefer.Mode.ValueString())
var additionalProperties3 interface{}
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesPrefer.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesPrefer.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesPrefer.AdditionalProperties.ValueString()), &additionalProperties3)
}
sourcePostgresUpdateSSLModesPrefer = &shared.SourcePostgresUpdateSSLModesPrefer{
- Mode: mode2,
AdditionalProperties: additionalProperties3,
}
}
@@ -498,13 +475,11 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateSSLModesRequire *shared.SourcePostgresUpdateSSLModesRequire
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesRequire != nil {
- mode3 := shared.SourcePostgresUpdateSSLModesRequireMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesRequire.Mode.ValueString())
var additionalProperties4 interface{}
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesRequire.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesRequire.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesRequire.AdditionalProperties.ValueString()), &additionalProperties4)
}
sourcePostgresUpdateSSLModesRequire = &shared.SourcePostgresUpdateSSLModesRequire{
- Mode: mode3,
AdditionalProperties: additionalProperties4,
}
}
@@ -515,6 +490,10 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateSSLModesVerifyCa *shared.SourcePostgresUpdateSSLModesVerifyCa
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa != nil {
+ var additionalProperties5 interface{}
+ if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
+ }
caCertificate := r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.CaCertificate.ValueString()
clientCertificate := new(string)
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.ClientCertificate.IsNull() {
@@ -534,18 +513,12 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
} else {
clientKeyPassword = nil
}
- mode4 := shared.SourcePostgresUpdateSSLModesVerifyCaMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.Mode.ValueString())
- var additionalProperties5 interface{}
- if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyCa.AdditionalProperties.ValueString()), &additionalProperties5)
- }
sourcePostgresUpdateSSLModesVerifyCa = &shared.SourcePostgresUpdateSSLModesVerifyCa{
+ AdditionalProperties: additionalProperties5,
CaCertificate: caCertificate,
ClientCertificate: clientCertificate,
ClientKey: clientKey,
ClientKeyPassword: clientKeyPassword,
- Mode: mode4,
- AdditionalProperties: additionalProperties5,
}
}
if sourcePostgresUpdateSSLModesVerifyCa != nil {
@@ -555,6 +528,10 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
}
var sourcePostgresUpdateSSLModesVerifyFull *shared.SourcePostgresUpdateSSLModesVerifyFull
if r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull != nil {
+ var additionalProperties6 interface{}
+ if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
+ }
caCertificate1 := r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.CaCertificate.ValueString()
clientCertificate1 := new(string)
if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.ClientCertificate.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.ClientCertificate.IsNull() {
@@ -574,18 +551,12 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
} else {
clientKeyPassword1 = nil
}
- mode5 := shared.SourcePostgresUpdateSSLModesVerifyFullMode(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.Mode.ValueString())
- var additionalProperties6 interface{}
- if !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.IsUnknown() && !r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.SslMode.SourcePostgresUpdateSSLModesVerifyFull.AdditionalProperties.ValueString()), &additionalProperties6)
- }
sourcePostgresUpdateSSLModesVerifyFull = &shared.SourcePostgresUpdateSSLModesVerifyFull{
+ AdditionalProperties: additionalProperties6,
CaCertificate: caCertificate1,
ClientCertificate: clientCertificate1,
ClientKey: clientKey1,
ClientKeyPassword: clientKeyPassword1,
- Mode: mode5,
- AdditionalProperties: additionalProperties6,
}
}
if sourcePostgresUpdateSSLModesVerifyFull != nil {
@@ -598,10 +569,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
if r.Configuration.TunnelMethod != nil {
var sourcePostgresUpdateSSHTunnelMethodNoTunnel *shared.SourcePostgresUpdateSSHTunnelMethodNoTunnel
if r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodNoTunnel != nil {
- tunnelMethod1 := shared.SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodNoTunnel.TunnelMethod.ValueString())
- sourcePostgresUpdateSSHTunnelMethodNoTunnel = &shared.SourcePostgresUpdateSSHTunnelMethodNoTunnel{
- TunnelMethod: tunnelMethod1,
- }
+ sourcePostgresUpdateSSHTunnelMethodNoTunnel = &shared.SourcePostgresUpdateSSHTunnelMethodNoTunnel{}
}
if sourcePostgresUpdateSSHTunnelMethodNoTunnel != nil {
tunnelMethod = &shared.SourcePostgresUpdateSSHTunnelMethod{
@@ -612,15 +580,18 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
if r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
sshKey := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.SSHKey.ValueString()
tunnelHost := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelHost.ValueString()
- tunnelMethod2 := shared.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelMethod.ValueString())
- tunnelPort := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ tunnelPort := new(int64)
+ if !r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.IsNull() {
+ *tunnelPort = r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort = nil
+ }
tunnelUser := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication.TunnelUser.ValueString()
sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication = &shared.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication{
- SSHKey: sshKey,
- TunnelHost: tunnelHost,
- TunnelMethod: tunnelMethod2,
- TunnelPort: tunnelPort,
- TunnelUser: tunnelUser,
+ SSHKey: sshKey,
+ TunnelHost: tunnelHost,
+ TunnelPort: tunnelPort,
+ TunnelUser: tunnelUser,
}
}
if sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
@@ -631,13 +602,16 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu
var sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication *shared.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication
if r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication != nil {
tunnelHost1 := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelHost.ValueString()
- tunnelMethod3 := shared.SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod(r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelMethod.ValueString())
- tunnelPort1 := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ tunnelPort1 := new(int64)
+ if !r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsUnknown() && !r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.IsNull() {
+ *tunnelPort1 = r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelPort.ValueInt64()
+ } else {
+ tunnelPort1 = nil
+ }
tunnelUser1 := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelUser.ValueString()
tunnelUserPassword := r.Configuration.TunnelMethod.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication.TunnelUserPassword.ValueString()
sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication = &shared.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication{
TunnelHost: tunnelHost1,
- TunnelMethod: tunnelMethod3,
TunnelPort: tunnelPort1,
TunnelUser: tunnelUser1,
TunnelUserPassword: tunnelUserPassword,
diff --git a/internal/provider/source_posthog_data_source.go b/internal/provider/source_posthog_data_source.go
old mode 100755
new mode 100644
index 8a2130162..94a4503b8
--- a/internal/provider/source_posthog_data_source.go
+++ b/internal/provider/source_posthog_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourcePosthogDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Set lower value in case of failing long running sync of events stream.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "posthog",
- ),
- },
- Description: `must be one of ["posthog"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_posthog_data_source_sdk.go b/internal/provider/source_posthog_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_posthog_resource.go b/internal/provider/source_posthog_resource.go
old mode 100755
new mode 100644
index 7e7f785d3..54c4e4fbb
--- a/internal/provider/source_posthog_resource.go
+++ b/internal/provider/source_posthog_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourcePosthogResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Set lower value in case of failing long running sync of events stream.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "posthog",
- ),
- },
- Description: `must be one of ["posthog"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourcePosthogResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePosthog(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_posthog_resource_sdk.go b/internal/provider/source_posthog_resource_sdk.go
old mode 100755
new mode 100644
index 9570e4d14..520975cb6
--- a/internal/provider/source_posthog_resource_sdk.go
+++ b/internal/provider/source_posthog_resource_sdk.go
@@ -22,13 +22,11 @@ func (r *SourcePosthogResourceModel) ToCreateSDKType() *shared.SourcePosthogCrea
} else {
eventsTimeStep = nil
}
- sourceType := shared.SourcePosthogPosthog(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourcePosthog{
APIKey: apiKey,
BaseURL: baseURL,
EventsTimeStep: eventsTimeStep,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_postmarkapp_data_source.go b/internal/provider/source_postmarkapp_data_source.go
old mode 100755
new mode 100644
index da92392fe..7b116acf7
--- a/internal/provider/source_postmarkapp_data_source.go
+++ b/internal/provider/source_postmarkapp_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourcePostmarkappDataSource) Schema(ctx context.Context, req datasource
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postmarkapp",
- ),
- },
- Description: `must be one of ["postmarkapp"]`,
- },
"x_postmark_account_token": schema.StringAttribute{
Computed: true,
Description: `API Key for account`,
diff --git a/internal/provider/source_postmarkapp_data_source_sdk.go b/internal/provider/source_postmarkapp_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_postmarkapp_resource.go b/internal/provider/source_postmarkapp_resource.go
old mode 100755
new mode 100644
index 52a14ef69..e4cb572d6
--- a/internal/provider/source_postmarkapp_resource.go
+++ b/internal/provider/source_postmarkapp_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourcePostmarkappResource) Schema(ctx context.Context, req resource.Sch
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "postmarkapp",
- ),
- },
- Description: `must be one of ["postmarkapp"]`,
- },
"x_postmark_account_token": schema.StringAttribute{
Required: true,
Description: `API Key for account`,
@@ -143,7 +132,7 @@ func (r *SourcePostmarkappResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePostmarkapp(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_postmarkapp_resource_sdk.go b/internal/provider/source_postmarkapp_resource_sdk.go
old mode 100755
new mode 100644
index e7de42c82..856bb8d51
--- a/internal/provider/source_postmarkapp_resource_sdk.go
+++ b/internal/provider/source_postmarkapp_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourcePostmarkappResourceModel) ToCreateSDKType() *shared.SourcePostmarkappCreateRequest {
xPostmarkAccountToken := r.Configuration.XPostmarkAccountToken.ValueString()
xPostmarkServerToken := r.Configuration.XPostmarkServerToken.ValueString()
- sourceType := shared.SourcePostmarkappPostmarkapp(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePostmarkapp{
XPostmarkAccountToken: xPostmarkAccountToken,
XPostmarkServerToken: xPostmarkServerToken,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_prestashop_data_source.go b/internal/provider/source_prestashop_data_source.go
old mode 100755
new mode 100644
index 452100f85..941366534
--- a/internal/provider/source_prestashop_data_source.go
+++ b/internal/provider/source_prestashop_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourcePrestashopDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Your PrestaShop access key. See the docs for info on how to obtain this.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prestashop",
- ),
- },
- Description: `must be one of ["prestashop"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_prestashop_data_source_sdk.go b/internal/provider/source_prestashop_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_prestashop_resource.go b/internal/provider/source_prestashop_resource.go
old mode 100755
new mode 100644
index 51750ca65..249538b39
--- a/internal/provider/source_prestashop_resource.go
+++ b/internal/provider/source_prestashop_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourcePrestashopResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Your PrestaShop access key. See the docs for info on how to obtain this.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "prestashop",
- ),
- },
- Description: `must be one of ["prestashop"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -151,7 +141,7 @@ func (r *SourcePrestashopResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePrestashop(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_prestashop_resource_sdk.go b/internal/provider/source_prestashop_resource_sdk.go
old mode 100755
new mode 100644
index 2665f23eb..09ae783da
--- a/internal/provider/source_prestashop_resource_sdk.go
+++ b/internal/provider/source_prestashop_resource_sdk.go
@@ -10,14 +10,12 @@ import (
func (r *SourcePrestashopResourceModel) ToCreateSDKType() *shared.SourcePrestashopCreateRequest {
accessKey := r.Configuration.AccessKey.ValueString()
- sourceType := shared.SourcePrestashopPrestashop(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
url := r.Configuration.URL.ValueString()
configuration := shared.SourcePrestashop{
- AccessKey: accessKey,
- SourceType: sourceType,
- StartDate: startDate,
- URL: url,
+ AccessKey: accessKey,
+ StartDate: startDate,
+ URL: url,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_punkapi_data_source.go b/internal/provider/source_punkapi_data_source.go
old mode 100755
new mode 100644
index cc68f0888..f8837fb86
--- a/internal/provider/source_punkapi_data_source.go
+++ b/internal/provider/source_punkapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourcePunkAPIDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `To extract specific data with Unique ID`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "punk-api",
- ),
- },
- Description: `must be one of ["punk-api"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_punkapi_data_source_sdk.go b/internal/provider/source_punkapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_punkapi_resource.go b/internal/provider/source_punkapi_resource.go
old mode 100755
new mode 100644
index 31cd48560..e3eff0140
--- a/internal/provider/source_punkapi_resource.go
+++ b/internal/provider/source_punkapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourcePunkAPIResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `To extract specific data with Unique ID`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "punk-api",
- ),
- },
- Description: `must be one of ["punk-api"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourcePunkAPIResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePunkAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_punkapi_resource_sdk.go b/internal/provider/source_punkapi_resource_sdk.go
old mode 100755
new mode 100644
index 2ed96e868..136427062
--- a/internal/provider/source_punkapi_resource_sdk.go
+++ b/internal/provider/source_punkapi_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *SourcePunkAPIResourceModel) ToCreateSDKType() *shared.SourcePunkAPICrea
} else {
id = nil
}
- sourceType := shared.SourcePunkAPIPunkAPI(r.Configuration.SourceType.ValueString())
configuration := shared.SourcePunkAPI{
BrewedAfter: brewedAfter,
BrewedBefore: brewedBefore,
ID: id,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_pypi_data_source.go b/internal/provider/source_pypi_data_source.go
old mode 100755
new mode 100644
index 6458a6011..e027ca5c4
--- a/internal/provider/source_pypi_data_source.go
+++ b/internal/provider/source_pypi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourcePypiDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pypi",
- ),
- },
- Description: `must be one of ["pypi"]`,
- },
"version": schema.StringAttribute{
Computed: true,
Description: `Version of the project/package. Use it to find a particular release instead of all releases.`,
diff --git a/internal/provider/source_pypi_data_source_sdk.go b/internal/provider/source_pypi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_pypi_resource.go b/internal/provider/source_pypi_resource.go
old mode 100755
new mode 100644
index 0d1cc9ca8..72c93f40a
--- a/internal/provider/source_pypi_resource.go
+++ b/internal/provider/source_pypi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourcePypiResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "pypi",
- ),
- },
- Description: `must be one of ["pypi"]`,
- },
"version": schema.StringAttribute{
Optional: true,
Description: `Version of the project/package. Use it to find a particular release instead of all releases.`,
@@ -143,7 +132,7 @@ func (r *SourcePypiResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourcePypi(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_pypi_resource_sdk.go b/internal/provider/source_pypi_resource_sdk.go
old mode 100755
new mode 100644
index 7b1cde446..23f1e56c2
--- a/internal/provider/source_pypi_resource_sdk.go
+++ b/internal/provider/source_pypi_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *SourcePypiResourceModel) ToCreateSDKType() *shared.SourcePypiCreateRequest {
projectName := r.Configuration.ProjectName.ValueString()
- sourceType := shared.SourcePypiPypi(r.Configuration.SourceType.ValueString())
version := new(string)
if !r.Configuration.Version.IsUnknown() && !r.Configuration.Version.IsNull() {
*version = r.Configuration.Version.ValueString()
@@ -18,7 +17,6 @@ func (r *SourcePypiResourceModel) ToCreateSDKType() *shared.SourcePypiCreateRequ
}
configuration := shared.SourcePypi{
ProjectName: projectName,
- SourceType: sourceType,
Version: version,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_qualaroo_data_source.go b/internal/provider/source_qualaroo_data_source.go
old mode 100755
new mode 100644
index 8eb9adaca..ba24047f3
--- a/internal/provider/source_qualaroo_data_source.go
+++ b/internal/provider/source_qualaroo_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceQualarooDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `A Qualaroo token. See the docs for instructions on how to generate it.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "qualaroo",
- ),
- },
- Description: `must be one of ["qualaroo"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_qualaroo_data_source_sdk.go b/internal/provider/source_qualaroo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_qualaroo_resource.go b/internal/provider/source_qualaroo_resource.go
old mode 100755
new mode 100644
index e8d992c69..bc343e3f2
--- a/internal/provider/source_qualaroo_resource.go
+++ b/internal/provider/source_qualaroo_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceQualarooResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `A Qualaroo token. See the docs for instructions on how to generate it.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "qualaroo",
- ),
- },
- Description: `must be one of ["qualaroo"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
@@ -152,7 +141,7 @@ func (r *SourceQualarooResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceQualaroo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_qualaroo_resource_sdk.go b/internal/provider/source_qualaroo_resource_sdk.go
old mode 100755
new mode 100644
index b0c19cbd3..85075165b
--- a/internal/provider/source_qualaroo_resource_sdk.go
+++ b/internal/provider/source_qualaroo_resource_sdk.go
@@ -9,7 +9,6 @@ import (
func (r *SourceQualarooResourceModel) ToCreateSDKType() *shared.SourceQualarooCreateRequest {
key := r.Configuration.Key.ValueString()
- sourceType := shared.SourceQualarooQualaroo(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
var surveyIds []string = nil
for _, surveyIdsItem := range r.Configuration.SurveyIds {
@@ -17,11 +16,10 @@ func (r *SourceQualarooResourceModel) ToCreateSDKType() *shared.SourceQualarooCr
}
token := r.Configuration.Token.ValueString()
configuration := shared.SourceQualaroo{
- Key: key,
- SourceType: sourceType,
- StartDate: startDate,
- SurveyIds: surveyIds,
- Token: token,
+ Key: key,
+ StartDate: startDate,
+ SurveyIds: surveyIds,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_quickbooks_data_source.go b/internal/provider/source_quickbooks_data_source.go
old mode 100755
new mode 100644
index da5c49976..4aaae78b9
--- a/internal/provider/source_quickbooks_data_source.go
+++ b/internal/provider/source_quickbooks_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceQuickbooksDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Access token fot making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.`,
@@ -104,15 +94,6 @@ func (r *SourceQuickbooksDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Access token fot making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.`,
@@ -147,15 +128,6 @@ func (r *SourceQuickbooksDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Determines whether to use the sandbox or production environment.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "quickbooks",
- ),
- },
- Description: `must be one of ["quickbooks"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_quickbooks_data_source_sdk.go b/internal/provider/source_quickbooks_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_quickbooks_resource.go b/internal/provider/source_quickbooks_resource.go
old mode 100755
new mode 100644
index b4f67374b..739945cc1
--- a/internal/provider/source_quickbooks_resource.go
+++ b/internal/provider/source_quickbooks_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceQuickbooksResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Access token fot making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.`,
@@ -106,15 +96,6 @@ func (r *SourceQuickbooksResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Access token fot making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.`,
@@ -146,18 +127,9 @@ func (r *SourceQuickbooksResource) Schema(ctx context.Context, req resource.Sche
},
},
"sandbox": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `Determines whether to use the sandbox or production environment.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "quickbooks",
- ),
- },
- Description: `must be one of ["quickbooks"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -237,7 +209,7 @@ func (r *SourceQuickbooksResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceQuickbooks(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_quickbooks_resource_sdk.go b/internal/provider/source_quickbooks_resource_sdk.go
old mode 100755
new mode 100644
index 1bc2ad89d..b6f5e12a3
--- a/internal/provider/source_quickbooks_resource_sdk.go
+++ b/internal/provider/source_quickbooks_resource_sdk.go
@@ -13,12 +13,6 @@ func (r *SourceQuickbooksResourceModel) ToCreateSDKType() *shared.SourceQuickboo
var sourceQuickbooksAuthorizationMethodOAuth20 *shared.SourceQuickbooksAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceQuickbooksAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceQuickbooksAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.ClientSecret.ValueString()
realmID := r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.RealmID.ValueString()
@@ -26,7 +20,6 @@ func (r *SourceQuickbooksResourceModel) ToCreateSDKType() *shared.SourceQuickboo
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceQuickbooksAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceQuickbooksAuthorizationMethodOAuth20 = &shared.SourceQuickbooksAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RealmID: realmID,
@@ -39,13 +32,16 @@ func (r *SourceQuickbooksResourceModel) ToCreateSDKType() *shared.SourceQuickboo
SourceQuickbooksAuthorizationMethodOAuth20: sourceQuickbooksAuthorizationMethodOAuth20,
}
}
- sandbox := r.Configuration.Sandbox.ValueBool()
- sourceType := shared.SourceQuickbooksQuickbooks(r.Configuration.SourceType.ValueString())
+ sandbox := new(bool)
+ if !r.Configuration.Sandbox.IsUnknown() && !r.Configuration.Sandbox.IsNull() {
+ *sandbox = r.Configuration.Sandbox.ValueBool()
+ } else {
+ sandbox = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceQuickbooks{
Credentials: credentials,
Sandbox: sandbox,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -75,12 +71,6 @@ func (r *SourceQuickbooksResourceModel) ToUpdateSDKType() *shared.SourceQuickboo
var sourceQuickbooksUpdateAuthorizationMethodOAuth20 *shared.SourceQuickbooksUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
realmID := r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.RealmID.ValueString()
@@ -88,7 +78,6 @@ func (r *SourceQuickbooksResourceModel) ToUpdateSDKType() *shared.SourceQuickboo
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceQuickbooksUpdateAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceQuickbooksUpdateAuthorizationMethodOAuth20 = &shared.SourceQuickbooksUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RealmID: realmID,
@@ -101,7 +90,12 @@ func (r *SourceQuickbooksResourceModel) ToUpdateSDKType() *shared.SourceQuickboo
SourceQuickbooksUpdateAuthorizationMethodOAuth20: sourceQuickbooksUpdateAuthorizationMethodOAuth20,
}
}
- sandbox := r.Configuration.Sandbox.ValueBool()
+ sandbox := new(bool)
+ if !r.Configuration.Sandbox.IsUnknown() && !r.Configuration.Sandbox.IsNull() {
+ *sandbox = r.Configuration.Sandbox.ValueBool()
+ } else {
+ sandbox = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceQuickbooksUpdate{
Credentials: credentials,
diff --git a/internal/provider/source_railz_data_source.go b/internal/provider/source_railz_data_source.go
old mode 100755
new mode 100644
index e46847d36..7ef534c07
--- a/internal/provider/source_railz_data_source.go
+++ b/internal/provider/source_railz_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceRailzDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Secret key (secret_key)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "railz",
- ),
- },
- Description: `must be one of ["railz"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Start date`,
diff --git a/internal/provider/source_railz_data_source_sdk.go b/internal/provider/source_railz_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_railz_resource.go b/internal/provider/source_railz_resource.go
old mode 100755
new mode 100644
index 5386c032c..189ef47c8
--- a/internal/provider/source_railz_resource.go
+++ b/internal/provider/source_railz_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceRailzResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Secret key (secret_key)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "railz",
- ),
- },
- Description: `must be one of ["railz"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Start date`,
@@ -147,7 +136,7 @@ func (r *SourceRailzResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRailz(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_railz_resource_sdk.go b/internal/provider/source_railz_resource_sdk.go
old mode 100755
new mode 100644
index 689001b08..d69b1c78a
--- a/internal/provider/source_railz_resource_sdk.go
+++ b/internal/provider/source_railz_resource_sdk.go
@@ -10,13 +10,11 @@ import (
func (r *SourceRailzResourceModel) ToCreateSDKType() *shared.SourceRailzCreateRequest {
clientID := r.Configuration.ClientID.ValueString()
secretKey := r.Configuration.SecretKey.ValueString()
- sourceType := shared.SourceRailzRailz(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceRailz{
- ClientID: clientID,
- SecretKey: secretKey,
- SourceType: sourceType,
- StartDate: startDate,
+ ClientID: clientID,
+ SecretKey: secretKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_recharge_data_source.go b/internal/provider/source_recharge_data_source.go
old mode 100755
new mode 100644
index 7899cbb40..8a8ce3a1c
--- a/internal/provider/source_recharge_data_source.go
+++ b/internal/provider/source_recharge_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceRechargeDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The value of the Access Token generated. See the docs for more information.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recharge",
- ),
- },
- Description: `must be one of ["recharge"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_recharge_data_source_sdk.go b/internal/provider/source_recharge_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_recharge_resource.go b/internal/provider/source_recharge_resource.go
old mode 100755
new mode 100644
index c7cae7815..95e35c0d2
--- a/internal/provider/source_recharge_resource.go
+++ b/internal/provider/source_recharge_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceRechargeResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The value of the Access Token generated. See the docs for more information.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recharge",
- ),
- },
- Description: `must be one of ["recharge"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -147,7 +137,7 @@ func (r *SourceRechargeResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRecharge(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_recharge_resource_sdk.go b/internal/provider/source_recharge_resource_sdk.go
old mode 100755
new mode 100644
index b598e5ac0..85628f4bf
--- a/internal/provider/source_recharge_resource_sdk.go
+++ b/internal/provider/source_recharge_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceRechargeResourceModel) ToCreateSDKType() *shared.SourceRechargeCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
- sourceType := shared.SourceRechargeRecharge(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceRecharge{
AccessToken: accessToken,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_recreation_data_source.go b/internal/provider/source_recreation_data_source.go
old mode 100755
new mode 100644
index 29b9b095c..9208d086f
--- a/internal/provider/source_recreation_data_source.go
+++ b/internal/provider/source_recreation_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *SourceRecreationDataSource) Schema(ctx context.Context, req datasource.
"query_campsites": schema.StringAttribute{
Computed: true,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recreation",
- ),
- },
- Description: `must be one of ["recreation"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_recreation_data_source_sdk.go b/internal/provider/source_recreation_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_recreation_resource.go b/internal/provider/source_recreation_resource.go
old mode 100755
new mode 100644
index 0f2aeade9..d0353792f
--- a/internal/provider/source_recreation_resource.go
+++ b/internal/provider/source_recreation_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *SourceRecreationResource) Schema(ctx context.Context, req resource.Sche
"query_campsites": schema.StringAttribute{
Optional: true,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recreation",
- ),
- },
- Description: `must be one of ["recreation"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -142,7 +131,7 @@ func (r *SourceRecreationResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRecreation(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_recreation_resource_sdk.go b/internal/provider/source_recreation_resource_sdk.go
old mode 100755
new mode 100644
index 861cd563e..89528f21d
--- a/internal/provider/source_recreation_resource_sdk.go
+++ b/internal/provider/source_recreation_resource_sdk.go
@@ -15,11 +15,9 @@ func (r *SourceRecreationResourceModel) ToCreateSDKType() *shared.SourceRecreati
} else {
queryCampsites = nil
}
- sourceType := shared.SourceRecreationRecreation(r.Configuration.SourceType.ValueString())
configuration := shared.SourceRecreation{
Apikey: apikey,
QueryCampsites: queryCampsites,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_recruitee_data_source.go b/internal/provider/source_recruitee_data_source.go
old mode 100755
new mode 100644
index a4cff712d..db01e82c8
--- a/internal/provider/source_recruitee_data_source.go
+++ b/internal/provider/source_recruitee_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceRecruiteeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recruitee",
- ),
- },
- Description: `must be one of ["recruitee"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_recruitee_data_source_sdk.go b/internal/provider/source_recruitee_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_recruitee_resource.go b/internal/provider/source_recruitee_resource.go
old mode 100755
new mode 100644
index 79f470d3c..2b2489273
--- a/internal/provider/source_recruitee_resource.go
+++ b/internal/provider/source_recruitee_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceRecruiteeResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recruitee",
- ),
- },
- Description: `must be one of ["recruitee"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceRecruiteeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRecruitee(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_recruitee_resource_sdk.go b/internal/provider/source_recruitee_resource_sdk.go
old mode 100755
new mode 100644
index 3b027efac..ca06054c1
--- a/internal/provider/source_recruitee_resource_sdk.go
+++ b/internal/provider/source_recruitee_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceRecruiteeResourceModel) ToCreateSDKType() *shared.SourceRecruiteeCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
companyID := r.Configuration.CompanyID.ValueInt64()
- sourceType := shared.SourceRecruiteeRecruitee(r.Configuration.SourceType.ValueString())
configuration := shared.SourceRecruitee{
- APIKey: apiKey,
- CompanyID: companyID,
- SourceType: sourceType,
+ APIKey: apiKey,
+ CompanyID: companyID,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_recurly_data_source.go b/internal/provider/source_recurly_data_source.go
old mode 100755
new mode 100644
index 6878dfcea..236744543
--- a/internal/provider/source_recurly_data_source.go
+++ b/internal/provider/source_recurly_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceRecurlyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recurly",
- ),
- },
- Description: `must be one of ["recurly"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_recurly_data_source_sdk.go b/internal/provider/source_recurly_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_recurly_resource.go b/internal/provider/source_recurly_resource.go
old mode 100755
new mode 100644
index 9426f194c..c56acd003
--- a/internal/provider/source_recurly_resource.go
+++ b/internal/provider/source_recurly_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceRecurlyResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "recurly",
- ),
- },
- Description: `must be one of ["recurly"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceRecurlyResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRecurly(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_recurly_resource_sdk.go b/internal/provider/source_recurly_resource_sdk.go
old mode 100755
new mode 100644
index 2a8074376..0e86f2122
--- a/internal/provider/source_recurly_resource_sdk.go
+++ b/internal/provider/source_recurly_resource_sdk.go
@@ -21,12 +21,10 @@ func (r *SourceRecurlyResourceModel) ToCreateSDKType() *shared.SourceRecurlyCrea
} else {
endTime = nil
}
- sourceType := shared.SourceRecurlyRecurly(r.Configuration.SourceType.ValueString())
configuration := shared.SourceRecurly{
- APIKey: apiKey,
- BeginTime: beginTime,
- EndTime: endTime,
- SourceType: sourceType,
+ APIKey: apiKey,
+ BeginTime: beginTime,
+ EndTime: endTime,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_redshift_data_source.go b/internal/provider/source_redshift_data_source.go
old mode 100755
new mode 100644
index a5f7c1a9c..93943a076
--- a/internal/provider/source_redshift_data_source.go
+++ b/internal/provider/source_redshift_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -77,15 +75,6 @@ func (r *SourceRedshiftDataSource) Schema(ctx context.Context, req datasource.Sc
ElementType: types.StringType,
Description: `The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redshift",
- ),
- },
- Description: `must be one of ["redshift"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Username to use to access the database.`,
diff --git a/internal/provider/source_redshift_data_source_sdk.go b/internal/provider/source_redshift_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_redshift_resource.go b/internal/provider/source_redshift_resource.go
old mode 100755
new mode 100644
index cb7d315e6..e340eb5be
--- a/internal/provider/source_redshift_resource.go
+++ b/internal/provider/source_redshift_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -71,7 +69,7 @@ func (r *SourceRedshiftResource) Schema(ctx context.Context, req resource.Schema
Description: `Password associated with the username.`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `Port of the database.`,
},
"schemas": schema.ListAttribute{
@@ -79,15 +77,6 @@ func (r *SourceRedshiftResource) Schema(ctx context.Context, req resource.Schema
ElementType: types.StringType,
Description: `The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "redshift",
- ),
- },
- Description: `must be one of ["redshift"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Username to use to access the database.`,
@@ -164,7 +153,7 @@ func (r *SourceRedshiftResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRedshift(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_redshift_resource_sdk.go b/internal/provider/source_redshift_resource_sdk.go
old mode 100755
new mode 100644
index c3a57e86a..b9ab603e9
--- a/internal/provider/source_redshift_resource_sdk.go
+++ b/internal/provider/source_redshift_resource_sdk.go
@@ -17,12 +17,16 @@ func (r *SourceRedshiftResourceModel) ToCreateSDKType() *shared.SourceRedshiftCr
jdbcURLParams = nil
}
password := r.Configuration.Password.ValueString()
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var schemas []string = nil
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
}
- sourceType := shared.SourceRedshiftRedshift(r.Configuration.SourceType.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceRedshift{
Database: database,
@@ -31,7 +35,6 @@ func (r *SourceRedshiftResourceModel) ToCreateSDKType() *shared.SourceRedshiftCr
Password: password,
Port: port,
Schemas: schemas,
- SourceType: sourceType,
Username: username,
}
name := r.Name.ValueString()
@@ -66,7 +69,12 @@ func (r *SourceRedshiftResourceModel) ToUpdateSDKType() *shared.SourceRedshiftPu
jdbcURLParams = nil
}
password := r.Configuration.Password.ValueString()
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
var schemas []string = nil
for _, schemasItem := range r.Configuration.Schemas {
schemas = append(schemas, schemasItem.ValueString())
diff --git a/internal/provider/source_retently_data_source.go b/internal/provider/source_retently_data_source.go
old mode 100755
new mode 100644
index 5fe191cc4..d1817350a
--- a/internal/provider/source_retently_data_source.go
+++ b/internal/provider/source_retently_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceRetentlyDataSource struct {
// SourceRetentlyDataSourceModel describes the data model.
type SourceRetentlyDataSourceModel struct {
- Configuration SourceRetently1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceRetently `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -59,14 +58,12 @@ func (r *SourceRetentlyDataSource) Schema(ctx context.Context, req datasource.Sc
"source_retently_authentication_mechanism_authenticate_via_retently_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -80,53 +77,35 @@ func (r *SourceRetentlyDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_authentication_mechanism_authenticate_with_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_key": schema.StringAttribute{
- Computed: true,
- Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
- },
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "api_key": schema.StringAttribute{
+ Computed: true,
+ Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
+ },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -140,39 +119,23 @@ func (r *SourceRetentlyDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_update_authentication_mechanism_authenticate_with_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_key": schema.StringAttribute{
- Computed: true,
- Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
- },
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
- Optional: true,
+ Computed: true,
Validators: []validator.String{
validators.IsValidJSON(),
},
Description: `Parsed as JSON.`,
},
+ "api_key": schema.StringAttribute{
+ Computed: true,
+ Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
+ },
},
Description: `Choose how to authenticate to Retently`,
},
@@ -182,15 +145,6 @@ func (r *SourceRetentlyDataSource) Schema(ctx context.Context, req datasource.Sc
},
Description: `Choose how to authenticate to Retently`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "retently",
- ),
- },
- Description: `must be one of ["retently"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_retently_data_source_sdk.go b/internal/provider/source_retently_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_retently_resource.go b/internal/provider/source_retently_resource.go
old mode 100755
new mode 100644
index bc531f5b7..cae768802
--- a/internal/provider/source_retently_resource.go
+++ b/internal/provider/source_retently_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,14 +60,12 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
"source_retently_authentication_mechanism_authenticate_via_retently_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Required: true,
@@ -82,32 +79,12 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_authentication_mechanism_authenticate_with_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_key": schema.StringAttribute{
- Required: true,
- Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
- },
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -115,20 +92,22 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
},
Description: `Parsed as JSON.`,
},
+ "api_key": schema.StringAttribute{
+ Required: true,
+ Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
+ },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["Client"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Required: true,
@@ -142,32 +121,12 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Choose how to authenticate to Retently`,
},
"source_retently_update_authentication_mechanism_authenticate_with_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_key": schema.StringAttribute{
- Required: true,
- Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
- },
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Token",
- ),
- },
- Description: `must be one of ["Token"]`,
- },
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -175,6 +134,10 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
},
Description: `Parsed as JSON.`,
},
+ "api_key": schema.StringAttribute{
+ Required: true,
+ Description: `Retently API Token. See the docs for more information on how to obtain this key.`,
+ },
},
Description: `Choose how to authenticate to Retently`,
},
@@ -184,15 +147,6 @@ func (r *SourceRetentlyResource) Schema(ctx context.Context, req resource.Schema
},
Description: `Choose how to authenticate to Retently`,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "retently",
- ),
- },
- Description: `must be one of ["retently"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -265,7 +219,7 @@ func (r *SourceRetentlyResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRetently(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_retently_resource_sdk.go b/internal/provider/source_retently_resource_sdk.go
old mode 100755
new mode 100644
index 451442bba..6120f9524
--- a/internal/provider/source_retently_resource_sdk.go
+++ b/internal/provider/source_retently_resource_sdk.go
@@ -13,25 +13,18 @@ func (r *SourceRetentlyResourceModel) ToCreateSDKType() *shared.SourceRetentlyCr
if r.Configuration.Credentials != nil {
var sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth *shared.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth
if r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
- authType := new(shared.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType)
- if !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.IsNull() {
- *authType = shared.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType(r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
- clientID := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth.RefreshToken.ValueString()
sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth = &shared.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth{
- AuthType: authType,
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
}
if sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
@@ -41,21 +34,14 @@ func (r *SourceRetentlyResourceModel) ToCreateSDKType() *shared.SourceRetentlyCr
}
var sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken *shared.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken
if r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken != nil {
- apiKey := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.APIKey.ValueString()
- authType1 := new(shared.SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType)
- if !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AuthType.IsNull() {
- *authType1 = shared.SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType(r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiKey := r.Configuration.Credentials.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken.APIKey.ValueString()
sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken = &shared.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken{
- APIKey: apiKey,
- AuthType: authType1,
AdditionalProperties: additionalProperties1,
+ APIKey: apiKey,
}
}
if sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken != nil {
@@ -64,15 +50,8 @@ func (r *SourceRetentlyResourceModel) ToCreateSDKType() *shared.SourceRetentlyCr
}
}
}
- sourceType := new(shared.SourceRetentlyRetently)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceRetentlyRetently(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
configuration := shared.SourceRetently{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -101,25 +80,18 @@ func (r *SourceRetentlyResourceModel) ToUpdateSDKType() *shared.SourceRetentlyPu
if r.Configuration.Credentials != nil {
var sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth *shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth
if r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
- authType := new(shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType)
- if !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.IsNull() {
- *authType = shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType(r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AuthType.ValueString())
- } else {
- authType = nil
- }
- clientID := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth.RefreshToken.ValueString()
sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth = &shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth{
- AuthType: authType,
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
}
if sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
@@ -129,21 +101,14 @@ func (r *SourceRetentlyResourceModel) ToUpdateSDKType() *shared.SourceRetentlyPu
}
var sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken *shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken
if r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken != nil {
- apiKey := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.APIKey.ValueString()
- authType1 := new(shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthType)
- if !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AuthType.IsNull() {
- *authType1 = shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthType(r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiKey := r.Configuration.Credentials.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken.APIKey.ValueString()
sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken = &shared.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken{
- APIKey: apiKey,
- AuthType: authType1,
AdditionalProperties: additionalProperties1,
+ APIKey: apiKey,
}
}
if sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken != nil {
diff --git a/internal/provider/source_rkicovid_data_source.go b/internal/provider/source_rkicovid_data_source.go
old mode 100755
new mode 100644
index 096d23fa0..dbd795259
--- a/internal/provider/source_rkicovid_data_source.go
+++ b/internal/provider/source_rkicovid_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourceRkiCovidDataSource) Schema(ctx context.Context, req datasource.Sc
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "rki-covid",
- ),
- },
- Description: `must be one of ["rki-covid"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date in the format 2017-01-25. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_rkicovid_data_source_sdk.go b/internal/provider/source_rkicovid_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_rkicovid_resource.go b/internal/provider/source_rkicovid_resource.go
old mode 100755
new mode 100644
index 26a7590d0..f056edc0e
--- a/internal/provider/source_rkicovid_resource.go
+++ b/internal/provider/source_rkicovid_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourceRkiCovidResource) Schema(ctx context.Context, req resource.Schema
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "rki-covid",
- ),
- },
- Description: `must be one of ["rki-covid"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date in the format 2017-01-25. Any data before this date will not be replicated.`,
@@ -139,7 +128,7 @@ func (r *SourceRkiCovidResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRkiCovid(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_rkicovid_resource_sdk.go b/internal/provider/source_rkicovid_resource_sdk.go
old mode 100755
new mode 100644
index c87fbef8c..331562233
--- a/internal/provider/source_rkicovid_resource_sdk.go
+++ b/internal/provider/source_rkicovid_resource_sdk.go
@@ -8,11 +8,9 @@ import (
)
func (r *SourceRkiCovidResourceModel) ToCreateSDKType() *shared.SourceRkiCovidCreateRequest {
- sourceType := shared.SourceRkiCovidRkiCovid(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceRkiCovid{
- SourceType: sourceType,
- StartDate: startDate,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_rss_data_source.go b/internal/provider/source_rss_data_source.go
old mode 100755
new mode 100644
index fc22fe2a7..eb086cae9
--- a/internal/provider/source_rss_data_source.go
+++ b/internal/provider/source_rss_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourceRssDataSource) Schema(ctx context.Context, req datasource.SchemaR
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "rss",
- ),
- },
- Description: `must be one of ["rss"]`,
- },
"url": schema.StringAttribute{
Computed: true,
Description: `RSS Feed URL`,
diff --git a/internal/provider/source_rss_data_source_sdk.go b/internal/provider/source_rss_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_rss_resource.go b/internal/provider/source_rss_resource.go
old mode 100755
new mode 100644
index 7edd34f14..40e073f24
--- a/internal/provider/source_rss_resource.go
+++ b/internal/provider/source_rss_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourceRssResource) Schema(ctx context.Context, req resource.SchemaReque
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "rss",
- ),
- },
- Description: `must be one of ["rss"]`,
- },
"url": schema.StringAttribute{
Required: true,
Description: `RSS Feed URL`,
@@ -139,7 +128,7 @@ func (r *SourceRssResource) Create(ctx context.Context, req resource.CreateReque
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceRss(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_rss_resource_sdk.go b/internal/provider/source_rss_resource_sdk.go
old mode 100755
new mode 100644
index 8b5e66bb0..aa5687329
--- a/internal/provider/source_rss_resource_sdk.go
+++ b/internal/provider/source_rss_resource_sdk.go
@@ -8,11 +8,9 @@ import (
)
func (r *SourceRssResourceModel) ToCreateSDKType() *shared.SourceRssCreateRequest {
- sourceType := shared.SourceRssRss(r.Configuration.SourceType.ValueString())
url := r.Configuration.URL.ValueString()
configuration := shared.SourceRss{
- SourceType: sourceType,
- URL: url,
+ URL: url,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_s3_data_source.go b/internal/provider/source_s3_data_source.go
old mode 100755
new mode 100644
index 9cf3e173e..4458d4d4d
--- a/internal/provider/source_s3_data_source.go
+++ b/internal/provider/source_s3_data_source.go
@@ -77,18 +77,8 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Attributes: map[string]schema.Attribute{
"source_s3_file_format_avro": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `This connector utilises fastavro for Avro parsing.`,
},
"source_s3_file_format_csv": schema.SingleNestedAttribute{
@@ -122,15 +112,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `The character used for escaping special characters. To disallow escaping, leave this field blank.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"infer_datatypes": schema.BoolAttribute{
Computed: true,
Description: `Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings`,
@@ -153,15 +134,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
"newlines_in_values": schema.BoolAttribute{
Computed: true,
Description: `Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.`,
@@ -197,31 +169,12 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `This connector utilises PyArrow (Apache Arrow) for Parquet parsing.`,
},
"source_s3_update_file_format_avro": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `This connector utilises fastavro for Avro parsing.`,
},
"source_s3_update_file_format_csv": schema.SingleNestedAttribute{
@@ -255,15 +208,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `The character used for escaping special characters. To disallow escaping, leave this field blank.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"infer_datatypes": schema.BoolAttribute{
Computed: true,
Description: `Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings`,
@@ -286,15 +230,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
"newlines_in_values": schema.BoolAttribute{
Computed: true,
Description: `Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.`,
@@ -330,15 +265,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `This connector utilises PyArrow (Apache Arrow) for Parquet parsing.`,
},
@@ -389,15 +315,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3",
- ),
- },
- Description: `must be one of ["s3"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
@@ -427,15 +344,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -463,46 +371,17 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `A set of case-sensitive strings that should be interpreted as false values.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"header_definition": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "From CSV",
- ),
- },
- Description: `must be one of ["From CSV"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Autogenerated",
- ),
- },
- Description: `must be one of ["Autogenerated"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided": schema.SingleNestedAttribute{
@@ -513,15 +392,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `The column names that will be used while emitting the CSV records`,
},
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "User Provided",
- ),
- },
- Description: `must be one of ["User Provided"]`,
- },
},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
@@ -572,18 +442,8 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_file_based_stream_config_format_jsonl_format": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_file_based_stream_config_format_parquet_format": schema.SingleNestedAttribute{
@@ -593,15 +453,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -612,15 +463,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -648,46 +490,17 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `A set of case-sensitive strings that should be interpreted as false values.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"header_definition": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_from_csv": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "From CSV",
- ),
- },
- Description: `must be one of ["From CSV"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Autogenerated",
- ),
- },
- Description: `must be one of ["Autogenerated"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided": schema.SingleNestedAttribute{
@@ -698,15 +511,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
ElementType: types.StringType,
Description: `The column names that will be used while emitting the CSV records`,
},
- "header_definition_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "User Provided",
- ),
- },
- Description: `must be one of ["User Provided"]`,
- },
},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
@@ -757,18 +561,8 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_update_file_based_stream_config_format_jsonl_format": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_update_file_based_stream_config_format_parquet_format": schema.SingleNestedAttribute{
@@ -778,15 +572,6 @@ func (r *SourceS3DataSource) Schema(ctx context.Context, req datasource.SchemaRe
Computed: true,
Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.`,
},
- "filetype": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
diff --git a/internal/provider/source_s3_data_source_sdk.go b/internal/provider/source_s3_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_s3_resource.go b/internal/provider/source_s3_resource.go
old mode 100755
new mode 100644
index 3d61c3ce6..b3c75c774
--- a/internal/provider/source_s3_resource.go
+++ b/internal/provider/source_s3_resource.go
@@ -79,18 +79,8 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Attributes: map[string]schema.Attribute{
"source_s3_file_format_avro": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `This connector utilises fastavro for Avro parsing.`,
},
"source_s3_file_format_csv": schema.SingleNestedAttribute{
@@ -124,15 +114,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `The character used for escaping special characters. To disallow escaping, leave this field blank.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"infer_datatypes": schema.BoolAttribute{
Optional: true,
Description: `Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings`,
@@ -155,15 +136,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
"newlines_in_values": schema.BoolAttribute{
Optional: true,
Description: `Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.`,
@@ -199,31 +171,12 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `This connector utilises PyArrow (Apache Arrow) for Parquet parsing.`,
},
"source_s3_update_file_format_avro": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `This connector utilises fastavro for Avro parsing.`,
},
"source_s3_update_file_format_csv": schema.SingleNestedAttribute{
@@ -257,15 +210,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `The character used for escaping special characters. To disallow escaping, leave this field blank.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"infer_datatypes": schema.BoolAttribute{
Optional: true,
Description: `Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings`,
@@ -288,15 +232,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
"newlines_in_values": schema.BoolAttribute{
Optional: true,
Description: `Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.`,
@@ -332,15 +267,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `This connector utilises PyArrow (Apache Arrow) for Parquet parsing.`,
},
@@ -391,15 +317,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "s3",
- ),
- },
- Description: `must be one of ["s3"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -429,15 +346,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -465,46 +373,17 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `A set of case-sensitive strings that should be interpreted as false values.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"header_definition": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Autogenerated",
- ),
- },
- Description: `must be one of ["Autogenerated"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "From CSV",
- ),
- },
- Description: `must be one of ["From CSV"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided": schema.SingleNestedAttribute{
@@ -515,15 +394,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `The column names that will be used while emitting the CSV records`,
},
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "User Provided",
- ),
- },
- Description: `must be one of ["User Provided"]`,
- },
},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
@@ -574,18 +444,8 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_file_based_stream_config_format_jsonl_format": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_file_based_stream_config_format_parquet_format": schema.SingleNestedAttribute{
@@ -595,15 +455,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -614,15 +465,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "avro",
- ),
- },
- Description: `must be one of ["avro"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -650,46 +492,17 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `A set of case-sensitive strings that should be interpreted as false values.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "csv",
- ),
- },
- Description: `must be one of ["csv"]`,
- },
"header_definition": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_from_csv": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "From CSV",
- ),
- },
- Description: `must be one of ["From CSV"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Autogenerated",
- ),
- },
- Description: `must be one of ["Autogenerated"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided": schema.SingleNestedAttribute{
@@ -700,15 +513,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
ElementType: types.StringType,
Description: `The column names that will be used while emitting the CSV records`,
},
- "header_definition_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "User Provided",
- ),
- },
- Description: `must be one of ["User Provided"]`,
- },
},
Description: `How headers will be defined. ` + "`" + `User Provided` + "`" + ` assumes the CSV does not have a header row and uses the headers provided and ` + "`" + `Autogenerated` + "`" + ` assumes the CSV does not have a header row and the CDK will generate headers using for ` + "`" + `f{i}` + "`" + ` where ` + "`" + `i` + "`" + ` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.`,
},
@@ -759,18 +563,8 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_update_file_based_stream_config_format_jsonl_format": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "jsonl",
- ),
- },
- Description: `must be one of ["jsonl"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
"source_s3_update_file_based_stream_config_format_parquet_format": schema.SingleNestedAttribute{
@@ -780,15 +574,6 @@ func (r *SourceS3Resource) Schema(ctx context.Context, req resource.SchemaReques
Optional: true,
Description: `Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.`,
},
- "filetype": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "parquet",
- ),
- },
- Description: `must be one of ["parquet"]`,
- },
},
Description: `The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.`,
},
@@ -913,7 +698,7 @@ func (r *SourceS3Resource) Create(ctx context.Context, req resource.CreateReques
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceS3(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_s3_resource_sdk.go b/internal/provider/source_s3_resource_sdk.go
old mode 100755
new mode 100644
index b4f6ab052..937883260
--- a/internal/provider/source_s3_resource_sdk.go
+++ b/internal/provider/source_s3_resource_sdk.go
@@ -80,12 +80,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
} else {
escapeChar = nil
}
- filetype := new(shared.SourceS3FileFormatCSVFiletype)
- if !r.Configuration.Format.SourceS3FileFormatCSV.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatCSV.Filetype.IsNull() {
- *filetype = shared.SourceS3FileFormatCSVFiletype(r.Configuration.Format.SourceS3FileFormatCSV.Filetype.ValueString())
- } else {
- filetype = nil
- }
inferDatatypes := new(bool)
if !r.Configuration.Format.SourceS3FileFormatCSV.InferDatatypes.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatCSV.InferDatatypes.IsNull() {
*inferDatatypes = r.Configuration.Format.SourceS3FileFormatCSV.InferDatatypes.ValueBool()
@@ -112,7 +106,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
DoubleQuote: doubleQuote,
Encoding: encoding,
EscapeChar: escapeChar,
- Filetype: filetype,
InferDatatypes: inferDatatypes,
NewlinesInValues: newlinesInValues,
QuoteChar: quoteChar,
@@ -141,17 +134,10 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
for _, columnsItem := range r.Configuration.Format.SourceS3FileFormatParquet.Columns {
columns = append(columns, columnsItem.ValueString())
}
- filetype1 := new(shared.SourceS3FileFormatParquetFiletype)
- if !r.Configuration.Format.SourceS3FileFormatParquet.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatParquet.Filetype.IsNull() {
- *filetype1 = shared.SourceS3FileFormatParquetFiletype(r.Configuration.Format.SourceS3FileFormatParquet.Filetype.ValueString())
- } else {
- filetype1 = nil
- }
sourceS3FileFormatParquet = &shared.SourceS3FileFormatParquet{
BatchSize: batchSize,
BufferSize: bufferSize,
Columns: columns,
- Filetype: filetype1,
}
}
if sourceS3FileFormatParquet != nil {
@@ -161,15 +147,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
}
var sourceS3FileFormatAvro *shared.SourceS3FileFormatAvro
if r.Configuration.Format.SourceS3FileFormatAvro != nil {
- filetype2 := new(shared.SourceS3FileFormatAvroFiletype)
- if !r.Configuration.Format.SourceS3FileFormatAvro.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatAvro.Filetype.IsNull() {
- *filetype2 = shared.SourceS3FileFormatAvroFiletype(r.Configuration.Format.SourceS3FileFormatAvro.Filetype.ValueString())
- } else {
- filetype2 = nil
- }
- sourceS3FileFormatAvro = &shared.SourceS3FileFormatAvro{
- Filetype: filetype2,
- }
+ sourceS3FileFormatAvro = &shared.SourceS3FileFormatAvro{}
}
if sourceS3FileFormatAvro != nil {
format = &shared.SourceS3FileFormat{
@@ -184,12 +162,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
} else {
blockSize1 = nil
}
- filetype3 := new(shared.SourceS3FileFormatJsonlFiletype)
- if !r.Configuration.Format.SourceS3FileFormatJsonl.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatJsonl.Filetype.IsNull() {
- *filetype3 = shared.SourceS3FileFormatJsonlFiletype(r.Configuration.Format.SourceS3FileFormatJsonl.Filetype.ValueString())
- } else {
- filetype3 = nil
- }
newlinesInValues1 := new(bool)
if !r.Configuration.Format.SourceS3FileFormatJsonl.NewlinesInValues.IsUnknown() && !r.Configuration.Format.SourceS3FileFormatJsonl.NewlinesInValues.IsNull() {
*newlinesInValues1 = r.Configuration.Format.SourceS3FileFormatJsonl.NewlinesInValues.ValueBool()
@@ -204,7 +176,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
}
sourceS3FileFormatJsonl = &shared.SourceS3FileFormatJsonl{
BlockSize: blockSize1,
- Filetype: filetype3,
NewlinesInValues: newlinesInValues1,
UnexpectedFieldBehavior: unexpectedFieldBehavior,
}
@@ -274,7 +245,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
} else {
schema = nil
}
- sourceType := shared.SourceS3S3(r.Configuration.SourceType.ValueString())
startDate1 := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate1, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -300,15 +270,8 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
} else {
doubleAsString = nil
}
- filetype4 := new(shared.SourceS3FileBasedStreamConfigFormatAvroFormatFiletype)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatAvroFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatAvroFormat.Filetype.IsNull() {
- *filetype4 = shared.SourceS3FileBasedStreamConfigFormatAvroFormatFiletype(streamsItem.Format.SourceS3FileBasedStreamConfigFormatAvroFormat.Filetype.ValueString())
- } else {
- filetype4 = nil
- }
sourceS3FileBasedStreamConfigFormatAvroFormat = &shared.SourceS3FileBasedStreamConfigFormatAvroFormat{
DoubleAsString: doubleAsString,
- Filetype: filetype4,
}
}
if sourceS3FileBasedStreamConfigFormatAvroFormat != nil {
@@ -346,25 +309,11 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
for _, falseValuesItem := range streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.FalseValues {
falseValues = append(falseValues, falseValuesItem.ValueString())
}
- filetype5 := new(shared.SourceS3FileBasedStreamConfigFormatCSVFormatFiletype)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.Filetype.IsNull() {
- *filetype5 = shared.SourceS3FileBasedStreamConfigFormatCSVFormatFiletype(streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.Filetype.ValueString())
- } else {
- filetype5 = nil
- }
var headerDefinition *shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition
if streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition != nil {
var sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
if streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
- headerDefinitionType := new(shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.IsNull() {
- *headerDefinitionType = shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType(streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType = nil
- }
- sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV{
- HeaderDefinitionType: headerDefinitionType,
- }
+ sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV{}
}
if sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
headerDefinition = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition{
@@ -373,15 +322,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
}
var sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated *shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
if streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
- headerDefinitionType1 := new(shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.IsNull() {
- *headerDefinitionType1 = shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType(streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType1 = nil
- }
- sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated{
- HeaderDefinitionType: headerDefinitionType1,
- }
+ sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated{}
}
if sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
headerDefinition = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition{
@@ -394,15 +335,8 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
for _, columnNamesItem := range streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.ColumnNames {
columnNames = append(columnNames, columnNamesItem.ValueString())
}
- headerDefinitionType2 := new(shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.IsNull() {
- *headerDefinitionType2 = shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType(streamsItem.Format.SourceS3FileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType2 = nil
- }
sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided = &shared.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided{
- ColumnNames: columnNames,
- HeaderDefinitionType: headerDefinitionType2,
+ ColumnNames: columnNames,
}
}
if sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided != nil {
@@ -455,7 +389,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
Encoding: encoding1,
EscapeChar: escapeChar1,
FalseValues: falseValues,
- Filetype: filetype5,
HeaderDefinition: headerDefinition,
InferenceType: inferenceType,
NullValues: nullValues,
@@ -473,15 +406,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
}
var sourceS3FileBasedStreamConfigFormatJsonlFormat *shared.SourceS3FileBasedStreamConfigFormatJsonlFormat
if streamsItem.Format.SourceS3FileBasedStreamConfigFormatJsonlFormat != nil {
- filetype6 := new(shared.SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatJsonlFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatJsonlFormat.Filetype.IsNull() {
- *filetype6 = shared.SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype(streamsItem.Format.SourceS3FileBasedStreamConfigFormatJsonlFormat.Filetype.ValueString())
- } else {
- filetype6 = nil
- }
- sourceS3FileBasedStreamConfigFormatJsonlFormat = &shared.SourceS3FileBasedStreamConfigFormatJsonlFormat{
- Filetype: filetype6,
- }
+ sourceS3FileBasedStreamConfigFormatJsonlFormat = &shared.SourceS3FileBasedStreamConfigFormatJsonlFormat{}
}
if sourceS3FileBasedStreamConfigFormatJsonlFormat != nil {
format1 = &shared.SourceS3FileBasedStreamConfigFormat{
@@ -496,15 +421,8 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
} else {
decimalAsFloat = nil
}
- filetype7 := new(shared.SourceS3FileBasedStreamConfigFormatParquetFormatFiletype)
- if !streamsItem.Format.SourceS3FileBasedStreamConfigFormatParquetFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3FileBasedStreamConfigFormatParquetFormat.Filetype.IsNull() {
- *filetype7 = shared.SourceS3FileBasedStreamConfigFormatParquetFormatFiletype(streamsItem.Format.SourceS3FileBasedStreamConfigFormatParquetFormat.Filetype.ValueString())
- } else {
- filetype7 = nil
- }
sourceS3FileBasedStreamConfigFormatParquetFormat = &shared.SourceS3FileBasedStreamConfigFormatParquetFormat{
DecimalAsFloat: decimalAsFloat,
- Filetype: filetype7,
}
}
if sourceS3FileBasedStreamConfigFormatParquetFormat != nil {
@@ -571,7 +489,6 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest
PathPattern: pathPattern,
Provider: provider,
Schema: schema,
- SourceType: sourceType,
StartDate: startDate1,
Streams: streams,
}
@@ -669,12 +586,6 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
} else {
escapeChar = nil
}
- filetype := new(shared.SourceS3UpdateFileFormatCSVFiletype)
- if !r.Configuration.Format.SourceS3UpdateFileFormatCSV.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatCSV.Filetype.IsNull() {
- *filetype = shared.SourceS3UpdateFileFormatCSVFiletype(r.Configuration.Format.SourceS3UpdateFileFormatCSV.Filetype.ValueString())
- } else {
- filetype = nil
- }
inferDatatypes := new(bool)
if !r.Configuration.Format.SourceS3UpdateFileFormatCSV.InferDatatypes.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatCSV.InferDatatypes.IsNull() {
*inferDatatypes = r.Configuration.Format.SourceS3UpdateFileFormatCSV.InferDatatypes.ValueBool()
@@ -701,7 +612,6 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
DoubleQuote: doubleQuote,
Encoding: encoding,
EscapeChar: escapeChar,
- Filetype: filetype,
InferDatatypes: inferDatatypes,
NewlinesInValues: newlinesInValues,
QuoteChar: quoteChar,
@@ -730,17 +640,10 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
for _, columnsItem := range r.Configuration.Format.SourceS3UpdateFileFormatParquet.Columns {
columns = append(columns, columnsItem.ValueString())
}
- filetype1 := new(shared.SourceS3UpdateFileFormatParquetFiletype)
- if !r.Configuration.Format.SourceS3UpdateFileFormatParquet.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatParquet.Filetype.IsNull() {
- *filetype1 = shared.SourceS3UpdateFileFormatParquetFiletype(r.Configuration.Format.SourceS3UpdateFileFormatParquet.Filetype.ValueString())
- } else {
- filetype1 = nil
- }
sourceS3UpdateFileFormatParquet = &shared.SourceS3UpdateFileFormatParquet{
BatchSize: batchSize,
BufferSize: bufferSize,
Columns: columns,
- Filetype: filetype1,
}
}
if sourceS3UpdateFileFormatParquet != nil {
@@ -750,15 +653,7 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
}
var sourceS3UpdateFileFormatAvro *shared.SourceS3UpdateFileFormatAvro
if r.Configuration.Format.SourceS3UpdateFileFormatAvro != nil {
- filetype2 := new(shared.SourceS3UpdateFileFormatAvroFiletype)
- if !r.Configuration.Format.SourceS3UpdateFileFormatAvro.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatAvro.Filetype.IsNull() {
- *filetype2 = shared.SourceS3UpdateFileFormatAvroFiletype(r.Configuration.Format.SourceS3UpdateFileFormatAvro.Filetype.ValueString())
- } else {
- filetype2 = nil
- }
- sourceS3UpdateFileFormatAvro = &shared.SourceS3UpdateFileFormatAvro{
- Filetype: filetype2,
- }
+ sourceS3UpdateFileFormatAvro = &shared.SourceS3UpdateFileFormatAvro{}
}
if sourceS3UpdateFileFormatAvro != nil {
format = &shared.SourceS3UpdateFileFormat{
@@ -773,12 +668,6 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
} else {
blockSize1 = nil
}
- filetype3 := new(shared.SourceS3UpdateFileFormatJsonlFiletype)
- if !r.Configuration.Format.SourceS3UpdateFileFormatJsonl.Filetype.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatJsonl.Filetype.IsNull() {
- *filetype3 = shared.SourceS3UpdateFileFormatJsonlFiletype(r.Configuration.Format.SourceS3UpdateFileFormatJsonl.Filetype.ValueString())
- } else {
- filetype3 = nil
- }
newlinesInValues1 := new(bool)
if !r.Configuration.Format.SourceS3UpdateFileFormatJsonl.NewlinesInValues.IsUnknown() && !r.Configuration.Format.SourceS3UpdateFileFormatJsonl.NewlinesInValues.IsNull() {
*newlinesInValues1 = r.Configuration.Format.SourceS3UpdateFileFormatJsonl.NewlinesInValues.ValueBool()
@@ -793,7 +682,6 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
}
sourceS3UpdateFileFormatJsonl = &shared.SourceS3UpdateFileFormatJsonl{
BlockSize: blockSize1,
- Filetype: filetype3,
NewlinesInValues: newlinesInValues1,
UnexpectedFieldBehavior: unexpectedFieldBehavior,
}
@@ -888,15 +776,8 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
} else {
doubleAsString = nil
}
- filetype4 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat.Filetype.IsNull() {
- *filetype4 = shared.SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat.Filetype.ValueString())
- } else {
- filetype4 = nil
- }
sourceS3UpdateFileBasedStreamConfigFormatAvroFormat = &shared.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat{
DoubleAsString: doubleAsString,
- Filetype: filetype4,
}
}
if sourceS3UpdateFileBasedStreamConfigFormatAvroFormat != nil {
@@ -934,25 +815,11 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
for _, falseValuesItem := range streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.FalseValues {
falseValues = append(falseValues, falseValuesItem.ValueString())
}
- filetype5 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.Filetype.IsNull() {
- *filetype5 = shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.Filetype.ValueString())
- } else {
- filetype5 = nil
- }
var headerDefinition *shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition
if streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition != nil {
var sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
if streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
- headerDefinitionType := new(shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.IsNull() {
- *headerDefinitionType = shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType = nil
- }
- sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV{
- HeaderDefinitionType: headerDefinitionType,
- }
+ sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV{}
}
if sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
headerDefinition = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition{
@@ -961,15 +828,7 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
}
var sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated *shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
if streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
- headerDefinitionType1 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.IsNull() {
- *headerDefinitionType1 = shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType1 = nil
- }
- sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated{
- HeaderDefinitionType: headerDefinitionType1,
- }
+ sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated{}
}
if sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
headerDefinition = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition{
@@ -982,15 +841,8 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
for _, columnNamesItem := range streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.ColumnNames {
columnNames = append(columnNames, columnNamesItem.ValueString())
}
- headerDefinitionType2 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.IsNull() {
- *headerDefinitionType2 = shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat.HeaderDefinition.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided.HeaderDefinitionType.ValueString())
- } else {
- headerDefinitionType2 = nil
- }
sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided = &shared.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided{
- ColumnNames: columnNames,
- HeaderDefinitionType: headerDefinitionType2,
+ ColumnNames: columnNames,
}
}
if sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided != nil {
@@ -1043,7 +895,6 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
Encoding: encoding1,
EscapeChar: escapeChar1,
FalseValues: falseValues,
- Filetype: filetype5,
HeaderDefinition: headerDefinition,
InferenceType: inferenceType,
NullValues: nullValues,
@@ -1061,15 +912,7 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
}
var sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat *shared.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat
if streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat != nil {
- filetype6 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat.Filetype.IsNull() {
- *filetype6 = shared.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat.Filetype.ValueString())
- } else {
- filetype6 = nil
- }
- sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat = &shared.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat{
- Filetype: filetype6,
- }
+ sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat = &shared.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat{}
}
if sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat != nil {
format1 = &shared.SourceS3UpdateFileBasedStreamConfigFormat{
@@ -1084,15 +927,8 @@ func (r *SourceS3ResourceModel) ToUpdateSDKType() *shared.SourceS3PutRequest {
} else {
decimalAsFloat = nil
}
- filetype7 := new(shared.SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype)
- if !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat.Filetype.IsUnknown() && !streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat.Filetype.IsNull() {
- *filetype7 = shared.SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype(streamsItem.Format.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat.Filetype.ValueString())
- } else {
- filetype7 = nil
- }
sourceS3UpdateFileBasedStreamConfigFormatParquetFormat = &shared.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat{
DecimalAsFloat: decimalAsFloat,
- Filetype: filetype7,
}
}
if sourceS3UpdateFileBasedStreamConfigFormatParquetFormat != nil {
diff --git a/internal/provider/source_salesforce_data_source.go b/internal/provider/source_salesforce_data_source.go
old mode 100755
new mode 100644
index b91b44a0a..f8c6f1f62
--- a/internal/provider/source_salesforce_data_source.go
+++ b/internal/provider/source_salesforce_data_source.go
@@ -53,15 +53,6 @@ func (r *SourceSalesforceDataSource) Schema(ctx context.Context, req datasource.
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `Enter your Salesforce developer application's Client ID`,
@@ -82,15 +73,6 @@ func (r *SourceSalesforceDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "salesforce",
- ),
- },
- Description: `must be one of ["salesforce"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_salesforce_data_source_sdk.go b/internal/provider/source_salesforce_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_salesforce_resource.go b/internal/provider/source_salesforce_resource.go
old mode 100755
new mode 100644
index 75757d0ef..6041b6500
--- a/internal/provider/source_salesforce_resource.go
+++ b/internal/provider/source_salesforce_resource.go
@@ -55,15 +55,6 @@ func (r *SourceSalesforceResource) Schema(ctx context.Context, req resource.Sche
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `Enter your Salesforce developer application's Client ID`,
@@ -84,15 +75,6 @@ func (r *SourceSalesforceResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "salesforce",
- ),
- },
- Description: `must be one of ["salesforce"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -105,7 +87,7 @@ func (r *SourceSalesforceResource) Schema(ctx context.Context, req resource.Sche
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"criteria": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"starts with",
@@ -199,7 +181,7 @@ func (r *SourceSalesforceResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSalesforce(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_salesforce_resource_sdk.go b/internal/provider/source_salesforce_resource_sdk.go
old mode 100755
new mode 100644
index 7887ad669..f4518576d
--- a/internal/provider/source_salesforce_resource_sdk.go
+++ b/internal/provider/source_salesforce_resource_sdk.go
@@ -9,12 +9,6 @@ import (
)
func (r *SourceSalesforceResourceModel) ToCreateSDKType() *shared.SourceSalesforceCreateRequest {
- authType := new(shared.SourceSalesforceAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceSalesforceAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
forceUseBulkAPI := new(bool)
@@ -30,7 +24,6 @@ func (r *SourceSalesforceResourceModel) ToCreateSDKType() *shared.SourceSalesfor
isSandbox = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- sourceType := shared.SourceSalesforceSalesforce(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -39,7 +32,12 @@ func (r *SourceSalesforceResourceModel) ToCreateSDKType() *shared.SourceSalesfor
}
var streamsCriteria []shared.SourceSalesforceStreamsCriteria = nil
for _, streamsCriteriaItem := range r.Configuration.StreamsCriteria {
- criteria := shared.SourceSalesforceStreamsCriteriaSearchCriteria(streamsCriteriaItem.Criteria.ValueString())
+ criteria := new(shared.SourceSalesforceStreamsCriteriaSearchCriteria)
+ if !streamsCriteriaItem.Criteria.IsUnknown() && !streamsCriteriaItem.Criteria.IsNull() {
+ *criteria = shared.SourceSalesforceStreamsCriteriaSearchCriteria(streamsCriteriaItem.Criteria.ValueString())
+ } else {
+ criteria = nil
+ }
value := streamsCriteriaItem.Value.ValueString()
streamsCriteria = append(streamsCriteria, shared.SourceSalesforceStreamsCriteria{
Criteria: criteria,
@@ -47,13 +45,11 @@ func (r *SourceSalesforceResourceModel) ToCreateSDKType() *shared.SourceSalesfor
})
}
configuration := shared.SourceSalesforce{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
ForceUseBulkAPI: forceUseBulkAPI,
IsSandbox: isSandbox,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDate: startDate,
StreamsCriteria: streamsCriteria,
}
@@ -80,12 +76,6 @@ func (r *SourceSalesforceResourceModel) ToGetSDKType() *shared.SourceSalesforceC
}
func (r *SourceSalesforceResourceModel) ToUpdateSDKType() *shared.SourceSalesforcePutRequest {
- authType := new(shared.SourceSalesforceUpdateAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceSalesforceUpdateAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
forceUseBulkAPI := new(bool)
@@ -109,7 +99,12 @@ func (r *SourceSalesforceResourceModel) ToUpdateSDKType() *shared.SourceSalesfor
}
var streamsCriteria []shared.SourceSalesforceUpdateStreamsCriteria = nil
for _, streamsCriteriaItem := range r.Configuration.StreamsCriteria {
- criteria := shared.SourceSalesforceUpdateStreamsCriteriaSearchCriteria(streamsCriteriaItem.Criteria.ValueString())
+ criteria := new(shared.SourceSalesforceUpdateStreamsCriteriaSearchCriteria)
+ if !streamsCriteriaItem.Criteria.IsUnknown() && !streamsCriteriaItem.Criteria.IsNull() {
+ *criteria = shared.SourceSalesforceUpdateStreamsCriteriaSearchCriteria(streamsCriteriaItem.Criteria.ValueString())
+ } else {
+ criteria = nil
+ }
value := streamsCriteriaItem.Value.ValueString()
streamsCriteria = append(streamsCriteria, shared.SourceSalesforceUpdateStreamsCriteria{
Criteria: criteria,
@@ -117,7 +112,6 @@ func (r *SourceSalesforceResourceModel) ToUpdateSDKType() *shared.SourceSalesfor
})
}
configuration := shared.SourceSalesforceUpdate{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
ForceUseBulkAPI: forceUseBulkAPI,
diff --git a/internal/provider/source_salesloft_data_source.go b/internal/provider/source_salesloft_data_source.go
old mode 100755
new mode 100644
index 71753bf5f..532f1010e
--- a/internal/provider/source_salesloft_data_source.go
+++ b/internal/provider/source_salesloft_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceSalesloftDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `API Key for making authenticated requests. More instruction on how to find this value in our docs`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_salesloft_credentials_authenticate_via_o_auth": schema.SingleNestedAttribute{
@@ -81,15 +71,6 @@ func (r *SourceSalesloftDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Salesloft developer application.`,
@@ -118,15 +99,6 @@ func (r *SourceSalesloftDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `API Key for making authenticated requests. More instruction on how to find this value in our docs`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_salesloft_update_credentials_authenticate_via_o_auth": schema.SingleNestedAttribute{
@@ -136,15 +108,6 @@ func (r *SourceSalesloftDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Salesloft developer application.`,
@@ -171,15 +134,6 @@ func (r *SourceSalesloftDataSource) Schema(ctx context.Context, req datasource.S
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "salesloft",
- ),
- },
- Description: `must be one of ["salesloft"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_salesloft_data_source_sdk.go b/internal/provider/source_salesloft_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_salesloft_resource.go b/internal/provider/source_salesloft_resource.go
old mode 100755
new mode 100644
index 06a937da1..f4bd75fa4
--- a/internal/provider/source_salesloft_resource.go
+++ b/internal/provider/source_salesloft_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `API Key for making authenticated requests. More instruction on how to find this value in our docs`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_salesloft_credentials_authenticate_via_o_auth": schema.SingleNestedAttribute{
@@ -83,15 +73,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Salesloft developer application.`,
@@ -120,15 +101,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `API Key for making authenticated requests. More instruction on how to find this value in our docs`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_key",
- ),
- },
- Description: `must be one of ["api_key"]`,
- },
},
},
"source_salesloft_update_credentials_authenticate_via_o_auth": schema.SingleNestedAttribute{
@@ -138,15 +110,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Salesloft developer application.`,
@@ -173,15 +136,6 @@ func (r *SourceSalesloftResource) Schema(ctx context.Context, req resource.Schem
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "salesloft",
- ),
- },
- Description: `must be one of ["salesloft"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -261,7 +215,7 @@ func (r *SourceSalesloftResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSalesloft(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_salesloft_resource_sdk.go b/internal/provider/source_salesloft_resource_sdk.go
old mode 100755
new mode 100644
index aa6654d17..af6134853
--- a/internal/provider/source_salesloft_resource_sdk.go
+++ b/internal/provider/source_salesloft_resource_sdk.go
@@ -13,14 +13,12 @@ func (r *SourceSalesloftResourceModel) ToCreateSDKType() *shared.SourceSalesloft
var sourceSalesloftCredentialsAuthenticateViaOAuth *shared.SourceSalesloftCredentialsAuthenticateViaOAuth
if r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth != nil {
accessToken := r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.AccessToken.ValueString()
- authType := shared.SourceSalesloftCredentialsAuthenticateViaOAuthAuthType(r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaOAuth.TokenExpiryDate.ValueString())
sourceSalesloftCredentialsAuthenticateViaOAuth = &shared.SourceSalesloftCredentialsAuthenticateViaOAuth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -35,10 +33,8 @@ func (r *SourceSalesloftResourceModel) ToCreateSDKType() *shared.SourceSalesloft
var sourceSalesloftCredentialsAuthenticateViaAPIKey *shared.SourceSalesloftCredentialsAuthenticateViaAPIKey
if r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaAPIKey.APIKey.ValueString()
- authType1 := shared.SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthType(r.Configuration.Credentials.SourceSalesloftCredentialsAuthenticateViaAPIKey.AuthType.ValueString())
sourceSalesloftCredentialsAuthenticateViaAPIKey = &shared.SourceSalesloftCredentialsAuthenticateViaAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceSalesloftCredentialsAuthenticateViaAPIKey != nil {
@@ -46,11 +42,9 @@ func (r *SourceSalesloftResourceModel) ToCreateSDKType() *shared.SourceSalesloft
SourceSalesloftCredentialsAuthenticateViaAPIKey: sourceSalesloftCredentialsAuthenticateViaAPIKey,
}
}
- sourceType := shared.SourceSalesloftSalesloft(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceSalesloft{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -80,14 +74,12 @@ func (r *SourceSalesloftResourceModel) ToUpdateSDKType() *shared.SourceSalesloft
var sourceSalesloftUpdateCredentialsAuthenticateViaOAuth *shared.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth
if r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth != nil {
accessToken := r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.AccessToken.ValueString()
- authType := shared.SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType(r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth.TokenExpiryDate.ValueString())
sourceSalesloftUpdateCredentialsAuthenticateViaOAuth = &shared.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -102,10 +94,8 @@ func (r *SourceSalesloftResourceModel) ToUpdateSDKType() *shared.SourceSalesloft
var sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey *shared.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey
if r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey.APIKey.ValueString()
- authType1 := shared.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthType(r.Configuration.Credentials.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey.AuthType.ValueString())
sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey = &shared.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey != nil {
diff --git a/internal/provider/source_sapfieldglass_data_source.go b/internal/provider/source_sapfieldglass_data_source.go
old mode 100755
new mode 100644
index b74531ee7..789838475
--- a/internal/provider/source_sapfieldglass_data_source.go
+++ b/internal/provider/source_sapfieldglass_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceSapFieldglassDataSource struct {
// SourceSapFieldglassDataSourceModel describes the data model.
type SourceSapFieldglassDataSourceModel struct {
- Configuration SourceSapFieldglass `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceSapFieldglassDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sap-fieldglass",
- ),
- },
- Description: `must be one of ["sap-fieldglass"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_sapfieldglass_data_source_sdk.go b/internal/provider/source_sapfieldglass_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sapfieldglass_resource.go b/internal/provider/source_sapfieldglass_resource.go
old mode 100755
new mode 100644
index a5e847ed1..fa70500f9
--- a/internal/provider/source_sapfieldglass_resource.go
+++ b/internal/provider/source_sapfieldglass_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceSapFieldglassResource struct {
// SourceSapFieldglassResourceModel describes the resource data model.
type SourceSapFieldglassResourceModel struct {
- Configuration SourceSapFieldglass `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceSapFieldglassResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceSapFieldglassResource) Schema(ctx context.Context, req resource.S
Required: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sap-fieldglass",
- ),
- },
- Description: `must be one of ["sap-fieldglass"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceSapFieldglassResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSapFieldglass(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sapfieldglass_resource_sdk.go b/internal/provider/source_sapfieldglass_resource_sdk.go
old mode 100755
new mode 100644
index 3b13be30d..792387f1d
--- a/internal/provider/source_sapfieldglass_resource_sdk.go
+++ b/internal/provider/source_sapfieldglass_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceSapFieldglassResourceModel) ToCreateSDKType() *shared.SourceSapFieldglassCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceSapFieldglassSapFieldglass(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSapFieldglass{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_secoda_data_source.go b/internal/provider/source_secoda_data_source.go
old mode 100755
new mode 100644
index 4f333f03c..b62ace9ba
--- a/internal/provider/source_secoda_data_source.go
+++ b/internal/provider/source_secoda_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceSecodaDataSource struct {
// SourceSecodaDataSourceModel describes the data model.
type SourceSecodaDataSourceModel struct {
- Configuration SourceSecoda `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceSecodaDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Your API Access Key. See here. The key is case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secoda",
- ),
- },
- Description: `must be one of ["secoda"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_secoda_data_source_sdk.go b/internal/provider/source_secoda_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_secoda_resource.go b/internal/provider/source_secoda_resource.go
old mode 100755
new mode 100644
index a3c191236..f215918d7
--- a/internal/provider/source_secoda_resource.go
+++ b/internal/provider/source_secoda_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceSecodaResource struct {
// SourceSecodaResourceModel describes the resource data model.
type SourceSecodaResourceModel struct {
- Configuration SourceSecoda `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceSecodaResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceSecodaResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Your API Access Key. See here. The key is case sensitive.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "secoda",
- ),
- },
- Description: `must be one of ["secoda"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceSecodaResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSecoda(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_secoda_resource_sdk.go b/internal/provider/source_secoda_resource_sdk.go
old mode 100755
new mode 100644
index fa5952a4e..a637be788
--- a/internal/provider/source_secoda_resource_sdk.go
+++ b/internal/provider/source_secoda_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceSecodaResourceModel) ToCreateSDKType() *shared.SourceSecodaCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceSecodaSecoda(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSecoda{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_sendgrid_data_source.go b/internal/provider/source_sendgrid_data_source.go
old mode 100755
new mode 100644
index 0bd9d284c..13824007f
--- a/internal/provider/source_sendgrid_data_source.go
+++ b/internal/provider/source_sendgrid_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceSendgridDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `API Key, use admin to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sendgrid",
- ),
- },
- Description: `must be one of ["sendgrid"]`,
- },
"start_time": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_sendgrid_data_source_sdk.go b/internal/provider/source_sendgrid_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sendgrid_resource.go b/internal/provider/source_sendgrid_resource.go
old mode 100755
new mode 100644
index 826043330..69e32bd67
--- a/internal/provider/source_sendgrid_resource.go
+++ b/internal/provider/source_sendgrid_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceSendgridResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `API Key, use admin to generate this key.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sendgrid",
- ),
- },
- Description: `must be one of ["sendgrid"]`,
- },
"start_time": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -147,7 +137,7 @@ func (r *SourceSendgridResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSendgrid(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sendgrid_resource_sdk.go b/internal/provider/source_sendgrid_resource_sdk.go
old mode 100755
new mode 100644
index 71c4828c6..4ba2927d0
--- a/internal/provider/source_sendgrid_resource_sdk.go
+++ b/internal/provider/source_sendgrid_resource_sdk.go
@@ -10,7 +10,6 @@ import (
func (r *SourceSendgridResourceModel) ToCreateSDKType() *shared.SourceSendgridCreateRequest {
apikey := r.Configuration.Apikey.ValueString()
- sourceType := shared.SourceSendgridSendgrid(r.Configuration.SourceType.ValueString())
startTime := new(time.Time)
if !r.Configuration.StartTime.IsUnknown() && !r.Configuration.StartTime.IsNull() {
*startTime, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartTime.ValueString())
@@ -18,9 +17,8 @@ func (r *SourceSendgridResourceModel) ToCreateSDKType() *shared.SourceSendgridCr
startTime = nil
}
configuration := shared.SourceSendgrid{
- Apikey: apikey,
- SourceType: sourceType,
- StartTime: startTime,
+ Apikey: apikey,
+ StartTime: startTime,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_sendinblue_data_source.go b/internal/provider/source_sendinblue_data_source.go
old mode 100755
new mode 100644
index 9986058fc..d45d17de8
--- a/internal/provider/source_sendinblue_data_source.go
+++ b/internal/provider/source_sendinblue_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceSendinblueDataSource struct {
// SourceSendinblueDataSourceModel describes the data model.
type SourceSendinblueDataSourceModel struct {
- Configuration SourceSendinblue `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceSendinblueDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Your API Key. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sendinblue",
- ),
- },
- Description: `must be one of ["sendinblue"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_sendinblue_data_source_sdk.go b/internal/provider/source_sendinblue_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sendinblue_resource.go b/internal/provider/source_sendinblue_resource.go
old mode 100755
new mode 100644
index ef1486f94..231788918
--- a/internal/provider/source_sendinblue_resource.go
+++ b/internal/provider/source_sendinblue_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceSendinblueResource struct {
// SourceSendinblueResourceModel describes the resource data model.
type SourceSendinblueResourceModel struct {
- Configuration SourceSendinblue `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceSendinblueResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceSendinblueResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Your API Key. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sendinblue",
- ),
- },
- Description: `must be one of ["sendinblue"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceSendinblueResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSendinblue(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sendinblue_resource_sdk.go b/internal/provider/source_sendinblue_resource_sdk.go
old mode 100755
new mode 100644
index c502faf60..4694e73e8
--- a/internal/provider/source_sendinblue_resource_sdk.go
+++ b/internal/provider/source_sendinblue_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceSendinblueResourceModel) ToCreateSDKType() *shared.SourceSendinblueCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceSendinblueSendinblue(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSendinblue{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_senseforce_data_source.go b/internal/provider/source_senseforce_data_source.go
old mode 100755
new mode 100644
index f0ba49f8c..a42b64753
--- a/internal/provider/source_senseforce_data_source.go
+++ b/internal/provider/source_senseforce_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -69,15 +68,6 @@ func (r *SourceSenseforceDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "senseforce",
- ),
- },
- Description: `must be one of ["senseforce"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_senseforce_data_source_sdk.go b/internal/provider/source_senseforce_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_senseforce_resource.go b/internal/provider/source_senseforce_resource.go
old mode 100755
new mode 100644
index 7de64fb38..e4355a078
--- a/internal/provider/source_senseforce_resource.go
+++ b/internal/provider/source_senseforce_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -71,15 +70,6 @@ func (r *SourceSenseforceResource) Schema(ctx context.Context, req resource.Sche
Optional: true,
Description: `The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "senseforce",
- ),
- },
- Description: `must be one of ["senseforce"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -159,7 +149,7 @@ func (r *SourceSenseforceResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSenseforce(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_senseforce_resource_sdk.go b/internal/provider/source_senseforce_resource_sdk.go
old mode 100755
new mode 100644
index 057bc7909..914a7bc53
--- a/internal/provider/source_senseforce_resource_sdk.go
+++ b/internal/provider/source_senseforce_resource_sdk.go
@@ -18,14 +18,12 @@ func (r *SourceSenseforceResourceModel) ToCreateSDKType() *shared.SourceSensefor
} else {
sliceRange = nil
}
- sourceType := shared.SourceSenseforceSenseforce(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceSenseforce{
AccessToken: accessToken,
BackendURL: backendURL,
DatasetID: datasetID,
SliceRange: sliceRange,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_sentry_data_source.go b/internal/provider/source_sentry_data_source.go
old mode 100755
new mode 100644
index f64c2cdb5..b58ae1b1e
--- a/internal/provider/source_sentry_data_source.go
+++ b/internal/provider/source_sentry_data_source.go
@@ -10,7 +10,6 @@ import (
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -78,15 +77,6 @@ func (r *SourceSentryDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The name (slug) of the Project you want to sync.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sentry",
- ),
- },
- Description: `must be one of ["sentry"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_sentry_data_source_sdk.go b/internal/provider/source_sentry_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sentry_resource.go b/internal/provider/source_sentry_resource.go
old mode 100755
new mode 100644
index 7052ed82b..d1835d448
--- a/internal/provider/source_sentry_resource.go
+++ b/internal/provider/source_sentry_resource.go
@@ -11,7 +11,6 @@ import (
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -80,15 +79,6 @@ func (r *SourceSentryResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `The name (slug) of the Project you want to sync.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sentry",
- ),
- },
- Description: `must be one of ["sentry"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -161,7 +151,7 @@ func (r *SourceSentryResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSentry(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sentry_resource_sdk.go b/internal/provider/source_sentry_resource_sdk.go
old mode 100755
new mode 100644
index 18c3200bc..8fc8cfbcd
--- a/internal/provider/source_sentry_resource_sdk.go
+++ b/internal/provider/source_sentry_resource_sdk.go
@@ -24,14 +24,12 @@ func (r *SourceSentryResourceModel) ToCreateSDKType() *shared.SourceSentryCreate
}
organization := r.Configuration.Organization.ValueString()
project := r.Configuration.Project.ValueString()
- sourceType := shared.SourceSentrySentry(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSentry{
AuthToken: authToken,
DiscoverFields: discoverFields,
Hostname: hostname,
Organization: organization,
Project: project,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_sftp_data_source.go b/internal/provider/source_sftp_data_source.go
old mode 100755
new mode 100644
index 946f72d15..e8dd29dff
--- a/internal/provider/source_sftp_data_source.go
+++ b/internal/provider/source_sftp_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -59,16 +58,6 @@ func (r *SourceSftpDataSource) Schema(ctx context.Context, req datasource.Schema
"source_sftp_authentication_wildcard_password_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through password authentication`,
- },
"auth_user_password": schema.StringAttribute{
Computed: true,
Description: `OS-level password for logging into the jump server host`,
@@ -79,16 +68,6 @@ func (r *SourceSftpDataSource) Schema(ctx context.Context, req datasource.Schema
"source_sftp_authentication_wildcard_ssh_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through ssh key`,
- },
"auth_ssh_key": schema.StringAttribute{
Computed: true,
Description: `OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )`,
@@ -99,16 +78,6 @@ func (r *SourceSftpDataSource) Schema(ctx context.Context, req datasource.Schema
"source_sftp_update_authentication_wildcard_password_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through password authentication`,
- },
"auth_user_password": schema.StringAttribute{
Computed: true,
Description: `OS-level password for logging into the jump server host`,
@@ -119,16 +88,6 @@ func (r *SourceSftpDataSource) Schema(ctx context.Context, req datasource.Schema
"source_sftp_update_authentication_wildcard_ssh_key_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through ssh key`,
- },
"auth_ssh_key": schema.StringAttribute{
Computed: true,
Description: `OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )`,
@@ -162,15 +121,6 @@ func (r *SourceSftpDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `The server port`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp",
- ),
- },
- Description: `must be one of ["sftp"]`,
- },
"user": schema.StringAttribute{
Computed: true,
Description: `The server user`,
diff --git a/internal/provider/source_sftp_data_source_sdk.go b/internal/provider/source_sftp_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sftp_resource.go b/internal/provider/source_sftp_resource.go
old mode 100755
new mode 100644
index e7b0900f0..52b3ad2d4
--- a/internal/provider/source_sftp_resource.go
+++ b/internal/provider/source_sftp_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,16 +60,6 @@ func (r *SourceSftpResource) Schema(ctx context.Context, req resource.SchemaRequ
"source_sftp_authentication_wildcard_password_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through password authentication`,
- },
"auth_user_password": schema.StringAttribute{
Required: true,
Description: `OS-level password for logging into the jump server host`,
@@ -81,16 +70,6 @@ func (r *SourceSftpResource) Schema(ctx context.Context, req resource.SchemaRequ
"source_sftp_authentication_wildcard_ssh_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through ssh key`,
- },
"auth_ssh_key": schema.StringAttribute{
Required: true,
Description: `OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )`,
@@ -101,16 +80,6 @@ func (r *SourceSftpResource) Schema(ctx context.Context, req resource.SchemaRequ
"source_sftp_update_authentication_wildcard_password_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_PASSWORD_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_PASSWORD_AUTH"]` + "\n" +
- `Connect through password authentication`,
- },
"auth_user_password": schema.StringAttribute{
Required: true,
Description: `OS-level password for logging into the jump server host`,
@@ -121,16 +90,6 @@ func (r *SourceSftpResource) Schema(ctx context.Context, req resource.SchemaRequ
"source_sftp_update_authentication_wildcard_ssh_key_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "SSH_KEY_AUTH",
- ),
- },
- MarkdownDescription: `must be one of ["SSH_KEY_AUTH"]` + "\n" +
- `Connect through ssh key`,
- },
"auth_ssh_key": schema.StringAttribute{
Required: true,
Description: `OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )`,
@@ -161,18 +120,9 @@ func (r *SourceSftpResource) Schema(ctx context.Context, req resource.SchemaRequ
Description: `The server host address`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The server port`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp",
- ),
- },
- Description: `must be one of ["sftp"]`,
- },
"user": schema.StringAttribute{
Required: true,
Description: `The server user`,
@@ -249,7 +199,7 @@ func (r *SourceSftpResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSftp(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sftp_resource_sdk.go b/internal/provider/source_sftp_resource_sdk.go
old mode 100755
new mode 100644
index ba7dd0596..f3a671b2e
--- a/internal/provider/source_sftp_resource_sdk.go
+++ b/internal/provider/source_sftp_resource_sdk.go
@@ -12,10 +12,8 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ
if r.Configuration.Credentials != nil {
var sourceSftpAuthenticationWildcardPasswordAuthentication *shared.SourceSftpAuthenticationWildcardPasswordAuthentication
if r.Configuration.Credentials.SourceSftpAuthenticationWildcardPasswordAuthentication != nil {
- authMethod := shared.SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod(r.Configuration.Credentials.SourceSftpAuthenticationWildcardPasswordAuthentication.AuthMethod.ValueString())
authUserPassword := r.Configuration.Credentials.SourceSftpAuthenticationWildcardPasswordAuthentication.AuthUserPassword.ValueString()
sourceSftpAuthenticationWildcardPasswordAuthentication = &shared.SourceSftpAuthenticationWildcardPasswordAuthentication{
- AuthMethod: authMethod,
AuthUserPassword: authUserPassword,
}
}
@@ -26,10 +24,8 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ
}
var sourceSftpAuthenticationWildcardSSHKeyAuthentication *shared.SourceSftpAuthenticationWildcardSSHKeyAuthentication
if r.Configuration.Credentials.SourceSftpAuthenticationWildcardSSHKeyAuthentication != nil {
- authMethod1 := shared.SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethod(r.Configuration.Credentials.SourceSftpAuthenticationWildcardSSHKeyAuthentication.AuthMethod.ValueString())
authSSHKey := r.Configuration.Credentials.SourceSftpAuthenticationWildcardSSHKeyAuthentication.AuthSSHKey.ValueString()
sourceSftpAuthenticationWildcardSSHKeyAuthentication = &shared.SourceSftpAuthenticationWildcardSSHKeyAuthentication{
- AuthMethod: authMethod1,
AuthSSHKey: authSSHKey,
}
}
@@ -58,8 +54,12 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ
folderPath = nil
}
host := r.Configuration.Host.ValueString()
- port := r.Configuration.Port.ValueInt64()
- sourceType := shared.SourceSftpSftp(r.Configuration.SourceType.ValueString())
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
user := r.Configuration.User.ValueString()
configuration := shared.SourceSftp{
Credentials: credentials,
@@ -68,7 +68,6 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ
FolderPath: folderPath,
Host: host,
Port: port,
- SourceType: sourceType,
User: user,
}
name := r.Name.ValueString()
@@ -98,10 +97,8 @@ func (r *SourceSftpResourceModel) ToUpdateSDKType() *shared.SourceSftpPutRequest
if r.Configuration.Credentials != nil {
var sourceSftpUpdateAuthenticationWildcardPasswordAuthentication *shared.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication
if r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication != nil {
- authMethod := shared.SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod(r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication.AuthMethod.ValueString())
authUserPassword := r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication.AuthUserPassword.ValueString()
sourceSftpUpdateAuthenticationWildcardPasswordAuthentication = &shared.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication{
- AuthMethod: authMethod,
AuthUserPassword: authUserPassword,
}
}
@@ -112,10 +109,8 @@ func (r *SourceSftpResourceModel) ToUpdateSDKType() *shared.SourceSftpPutRequest
}
var sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication *shared.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication
if r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication != nil {
- authMethod1 := shared.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethod(r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication.AuthMethod.ValueString())
authSSHKey := r.Configuration.Credentials.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication.AuthSSHKey.ValueString()
sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication = &shared.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication{
- AuthMethod: authMethod1,
AuthSSHKey: authSSHKey,
}
}
@@ -144,7 +139,12 @@ func (r *SourceSftpResourceModel) ToUpdateSDKType() *shared.SourceSftpPutRequest
folderPath = nil
}
host := r.Configuration.Host.ValueString()
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
user := r.Configuration.User.ValueString()
configuration := shared.SourceSftpUpdate{
Credentials: credentials,
diff --git a/internal/provider/source_sftpbulk_data_source.go b/internal/provider/source_sftpbulk_data_source.go
old mode 100755
new mode 100644
index 0c1a9c7b7..a6eb05cb8
--- a/internal/provider/source_sftpbulk_data_source.go
+++ b/internal/provider/source_sftpbulk_data_source.go
@@ -96,15 +96,6 @@ func (r *SourceSftpBulkDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The separator used in the CSV files. Define None if you want to use the Sniffer functionality`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp-bulk",
- ),
- },
- Description: `must be one of ["sftp-bulk"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_sftpbulk_data_source_sdk.go b/internal/provider/source_sftpbulk_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sftpbulk_resource.go b/internal/provider/source_sftpbulk_resource.go
old mode 100755
new mode 100644
index 275cc5ce9..34fffeb22
--- a/internal/provider/source_sftpbulk_resource.go
+++ b/internal/provider/source_sftpbulk_resource.go
@@ -75,7 +75,7 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema
`The file type you want to sync. Currently only 'csv' and 'json' files are supported.`,
},
"folder_path": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `The directory to search files for sync`,
},
"host": schema.StringAttribute{
@@ -87,7 +87,7 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema
Description: `OS-level password for logging into the jump server host`,
},
"port": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `The server port`,
},
"private_key": schema.StringAttribute{
@@ -98,15 +98,6 @@ func (r *SourceSftpBulkResource) Schema(ctx context.Context, req resource.Schema
Optional: true,
Description: `The separator used in the CSV files. Define None if you want to use the Sniffer functionality`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sftp-bulk",
- ),
- },
- Description: `must be one of ["sftp-bulk"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -194,7 +185,7 @@ func (r *SourceSftpBulkResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSftpBulk(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sftpbulk_resource_sdk.go b/internal/provider/source_sftpbulk_resource_sdk.go
old mode 100755
new mode 100644
index f28224df8..c5115d79d
--- a/internal/provider/source_sftpbulk_resource_sdk.go
+++ b/internal/provider/source_sftpbulk_resource_sdk.go
@@ -27,7 +27,12 @@ func (r *SourceSftpBulkResourceModel) ToCreateSDKType() *shared.SourceSftpBulkCr
} else {
fileType = nil
}
- folderPath := r.Configuration.FolderPath.ValueString()
+ folderPath := new(string)
+ if !r.Configuration.FolderPath.IsUnknown() && !r.Configuration.FolderPath.IsNull() {
+ *folderPath = r.Configuration.FolderPath.ValueString()
+ } else {
+ folderPath = nil
+ }
host := r.Configuration.Host.ValueString()
password := new(string)
if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() {
@@ -35,7 +40,12 @@ func (r *SourceSftpBulkResourceModel) ToCreateSDKType() *shared.SourceSftpBulkCr
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
privateKey := new(string)
if !r.Configuration.PrivateKey.IsUnknown() && !r.Configuration.PrivateKey.IsNull() {
*privateKey = r.Configuration.PrivateKey.ValueString()
@@ -48,7 +58,6 @@ func (r *SourceSftpBulkResourceModel) ToCreateSDKType() *shared.SourceSftpBulkCr
} else {
separator = nil
}
- sourceType := shared.SourceSftpBulkSftpBulk(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
streamName := r.Configuration.StreamName.ValueString()
username := r.Configuration.Username.ValueString()
@@ -62,7 +71,6 @@ func (r *SourceSftpBulkResourceModel) ToCreateSDKType() *shared.SourceSftpBulkCr
Port: port,
PrivateKey: privateKey,
Separator: separator,
- SourceType: sourceType,
StartDate: startDate,
StreamName: streamName,
Username: username,
@@ -108,7 +116,12 @@ func (r *SourceSftpBulkResourceModel) ToUpdateSDKType() *shared.SourceSftpBulkPu
} else {
fileType = nil
}
- folderPath := r.Configuration.FolderPath.ValueString()
+ folderPath := new(string)
+ if !r.Configuration.FolderPath.IsUnknown() && !r.Configuration.FolderPath.IsNull() {
+ *folderPath = r.Configuration.FolderPath.ValueString()
+ } else {
+ folderPath = nil
+ }
host := r.Configuration.Host.ValueString()
password := new(string)
if !r.Configuration.Password.IsUnknown() && !r.Configuration.Password.IsNull() {
@@ -116,7 +129,12 @@ func (r *SourceSftpBulkResourceModel) ToUpdateSDKType() *shared.SourceSftpBulkPu
} else {
password = nil
}
- port := r.Configuration.Port.ValueInt64()
+ port := new(int64)
+ if !r.Configuration.Port.IsUnknown() && !r.Configuration.Port.IsNull() {
+ *port = r.Configuration.Port.ValueInt64()
+ } else {
+ port = nil
+ }
privateKey := new(string)
if !r.Configuration.PrivateKey.IsUnknown() && !r.Configuration.PrivateKey.IsNull() {
*privateKey = r.Configuration.PrivateKey.ValueString()
diff --git a/internal/provider/source_shopify_data_source.go b/internal/provider/source_shopify_data_source.go
old mode 100755
new mode 100644
index 8982016a2..0002bb2d3
--- a/internal/provider/source_shopify_data_source.go
+++ b/internal/provider/source_shopify_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceShopifyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The API Password for your private application in the ` + "`" + `Shopify` + "`" + ` store.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_password",
- ),
- },
- Description: `must be one of ["api_password"]`,
- },
},
Description: `API Password Auth`,
},
@@ -82,15 +72,6 @@ func (r *SourceShopifyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of the Shopify developer application.`,
@@ -109,15 +90,6 @@ func (r *SourceShopifyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The API Password for your private application in the ` + "`" + `Shopify` + "`" + ` store.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_password",
- ),
- },
- Description: `must be one of ["api_password"]`,
- },
},
Description: `API Password Auth`,
},
@@ -128,15 +100,6 @@ func (r *SourceShopifyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of the Shopify developer application.`,
@@ -158,15 +121,6 @@ func (r *SourceShopifyDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "shopify",
- ),
- },
- Description: `must be one of ["shopify"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_shopify_data_source_sdk.go b/internal/provider/source_shopify_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_shopify_resource.go b/internal/provider/source_shopify_resource.go
old mode 100755
new mode 100644
index fe63a8404..bb9d35487
--- a/internal/provider/source_shopify_resource.go
+++ b/internal/provider/source_shopify_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The API Password for your private application in the ` + "`" + `Shopify` + "`" + ` store.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_password",
- ),
- },
- Description: `must be one of ["api_password"]`,
- },
},
Description: `API Password Auth`,
},
@@ -84,15 +74,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `The Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of the Shopify developer application.`,
@@ -111,15 +92,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The API Password for your private application in the ` + "`" + `Shopify` + "`" + ` store.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_password",
- ),
- },
- Description: `must be one of ["api_password"]`,
- },
},
Description: `API Password Auth`,
},
@@ -130,15 +102,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `The Access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of the Shopify developer application.`,
@@ -160,15 +123,6 @@ func (r *SourceShopifyResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "shopify",
- ),
- },
- Description: `must be one of ["shopify"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -248,7 +202,7 @@ func (r *SourceShopifyResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceShopify(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_shopify_resource_sdk.go b/internal/provider/source_shopify_resource_sdk.go
old mode 100755
new mode 100644
index 207b452f8..e29d5b25d
--- a/internal/provider/source_shopify_resource_sdk.go
+++ b/internal/provider/source_shopify_resource_sdk.go
@@ -19,7 +19,6 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea
} else {
accessToken = nil
}
- authMethod := shared.SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -34,7 +33,6 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea
}
sourceShopifyShopifyAuthorizationMethodOAuth20 = &shared.SourceShopifyShopifyAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -47,10 +45,8 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea
var sourceShopifyShopifyAuthorizationMethodAPIPassword *shared.SourceShopifyShopifyAuthorizationMethodAPIPassword
if r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodAPIPassword != nil {
apiPassword := r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodAPIPassword.APIPassword.ValueString()
- authMethod1 := shared.SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethod(r.Configuration.Credentials.SourceShopifyShopifyAuthorizationMethodAPIPassword.AuthMethod.ValueString())
sourceShopifyShopifyAuthorizationMethodAPIPassword = &shared.SourceShopifyShopifyAuthorizationMethodAPIPassword{
APIPassword: apiPassword,
- AuthMethod: authMethod1,
}
}
if sourceShopifyShopifyAuthorizationMethodAPIPassword != nil {
@@ -60,7 +56,6 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea
}
}
shop := r.Configuration.Shop.ValueString()
- sourceType := shared.SourceShopifyShopify(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -70,7 +65,6 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea
configuration := shared.SourceShopify{
Credentials: credentials,
Shop: shop,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -106,7 +100,6 @@ func (r *SourceShopifyResourceModel) ToUpdateSDKType() *shared.SourceShopifyPutR
} else {
accessToken = nil
}
- authMethod := shared.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20.ClientID.ValueString()
@@ -121,7 +114,6 @@ func (r *SourceShopifyResourceModel) ToUpdateSDKType() *shared.SourceShopifyPutR
}
sourceShopifyUpdateShopifyAuthorizationMethodOAuth20 = &shared.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -134,10 +126,8 @@ func (r *SourceShopifyResourceModel) ToUpdateSDKType() *shared.SourceShopifyPutR
var sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword *shared.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword
if r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword != nil {
apiPassword := r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword.APIPassword.ValueString()
- authMethod1 := shared.SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethod(r.Configuration.Credentials.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword.AuthMethod.ValueString())
sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword = &shared.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword{
APIPassword: apiPassword,
- AuthMethod: authMethod1,
}
}
if sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword != nil {
diff --git a/internal/provider/source_shortio_data_source.go b/internal/provider/source_shortio_data_source.go
old mode 100755
new mode 100644
index 51feea4bf..56cc7e909
--- a/internal/provider/source_shortio_data_source.go
+++ b/internal/provider/source_shortio_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -59,15 +57,6 @@ func (r *SourceShortioDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Short.io Secret Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "shortio",
- ),
- },
- Description: `must be one of ["shortio"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
diff --git a/internal/provider/source_shortio_data_source_sdk.go b/internal/provider/source_shortio_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_shortio_resource.go b/internal/provider/source_shortio_resource.go
old mode 100755
new mode 100644
index 6018e6d97..7f484c863
--- a/internal/provider/source_shortio_resource.go
+++ b/internal/provider/source_shortio_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *SourceShortioResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Short.io Secret Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "shortio",
- ),
- },
- Description: `must be one of ["shortio"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.`,
@@ -146,7 +135,7 @@ func (r *SourceShortioResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceShortio(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_shortio_resource_sdk.go b/internal/provider/source_shortio_resource_sdk.go
old mode 100755
new mode 100644
index 06a0ecc42..801d5a466
--- a/internal/provider/source_shortio_resource_sdk.go
+++ b/internal/provider/source_shortio_resource_sdk.go
@@ -10,13 +10,11 @@ import (
func (r *SourceShortioResourceModel) ToCreateSDKType() *shared.SourceShortioCreateRequest {
domainID := r.Configuration.DomainID.ValueString()
secretKey := r.Configuration.SecretKey.ValueString()
- sourceType := shared.SourceShortioShortio(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceShortio{
- DomainID: domainID,
- SecretKey: secretKey,
- SourceType: sourceType,
- StartDate: startDate,
+ DomainID: domainID,
+ SecretKey: secretKey,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_slack_data_source.go b/internal/provider/source_slack_data_source.go
old mode 100755
new mode 100644
index 0bbf6aa12..bf1ed953c
--- a/internal/provider/source_slack_data_source.go
+++ b/internal/provider/source_slack_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -68,15 +67,6 @@ func (r *SourceSlackDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `A Slack bot token. See the docs for instructions on how to generate it.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Token Credentials",
- ),
- },
- Description: `must be one of ["API Token Credentials"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -95,15 +85,6 @@ func (r *SourceSlackDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Slack client_secret. See our docs if you need help finding this secret.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Default OAuth2.0 authorization",
- ),
- },
- Description: `must be one of ["Default OAuth2.0 authorization"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -114,15 +95,6 @@ func (r *SourceSlackDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `A Slack bot token. See the docs for instructions on how to generate it.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Token Credentials",
- ),
- },
- Description: `must be one of ["API Token Credentials"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -141,15 +113,6 @@ func (r *SourceSlackDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Slack client_secret. See our docs if you need help finding this secret.`,
},
- "option_title": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Default OAuth2.0 authorization",
- ),
- },
- Description: `must be one of ["Default OAuth2.0 authorization"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -167,15 +130,6 @@ func (r *SourceSlackDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `How far into the past to look for messages in threads, default is 0 days`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "slack",
- ),
- },
- Description: `must be one of ["slack"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_slack_data_source_sdk.go b/internal/provider/source_slack_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_slack_resource.go b/internal/provider/source_slack_resource.go
old mode 100755
new mode 100644
index f4a8caea6..2429f6fca
--- a/internal/provider/source_slack_resource.go
+++ b/internal/provider/source_slack_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -70,15 +69,6 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `A Slack bot token. See the docs for instructions on how to generate it.`,
},
- "option_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Token Credentials",
- ),
- },
- Description: `must be one of ["API Token Credentials"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -97,15 +87,6 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Slack client_secret. See our docs if you need help finding this secret.`,
},
- "option_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Default OAuth2.0 authorization",
- ),
- },
- Description: `must be one of ["Default OAuth2.0 authorization"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -116,15 +97,6 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `A Slack bot token. See the docs for instructions on how to generate it.`,
},
- "option_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Token Credentials",
- ),
- },
- Description: `must be one of ["API Token Credentials"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -143,15 +115,6 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Slack client_secret. See our docs if you need help finding this secret.`,
},
- "option_title": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Default OAuth2.0 authorization",
- ),
- },
- Description: `must be one of ["Default OAuth2.0 authorization"]`,
- },
},
Description: `Choose how to authenticate into Slack`,
},
@@ -162,22 +125,13 @@ func (r *SourceSlackResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Choose how to authenticate into Slack`,
},
"join_channels": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. `,
},
"lookback_window": schema.Int64Attribute{
- Required: true,
+ Optional: true,
Description: `How far into the past to look for messages in threads, default is 0 days`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "slack",
- ),
- },
- Description: `must be one of ["slack"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -257,7 +211,7 @@ func (r *SourceSlackResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSlack(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_slack_resource_sdk.go b/internal/provider/source_slack_resource_sdk.go
old mode 100755
new mode 100644
index 780e8437e..5c79d72e2
--- a/internal/provider/source_slack_resource_sdk.go
+++ b/internal/provider/source_slack_resource_sdk.go
@@ -20,12 +20,10 @@ func (r *SourceSlackResourceModel) ToCreateSDKType() *shared.SourceSlackCreateRe
accessToken := r.Configuration.Credentials.SourceSlackAuthenticationMechanismSignInViaSlackOAuth.AccessToken.ValueString()
clientID := r.Configuration.Credentials.SourceSlackAuthenticationMechanismSignInViaSlackOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSlackAuthenticationMechanismSignInViaSlackOAuth.ClientSecret.ValueString()
- optionTitle := shared.SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitle(r.Configuration.Credentials.SourceSlackAuthenticationMechanismSignInViaSlackOAuth.OptionTitle.ValueString())
sourceSlackAuthenticationMechanismSignInViaSlackOAuth = &shared.SourceSlackAuthenticationMechanismSignInViaSlackOAuth{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
}
}
if sourceSlackAuthenticationMechanismSignInViaSlackOAuth != nil {
@@ -36,10 +34,8 @@ func (r *SourceSlackResourceModel) ToCreateSDKType() *shared.SourceSlackCreateRe
var sourceSlackAuthenticationMechanismAPIToken *shared.SourceSlackAuthenticationMechanismAPIToken
if r.Configuration.Credentials.SourceSlackAuthenticationMechanismAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceSlackAuthenticationMechanismAPIToken.APIToken.ValueString()
- optionTitle1 := shared.SourceSlackAuthenticationMechanismAPITokenOptionTitle(r.Configuration.Credentials.SourceSlackAuthenticationMechanismAPIToken.OptionTitle.ValueString())
sourceSlackAuthenticationMechanismAPIToken = &shared.SourceSlackAuthenticationMechanismAPIToken{
- APIToken: apiToken,
- OptionTitle: optionTitle1,
+ APIToken: apiToken,
}
}
if sourceSlackAuthenticationMechanismAPIToken != nil {
@@ -48,16 +44,24 @@ func (r *SourceSlackResourceModel) ToCreateSDKType() *shared.SourceSlackCreateRe
}
}
}
- joinChannels := r.Configuration.JoinChannels.ValueBool()
- lookbackWindow := r.Configuration.LookbackWindow.ValueInt64()
- sourceType := shared.SourceSlackSlack(r.Configuration.SourceType.ValueString())
+ joinChannels := new(bool)
+ if !r.Configuration.JoinChannels.IsUnknown() && !r.Configuration.JoinChannels.IsNull() {
+ *joinChannels = r.Configuration.JoinChannels.ValueBool()
+ } else {
+ joinChannels = nil
+ }
+ lookbackWindow := new(int64)
+ if !r.Configuration.LookbackWindow.IsUnknown() && !r.Configuration.LookbackWindow.IsNull() {
+ *lookbackWindow = r.Configuration.LookbackWindow.ValueInt64()
+ } else {
+ lookbackWindow = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceSlack{
ChannelFilter: channelFilter,
Credentials: credentials,
JoinChannels: joinChannels,
LookbackWindow: lookbackWindow,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -94,12 +98,10 @@ func (r *SourceSlackResourceModel) ToUpdateSDKType() *shared.SourceSlackPutReque
accessToken := r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth.AccessToken.ValueString()
clientID := r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth.ClientSecret.ValueString()
- optionTitle := shared.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitle(r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth.OptionTitle.ValueString())
sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth = &shared.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth{
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- OptionTitle: optionTitle,
}
}
if sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth != nil {
@@ -110,10 +112,8 @@ func (r *SourceSlackResourceModel) ToUpdateSDKType() *shared.SourceSlackPutReque
var sourceSlackUpdateAuthenticationMechanismAPIToken *shared.SourceSlackUpdateAuthenticationMechanismAPIToken
if r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismAPIToken.APIToken.ValueString()
- optionTitle1 := shared.SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitle(r.Configuration.Credentials.SourceSlackUpdateAuthenticationMechanismAPIToken.OptionTitle.ValueString())
sourceSlackUpdateAuthenticationMechanismAPIToken = &shared.SourceSlackUpdateAuthenticationMechanismAPIToken{
- APIToken: apiToken,
- OptionTitle: optionTitle1,
+ APIToken: apiToken,
}
}
if sourceSlackUpdateAuthenticationMechanismAPIToken != nil {
@@ -122,8 +122,18 @@ func (r *SourceSlackResourceModel) ToUpdateSDKType() *shared.SourceSlackPutReque
}
}
}
- joinChannels := r.Configuration.JoinChannels.ValueBool()
- lookbackWindow := r.Configuration.LookbackWindow.ValueInt64()
+ joinChannels := new(bool)
+ if !r.Configuration.JoinChannels.IsUnknown() && !r.Configuration.JoinChannels.IsNull() {
+ *joinChannels = r.Configuration.JoinChannels.ValueBool()
+ } else {
+ joinChannels = nil
+ }
+ lookbackWindow := new(int64)
+ if !r.Configuration.LookbackWindow.IsUnknown() && !r.Configuration.LookbackWindow.IsNull() {
+ *lookbackWindow = r.Configuration.LookbackWindow.ValueInt64()
+ } else {
+ lookbackWindow = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceSlackUpdate{
ChannelFilter: channelFilter,
diff --git a/internal/provider/source_smaily_data_source.go b/internal/provider/source_smaily_data_source.go
old mode 100755
new mode 100644
index 9e707f7bb..ce28e07ef
--- a/internal/provider/source_smaily_data_source.go
+++ b/internal/provider/source_smaily_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceSmailyDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `API user username. See https://smaily.com/help/api/general/create-api-user/`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smaily",
- ),
- },
- Description: `must be one of ["smaily"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_smaily_data_source_sdk.go b/internal/provider/source_smaily_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_smaily_resource.go b/internal/provider/source_smaily_resource.go
old mode 100755
new mode 100644
index 9f1625d70..f462ea224
--- a/internal/provider/source_smaily_resource.go
+++ b/internal/provider/source_smaily_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceSmailyResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `API user username. See https://smaily.com/help/api/general/create-api-user/`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smaily",
- ),
- },
- Description: `must be one of ["smaily"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceSmailyResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSmaily(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_smaily_resource_sdk.go b/internal/provider/source_smaily_resource_sdk.go
old mode 100755
new mode 100644
index d4f5ac0d0..b73a93c7c
--- a/internal/provider/source_smaily_resource_sdk.go
+++ b/internal/provider/source_smaily_resource_sdk.go
@@ -11,12 +11,10 @@ func (r *SourceSmailyResourceModel) ToCreateSDKType() *shared.SourceSmailyCreate
apiPassword := r.Configuration.APIPassword.ValueString()
apiSubdomain := r.Configuration.APISubdomain.ValueString()
apiUsername := r.Configuration.APIUsername.ValueString()
- sourceType := shared.SourceSmailySmaily(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSmaily{
APIPassword: apiPassword,
APISubdomain: apiSubdomain,
APIUsername: apiUsername,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_smartengage_data_source.go b/internal/provider/source_smartengage_data_source.go
old mode 100755
new mode 100644
index 41828403f..fa909c8de
--- a/internal/provider/source_smartengage_data_source.go
+++ b/internal/provider/source_smartengage_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceSmartengageDataSource struct {
// SourceSmartengageDataSourceModel describes the data model.
type SourceSmartengageDataSourceModel struct {
- Configuration SourceSmartengage `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceSmartengageDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smartengage",
- ),
- },
- Description: `must be one of ["smartengage"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_smartengage_data_source_sdk.go b/internal/provider/source_smartengage_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_smartengage_resource.go b/internal/provider/source_smartengage_resource.go
old mode 100755
new mode 100644
index 412b9f15b..b1d162627
--- a/internal/provider/source_smartengage_resource.go
+++ b/internal/provider/source_smartengage_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceSmartengageResource struct {
// SourceSmartengageResourceModel describes the resource data model.
type SourceSmartengageResourceModel struct {
- Configuration SourceSmartengage `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceEmailoctopus `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceSmartengageResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceSmartengageResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `API Key`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smartengage",
- ),
- },
- Description: `must be one of ["smartengage"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceSmartengageResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSmartengage(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_smartengage_resource_sdk.go b/internal/provider/source_smartengage_resource_sdk.go
old mode 100755
new mode 100644
index 0a0baa205..5f226eec3
--- a/internal/provider/source_smartengage_resource_sdk.go
+++ b/internal/provider/source_smartengage_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceSmartengageResourceModel) ToCreateSDKType() *shared.SourceSmartengageCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
- sourceType := shared.SourceSmartengageSmartengage(r.Configuration.SourceType.ValueString())
configuration := shared.SourceSmartengage{
- APIKey: apiKey,
- SourceType: sourceType,
+ APIKey: apiKey,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_smartsheets_data_source.go b/internal/provider/source_smartsheets_data_source.go
old mode 100755
new mode 100644
index 2eb7b95b1..52ef753c7
--- a/internal/provider/source_smartsheets_data_source.go
+++ b/internal/provider/source_smartsheets_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceSmartsheetsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_smartsheets_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -81,15 +71,6 @@ func (r *SourceSmartsheetsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API ID of the SmartSheets developer application.`,
@@ -118,15 +99,6 @@ func (r *SourceSmartsheetsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_smartsheets_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -136,15 +108,6 @@ func (r *SourceSmartsheetsDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API ID of the SmartSheets developer application.`,
@@ -176,15 +139,6 @@ func (r *SourceSmartsheetsDataSource) Schema(ctx context.Context, req datasource
ElementType: types.StringType,
Description: `A List of available columns which metadata can be pulled from.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smartsheets",
- ),
- },
- Description: `must be one of ["smartsheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Computed: true,
Description: `The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties`,
diff --git a/internal/provider/source_smartsheets_data_source_sdk.go b/internal/provider/source_smartsheets_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_smartsheets_resource.go b/internal/provider/source_smartsheets_resource.go
old mode 100755
new mode 100644
index bba00fd20..c1f95bc91
--- a/internal/provider/source_smartsheets_resource.go
+++ b/internal/provider/source_smartsheets_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_smartsheets_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -83,15 +73,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API ID of the SmartSheets developer application.`,
@@ -120,15 +101,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_smartsheets_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -138,15 +110,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API ID of the SmartSheets developer application.`,
@@ -178,15 +141,6 @@ func (r *SourceSmartsheetsResource) Schema(ctx context.Context, req resource.Sch
ElementType: types.StringType,
Description: `A List of available columns which metadata can be pulled from.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "smartsheets",
- ),
- },
- Description: `must be one of ["smartsheets"]`,
- },
"spreadsheet_id": schema.StringAttribute{
Required: true,
Description: `The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties`,
@@ -270,7 +224,7 @@ func (r *SourceSmartsheetsResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSmartsheets(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_smartsheets_resource_sdk.go b/internal/provider/source_smartsheets_resource_sdk.go
old mode 100755
new mode 100644
index 2321feb00..f3d1a7239
--- a/internal/provider/source_smartsheets_resource_sdk.go
+++ b/internal/provider/source_smartsheets_resource_sdk.go
@@ -13,19 +13,12 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh
var sourceSmartsheetsAuthorizationMethodOAuth20 *shared.SourceSmartsheetsAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceSmartsheetsAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceSmartsheetsAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceSmartsheetsAuthorizationMethodOAuth20 = &shared.SourceSmartsheetsAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -40,15 +33,8 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh
var sourceSmartsheetsAuthorizationMethodAPIAccessToken *shared.SourceSmartsheetsAuthorizationMethodAPIAccessToken
if r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodAPIAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodAPIAccessToken.AccessToken.ValueString()
- authType1 := new(shared.SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodAPIAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodAPIAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType(r.Configuration.Credentials.SourceSmartsheetsAuthorizationMethodAPIAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceSmartsheetsAuthorizationMethodAPIAccessToken = &shared.SourceSmartsheetsAuthorizationMethodAPIAccessToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceSmartsheetsAuthorizationMethodAPIAccessToken != nil {
@@ -60,7 +46,6 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh
for _, metadataFieldsItem := range r.Configuration.MetadataFields {
metadataFields = append(metadataFields, shared.SourceSmartsheetsValidenums(metadataFieldsItem.ValueString()))
}
- sourceType := shared.SourceSmartsheetsSmartsheets(r.Configuration.SourceType.ValueString())
spreadsheetID := r.Configuration.SpreadsheetID.ValueString()
startDatetime := new(time.Time)
if !r.Configuration.StartDatetime.IsUnknown() && !r.Configuration.StartDatetime.IsNull() {
@@ -71,7 +56,6 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh
configuration := shared.SourceSmartsheets{
Credentials: credentials,
MetadataFields: metadataFields,
- SourceType: sourceType,
SpreadsheetID: spreadsheetID,
StartDatetime: startDatetime,
}
@@ -102,19 +86,12 @@ func (r *SourceSmartsheetsResourceModel) ToUpdateSDKType() *shared.SourceSmartsh
var sourceSmartsheetsUpdateAuthorizationMethodOAuth20 *shared.SourceSmartsheetsUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceSmartsheetsUpdateAuthorizationMethodOAuth20 = &shared.SourceSmartsheetsUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -129,15 +106,8 @@ func (r *SourceSmartsheetsResourceModel) ToUpdateSDKType() *shared.SourceSmartsh
var sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken *shared.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken
if r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken.AccessToken.ValueString()
- authType1 := new(shared.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType(r.Configuration.Credentials.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken = &shared.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken != nil {
diff --git a/internal/provider/source_snapchatmarketing_data_source.go b/internal/provider/source_snapchatmarketing_data_source.go
old mode 100755
new mode 100644
index ff6c5d09e..1f9fc5477
--- a/internal/provider/source_snapchatmarketing_data_source.go
+++ b/internal/provider/source_snapchatmarketing_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -72,15 +71,6 @@ func (r *SourceSnapchatMarketingDataSource) Schema(ctx context.Context, req data
Computed: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snapchat-marketing",
- ),
- },
- Description: `must be one of ["snapchat-marketing"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_snapchatmarketing_data_source_sdk.go b/internal/provider/source_snapchatmarketing_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_snapchatmarketing_resource.go b/internal/provider/source_snapchatmarketing_resource.go
old mode 100755
new mode 100644
index 15d5a5409..11c83da09
--- a/internal/provider/source_snapchatmarketing_resource.go
+++ b/internal/provider/source_snapchatmarketing_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -74,15 +73,6 @@ func (r *SourceSnapchatMarketingResource) Schema(ctx context.Context, req resour
Required: true,
Description: `Refresh Token to renew the expired Access Token.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snapchat-marketing",
- ),
- },
- Description: `must be one of ["snapchat-marketing"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -162,7 +152,7 @@ func (r *SourceSnapchatMarketingResource) Create(ctx context.Context, req resour
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSnapchatMarketing(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_snapchatmarketing_resource_sdk.go b/internal/provider/source_snapchatmarketing_resource_sdk.go
old mode 100755
new mode 100644
index d1c3b99d6..f8751cafe
--- a/internal/provider/source_snapchatmarketing_resource_sdk.go
+++ b/internal/provider/source_snapchatmarketing_resource_sdk.go
@@ -18,7 +18,6 @@ func (r *SourceSnapchatMarketingResourceModel) ToCreateSDKType() *shared.SourceS
endDate = nil
}
refreshToken := r.Configuration.RefreshToken.ValueString()
- sourceType := shared.SourceSnapchatMarketingSnapchatMarketing(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -30,7 +29,6 @@ func (r *SourceSnapchatMarketingResourceModel) ToCreateSDKType() *shared.SourceS
ClientSecret: clientSecret,
EndDate: endDate,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_snowflake_data_source.go b/internal/provider/source_snowflake_data_source.go
old mode 100755
new mode 100644
index 72ca9a2a2..28c8bc246
--- a/internal/provider/source_snowflake_data_source.go
+++ b/internal/provider/source_snowflake_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceSnowflakeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Snowflake developer application.`,
@@ -89,15 +79,6 @@ func (r *SourceSnowflakeDataSource) Schema(ctx context.Context, req datasource.S
"source_snowflake_authorization_method_username_and_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username/password",
- ),
- },
- Description: `must be one of ["username/password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `The password associated with the username.`,
@@ -115,15 +96,6 @@ func (r *SourceSnowflakeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Snowflake developer application.`,
@@ -141,15 +113,6 @@ func (r *SourceSnowflakeDataSource) Schema(ctx context.Context, req datasource.S
"source_snowflake_update_authorization_method_username_and_password": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username/password",
- ),
- },
- Description: `must be one of ["username/password"]`,
- },
"password": schema.StringAttribute{
Computed: true,
Description: `The password associated with the username.`,
@@ -185,15 +148,6 @@ func (r *SourceSnowflakeDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
Description: `The source Snowflake schema tables. Leave empty to access tables from multiple schemas.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snowflake",
- ),
- },
- Description: `must be one of ["snowflake"]`,
- },
"warehouse": schema.StringAttribute{
Computed: true,
Description: `The warehouse you created for Airbyte to access data.`,
diff --git a/internal/provider/source_snowflake_data_source_sdk.go b/internal/provider/source_snowflake_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_snowflake_resource.go b/internal/provider/source_snowflake_resource.go
old mode 100755
new mode 100644
index 37ef603d0..e43be867b
--- a/internal/provider/source_snowflake_resource.go
+++ b/internal/provider/source_snowflake_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Snowflake developer application.`,
@@ -91,15 +81,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem
"source_snowflake_authorization_method_username_and_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username/password",
- ),
- },
- Description: `must be one of ["username/password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `The password associated with the username.`,
@@ -117,15 +98,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Snowflake developer application.`,
@@ -143,15 +115,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem
"source_snowflake_update_authorization_method_username_and_password": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "username/password",
- ),
- },
- Description: `must be one of ["username/password"]`,
- },
"password": schema.StringAttribute{
Required: true,
Description: `The password associated with the username.`,
@@ -187,15 +150,6 @@ func (r *SourceSnowflakeResource) Schema(ctx context.Context, req resource.Schem
Optional: true,
Description: `The source Snowflake schema tables. Leave empty to access tables from multiple schemas.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "snowflake",
- ),
- },
- Description: `must be one of ["snowflake"]`,
- },
"warehouse": schema.StringAttribute{
Required: true,
Description: `The warehouse you created for Airbyte to access data.`,
@@ -272,7 +226,7 @@ func (r *SourceSnowflakeResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSnowflake(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_snowflake_resource_sdk.go b/internal/provider/source_snowflake_resource_sdk.go
old mode 100755
new mode 100644
index 7f2c67853..288325641
--- a/internal/provider/source_snowflake_resource_sdk.go
+++ b/internal/provider/source_snowflake_resource_sdk.go
@@ -18,7 +18,6 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake
} else {
accessToken = nil
}
- authType := shared.SourceSnowflakeAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := new(string)
@@ -29,7 +28,6 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake
}
sourceSnowflakeAuthorizationMethodOAuth20 = &shared.SourceSnowflakeAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -42,11 +40,9 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake
}
var sourceSnowflakeAuthorizationMethodUsernameAndPassword *shared.SourceSnowflakeAuthorizationMethodUsernameAndPassword
if r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodUsernameAndPassword != nil {
- authType1 := shared.SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthType(r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodUsernameAndPassword.AuthType.ValueString())
password := r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodUsernameAndPassword.Password.ValueString()
username := r.Configuration.Credentials.SourceSnowflakeAuthorizationMethodUsernameAndPassword.Username.ValueString()
sourceSnowflakeAuthorizationMethodUsernameAndPassword = &shared.SourceSnowflakeAuthorizationMethodUsernameAndPassword{
- AuthType: authType1,
Password: password,
Username: username,
}
@@ -72,7 +68,6 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake
} else {
schema = nil
}
- sourceType := shared.SourceSnowflakeSnowflake(r.Configuration.SourceType.ValueString())
warehouse := r.Configuration.Warehouse.ValueString()
configuration := shared.SourceSnowflake{
Credentials: credentials,
@@ -81,7 +76,6 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake
JdbcURLParams: jdbcURLParams,
Role: role,
Schema: schema,
- SourceType: sourceType,
Warehouse: warehouse,
}
name := r.Name.ValueString()
@@ -117,7 +111,6 @@ func (r *SourceSnowflakeResourceModel) ToUpdateSDKType() *shared.SourceSnowflake
} else {
accessToken = nil
}
- authType := shared.SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := new(string)
@@ -128,7 +121,6 @@ func (r *SourceSnowflakeResourceModel) ToUpdateSDKType() *shared.SourceSnowflake
}
sourceSnowflakeUpdateAuthorizationMethodOAuth20 = &shared.SourceSnowflakeUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -141,11 +133,9 @@ func (r *SourceSnowflakeResourceModel) ToUpdateSDKType() *shared.SourceSnowflake
}
var sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword *shared.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword
if r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
- authType1 := shared.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType(r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword.AuthType.ValueString())
password := r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword.Password.ValueString()
username := r.Configuration.Credentials.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword.Username.ValueString()
sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword = &shared.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword{
- AuthType: authType1,
Password: password,
Username: username,
}
diff --git a/internal/provider/source_sonarcloud_data_source.go b/internal/provider/source_sonarcloud_data_source.go
old mode 100755
new mode 100644
index ec8d2d8b8..202b04594
--- a/internal/provider/source_sonarcloud_data_source.go
+++ b/internal/provider/source_sonarcloud_data_source.go
@@ -10,7 +10,6 @@ import (
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -73,15 +72,6 @@ func (r *SourceSonarCloudDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Organization key. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sonar-cloud",
- ),
- },
- Description: `must be one of ["sonar-cloud"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_sonarcloud_data_source_sdk.go b/internal/provider/source_sonarcloud_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_sonarcloud_resource.go b/internal/provider/source_sonarcloud_resource.go
old mode 100755
new mode 100644
index d13095805..f5c0487fe
--- a/internal/provider/source_sonarcloud_resource.go
+++ b/internal/provider/source_sonarcloud_resource.go
@@ -11,7 +11,6 @@ import (
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -75,15 +74,6 @@ func (r *SourceSonarCloudResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Organization key. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sonar-cloud",
- ),
- },
- Description: `must be one of ["sonar-cloud"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -167,7 +157,7 @@ func (r *SourceSonarCloudResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSonarCloud(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_sonarcloud_resource_sdk.go b/internal/provider/source_sonarcloud_resource_sdk.go
old mode 100755
new mode 100644
index 1bfbf7e12..9905236f6
--- a/internal/provider/source_sonarcloud_resource_sdk.go
+++ b/internal/provider/source_sonarcloud_resource_sdk.go
@@ -23,7 +23,6 @@ func (r *SourceSonarCloudResourceModel) ToCreateSDKType() *shared.SourceSonarClo
endDate = nil
}
organization := r.Configuration.Organization.ValueString()
- sourceType := shared.SourceSonarCloudSonarCloud(r.Configuration.SourceType.ValueString())
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -35,7 +34,6 @@ func (r *SourceSonarCloudResourceModel) ToCreateSDKType() *shared.SourceSonarClo
ComponentKeys: componentKeys,
EndDate: endDate,
Organization: organization,
- SourceType: sourceType,
StartDate: startDate,
UserToken: userToken,
}
diff --git a/internal/provider/source_spacexapi_data_source.go b/internal/provider/source_spacexapi_data_source.go
old mode 100755
new mode 100644
index a4497811d..946b1757f
--- a/internal/provider/source_spacexapi_data_source.go
+++ b/internal/provider/source_spacexapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceSpacexAPIDataSource) Schema(ctx context.Context, req datasource.S
"options": schema.StringAttribute{
Computed: true,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "spacex-api",
- ),
- },
- Description: `must be one of ["spacex-api"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_spacexapi_data_source_sdk.go b/internal/provider/source_spacexapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_spacexapi_resource.go b/internal/provider/source_spacexapi_resource.go
old mode 100755
new mode 100644
index 694b2b8e7..e84cd64d2
--- a/internal/provider/source_spacexapi_resource.go
+++ b/internal/provider/source_spacexapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceSpacexAPIResource) Schema(ctx context.Context, req resource.Schem
"options": schema.StringAttribute{
Optional: true,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "spacex-api",
- ),
- },
- Description: `must be one of ["spacex-api"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -141,7 +130,7 @@ func (r *SourceSpacexAPIResource) Create(ctx context.Context, req resource.Creat
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSpacexAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_spacexapi_resource_sdk.go b/internal/provider/source_spacexapi_resource_sdk.go
old mode 100755
new mode 100644
index 3b49e0792..d81a81ff9
--- a/internal/provider/source_spacexapi_resource_sdk.go
+++ b/internal/provider/source_spacexapi_resource_sdk.go
@@ -20,16 +20,9 @@ func (r *SourceSpacexAPIResourceModel) ToCreateSDKType() *shared.SourceSpacexAPI
} else {
options = nil
}
- sourceType := new(shared.SourceSpacexAPISpacexAPI)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceSpacexAPISpacexAPI(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
configuration := shared.SourceSpacexAPI{
- ID: id,
- Options: options,
- SourceType: sourceType,
+ ID: id,
+ Options: options,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_square_data_source.go b/internal/provider/source_square_data_source.go
old mode 100755
new mode 100644
index 7e0e63f4d..7fce48ab8
--- a/internal/provider/source_square_data_source.go
+++ b/internal/provider/source_square_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,30 +62,12 @@ func (r *SourceSquareDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The API key for a Square application`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Key",
- ),
- },
- Description: `must be one of ["API Key"]`,
- },
},
Description: `Choose how to authenticate to Square.`,
},
"source_square_authentication_oauth_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Square-issued ID of your application`,
@@ -109,30 +90,12 @@ func (r *SourceSquareDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The API key for a Square application`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Key",
- ),
- },
- Description: `must be one of ["API Key"]`,
- },
},
Description: `Choose how to authenticate to Square.`,
},
"source_square_update_authentication_oauth_authentication": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Square-issued ID of your application`,
@@ -162,15 +125,6 @@ func (r *SourceSquareDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Determines whether to use the sandbox or production environment.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "square",
- ),
- },
- Description: `must be one of ["square"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_square_data_source_sdk.go b/internal/provider/source_square_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_square_resource.go b/internal/provider/source_square_resource.go
old mode 100755
new mode 100644
index 1fd2b5054..89c7692d7
--- a/internal/provider/source_square_resource.go
+++ b/internal/provider/source_square_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,30 +64,12 @@ func (r *SourceSquareResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `The API key for a Square application`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Key",
- ),
- },
- Description: `must be one of ["API Key"]`,
- },
},
Description: `Choose how to authenticate to Square.`,
},
"source_square_authentication_oauth_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Square-issued ID of your application`,
@@ -111,30 +92,12 @@ func (r *SourceSquareResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `The API key for a Square application`,
},
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "API Key",
- ),
- },
- Description: `must be one of ["API Key"]`,
- },
},
Description: `Choose how to authenticate to Square.`,
},
"source_square_update_authentication_oauth_authentication": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "OAuth",
- ),
- },
- Description: `must be one of ["OAuth"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Square-issued ID of your application`,
@@ -161,18 +124,9 @@ func (r *SourceSquareResource) Schema(ctx context.Context, req resource.SchemaRe
Description: `In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes)`,
},
"is_sandbox": schema.BoolAttribute{
- Required: true,
+ Optional: true,
Description: `Determines whether to use the sandbox or production environment.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "square",
- ),
- },
- Description: `must be one of ["square"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -252,7 +206,7 @@ func (r *SourceSquareResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSquare(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_square_resource_sdk.go b/internal/provider/source_square_resource_sdk.go
old mode 100755
new mode 100644
index b1d128cbf..1b1d90e32
--- a/internal/provider/source_square_resource_sdk.go
+++ b/internal/provider/source_square_resource_sdk.go
@@ -13,12 +13,10 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate
if r.Configuration.Credentials != nil {
var sourceSquareAuthenticationOauthAuthentication *shared.SourceSquareAuthenticationOauthAuthentication
if r.Configuration.Credentials.SourceSquareAuthenticationOauthAuthentication != nil {
- authType := shared.SourceSquareAuthenticationOauthAuthenticationAuthType(r.Configuration.Credentials.SourceSquareAuthenticationOauthAuthentication.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSquareAuthenticationOauthAuthentication.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSquareAuthenticationOauthAuthentication.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSquareAuthenticationOauthAuthentication.RefreshToken.ValueString()
sourceSquareAuthenticationOauthAuthentication = &shared.SourceSquareAuthenticationOauthAuthentication{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -32,10 +30,8 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate
var sourceSquareAuthenticationAPIKey *shared.SourceSquareAuthenticationAPIKey
if r.Configuration.Credentials.SourceSquareAuthenticationAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceSquareAuthenticationAPIKey.APIKey.ValueString()
- authType1 := shared.SourceSquareAuthenticationAPIKeyAuthType(r.Configuration.Credentials.SourceSquareAuthenticationAPIKey.AuthType.ValueString())
sourceSquareAuthenticationAPIKey = &shared.SourceSquareAuthenticationAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceSquareAuthenticationAPIKey != nil {
@@ -50,8 +46,12 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate
} else {
includeDeletedObjects = nil
}
- isSandbox := r.Configuration.IsSandbox.ValueBool()
- sourceType := shared.SourceSquareSquare(r.Configuration.SourceType.ValueString())
+ isSandbox := new(bool)
+ if !r.Configuration.IsSandbox.IsUnknown() && !r.Configuration.IsSandbox.IsNull() {
+ *isSandbox = r.Configuration.IsSandbox.ValueBool()
+ } else {
+ isSandbox = nil
+ }
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -62,7 +62,6 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate
Credentials: credentials,
IncludeDeletedObjects: includeDeletedObjects,
IsSandbox: isSandbox,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -92,12 +91,10 @@ func (r *SourceSquareResourceModel) ToUpdateSDKType() *shared.SourceSquarePutReq
if r.Configuration.Credentials != nil {
var sourceSquareUpdateAuthenticationOauthAuthentication *shared.SourceSquareUpdateAuthenticationOauthAuthentication
if r.Configuration.Credentials.SourceSquareUpdateAuthenticationOauthAuthentication != nil {
- authType := shared.SourceSquareUpdateAuthenticationOauthAuthenticationAuthType(r.Configuration.Credentials.SourceSquareUpdateAuthenticationOauthAuthentication.AuthType.ValueString())
clientID := r.Configuration.Credentials.SourceSquareUpdateAuthenticationOauthAuthentication.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceSquareUpdateAuthenticationOauthAuthentication.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceSquareUpdateAuthenticationOauthAuthentication.RefreshToken.ValueString()
sourceSquareUpdateAuthenticationOauthAuthentication = &shared.SourceSquareUpdateAuthenticationOauthAuthentication{
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -111,10 +108,8 @@ func (r *SourceSquareResourceModel) ToUpdateSDKType() *shared.SourceSquarePutReq
var sourceSquareUpdateAuthenticationAPIKey *shared.SourceSquareUpdateAuthenticationAPIKey
if r.Configuration.Credentials.SourceSquareUpdateAuthenticationAPIKey != nil {
apiKey := r.Configuration.Credentials.SourceSquareUpdateAuthenticationAPIKey.APIKey.ValueString()
- authType1 := shared.SourceSquareUpdateAuthenticationAPIKeyAuthType(r.Configuration.Credentials.SourceSquareUpdateAuthenticationAPIKey.AuthType.ValueString())
sourceSquareUpdateAuthenticationAPIKey = &shared.SourceSquareUpdateAuthenticationAPIKey{
- APIKey: apiKey,
- AuthType: authType1,
+ APIKey: apiKey,
}
}
if sourceSquareUpdateAuthenticationAPIKey != nil {
@@ -129,7 +124,12 @@ func (r *SourceSquareResourceModel) ToUpdateSDKType() *shared.SourceSquarePutReq
} else {
includeDeletedObjects = nil
}
- isSandbox := r.Configuration.IsSandbox.ValueBool()
+ isSandbox := new(bool)
+ if !r.Configuration.IsSandbox.IsUnknown() && !r.Configuration.IsSandbox.IsNull() {
+ *isSandbox = r.Configuration.IsSandbox.ValueBool()
+ } else {
+ isSandbox = nil
+ }
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
diff --git a/internal/provider/source_strava_data_source.go b/internal/provider/source_strava_data_source.go
old mode 100755
new mode 100644
index 18a75ef1e..dcb2b77ce
--- a/internal/provider/source_strava_data_source.go
+++ b/internal/provider/source_strava_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -57,15 +56,6 @@ func (r *SourceStravaDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The Athlete ID of your Strava developer application.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your Strava developer application.`,
@@ -78,15 +68,6 @@ func (r *SourceStravaDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The Refresh Token with the activity: read_all permissions.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "strava",
- ),
- },
- Description: `must be one of ["strava"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_strava_data_source_sdk.go b/internal/provider/source_strava_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_strava_resource.go b/internal/provider/source_strava_resource.go
old mode 100755
new mode 100644
index d75c4f3c4..032c10f4b
--- a/internal/provider/source_strava_resource.go
+++ b/internal/provider/source_strava_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -59,15 +58,6 @@ func (r *SourceStravaResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `The Athlete ID of your Strava developer application.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "Client",
- ),
- },
- Description: `must be one of ["Client"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your Strava developer application.`,
@@ -80,15 +70,6 @@ func (r *SourceStravaResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `The Refresh Token with the activity: read_all permissions.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "strava",
- ),
- },
- Description: `must be one of ["strava"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -168,7 +149,7 @@ func (r *SourceStravaResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceStrava(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_strava_resource_sdk.go b/internal/provider/source_strava_resource_sdk.go
old mode 100755
new mode 100644
index 233b397fa..f40225612
--- a/internal/provider/source_strava_resource_sdk.go
+++ b/internal/provider/source_strava_resource_sdk.go
@@ -10,24 +10,15 @@ import (
func (r *SourceStravaResourceModel) ToCreateSDKType() *shared.SourceStravaCreateRequest {
athleteID := r.Configuration.AthleteID.ValueInt64()
- authType := new(shared.SourceStravaAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceStravaAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
refreshToken := r.Configuration.RefreshToken.ValueString()
- sourceType := shared.SourceStravaStrava(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceStrava{
AthleteID: athleteID,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -54,19 +45,12 @@ func (r *SourceStravaResourceModel) ToGetSDKType() *shared.SourceStravaCreateReq
func (r *SourceStravaResourceModel) ToUpdateSDKType() *shared.SourceStravaPutRequest {
athleteID := r.Configuration.AthleteID.ValueInt64()
- authType := new(shared.SourceStravaUpdateAuthType)
- if !r.Configuration.AuthType.IsUnknown() && !r.Configuration.AuthType.IsNull() {
- *authType = shared.SourceStravaUpdateAuthType(r.Configuration.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
refreshToken := r.Configuration.RefreshToken.ValueString()
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceStravaUpdate{
AthleteID: athleteID,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
diff --git a/internal/provider/source_stripe_data_source.go b/internal/provider/source_stripe_data_source.go
old mode 100755
new mode 100644
index ddc9f603e..937bdf236
--- a/internal/provider/source_stripe_data_source.go
+++ b/internal/provider/source_stripe_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -69,15 +68,6 @@ func (r *SourceStripeDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "stripe",
- ),
- },
- Description: `must be one of ["stripe"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_stripe_data_source_sdk.go b/internal/provider/source_stripe_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_stripe_resource.go b/internal/provider/source_stripe_resource.go
old mode 100755
new mode 100644
index 0c0bbd3e6..522b046d0
--- a/internal/provider/source_stripe_resource.go
+++ b/internal/provider/source_stripe_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -71,15 +70,6 @@ func (r *SourceStripeResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "stripe",
- ),
- },
- Description: `must be one of ["stripe"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -159,7 +149,7 @@ func (r *SourceStripeResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceStripe(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_stripe_resource_sdk.go b/internal/provider/source_stripe_resource_sdk.go
old mode 100755
new mode 100644
index 022bf185e..9c4c9d321
--- a/internal/provider/source_stripe_resource_sdk.go
+++ b/internal/provider/source_stripe_resource_sdk.go
@@ -23,7 +23,6 @@ func (r *SourceStripeResourceModel) ToCreateSDKType() *shared.SourceStripeCreate
} else {
sliceRange = nil
}
- sourceType := shared.SourceStripeStripe(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -35,7 +34,6 @@ func (r *SourceStripeResourceModel) ToCreateSDKType() *shared.SourceStripeCreate
ClientSecret: clientSecret,
LookbackWindowDays: lookbackWindowDays,
SliceRange: sliceRange,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_surveymonkey_data_source.go b/internal/provider/source_surveymonkey_data_source.go
old mode 100755
new mode 100644
index 98614121d..21da618fb
--- a/internal/provider/source_surveymonkey_data_source.go
+++ b/internal/provider/source_surveymonkey_data_source.go
@@ -60,15 +60,6 @@ func (r *SourceSurveymonkeyDataSource) Schema(ctx context.Context, req datasourc
Computed: true,
Description: `Access Token for making authenticated requests. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of the SurveyMonkey developer application.`,
@@ -92,15 +83,6 @@ func (r *SourceSurveymonkeyDataSource) Schema(ctx context.Context, req datasourc
MarkdownDescription: `must be one of ["USA", "Europe", "Canada"]` + "\n" +
`Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "surveymonkey",
- ),
- },
- Description: `must be one of ["surveymonkey"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_surveymonkey_data_source_sdk.go b/internal/provider/source_surveymonkey_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_surveymonkey_resource.go b/internal/provider/source_surveymonkey_resource.go
old mode 100755
new mode 100644
index 4e9cd80b3..71936c2b7
--- a/internal/provider/source_surveymonkey_resource.go
+++ b/internal/provider/source_surveymonkey_resource.go
@@ -62,15 +62,6 @@ func (r *SourceSurveymonkeyResource) Schema(ctx context.Context, req resource.Sc
Required: true,
Description: `Access Token for making authenticated requests. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The Client ID of the SurveyMonkey developer application.`,
@@ -94,15 +85,6 @@ func (r *SourceSurveymonkeyResource) Schema(ctx context.Context, req resource.Sc
MarkdownDescription: `must be one of ["USA", "Europe", "Canada"]` + "\n" +
`Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "surveymonkey",
- ),
- },
- Description: `must be one of ["surveymonkey"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -187,7 +169,7 @@ func (r *SourceSurveymonkeyResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSurveymonkey(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_surveymonkey_resource_sdk.go b/internal/provider/source_surveymonkey_resource_sdk.go
old mode 100755
new mode 100644
index f852d1b72..71c15132c
--- a/internal/provider/source_surveymonkey_resource_sdk.go
+++ b/internal/provider/source_surveymonkey_resource_sdk.go
@@ -12,7 +12,6 @@ func (r *SourceSurveymonkeyResourceModel) ToCreateSDKType() *shared.SourceSurvey
var credentials *shared.SourceSurveymonkeySurveyMonkeyAuthorizationMethod
if r.Configuration.Credentials != nil {
accessToken := r.Configuration.Credentials.AccessToken.ValueString()
- authMethod := shared.SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethod(r.Configuration.Credentials.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.ClientID.IsUnknown() && !r.Configuration.Credentials.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.ClientID.ValueString()
@@ -27,7 +26,6 @@ func (r *SourceSurveymonkeyResourceModel) ToCreateSDKType() *shared.SourceSurvey
}
credentials = &shared.SourceSurveymonkeySurveyMonkeyAuthorizationMethod{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -38,7 +36,6 @@ func (r *SourceSurveymonkeyResourceModel) ToCreateSDKType() *shared.SourceSurvey
} else {
origin = nil
}
- sourceType := shared.SourceSurveymonkeySurveymonkey(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
var surveyIds []string = nil
for _, surveyIdsItem := range r.Configuration.SurveyIds {
@@ -47,7 +44,6 @@ func (r *SourceSurveymonkeyResourceModel) ToCreateSDKType() *shared.SourceSurvey
configuration := shared.SourceSurveymonkey{
Credentials: credentials,
Origin: origin,
- SourceType: sourceType,
StartDate: startDate,
SurveyIds: surveyIds,
}
@@ -77,7 +73,6 @@ func (r *SourceSurveymonkeyResourceModel) ToUpdateSDKType() *shared.SourceSurvey
var credentials *shared.SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod
if r.Configuration.Credentials != nil {
accessToken := r.Configuration.Credentials.AccessToken.ValueString()
- authMethod := shared.SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethod(r.Configuration.Credentials.AuthMethod.ValueString())
clientID := new(string)
if !r.Configuration.Credentials.ClientID.IsUnknown() && !r.Configuration.Credentials.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.ClientID.ValueString()
@@ -92,7 +87,6 @@ func (r *SourceSurveymonkeyResourceModel) ToUpdateSDKType() *shared.SourceSurvey
}
credentials = &shared.SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
diff --git a/internal/provider/source_surveysparrow_data_source.go b/internal/provider/source_surveysparrow_data_source.go
old mode 100755
new mode 100644
index 58da2205f..c73c2ea13
--- a/internal/provider/source_surveysparrow_data_source.go
+++ b/internal/provider/source_surveysparrow_data_source.go
@@ -10,7 +10,6 @@ import (
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -62,63 +61,23 @@ func (r *SourceSurveySparrowDataSource) Schema(ctx context.Context, req datasour
Computed: true,
Attributes: map[string]schema.Attribute{
"source_survey_sparrow_base_url_eu_based_account": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://eu-api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://eu-api.surveysparrow.com/v3"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_base_url_global_account": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://api.surveysparrow.com/v3"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_update_base_url_eu_based_account": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://eu-api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://eu-api.surveysparrow.com/v3"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_update_base_url_global_account": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://api.surveysparrow.com/v3"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
},
@@ -127,15 +86,6 @@ func (r *SourceSurveySparrowDataSource) Schema(ctx context.Context, req datasour
},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "survey-sparrow",
- ),
- },
- Description: `must be one of ["survey-sparrow"]`,
- },
"survey_id": schema.ListAttribute{
Computed: true,
ElementType: types.StringType,
diff --git a/internal/provider/source_surveysparrow_data_source_sdk.go b/internal/provider/source_surveysparrow_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_surveysparrow_resource.go b/internal/provider/source_surveysparrow_resource.go
old mode 100755
new mode 100644
index 0edc52258..642a5448f
--- a/internal/provider/source_surveysparrow_resource.go
+++ b/internal/provider/source_surveysparrow_resource.go
@@ -11,7 +11,6 @@ import (
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -64,63 +63,23 @@ func (r *SourceSurveySparrowResource) Schema(ctx context.Context, req resource.S
Optional: true,
Attributes: map[string]schema.Attribute{
"source_survey_sparrow_base_url_eu_based_account": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://eu-api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://eu-api.surveysparrow.com/v3"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_base_url_global_account": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://api.surveysparrow.com/v3"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_update_base_url_eu_based_account": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://eu-api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://eu-api.surveysparrow.com/v3"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
"source_survey_sparrow_update_base_url_global_account": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
- "url_base": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "https://api.surveysparrow.com/v3",
- ),
- },
- Description: `must be one of ["https://api.surveysparrow.com/v3"]`,
- },
- },
+ Optional: true,
+ Attributes: map[string]schema.Attribute{},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
},
@@ -129,15 +88,6 @@ func (r *SourceSurveySparrowResource) Schema(ctx context.Context, req resource.S
},
Description: `Is your account location is EU based? If yes, the base url to retrieve data will be different.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "survey-sparrow",
- ),
- },
- Description: `must be one of ["survey-sparrow"]`,
- },
"survey_id": schema.ListAttribute{
Optional: true,
ElementType: types.StringType,
@@ -218,7 +168,7 @@ func (r *SourceSurveySparrowResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceSurveySparrow(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_surveysparrow_resource_sdk.go b/internal/provider/source_surveysparrow_resource_sdk.go
old mode 100755
new mode 100644
index 576b06f0a..43e6a8cad
--- a/internal/provider/source_surveysparrow_resource_sdk.go
+++ b/internal/provider/source_surveysparrow_resource_sdk.go
@@ -14,15 +14,7 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve
if r.Configuration.Region != nil {
var sourceSurveySparrowBaseURLEUBasedAccount *shared.SourceSurveySparrowBaseURLEUBasedAccount
if r.Configuration.Region.SourceSurveySparrowBaseURLEUBasedAccount != nil {
- urlBase := new(shared.SourceSurveySparrowBaseURLEUBasedAccountURLBase)
- if !r.Configuration.Region.SourceSurveySparrowBaseURLEUBasedAccount.URLBase.IsUnknown() && !r.Configuration.Region.SourceSurveySparrowBaseURLEUBasedAccount.URLBase.IsNull() {
- *urlBase = shared.SourceSurveySparrowBaseURLEUBasedAccountURLBase(r.Configuration.Region.SourceSurveySparrowBaseURLEUBasedAccount.URLBase.ValueString())
- } else {
- urlBase = nil
- }
- sourceSurveySparrowBaseURLEUBasedAccount = &shared.SourceSurveySparrowBaseURLEUBasedAccount{
- URLBase: urlBase,
- }
+ sourceSurveySparrowBaseURLEUBasedAccount = &shared.SourceSurveySparrowBaseURLEUBasedAccount{}
}
if sourceSurveySparrowBaseURLEUBasedAccount != nil {
region = &shared.SourceSurveySparrowBaseURL{
@@ -31,15 +23,7 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve
}
var sourceSurveySparrowBaseURLGlobalAccount *shared.SourceSurveySparrowBaseURLGlobalAccount
if r.Configuration.Region.SourceSurveySparrowBaseURLGlobalAccount != nil {
- urlBase1 := new(shared.SourceSurveySparrowBaseURLGlobalAccountURLBase)
- if !r.Configuration.Region.SourceSurveySparrowBaseURLGlobalAccount.URLBase.IsUnknown() && !r.Configuration.Region.SourceSurveySparrowBaseURLGlobalAccount.URLBase.IsNull() {
- *urlBase1 = shared.SourceSurveySparrowBaseURLGlobalAccountURLBase(r.Configuration.Region.SourceSurveySparrowBaseURLGlobalAccount.URLBase.ValueString())
- } else {
- urlBase1 = nil
- }
- sourceSurveySparrowBaseURLGlobalAccount = &shared.SourceSurveySparrowBaseURLGlobalAccount{
- URLBase: urlBase1,
- }
+ sourceSurveySparrowBaseURLGlobalAccount = &shared.SourceSurveySparrowBaseURLGlobalAccount{}
}
if sourceSurveySparrowBaseURLGlobalAccount != nil {
region = &shared.SourceSurveySparrowBaseURL{
@@ -47,7 +31,6 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve
}
}
}
- sourceType := shared.SourceSurveySparrowSurveySparrow(r.Configuration.SourceType.ValueString())
var surveyID []interface{} = nil
for _, surveyIDItem := range r.Configuration.SurveyID {
var surveyIDTmp interface{}
@@ -57,7 +40,6 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve
configuration := shared.SourceSurveySparrow{
AccessToken: accessToken,
Region: region,
- SourceType: sourceType,
SurveyID: surveyID,
}
name := r.Name.ValueString()
@@ -88,15 +70,7 @@ func (r *SourceSurveySparrowResourceModel) ToUpdateSDKType() *shared.SourceSurve
if r.Configuration.Region != nil {
var sourceSurveySparrowUpdateBaseURLEUBasedAccount *shared.SourceSurveySparrowUpdateBaseURLEUBasedAccount
if r.Configuration.Region.SourceSurveySparrowUpdateBaseURLEUBasedAccount != nil {
- urlBase := new(shared.SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase)
- if !r.Configuration.Region.SourceSurveySparrowUpdateBaseURLEUBasedAccount.URLBase.IsUnknown() && !r.Configuration.Region.SourceSurveySparrowUpdateBaseURLEUBasedAccount.URLBase.IsNull() {
- *urlBase = shared.SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase(r.Configuration.Region.SourceSurveySparrowUpdateBaseURLEUBasedAccount.URLBase.ValueString())
- } else {
- urlBase = nil
- }
- sourceSurveySparrowUpdateBaseURLEUBasedAccount = &shared.SourceSurveySparrowUpdateBaseURLEUBasedAccount{
- URLBase: urlBase,
- }
+ sourceSurveySparrowUpdateBaseURLEUBasedAccount = &shared.SourceSurveySparrowUpdateBaseURLEUBasedAccount{}
}
if sourceSurveySparrowUpdateBaseURLEUBasedAccount != nil {
region = &shared.SourceSurveySparrowUpdateBaseURL{
@@ -105,15 +79,7 @@ func (r *SourceSurveySparrowResourceModel) ToUpdateSDKType() *shared.SourceSurve
}
var sourceSurveySparrowUpdateBaseURLGlobalAccount *shared.SourceSurveySparrowUpdateBaseURLGlobalAccount
if r.Configuration.Region.SourceSurveySparrowUpdateBaseURLGlobalAccount != nil {
- urlBase1 := new(shared.SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase)
- if !r.Configuration.Region.SourceSurveySparrowUpdateBaseURLGlobalAccount.URLBase.IsUnknown() && !r.Configuration.Region.SourceSurveySparrowUpdateBaseURLGlobalAccount.URLBase.IsNull() {
- *urlBase1 = shared.SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase(r.Configuration.Region.SourceSurveySparrowUpdateBaseURLGlobalAccount.URLBase.ValueString())
- } else {
- urlBase1 = nil
- }
- sourceSurveySparrowUpdateBaseURLGlobalAccount = &shared.SourceSurveySparrowUpdateBaseURLGlobalAccount{
- URLBase: urlBase1,
- }
+ sourceSurveySparrowUpdateBaseURLGlobalAccount = &shared.SourceSurveySparrowUpdateBaseURLGlobalAccount{}
}
if sourceSurveySparrowUpdateBaseURLGlobalAccount != nil {
region = &shared.SourceSurveySparrowUpdateBaseURL{
diff --git a/internal/provider/source_tempo_data_source.go b/internal/provider/source_tempo_data_source.go
old mode 100755
new mode 100644
index 17f2fe36b..b6b8e5634
--- a/internal/provider/source_tempo_data_source.go
+++ b/internal/provider/source_tempo_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceTempoDataSource struct {
// SourceTempoDataSourceModel describes the data model.
type SourceTempoDataSourceModel struct {
- Configuration SourceTempo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceK6Cloud `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceTempoDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tempo",
- ),
- },
- Description: `must be one of ["tempo"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_tempo_data_source_sdk.go b/internal/provider/source_tempo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_tempo_resource.go b/internal/provider/source_tempo_resource.go
old mode 100755
new mode 100644
index 8faaad74f..da18dc2e1
--- a/internal/provider/source_tempo_resource.go
+++ b/internal/provider/source_tempo_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceTempoResource struct {
// SourceTempoResourceModel describes the resource data model.
type SourceTempoResourceModel struct {
- Configuration SourceTempo `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceK6Cloud `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceTempoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceTempoResource) Schema(ctx context.Context, req resource.SchemaReq
Required: true,
Description: `Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tempo",
- ),
- },
- Description: `must be one of ["tempo"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceTempoResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTempo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_tempo_resource_sdk.go b/internal/provider/source_tempo_resource_sdk.go
old mode 100755
new mode 100644
index 14bcc28b6..29d434c75
--- a/internal/provider/source_tempo_resource_sdk.go
+++ b/internal/provider/source_tempo_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceTempoResourceModel) ToCreateSDKType() *shared.SourceTempoCreateRequest {
apiToken := r.Configuration.APIToken.ValueString()
- sourceType := shared.SourceTempoTempo(r.Configuration.SourceType.ValueString())
configuration := shared.SourceTempo{
- APIToken: apiToken,
- SourceType: sourceType,
+ APIToken: apiToken,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_theguardianapi_data_source.go b/internal/provider/source_theguardianapi_data_source.go
old mode 100755
new mode 100644
index bae9ecf3f..2541953b4
--- a/internal/provider/source_theguardianapi_data_source.go
+++ b/internal/provider/source_theguardianapi_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -68,15 +66,6 @@ func (r *SourceTheGuardianAPIDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `(Optional) Use this to filter the results by a particular section. See here for a list of all sections, and here for the sections endpoint documentation.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "the-guardian-api",
- ),
- },
- Description: `must be one of ["the-guardian-api"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown.`,
diff --git a/internal/provider/source_theguardianapi_data_source_sdk.go b/internal/provider/source_theguardianapi_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_theguardianapi_resource.go b/internal/provider/source_theguardianapi_resource.go
old mode 100755
new mode 100644
index 28cdd0218..826371ee6
--- a/internal/provider/source_theguardianapi_resource.go
+++ b/internal/provider/source_theguardianapi_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -70,15 +68,6 @@ func (r *SourceTheGuardianAPIResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `(Optional) Use this to filter the results by a particular section. See here for a list of all sections, and here for the sections endpoint documentation.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "the-guardian-api",
- ),
- },
- Description: `must be one of ["the-guardian-api"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown.`,
@@ -159,7 +148,7 @@ func (r *SourceTheGuardianAPIResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTheGuardianAPI(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_theguardianapi_resource_sdk.go b/internal/provider/source_theguardianapi_resource_sdk.go
old mode 100755
new mode 100644
index c9cfef7d9..8a14a687e
--- a/internal/provider/source_theguardianapi_resource_sdk.go
+++ b/internal/provider/source_theguardianapi_resource_sdk.go
@@ -27,7 +27,6 @@ func (r *SourceTheGuardianAPIResourceModel) ToCreateSDKType() *shared.SourceTheG
} else {
section = nil
}
- sourceType := shared.SourceTheGuardianAPITheGuardianAPI(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
tag := new(string)
if !r.Configuration.Tag.IsUnknown() && !r.Configuration.Tag.IsNull() {
@@ -36,13 +35,12 @@ func (r *SourceTheGuardianAPIResourceModel) ToCreateSDKType() *shared.SourceTheG
tag = nil
}
configuration := shared.SourceTheGuardianAPI{
- APIKey: apiKey,
- EndDate: endDate,
- Query: query,
- Section: section,
- SourceType: sourceType,
- StartDate: startDate,
- Tag: tag,
+ APIKey: apiKey,
+ EndDate: endDate,
+ Query: query,
+ Section: section,
+ StartDate: startDate,
+ Tag: tag,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_tiktokmarketing_data_source.go b/internal/provider/source_tiktokmarketing_data_source.go
old mode 100755
new mode 100644
index 60bd1cad2..65f2496e9
--- a/internal/provider/source_tiktokmarketing_data_source.go
+++ b/internal/provider/source_tiktokmarketing_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -75,15 +74,6 @@ func (r *SourceTiktokMarketingDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Developer Application App ID.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"secret": schema.StringAttribute{
Computed: true,
Description: `The Developer Application Secret.`,
@@ -102,15 +92,6 @@ func (r *SourceTiktokMarketingDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Advertiser ID which generated for the developer's Sandbox application.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sandbox_access_token",
- ),
- },
- Description: `must be one of ["sandbox_access_token"]`,
- },
},
Description: `Authentication method`,
},
@@ -129,15 +110,6 @@ func (r *SourceTiktokMarketingDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Developer Application App ID.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"secret": schema.StringAttribute{
Computed: true,
Description: `The Developer Application Secret.`,
@@ -156,15 +128,6 @@ func (r *SourceTiktokMarketingDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `The Advertiser ID which generated for the developer's Sandbox application.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sandbox_access_token",
- ),
- },
- Description: `must be one of ["sandbox_access_token"]`,
- },
},
Description: `Authentication method`,
},
@@ -185,15 +148,6 @@ func (r *SourceTiktokMarketingDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Set to active if you want to include deleted data in reports.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tiktok-marketing",
- ),
- },
- Description: `must be one of ["tiktok-marketing"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_tiktokmarketing_data_source_sdk.go b/internal/provider/source_tiktokmarketing_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_tiktokmarketing_resource.go b/internal/provider/source_tiktokmarketing_resource.go
old mode 100755
new mode 100644
index fecfa4929..0d495e8dd
--- a/internal/provider/source_tiktokmarketing_resource.go
+++ b/internal/provider/source_tiktokmarketing_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -77,15 +76,6 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Developer Application App ID.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"secret": schema.StringAttribute{
Required: true,
Description: `The Developer Application Secret.`,
@@ -104,15 +94,6 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Advertiser ID which generated for the developer's Sandbox application.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sandbox_access_token",
- ),
- },
- Description: `must be one of ["sandbox_access_token"]`,
- },
},
Description: `Authentication method`,
},
@@ -131,15 +112,6 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Developer Application App ID.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"secret": schema.StringAttribute{
Required: true,
Description: `The Developer Application Secret.`,
@@ -158,15 +130,6 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource
Required: true,
Description: `The Advertiser ID which generated for the developer's Sandbox application.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "sandbox_access_token",
- ),
- },
- Description: `must be one of ["sandbox_access_token"]`,
- },
},
Description: `Authentication method`,
},
@@ -187,15 +150,6 @@ func (r *SourceTiktokMarketingResource) Schema(ctx context.Context, req resource
Optional: true,
Description: `Set to active if you want to include deleted data in reports.`,
},
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tiktok-marketing",
- ),
- },
- Description: `must be one of ["tiktok-marketing"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -275,7 +229,7 @@ func (r *SourceTiktokMarketingResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTiktokMarketing(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_tiktokmarketing_resource_sdk.go b/internal/provider/source_tiktokmarketing_resource_sdk.go
old mode 100755
new mode 100644
index a1c67081a..ebf1e5a5d
--- a/internal/provider/source_tiktokmarketing_resource_sdk.go
+++ b/internal/provider/source_tiktokmarketing_resource_sdk.go
@@ -27,18 +27,11 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik
advertiserID = nil
}
appID := r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodOAuth20.AppID.ValueString()
- authType := new(shared.SourceTiktokMarketingAuthenticationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTiktokMarketingAuthenticationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
secret := r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodOAuth20.Secret.ValueString()
sourceTiktokMarketingAuthenticationMethodOAuth20 = &shared.SourceTiktokMarketingAuthenticationMethodOAuth20{
AccessToken: accessToken,
AdvertiserID: advertiserID,
AppID: appID,
- AuthType: authType,
Secret: secret,
}
}
@@ -51,16 +44,9 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik
if r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken.AccessToken.ValueString()
advertiserId1 := r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken.AdvertiserID.ValueString()
- authType1 := new(shared.SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthType(r.Configuration.Credentials.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceTiktokMarketingAuthenticationMethodSandboxAccessToken = &shared.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken{
AccessToken: accessToken1,
AdvertiserID: advertiserId1,
- AuthType: authType1,
}
}
if sourceTiktokMarketingAuthenticationMethodSandboxAccessToken != nil {
@@ -81,12 +67,6 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik
} else {
includeDeleted = nil
}
- sourceType := new(shared.SourceTiktokMarketingTiktokMarketing)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceTiktokMarketingTiktokMarketing(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
startDate := new(customTypes.Date)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
startDate = customTypes.MustNewDateFromString(r.Configuration.StartDate.ValueString())
@@ -98,7 +78,6 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik
Credentials: credentials,
EndDate: endDate,
IncludeDeleted: includeDeleted,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -142,18 +121,11 @@ func (r *SourceTiktokMarketingResourceModel) ToUpdateSDKType() *shared.SourceTik
advertiserID = nil
}
appID := r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20.AppID.ValueString()
- authType := new(shared.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
secret := r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20.Secret.ValueString()
sourceTiktokMarketingUpdateAuthenticationMethodOAuth20 = &shared.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20{
AccessToken: accessToken,
AdvertiserID: advertiserID,
AppID: appID,
- AuthType: authType,
Secret: secret,
}
}
@@ -166,16 +138,9 @@ func (r *SourceTiktokMarketingResourceModel) ToUpdateSDKType() *shared.SourceTik
if r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken.AccessToken.ValueString()
advertiserId1 := r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken.AdvertiserID.ValueString()
- authType1 := new(shared.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthType)
- if !r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken.AuthType.IsNull() {
- *authType1 = shared.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthType(r.Configuration.Credentials.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken = &shared.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken{
AccessToken: accessToken1,
AdvertiserID: advertiserId1,
- AuthType: authType1,
}
}
if sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken != nil {
diff --git a/internal/provider/source_todoist_data_source.go b/internal/provider/source_todoist_data_source.go
old mode 100755
new mode 100644
index 87b1c5085..722791a4f
--- a/internal/provider/source_todoist_data_source.go
+++ b/internal/provider/source_todoist_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,15 +50,6 @@ func (r *SourceTodoistDataSource) Schema(ctx context.Context, req datasource.Sch
"configuration": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "todoist",
- ),
- },
- Description: `must be one of ["todoist"]`,
- },
"token": schema.StringAttribute{
Computed: true,
Description: `Your API Token. See here. The token is case sensitive.`,
diff --git a/internal/provider/source_todoist_data_source_sdk.go b/internal/provider/source_todoist_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_todoist_resource.go b/internal/provider/source_todoist_resource.go
old mode 100755
new mode 100644
index b746c98f7..ddbd54644
--- a/internal/provider/source_todoist_resource.go
+++ b/internal/provider/source_todoist_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -54,15 +52,6 @@ func (r *SourceTodoistResource) Schema(ctx context.Context, req resource.SchemaR
"configuration": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "todoist",
- ),
- },
- Description: `must be one of ["todoist"]`,
- },
"token": schema.StringAttribute{
Required: true,
Description: `Your API Token. See here. The token is case sensitive.`,
@@ -139,7 +128,7 @@ func (r *SourceTodoistResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTodoist(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_todoist_resource_sdk.go b/internal/provider/source_todoist_resource_sdk.go
old mode 100755
new mode 100644
index b369a05b5..5fd45cc07
--- a/internal/provider/source_todoist_resource_sdk.go
+++ b/internal/provider/source_todoist_resource_sdk.go
@@ -8,11 +8,9 @@ import (
)
func (r *SourceTodoistResourceModel) ToCreateSDKType() *shared.SourceTodoistCreateRequest {
- sourceType := shared.SourceTodoistTodoist(r.Configuration.SourceType.ValueString())
token := r.Configuration.Token.ValueString()
configuration := shared.SourceTodoist{
- SourceType: sourceType,
- Token: token,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_trello_data_source.go b/internal/provider/source_trello_data_source.go
old mode 100755
new mode 100644
index ec6ff3a91..18e30b0bd
--- a/internal/provider/source_trello_data_source.go
+++ b/internal/provider/source_trello_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -62,15 +61,6 @@ func (r *SourceTrelloDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `Trello API key. See the docs for instructions on how to generate it.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "trello",
- ),
- },
- Description: `must be one of ["trello"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_trello_data_source_sdk.go b/internal/provider/source_trello_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_trello_resource.go b/internal/provider/source_trello_resource.go
old mode 100755
new mode 100644
index ef89ff9e8..0eeae2b68
--- a/internal/provider/source_trello_resource.go
+++ b/internal/provider/source_trello_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -64,15 +63,6 @@ func (r *SourceTrelloResource) Schema(ctx context.Context, req resource.SchemaRe
Required: true,
Description: `Trello API key. See the docs for instructions on how to generate it.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "trello",
- ),
- },
- Description: `must be one of ["trello"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -156,7 +146,7 @@ func (r *SourceTrelloResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTrello(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_trello_resource_sdk.go b/internal/provider/source_trello_resource_sdk.go
old mode 100755
new mode 100644
index 94418a2d9..6ac6b3a01
--- a/internal/provider/source_trello_resource_sdk.go
+++ b/internal/provider/source_trello_resource_sdk.go
@@ -14,15 +14,13 @@ func (r *SourceTrelloResourceModel) ToCreateSDKType() *shared.SourceTrelloCreate
boardIds = append(boardIds, boardIdsItem.ValueString())
}
key := r.Configuration.Key.ValueString()
- sourceType := shared.SourceTrelloTrello(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
token := r.Configuration.Token.ValueString()
configuration := shared.SourceTrello{
- BoardIds: boardIds,
- Key: key,
- SourceType: sourceType,
- StartDate: startDate,
- Token: token,
+ BoardIds: boardIds,
+ Key: key,
+ StartDate: startDate,
+ Token: token,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_trustpilot_data_source.go b/internal/provider/source_trustpilot_data_source.go
old mode 100755
new mode 100644
index 310f82dd3..721cbed04
--- a/internal/provider/source_trustpilot_data_source.go
+++ b/internal/provider/source_trustpilot_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -64,15 +63,6 @@ func (r *SourceTrustpilotDataSource) Schema(ctx context.Context, req datasource.
"source_trustpilot_authorization_method_api_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API key of the Trustpilot API application.`,
@@ -87,15 +77,6 @@ func (r *SourceTrustpilotDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API key of the Trustpilot API application. (represents the OAuth Client ID)`,
@@ -120,15 +101,6 @@ func (r *SourceTrustpilotDataSource) Schema(ctx context.Context, req datasource.
"source_trustpilot_update_authorization_method_api_key": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API key of the Trustpilot API application.`,
@@ -143,15 +115,6 @@ func (r *SourceTrustpilotDataSource) Schema(ctx context.Context, req datasource.
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The API key of the Trustpilot API application. (represents the OAuth Client ID)`,
@@ -178,15 +141,6 @@ func (r *SourceTrustpilotDataSource) Schema(ctx context.Context, req datasource.
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "trustpilot",
- ),
- },
- Description: `must be one of ["trustpilot"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `For streams with sync. method incremental the start date time to be used`,
diff --git a/internal/provider/source_trustpilot_data_source_sdk.go b/internal/provider/source_trustpilot_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_trustpilot_resource.go b/internal/provider/source_trustpilot_resource.go
old mode 100755
new mode 100644
index 067db10e5..c36086ff3
--- a/internal/provider/source_trustpilot_resource.go
+++ b/internal/provider/source_trustpilot_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -66,15 +65,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche
"source_trustpilot_authorization_method_api_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API key of the Trustpilot API application.`,
@@ -89,15 +79,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API key of the Trustpilot API application. (represents the OAuth Client ID)`,
@@ -122,15 +103,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche
"source_trustpilot_update_authorization_method_api_key": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "apikey",
- ),
- },
- Description: `must be one of ["apikey"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API key of the Trustpilot API application.`,
@@ -145,15 +117,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The API key of the Trustpilot API application. (represents the OAuth Client ID)`,
@@ -180,15 +143,6 @@ func (r *SourceTrustpilotResource) Schema(ctx context.Context, req resource.Sche
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "trustpilot",
- ),
- },
- Description: `must be one of ["trustpilot"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `For streams with sync. method incremental the start date time to be used`,
@@ -265,7 +219,7 @@ func (r *SourceTrustpilotResource) Create(ctx context.Context, req resource.Crea
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTrustpilot(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_trustpilot_resource_sdk.go b/internal/provider/source_trustpilot_resource_sdk.go
old mode 100755
new mode 100644
index 36fc73063..b1a27ce4e
--- a/internal/provider/source_trustpilot_resource_sdk.go
+++ b/internal/provider/source_trustpilot_resource_sdk.go
@@ -17,19 +17,12 @@ func (r *SourceTrustpilotResourceModel) ToCreateSDKType() *shared.SourceTrustpil
var sourceTrustpilotAuthorizationMethodOAuth20 *shared.SourceTrustpilotAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceTrustpilotAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTrustpilotAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceTrustpilotAuthorizationMethodOAuth20 = &shared.SourceTrustpilotAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -43,15 +36,8 @@ func (r *SourceTrustpilotResourceModel) ToCreateSDKType() *shared.SourceTrustpil
}
var sourceTrustpilotAuthorizationMethodAPIKey *shared.SourceTrustpilotAuthorizationMethodAPIKey
if r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodAPIKey != nil {
- authType1 := new(shared.SourceTrustpilotAuthorizationMethodAPIKeyAuthType)
- if !r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodAPIKey.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodAPIKey.AuthType.IsNull() {
- *authType1 = shared.SourceTrustpilotAuthorizationMethodAPIKeyAuthType(r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodAPIKey.AuthType.ValueString())
- } else {
- authType1 = nil
- }
clientId1 := r.Configuration.Credentials.SourceTrustpilotAuthorizationMethodAPIKey.ClientID.ValueString()
sourceTrustpilotAuthorizationMethodAPIKey = &shared.SourceTrustpilotAuthorizationMethodAPIKey{
- AuthType: authType1,
ClientID: clientId1,
}
}
@@ -60,12 +46,10 @@ func (r *SourceTrustpilotResourceModel) ToCreateSDKType() *shared.SourceTrustpil
SourceTrustpilotAuthorizationMethodAPIKey: sourceTrustpilotAuthorizationMethodAPIKey,
}
}
- sourceType := shared.SourceTrustpilotTrustpilot(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
configuration := shared.SourceTrustpilot{
BusinessUnits: businessUnits,
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -99,19 +83,12 @@ func (r *SourceTrustpilotResourceModel) ToUpdateSDKType() *shared.SourceTrustpil
var sourceTrustpilotUpdateAuthorizationMethodOAuth20 *shared.SourceTrustpilotUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceTrustpilotUpdateAuthorizationMethodOAuth20 = &shared.SourceTrustpilotUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -125,15 +102,8 @@ func (r *SourceTrustpilotResourceModel) ToUpdateSDKType() *shared.SourceTrustpil
}
var sourceTrustpilotUpdateAuthorizationMethodAPIKey *shared.SourceTrustpilotUpdateAuthorizationMethodAPIKey
if r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodAPIKey != nil {
- authType1 := new(shared.SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType)
- if !r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodAPIKey.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodAPIKey.AuthType.IsNull() {
- *authType1 = shared.SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType(r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodAPIKey.AuthType.ValueString())
- } else {
- authType1 = nil
- }
clientId1 := r.Configuration.Credentials.SourceTrustpilotUpdateAuthorizationMethodAPIKey.ClientID.ValueString()
sourceTrustpilotUpdateAuthorizationMethodAPIKey = &shared.SourceTrustpilotUpdateAuthorizationMethodAPIKey{
- AuthType: authType1,
ClientID: clientId1,
}
}
diff --git a/internal/provider/source_tvmazeschedule_data_source.go b/internal/provider/source_tvmazeschedule_data_source.go
old mode 100755
new mode 100644
index 87fee0ee3..661be26c4
--- a/internal/provider/source_tvmazeschedule_data_source.go
+++ b/internal/provider/source_tvmazeschedule_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -61,15 +59,6 @@ func (r *SourceTvmazeScheduleDataSource) Schema(ctx context.Context, req datasou
MarkdownDescription: `End date for TV schedule retrieval. May be in the future. Optional.` + "\n" +
``,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tvmaze-schedule",
- ),
- },
- Description: `must be one of ["tvmaze-schedule"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Start date for TV schedule retrieval. May be in the future.`,
diff --git a/internal/provider/source_tvmazeschedule_data_source_sdk.go b/internal/provider/source_tvmazeschedule_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_tvmazeschedule_resource.go b/internal/provider/source_tvmazeschedule_resource.go
old mode 100755
new mode 100644
index a7298c778..00a0be482
--- a/internal/provider/source_tvmazeschedule_resource.go
+++ b/internal/provider/source_tvmazeschedule_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -63,15 +61,6 @@ func (r *SourceTvmazeScheduleResource) Schema(ctx context.Context, req resource.
MarkdownDescription: `End date for TV schedule retrieval. May be in the future. Optional.` + "\n" +
``,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "tvmaze-schedule",
- ),
- },
- Description: `must be one of ["tvmaze-schedule"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Start date for TV schedule retrieval. May be in the future.`,
@@ -155,7 +144,7 @@ func (r *SourceTvmazeScheduleResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTvmazeSchedule(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_tvmazeschedule_resource_sdk.go b/internal/provider/source_tvmazeschedule_resource_sdk.go
old mode 100755
new mode 100644
index f66621941..82b8664f4
--- a/internal/provider/source_tvmazeschedule_resource_sdk.go
+++ b/internal/provider/source_tvmazeschedule_resource_sdk.go
@@ -15,7 +15,6 @@ func (r *SourceTvmazeScheduleResourceModel) ToCreateSDKType() *shared.SourceTvma
} else {
endDate = nil
}
- sourceType := shared.SourceTvmazeScheduleTvmazeSchedule(r.Configuration.SourceType.ValueString())
startDate := r.Configuration.StartDate.ValueString()
webScheduleCountryCode := new(string)
if !r.Configuration.WebScheduleCountryCode.IsUnknown() && !r.Configuration.WebScheduleCountryCode.IsNull() {
@@ -26,7 +25,6 @@ func (r *SourceTvmazeScheduleResourceModel) ToCreateSDKType() *shared.SourceTvma
configuration := shared.SourceTvmazeSchedule{
DomesticScheduleCountryCode: domesticScheduleCountryCode,
EndDate: endDate,
- SourceType: sourceType,
StartDate: startDate,
WebScheduleCountryCode: webScheduleCountryCode,
}
diff --git a/internal/provider/source_twilio_data_source.go b/internal/provider/source_twilio_data_source.go
old mode 100755
new mode 100644
index b24c12114..8d4578244
--- a/internal/provider/source_twilio_data_source.go
+++ b/internal/provider/source_twilio_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceTwilioDataSource) Schema(ctx context.Context, req datasource.Sche
Computed: true,
Description: `How far into the past to look for records. (in minutes)`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twilio",
- ),
- },
- Description: `must be one of ["twilio"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_twilio_data_source_sdk.go b/internal/provider/source_twilio_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_twilio_resource.go b/internal/provider/source_twilio_resource.go
old mode 100755
new mode 100644
index 35686e774..55a7d8562
--- a/internal/provider/source_twilio_resource.go
+++ b/internal/provider/source_twilio_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceTwilioResource) Schema(ctx context.Context, req resource.SchemaRe
Optional: true,
Description: `How far into the past to look for records. (in minutes)`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twilio",
- ),
- },
- Description: `must be one of ["twilio"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceTwilioResource) Create(ctx context.Context, req resource.CreateRe
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTwilio(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_twilio_resource_sdk.go b/internal/provider/source_twilio_resource_sdk.go
old mode 100755
new mode 100644
index af7e6c208..6e63acfb3
--- a/internal/provider/source_twilio_resource_sdk.go
+++ b/internal/provider/source_twilio_resource_sdk.go
@@ -17,13 +17,11 @@ func (r *SourceTwilioResourceModel) ToCreateSDKType() *shared.SourceTwilioCreate
} else {
lookbackWindow = nil
}
- sourceType := shared.SourceTwilioTwilio(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceTwilio{
AccountSid: accountSid,
AuthToken: authToken,
LookbackWindow: lookbackWindow,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_twiliotaskrouter_data_source.go b/internal/provider/source_twiliotaskrouter_data_source.go
old mode 100755
new mode 100644
index 2e954ff24..b2daae589
--- a/internal/provider/source_twiliotaskrouter_data_source.go
+++ b/internal/provider/source_twiliotaskrouter_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceTwilioTaskrouterDataSource) Schema(ctx context.Context, req datas
Computed: true,
Description: `Twilio Auth Token`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twilio-taskrouter",
- ),
- },
- Description: `must be one of ["twilio-taskrouter"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_twiliotaskrouter_data_source_sdk.go b/internal/provider/source_twiliotaskrouter_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_twiliotaskrouter_resource.go b/internal/provider/source_twiliotaskrouter_resource.go
old mode 100755
new mode 100644
index 9e7e844b0..350f9b1bb
--- a/internal/provider/source_twiliotaskrouter_resource.go
+++ b/internal/provider/source_twiliotaskrouter_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceTwilioTaskrouterResource) Schema(ctx context.Context, req resourc
Required: true,
Description: `Twilio Auth Token`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twilio-taskrouter",
- ),
- },
- Description: `must be one of ["twilio-taskrouter"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceTwilioTaskrouterResource) Create(ctx context.Context, req resourc
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTwilioTaskrouter(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_twiliotaskrouter_resource_sdk.go b/internal/provider/source_twiliotaskrouter_resource_sdk.go
old mode 100755
new mode 100644
index ecb1d5a02..b0c9f5afa
--- a/internal/provider/source_twiliotaskrouter_resource_sdk.go
+++ b/internal/provider/source_twiliotaskrouter_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceTwilioTaskrouterResourceModel) ToCreateSDKType() *shared.SourceTwilioTaskrouterCreateRequest {
accountSid := r.Configuration.AccountSid.ValueString()
authToken := r.Configuration.AuthToken.ValueString()
- sourceType := shared.SourceTwilioTaskrouterTwilioTaskrouter(r.Configuration.SourceType.ValueString())
configuration := shared.SourceTwilioTaskrouter{
AccountSid: accountSid,
AuthToken: authToken,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_twitter_data_source.go b/internal/provider/source_twitter_data_source.go
old mode 100755
new mode 100644
index 106843b33..8b0e29820
--- a/internal/provider/source_twitter_data_source.go
+++ b/internal/provider/source_twitter_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -68,15 +67,6 @@ func (r *SourceTwitterDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Query for matching Tweets. You can learn how to build this query by reading build a query guide .`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twitter",
- ),
- },
- Description: `must be one of ["twitter"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_twitter_data_source_sdk.go b/internal/provider/source_twitter_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_twitter_resource.go b/internal/provider/source_twitter_resource.go
old mode 100755
new mode 100644
index d74a3fe5f..03a85192c
--- a/internal/provider/source_twitter_resource.go
+++ b/internal/provider/source_twitter_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -70,15 +69,6 @@ func (r *SourceTwitterResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Query for matching Tweets. You can learn how to build this query by reading build a query guide .`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "twitter",
- ),
- },
- Description: `must be one of ["twitter"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -158,7 +148,7 @@ func (r *SourceTwitterResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTwitter(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_twitter_resource_sdk.go b/internal/provider/source_twitter_resource_sdk.go
old mode 100755
new mode 100644
index 83fdb537d..a845dd78a
--- a/internal/provider/source_twitter_resource_sdk.go
+++ b/internal/provider/source_twitter_resource_sdk.go
@@ -17,7 +17,6 @@ func (r *SourceTwitterResourceModel) ToCreateSDKType() *shared.SourceTwitterCrea
endDate = nil
}
query := r.Configuration.Query.ValueString()
- sourceType := shared.SourceTwitterTwitter(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -25,11 +24,10 @@ func (r *SourceTwitterResourceModel) ToCreateSDKType() *shared.SourceTwitterCrea
startDate = nil
}
configuration := shared.SourceTwitter{
- APIKey: apiKey,
- EndDate: endDate,
- Query: query,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ EndDate: endDate,
+ Query: query,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_typeform_data_source.go b/internal/provider/source_typeform_data_source.go
old mode 100755
new mode 100644
index ab331c093..d4ecc604c
--- a/internal/provider/source_typeform_data_source.go
+++ b/internal/provider/source_typeform_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceTypeformDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of the Typeform developer application.`,
@@ -100,15 +90,6 @@ func (r *SourceTypeformDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Log into your Typeform account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_typeform_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -118,15 +99,6 @@ func (r *SourceTypeformDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of the Typeform developer application.`,
@@ -155,15 +127,6 @@ func (r *SourceTypeformDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `Log into your Typeform account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
},
@@ -176,15 +139,6 @@ func (r *SourceTypeformDataSource) Schema(ctx context.Context, req datasource.Sc
ElementType: types.StringType,
Description: `When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "typeform",
- ),
- },
- Description: `must be one of ["typeform"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_typeform_data_source_sdk.go b/internal/provider/source_typeform_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_typeform_resource.go b/internal/provider/source_typeform_resource.go
old mode 100755
new mode 100644
index d648ddabe..44959eb2f
--- a/internal/provider/source_typeform_resource.go
+++ b/internal/provider/source_typeform_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of the Typeform developer application.`,
@@ -102,15 +92,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Log into your Typeform account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_typeform_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -120,15 +101,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Access Token for making authenticated requests.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of the Typeform developer application.`,
@@ -157,15 +129,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `Log into your Typeform account and then generate a personal Access Token.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
},
@@ -178,15 +141,6 @@ func (r *SourceTypeformResource) Schema(ctx context.Context, req resource.Schema
ElementType: types.StringType,
Description: `When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "typeform",
- ),
- },
- Description: `must be one of ["typeform"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -266,7 +220,7 @@ func (r *SourceTypeformResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceTypeform(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_typeform_resource_sdk.go b/internal/provider/source_typeform_resource_sdk.go
old mode 100755
new mode 100644
index 3bbcd5996..f292f6dd4
--- a/internal/provider/source_typeform_resource_sdk.go
+++ b/internal/provider/source_typeform_resource_sdk.go
@@ -13,19 +13,12 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr
var sourceTypeformAuthorizationMethodOAuth20 *shared.SourceTypeformAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceTypeformAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTypeformAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceTypeformAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceTypeformAuthorizationMethodOAuth20 = &shared.SourceTypeformAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -40,15 +33,8 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr
var sourceTypeformAuthorizationMethodPrivateToken *shared.SourceTypeformAuthorizationMethodPrivateToken
if r.Configuration.Credentials.SourceTypeformAuthorizationMethodPrivateToken != nil {
accessToken1 := r.Configuration.Credentials.SourceTypeformAuthorizationMethodPrivateToken.AccessToken.ValueString()
- authType1 := new(shared.SourceTypeformAuthorizationMethodPrivateTokenAuthType)
- if !r.Configuration.Credentials.SourceTypeformAuthorizationMethodPrivateToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTypeformAuthorizationMethodPrivateToken.AuthType.IsNull() {
- *authType1 = shared.SourceTypeformAuthorizationMethodPrivateTokenAuthType(r.Configuration.Credentials.SourceTypeformAuthorizationMethodPrivateToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceTypeformAuthorizationMethodPrivateToken = &shared.SourceTypeformAuthorizationMethodPrivateToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceTypeformAuthorizationMethodPrivateToken != nil {
@@ -60,7 +46,6 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr
for _, formIdsItem := range r.Configuration.FormIds {
formIds = append(formIds, formIdsItem.ValueString())
}
- sourceType := shared.SourceTypeformTypeform(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -70,7 +55,6 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr
configuration := shared.SourceTypeform{
Credentials: credentials,
FormIds: formIds,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -100,19 +84,12 @@ func (r *SourceTypeformResourceModel) ToUpdateSDKType() *shared.SourceTypeformPu
var sourceTypeformUpdateAuthorizationMethodOAuth20 *shared.SourceTypeformUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authType := new(shared.SourceTypeformUpdateAuthorizationMethodOAuth20AuthType)
- if !r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.AuthType.IsNull() {
- *authType = shared.SourceTypeformUpdateAuthorizationMethodOAuth20AuthType(r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.AuthType.ValueString())
- } else {
- authType = nil
- }
clientID := r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
refreshToken := r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
tokenExpiryDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodOAuth20.TokenExpiryDate.ValueString())
sourceTypeformUpdateAuthorizationMethodOAuth20 = &shared.SourceTypeformUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthType: authType,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
@@ -127,15 +104,8 @@ func (r *SourceTypeformResourceModel) ToUpdateSDKType() *shared.SourceTypeformPu
var sourceTypeformUpdateAuthorizationMethodPrivateToken *shared.SourceTypeformUpdateAuthorizationMethodPrivateToken
if r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodPrivateToken != nil {
accessToken1 := r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodPrivateToken.AccessToken.ValueString()
- authType1 := new(shared.SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType)
- if !r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodPrivateToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodPrivateToken.AuthType.IsNull() {
- *authType1 = shared.SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType(r.Configuration.Credentials.SourceTypeformUpdateAuthorizationMethodPrivateToken.AuthType.ValueString())
- } else {
- authType1 = nil
- }
sourceTypeformUpdateAuthorizationMethodPrivateToken = &shared.SourceTypeformUpdateAuthorizationMethodPrivateToken{
AccessToken: accessToken1,
- AuthType: authType1,
}
}
if sourceTypeformUpdateAuthorizationMethodPrivateToken != nil {
diff --git a/internal/provider/source_uscensus_data_source.go b/internal/provider/source_uscensus_data_source.go
old mode 100755
new mode 100644
index b5a6be4c9..c7180a5bd
--- a/internal/provider/source_uscensus_data_source.go
+++ b/internal/provider/source_uscensus_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceUsCensusDataSource) Schema(ctx context.Context, req datasource.Sc
Computed: true,
Description: `The path portion of the GET request`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "us-census",
- ),
- },
- Description: `must be one of ["us-census"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_uscensus_data_source_sdk.go b/internal/provider/source_uscensus_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_uscensus_resource.go b/internal/provider/source_uscensus_resource.go
old mode 100755
new mode 100644
index 1f6ec805d..b018b11e4
--- a/internal/provider/source_uscensus_resource.go
+++ b/internal/provider/source_uscensus_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceUsCensusResource) Schema(ctx context.Context, req resource.Schema
Required: true,
Description: `The path portion of the GET request`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "us-census",
- ),
- },
- Description: `must be one of ["us-census"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -147,7 +136,7 @@ func (r *SourceUsCensusResource) Create(ctx context.Context, req resource.Create
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceUsCensus(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_uscensus_resource_sdk.go b/internal/provider/source_uscensus_resource_sdk.go
old mode 100755
new mode 100644
index 17e245f20..623f423ad
--- a/internal/provider/source_uscensus_resource_sdk.go
+++ b/internal/provider/source_uscensus_resource_sdk.go
@@ -16,12 +16,10 @@ func (r *SourceUsCensusResourceModel) ToCreateSDKType() *shared.SourceUsCensusCr
queryParams = nil
}
queryPath := r.Configuration.QueryPath.ValueString()
- sourceType := shared.SourceUsCensusUsCensus(r.Configuration.SourceType.ValueString())
configuration := shared.SourceUsCensus{
APIKey: apiKey,
QueryParams: queryParams,
QueryPath: queryPath,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_vantage_data_source.go b/internal/provider/source_vantage_data_source.go
old mode 100755
new mode 100644
index b228002cc..267df488d
--- a/internal/provider/source_vantage_data_source.go
+++ b/internal/provider/source_vantage_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceVantageDataSource struct {
// SourceVantageDataSourceModel describes the data model.
type SourceVantageDataSourceModel struct {
- Configuration SourceVantage `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceLaunchdarkly `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,15 +54,6 @@ func (r *SourceVantageDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Your API Access token. See here.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "vantage",
- ),
- },
- Description: `must be one of ["vantage"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_vantage_data_source_sdk.go b/internal/provider/source_vantage_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_vantage_resource.go b/internal/provider/source_vantage_resource.go
old mode 100755
new mode 100644
index 9bb5b2d91..3c21c4880
--- a/internal/provider/source_vantage_resource.go
+++ b/internal/provider/source_vantage_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceVantageResource struct {
// SourceVantageResourceModel describes the resource data model.
type SourceVantageResourceModel struct {
- Configuration SourceVantage `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceLaunchdarkly `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceVantageResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -58,15 +56,6 @@ func (r *SourceVantageResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `Your API Access token. See here.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "vantage",
- ),
- },
- Description: `must be one of ["vantage"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceVantageResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceVantage(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_vantage_resource_sdk.go b/internal/provider/source_vantage_resource_sdk.go
old mode 100755
new mode 100644
index 646343033..87444a626
--- a/internal/provider/source_vantage_resource_sdk.go
+++ b/internal/provider/source_vantage_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceVantageResourceModel) ToCreateSDKType() *shared.SourceVantageCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
- sourceType := shared.SourceVantageVantage(r.Configuration.SourceType.ValueString())
configuration := shared.SourceVantage{
AccessToken: accessToken,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_webflow_data_source.go b/internal/provider/source_webflow_data_source.go
old mode 100755
new mode 100644
index fa9674bbf..01e9b5dad
--- a/internal/provider/source_webflow_data_source.go
+++ b/internal/provider/source_webflow_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceWebflowDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "webflow",
- ),
- },
- Description: `must be one of ["webflow"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_webflow_data_source_sdk.go b/internal/provider/source_webflow_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_webflow_resource.go b/internal/provider/source_webflow_resource.go
old mode 100755
new mode 100644
index 4b7fc09af..c672a6b50
--- a/internal/provider/source_webflow_resource.go
+++ b/internal/provider/source_webflow_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceWebflowResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "webflow",
- ),
- },
- Description: `must be one of ["webflow"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -143,7 +132,7 @@ func (r *SourceWebflowResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceWebflow(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_webflow_resource_sdk.go b/internal/provider/source_webflow_resource_sdk.go
old mode 100755
new mode 100644
index a3f013fe5..91e20b423
--- a/internal/provider/source_webflow_resource_sdk.go
+++ b/internal/provider/source_webflow_resource_sdk.go
@@ -10,11 +10,9 @@ import (
func (r *SourceWebflowResourceModel) ToCreateSDKType() *shared.SourceWebflowCreateRequest {
apiKey := r.Configuration.APIKey.ValueString()
siteID := r.Configuration.SiteID.ValueString()
- sourceType := shared.SourceWebflowWebflow(r.Configuration.SourceType.ValueString())
configuration := shared.SourceWebflow{
- APIKey: apiKey,
- SiteID: siteID,
- SourceType: sourceType,
+ APIKey: apiKey,
+ SiteID: siteID,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_whiskyhunter_data_source.go b/internal/provider/source_whiskyhunter_data_source.go
old mode 100755
new mode 100644
index ad713ea15..360f8c7f0
--- a/internal/provider/source_whiskyhunter_data_source.go
+++ b/internal/provider/source_whiskyhunter_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -50,18 +48,8 @@ func (r *SourceWhiskyHunterDataSource) Schema(ctx context.Context, req datasourc
Attributes: map[string]schema.Attribute{
"configuration": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "whisky-hunter",
- ),
- },
- Description: `must be one of ["whisky-hunter"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
},
"name": schema.StringAttribute{
Computed: true,
diff --git a/internal/provider/source_whiskyhunter_data_source_sdk.go b/internal/provider/source_whiskyhunter_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_whiskyhunter_resource.go b/internal/provider/source_whiskyhunter_resource.go
old mode 100755
new mode 100644
index a18c17682..24a11533f
--- a/internal/provider/source_whiskyhunter_resource.go
+++ b/internal/provider/source_whiskyhunter_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -52,18 +50,8 @@ func (r *SourceWhiskyHunterResource) Schema(ctx context.Context, req resource.Sc
Attributes: map[string]schema.Attribute{
"configuration": schema.SingleNestedAttribute{
- Required: true,
- Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "whisky-hunter",
- ),
- },
- Description: `must be one of ["whisky-hunter"]`,
- },
- },
+ Required: true,
+ Attributes: map[string]schema.Attribute{},
},
"name": schema.StringAttribute{
PlanModifiers: []planmodifier.String{
@@ -135,7 +123,7 @@ func (r *SourceWhiskyHunterResource) Create(ctx context.Context, req resource.Cr
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceWhiskyHunter(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_whiskyhunter_resource_sdk.go b/internal/provider/source_whiskyhunter_resource_sdk.go
old mode 100755
new mode 100644
index 7ee65e27f..46743740b
--- a/internal/provider/source_whiskyhunter_resource_sdk.go
+++ b/internal/provider/source_whiskyhunter_resource_sdk.go
@@ -8,15 +8,7 @@ import (
)
func (r *SourceWhiskyHunterResourceModel) ToCreateSDKType() *shared.SourceWhiskyHunterCreateRequest {
- sourceType := new(shared.SourceWhiskyHunterWhiskyHunter)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceWhiskyHunterWhiskyHunter(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
- configuration := shared.SourceWhiskyHunter{
- SourceType: sourceType,
- }
+ configuration := shared.SourceWhiskyHunter{}
name := r.Name.ValueString()
secretID := new(string)
if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() {
diff --git a/internal/provider/source_wikipediapageviews_data_source.go b/internal/provider/source_wikipediapageviews_data_source.go
old mode 100755
new mode 100644
index 131bbd28e..830fdb6d9
--- a/internal/provider/source_wikipediapageviews_data_source.go
+++ b/internal/provider/source_wikipediapageviews_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -76,15 +74,6 @@ func (r *SourceWikipediaPageviewsDataSource) Schema(ctx context.Context, req dat
Computed: true,
Description: `If you want to filter by project, use the domain of any Wikimedia project.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "wikipedia-pageviews",
- ),
- },
- Description: `must be one of ["wikipedia-pageviews"]`,
- },
"start": schema.StringAttribute{
Computed: true,
Description: `The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.`,
diff --git a/internal/provider/source_wikipediapageviews_data_source_sdk.go b/internal/provider/source_wikipediapageviews_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_wikipediapageviews_resource.go b/internal/provider/source_wikipediapageviews_resource.go
old mode 100755
new mode 100644
index 2aac17c1d..c0c42262c
--- a/internal/provider/source_wikipediapageviews_resource.go
+++ b/internal/provider/source_wikipediapageviews_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -78,15 +76,6 @@ func (r *SourceWikipediaPageviewsResource) Schema(ctx context.Context, req resou
Required: true,
Description: `If you want to filter by project, use the domain of any Wikimedia project.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "wikipedia-pageviews",
- ),
- },
- Description: `must be one of ["wikipedia-pageviews"]`,
- },
"start": schema.StringAttribute{
Required: true,
Description: `The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.`,
@@ -163,7 +152,7 @@ func (r *SourceWikipediaPageviewsResource) Create(ctx context.Context, req resou
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceWikipediaPageviews(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_wikipediapageviews_resource_sdk.go b/internal/provider/source_wikipediapageviews_resource_sdk.go
old mode 100755
new mode 100644
index f19adbcc0..17d721c58
--- a/internal/provider/source_wikipediapageviews_resource_sdk.go
+++ b/internal/provider/source_wikipediapageviews_resource_sdk.go
@@ -14,17 +14,15 @@ func (r *SourceWikipediaPageviewsResourceModel) ToCreateSDKType() *shared.Source
country := r.Configuration.Country.ValueString()
end := r.Configuration.End.ValueString()
project := r.Configuration.Project.ValueString()
- sourceType := shared.SourceWikipediaPageviewsWikipediaPageviews(r.Configuration.SourceType.ValueString())
start := r.Configuration.Start.ValueString()
configuration := shared.SourceWikipediaPageviews{
- Access: access,
- Agent: agent,
- Article: article,
- Country: country,
- End: end,
- Project: project,
- SourceType: sourceType,
- Start: start,
+ Access: access,
+ Agent: agent,
+ Article: article,
+ Country: country,
+ End: end,
+ Project: project,
+ Start: start,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_woocommerce_data_source.go b/internal/provider/source_woocommerce_data_source.go
old mode 100755
new mode 100644
index f5fa9aa58..9c8a836a1
--- a/internal/provider/source_woocommerce_data_source.go
+++ b/internal/provider/source_woocommerce_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceWoocommerceDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "woocommerce",
- ),
- },
- Description: `must be one of ["woocommerce"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_woocommerce_data_source_sdk.go b/internal/provider/source_woocommerce_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_woocommerce_resource.go b/internal/provider/source_woocommerce_resource.go
old mode 100755
new mode 100644
index cb9875953..d199895ae
--- a/internal/provider/source_woocommerce_resource.go
+++ b/internal/provider/source_woocommerce_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -67,15 +66,6 @@ func (r *SourceWoocommerceResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "woocommerce",
- ),
- },
- Description: `must be one of ["woocommerce"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceWoocommerceResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceWoocommerce(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_woocommerce_resource_sdk.go b/internal/provider/source_woocommerce_resource_sdk.go
old mode 100755
new mode 100644
index ce0d7a8c2..ff075407d
--- a/internal/provider/source_woocommerce_resource_sdk.go
+++ b/internal/provider/source_woocommerce_resource_sdk.go
@@ -12,14 +12,12 @@ func (r *SourceWoocommerceResourceModel) ToCreateSDKType() *shared.SourceWoocomm
apiKey := r.Configuration.APIKey.ValueString()
apiSecret := r.Configuration.APISecret.ValueString()
shop := r.Configuration.Shop.ValueString()
- sourceType := shared.SourceWoocommerceWoocommerce(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceWoocommerce{
- APIKey: apiKey,
- APISecret: apiSecret,
- Shop: shop,
- SourceType: sourceType,
- StartDate: startDate,
+ APIKey: apiKey,
+ APISecret: apiSecret,
+ Shop: shop,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_xero_data_source.go b/internal/provider/source_xero_data_source.go
old mode 100755
new mode 100644
index 13a3a91ae..13abfe8c8
--- a/internal/provider/source_xero_data_source.go
+++ b/internal/provider/source_xero_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -78,15 +77,6 @@ func (r *SourceXeroDataSource) Schema(ctx context.Context, req datasource.Schema
},
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xero",
- ),
- },
- Description: `must be one of ["xero"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_xero_data_source_sdk.go b/internal/provider/source_xero_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_xero_resource.go b/internal/provider/source_xero_resource.go
old mode 100755
new mode 100644
index 060b899db..5be3c579a
--- a/internal/provider/source_xero_resource.go
+++ b/internal/provider/source_xero_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -80,15 +79,6 @@ func (r *SourceXeroResource) Schema(ctx context.Context, req resource.SchemaRequ
},
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xero",
- ),
- },
- Description: `must be one of ["xero"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -172,7 +162,7 @@ func (r *SourceXeroResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceXero(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_xero_resource_sdk.go b/internal/provider/source_xero_resource_sdk.go
old mode 100755
new mode 100644
index d002727e0..f3129b23f
--- a/internal/provider/source_xero_resource_sdk.go
+++ b/internal/provider/source_xero_resource_sdk.go
@@ -21,12 +21,10 @@ func (r *SourceXeroResourceModel) ToCreateSDKType() *shared.SourceXeroCreateRequ
RefreshToken: refreshToken,
TokenExpiryDate: tokenExpiryDate,
}
- sourceType := shared.SourceXeroXero(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
tenantID := r.Configuration.TenantID.ValueString()
configuration := shared.SourceXero{
Authentication: authentication,
- SourceType: sourceType,
StartDate: startDate,
TenantID: tenantID,
}
diff --git a/internal/provider/source_xkcd_data_source.go b/internal/provider/source_xkcd_data_source.go
old mode 100755
new mode 100644
index c9a3167a4..fcbf28c71
--- a/internal/provider/source_xkcd_data_source.go
+++ b/internal/provider/source_xkcd_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -31,11 +29,11 @@ type SourceXkcdDataSource struct {
// SourceXkcdDataSourceModel describes the data model.
type SourceXkcdDataSourceModel struct {
- Configuration SourceXkcd `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceWhiskyHunter `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -50,18 +48,8 @@ func (r *SourceXkcdDataSource) Schema(ctx context.Context, req datasource.Schema
Attributes: map[string]schema.Attribute{
"configuration": schema.SingleNestedAttribute{
- Computed: true,
- Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xkcd",
- ),
- },
- Description: `must be one of ["xkcd"]`,
- },
- },
+ Computed: true,
+ Attributes: map[string]schema.Attribute{},
},
"name": schema.StringAttribute{
Computed: true,
diff --git a/internal/provider/source_xkcd_data_source_sdk.go b/internal/provider/source_xkcd_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_xkcd_resource.go b/internal/provider/source_xkcd_resource.go
old mode 100755
new mode 100644
index d621e3eb6..e62aae1df
--- a/internal/provider/source_xkcd_resource.go
+++ b/internal/provider/source_xkcd_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -34,12 +32,12 @@ type SourceXkcdResource struct {
// SourceXkcdResourceModel describes the resource data model.
type SourceXkcdResourceModel struct {
- Configuration SourceXkcd `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- SourceType types.String `tfsdk:"source_type"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceWhiskyHunter `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ SourceType types.String `tfsdk:"source_type"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
func (r *SourceXkcdResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
@@ -52,18 +50,8 @@ func (r *SourceXkcdResource) Schema(ctx context.Context, req resource.SchemaRequ
Attributes: map[string]schema.Attribute{
"configuration": schema.SingleNestedAttribute{
- Required: true,
- Attributes: map[string]schema.Attribute{
- "source_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "xkcd",
- ),
- },
- Description: `must be one of ["xkcd"]`,
- },
- },
+ Required: true,
+ Attributes: map[string]schema.Attribute{},
},
"name": schema.StringAttribute{
PlanModifiers: []planmodifier.String{
@@ -135,7 +123,7 @@ func (r *SourceXkcdResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceXkcd(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_xkcd_resource_sdk.go b/internal/provider/source_xkcd_resource_sdk.go
old mode 100755
new mode 100644
index 196c6c242..2afecf920
--- a/internal/provider/source_xkcd_resource_sdk.go
+++ b/internal/provider/source_xkcd_resource_sdk.go
@@ -8,15 +8,7 @@ import (
)
func (r *SourceXkcdResourceModel) ToCreateSDKType() *shared.SourceXkcdCreateRequest {
- sourceType := new(shared.SourceXkcdXkcd)
- if !r.Configuration.SourceType.IsUnknown() && !r.Configuration.SourceType.IsNull() {
- *sourceType = shared.SourceXkcdXkcd(r.Configuration.SourceType.ValueString())
- } else {
- sourceType = nil
- }
- configuration := shared.SourceXkcd{
- SourceType: sourceType,
- }
+ configuration := shared.SourceXkcd{}
name := r.Name.ValueString()
secretID := new(string)
if !r.SecretID.IsUnknown() && !r.SecretID.IsNull() {
diff --git a/internal/provider/source_yandexmetrica_data_source.go b/internal/provider/source_yandexmetrica_data_source.go
old mode 100755
new mode 100644
index 206f8e326..39557dabb
--- a/internal/provider/source_yandexmetrica_data_source.go
+++ b/internal/provider/source_yandexmetrica_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -68,15 +67,6 @@ func (r *SourceYandexMetricaDataSource) Schema(ctx context.Context, req datasour
},
Description: `Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "yandex-metrica",
- ),
- },
- Description: `must be one of ["yandex-metrica"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_yandexmetrica_data_source_sdk.go b/internal/provider/source_yandexmetrica_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_yandexmetrica_resource.go b/internal/provider/source_yandexmetrica_resource.go
old mode 100755
new mode 100644
index f8be98af6..9aaa6ff25
--- a/internal/provider/source_yandexmetrica_resource.go
+++ b/internal/provider/source_yandexmetrica_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -70,15 +69,6 @@ func (r *SourceYandexMetricaResource) Schema(ctx context.Context, req resource.S
},
Description: `Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "yandex-metrica",
- ),
- },
- Description: `must be one of ["yandex-metrica"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -158,7 +148,7 @@ func (r *SourceYandexMetricaResource) Create(ctx context.Context, req resource.C
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceYandexMetrica(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_yandexmetrica_resource_sdk.go b/internal/provider/source_yandexmetrica_resource_sdk.go
old mode 100755
new mode 100644
index 8501a3ec2..3526d2a5c
--- a/internal/provider/source_yandexmetrica_resource_sdk.go
+++ b/internal/provider/source_yandexmetrica_resource_sdk.go
@@ -17,14 +17,12 @@ func (r *SourceYandexMetricaResourceModel) ToCreateSDKType() *shared.SourceYande
} else {
endDate = nil
}
- sourceType := shared.SourceYandexMetricaYandexMetrica(r.Configuration.SourceType.ValueString())
startDate := customTypes.MustDateFromString(r.Configuration.StartDate.ValueString())
configuration := shared.SourceYandexMetrica{
- AuthToken: authToken,
- CounterID: counterID,
- EndDate: endDate,
- SourceType: sourceType,
- StartDate: startDate,
+ AuthToken: authToken,
+ CounterID: counterID,
+ EndDate: endDate,
+ StartDate: startDate,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_yotpo_data_source.go b/internal/provider/source_yotpo_data_source.go
old mode 100755
new mode 100644
index 9eddb6c5b..87a4957d1
--- a/internal/provider/source_yotpo_data_source.go
+++ b/internal/provider/source_yotpo_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -65,15 +64,6 @@ func (r *SourceYotpoDataSource) Schema(ctx context.Context, req datasource.Schem
Computed: true,
Description: `Email address registered with yotpo.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "yotpo",
- ),
- },
- Description: `must be one of ["yotpo"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_yotpo_data_source_sdk.go b/internal/provider/source_yotpo_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_yotpo_resource.go b/internal/provider/source_yotpo_resource.go
old mode 100755
new mode 100644
index 37386725e..1713ca0c2
--- a/internal/provider/source_yotpo_resource.go
+++ b/internal/provider/source_yotpo_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -64,18 +63,9 @@ func (r *SourceYotpoResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)`,
},
"email": schema.StringAttribute{
- Required: true,
+ Optional: true,
Description: `Email address registered with yotpo.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "yotpo",
- ),
- },
- Description: `must be one of ["yotpo"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -155,7 +145,7 @@ func (r *SourceYotpoResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceYotpo(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_yotpo_resource_sdk.go b/internal/provider/source_yotpo_resource_sdk.go
old mode 100755
new mode 100644
index a88386bbf..ab14f8329
--- a/internal/provider/source_yotpo_resource_sdk.go
+++ b/internal/provider/source_yotpo_resource_sdk.go
@@ -11,14 +11,17 @@ import (
func (r *SourceYotpoResourceModel) ToCreateSDKType() *shared.SourceYotpoCreateRequest {
accessToken := r.Configuration.AccessToken.ValueString()
appKey := r.Configuration.AppKey.ValueString()
- email := r.Configuration.Email.ValueString()
- sourceType := shared.SourceYotpoYotpo(r.Configuration.SourceType.ValueString())
+ email := new(string)
+ if !r.Configuration.Email.IsUnknown() && !r.Configuration.Email.IsNull() {
+ *email = r.Configuration.Email.ValueString()
+ } else {
+ email = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceYotpo{
AccessToken: accessToken,
AppKey: appKey,
Email: email,
- SourceType: sourceType,
StartDate: startDate,
}
name := r.Name.ValueString()
@@ -46,7 +49,12 @@ func (r *SourceYotpoResourceModel) ToGetSDKType() *shared.SourceYotpoCreateReque
func (r *SourceYotpoResourceModel) ToUpdateSDKType() *shared.SourceYotpoPutRequest {
accessToken := r.Configuration.AccessToken.ValueString()
appKey := r.Configuration.AppKey.ValueString()
- email := r.Configuration.Email.ValueString()
+ email := new(string)
+ if !r.Configuration.Email.IsUnknown() && !r.Configuration.Email.IsNull() {
+ *email = r.Configuration.Email.ValueString()
+ } else {
+ email = nil
+ }
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
configuration := shared.SourceYotpoUpdate{
AccessToken: accessToken,
diff --git a/internal/provider/source_younium_data_source.go b/internal/provider/source_younium_data_source.go
old mode 100755
new mode 100644
index 10c82869b..6980a6fb1
--- a/internal/provider/source_younium_data_source.go
+++ b/internal/provider/source_younium_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -64,15 +62,6 @@ func (r *SourceYouniumDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Property defining if connector is used against playground or production environment`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "younium",
- ),
- },
- Description: `must be one of ["younium"]`,
- },
"username": schema.StringAttribute{
Computed: true,
Description: `Username for Younium account`,
diff --git a/internal/provider/source_younium_data_source_sdk.go b/internal/provider/source_younium_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_younium_resource.go b/internal/provider/source_younium_resource.go
old mode 100755
new mode 100644
index 97e9c54e9..88b1fb937
--- a/internal/provider/source_younium_resource.go
+++ b/internal/provider/source_younium_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -66,15 +64,6 @@ func (r *SourceYouniumResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Property defining if connector is used against playground or production environment`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "younium",
- ),
- },
- Description: `must be one of ["younium"]`,
- },
"username": schema.StringAttribute{
Required: true,
Description: `Username for Younium account`,
@@ -151,7 +140,7 @@ func (r *SourceYouniumResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceYounium(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_younium_resource_sdk.go b/internal/provider/source_younium_resource_sdk.go
old mode 100755
new mode 100644
index 2f69bb4e7..b36c8cb3b
--- a/internal/provider/source_younium_resource_sdk.go
+++ b/internal/provider/source_younium_resource_sdk.go
@@ -16,13 +16,11 @@ func (r *SourceYouniumResourceModel) ToCreateSDKType() *shared.SourceYouniumCrea
} else {
playground = nil
}
- sourceType := shared.SourceYouniumYounium(r.Configuration.SourceType.ValueString())
username := r.Configuration.Username.ValueString()
configuration := shared.SourceYounium{
LegalEntity: legalEntity,
Password: password,
Playground: playground,
- SourceType: sourceType,
Username: username,
}
name := r.Name.ValueString()
diff --git a/internal/provider/source_youtubeanalytics_data_source.go b/internal/provider/source_youtubeanalytics_data_source.go
old mode 100755
new mode 100644
index 16da34d65..1e6276414
--- a/internal/provider/source_youtubeanalytics_data_source.go
+++ b/internal/provider/source_youtubeanalytics_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceYoutubeAnalyticsDataSource struct {
// SourceYoutubeAnalyticsDataSourceModel describes the data model.
type SourceYoutubeAnalyticsDataSourceModel struct {
- Configuration SourceYoutubeAnalytics1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceYoutubeAnalytics `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -56,6 +55,13 @@ func (r *SourceYoutubeAnalyticsDataSource) Schema(ctx context.Context, req datas
"credentials": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your developer application`,
@@ -68,23 +74,7 @@ func (r *SourceYoutubeAnalyticsDataSource) Schema(ctx context.Context, req datas
Computed: true,
Description: `A refresh token generated using the above client ID and secret`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
- },
- },
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "youtube-analytics",
- ),
},
- Description: `must be one of ["youtube-analytics"]`,
},
},
},
diff --git a/internal/provider/source_youtubeanalytics_data_source_sdk.go b/internal/provider/source_youtubeanalytics_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_youtubeanalytics_resource.go b/internal/provider/source_youtubeanalytics_resource.go
old mode 100755
new mode 100644
index d43c490e6..bda225f4f
--- a/internal/provider/source_youtubeanalytics_resource.go
+++ b/internal/provider/source_youtubeanalytics_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -58,6 +57,13 @@ func (r *SourceYoutubeAnalyticsResource) Schema(ctx context.Context, req resourc
"credentials": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your developer application`,
@@ -70,23 +76,7 @@ func (r *SourceYoutubeAnalyticsResource) Schema(ctx context.Context, req resourc
Required: true,
Description: `A refresh token generated using the above client ID and secret`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
- },
- },
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "youtube-analytics",
- ),
},
- Description: `must be one of ["youtube-analytics"]`,
},
},
},
@@ -160,7 +150,7 @@ func (r *SourceYoutubeAnalyticsResource) Create(ctx context.Context, req resourc
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceYoutubeAnalytics(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_youtubeanalytics_resource_sdk.go b/internal/provider/source_youtubeanalytics_resource_sdk.go
old mode 100755
new mode 100644
index a8580f02f..c13b23acd
--- a/internal/provider/source_youtubeanalytics_resource_sdk.go
+++ b/internal/provider/source_youtubeanalytics_resource_sdk.go
@@ -9,23 +9,21 @@ import (
)
func (r *SourceYoutubeAnalyticsResourceModel) ToCreateSDKType() *shared.SourceYoutubeAnalyticsCreateRequest {
- clientID := r.Configuration.Credentials.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.RefreshToken.ValueString()
credentials := shared.SourceYoutubeAnalyticsAuthenticateViaOAuth20{
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
- sourceType := shared.SourceYoutubeAnalyticsYoutubeAnalytics(r.Configuration.SourceType.ValueString())
configuration := shared.SourceYoutubeAnalytics{
Credentials: credentials,
- SourceType: sourceType,
}
name := r.Name.ValueString()
secretID := new(string)
@@ -50,18 +48,18 @@ func (r *SourceYoutubeAnalyticsResourceModel) ToGetSDKType() *shared.SourceYoutu
}
func (r *SourceYoutubeAnalyticsResourceModel) ToUpdateSDKType() *shared.SourceYoutubeAnalyticsPutRequest {
- clientID := r.Configuration.Credentials.ClientID.ValueString()
- clientSecret := r.Configuration.Credentials.ClientSecret.ValueString()
- refreshToken := r.Configuration.Credentials.RefreshToken.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.AdditionalProperties.ValueString()), &additionalProperties)
}
+ clientID := r.Configuration.Credentials.ClientID.ValueString()
+ clientSecret := r.Configuration.Credentials.ClientSecret.ValueString()
+ refreshToken := r.Configuration.Credentials.RefreshToken.ValueString()
credentials := shared.SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20{
+ AdditionalProperties: additionalProperties,
ClientID: clientID,
ClientSecret: clientSecret,
RefreshToken: refreshToken,
- AdditionalProperties: additionalProperties,
}
configuration := shared.SourceYoutubeAnalyticsUpdate{
Credentials: credentials,
diff --git a/internal/provider/source_zendeskchat_data_source.go b/internal/provider/source_zendeskchat_data_source.go
old mode 100755
new mode 100644
index db95de466..b107bd722
--- a/internal/provider/source_zendeskchat_data_source.go
+++ b/internal/provider/source_zendeskchat_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceZendeskChatDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Access Token to make authenticated requests.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_zendesk_chat_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -89,15 +79,6 @@ func (r *SourceZendeskChatDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Client Secret of your OAuth application.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `Refresh Token to obtain new Access Token, when it's expired.`,
@@ -111,15 +92,6 @@ func (r *SourceZendeskChatDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Access Token to make authenticated requests.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_zendesk_chat_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -137,15 +109,6 @@ func (r *SourceZendeskChatDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `The Client Secret of your OAuth application.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"refresh_token": schema.StringAttribute{
Computed: true,
Description: `Refresh Token to obtain new Access Token, when it's expired.`,
@@ -157,15 +120,6 @@ func (r *SourceZendeskChatDataSource) Schema(ctx context.Context, req datasource
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-chat",
- ),
- },
- Description: `must be one of ["zendesk-chat"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_zendeskchat_data_source_sdk.go b/internal/provider/source_zendeskchat_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zendeskchat_resource.go b/internal/provider/source_zendeskchat_resource.go
old mode 100755
new mode 100644
index f807856c2..0edc86043
--- a/internal/provider/source_zendeskchat_resource.go
+++ b/internal/provider/source_zendeskchat_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The Access Token to make authenticated requests.`,
},
- "credentials": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_zendesk_chat_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -91,15 +81,6 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `The Client Secret of your OAuth application.`,
},
- "credentials": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"refresh_token": schema.StringAttribute{
Optional: true,
Description: `Refresh Token to obtain new Access Token, when it's expired.`,
@@ -113,15 +94,6 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The Access Token to make authenticated requests.`,
},
- "credentials": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "access_token",
- ),
- },
- Description: `must be one of ["access_token"]`,
- },
},
},
"source_zendesk_chat_update_authorization_method_o_auth2_0": schema.SingleNestedAttribute{
@@ -139,15 +111,6 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `The Client Secret of your OAuth application.`,
},
- "credentials": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"refresh_token": schema.StringAttribute{
Optional: true,
Description: `Refresh Token to obtain new Access Token, when it's expired.`,
@@ -159,15 +122,6 @@ func (r *SourceZendeskChatResource) Schema(ctx context.Context, req resource.Sch
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-chat",
- ),
- },
- Description: `must be one of ["zendesk-chat"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -251,7 +205,7 @@ func (r *SourceZendeskChatResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZendeskChat(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zendeskchat_resource_sdk.go b/internal/provider/source_zendeskchat_resource_sdk.go
old mode 100755
new mode 100644
index 934bc48c2..a9f99c458
--- a/internal/provider/source_zendeskchat_resource_sdk.go
+++ b/internal/provider/source_zendeskchat_resource_sdk.go
@@ -31,7 +31,6 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk
} else {
clientSecret = nil
}
- credentials1 := shared.SourceZendeskChatAuthorizationMethodOAuth20Credentials(r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodOAuth20.Credentials.ValueString())
refreshToken := new(string)
if !r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodOAuth20.RefreshToken.IsUnknown() && !r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodOAuth20.RefreshToken.IsNull() {
*refreshToken = r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodOAuth20.RefreshToken.ValueString()
@@ -42,7 +41,6 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- Credentials: credentials1,
RefreshToken: refreshToken,
}
}
@@ -54,10 +52,8 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk
var sourceZendeskChatAuthorizationMethodAccessToken *shared.SourceZendeskChatAuthorizationMethodAccessToken
if r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodAccessToken.AccessToken.ValueString()
- credentials2 := shared.SourceZendeskChatAuthorizationMethodAccessTokenCredentials(r.Configuration.Credentials.SourceZendeskChatAuthorizationMethodAccessToken.Credentials.ValueString())
sourceZendeskChatAuthorizationMethodAccessToken = &shared.SourceZendeskChatAuthorizationMethodAccessToken{
AccessToken: accessToken1,
- Credentials: credentials2,
}
}
if sourceZendeskChatAuthorizationMethodAccessToken != nil {
@@ -66,7 +62,6 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk
}
}
}
- sourceType := shared.SourceZendeskChatZendeskChat(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
subdomain := new(string)
if !r.Configuration.Subdomain.IsUnknown() && !r.Configuration.Subdomain.IsNull() {
@@ -76,7 +71,6 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk
}
configuration := shared.SourceZendeskChat{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
Subdomain: subdomain,
}
@@ -125,7 +119,6 @@ func (r *SourceZendeskChatResourceModel) ToUpdateSDKType() *shared.SourceZendesk
} else {
clientSecret = nil
}
- credentials1 := shared.SourceZendeskChatUpdateAuthorizationMethodOAuth20Credentials(r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodOAuth20.Credentials.ValueString())
refreshToken := new(string)
if !r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodOAuth20.RefreshToken.IsUnknown() && !r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodOAuth20.RefreshToken.IsNull() {
*refreshToken = r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodOAuth20.RefreshToken.ValueString()
@@ -136,7 +129,6 @@ func (r *SourceZendeskChatResourceModel) ToUpdateSDKType() *shared.SourceZendesk
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- Credentials: credentials1,
RefreshToken: refreshToken,
}
}
@@ -148,10 +140,8 @@ func (r *SourceZendeskChatResourceModel) ToUpdateSDKType() *shared.SourceZendesk
var sourceZendeskChatUpdateAuthorizationMethodAccessToken *shared.SourceZendeskChatUpdateAuthorizationMethodAccessToken
if r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodAccessToken != nil {
accessToken1 := r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodAccessToken.AccessToken.ValueString()
- credentials2 := shared.SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentials(r.Configuration.Credentials.SourceZendeskChatUpdateAuthorizationMethodAccessToken.Credentials.ValueString())
sourceZendeskChatUpdateAuthorizationMethodAccessToken = &shared.SourceZendeskChatUpdateAuthorizationMethodAccessToken{
AccessToken: accessToken1,
- Credentials: credentials2,
}
}
if sourceZendeskChatUpdateAuthorizationMethodAccessToken != nil {
diff --git a/internal/provider/source_zendesksunshine_data_source.go b/internal/provider/source_zendesksunshine_data_source.go
old mode 100755
new mode 100644
index 03bad6f4a..49e8b5d2a
--- a/internal/provider/source_zendesksunshine_data_source.go
+++ b/internal/provider/source_zendesksunshine_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -63,15 +62,6 @@ func (r *SourceZendeskSunshineDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `API Token. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account`,
@@ -85,15 +75,6 @@ func (r *SourceZendeskSunshineDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Long-term access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -111,15 +92,6 @@ func (r *SourceZendeskSunshineDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `API Token. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account`,
@@ -133,15 +105,6 @@ func (r *SourceZendeskSunshineDataSource) Schema(ctx context.Context, req dataso
Computed: true,
Description: `Long-term access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Computed: true,
Description: `The Client ID of your OAuth application.`,
@@ -157,15 +120,6 @@ func (r *SourceZendeskSunshineDataSource) Schema(ctx context.Context, req dataso
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-sunshine",
- ),
- },
- Description: `must be one of ["zendesk-sunshine"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_zendesksunshine_data_source_sdk.go b/internal/provider/source_zendesksunshine_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zendesksunshine_resource.go b/internal/provider/source_zendesksunshine_resource.go
old mode 100755
new mode 100644
index f31c86da9..036755765
--- a/internal/provider/source_zendesksunshine_resource.go
+++ b/internal/provider/source_zendesksunshine_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -65,15 +64,6 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource
Required: true,
Description: `API Token. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account`,
@@ -87,15 +77,6 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Long-term access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -113,15 +94,6 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource
Required: true,
Description: `API Token. See the docs for information on how to generate this key.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account`,
@@ -135,15 +107,6 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource
Required: true,
Description: `Long-term access Token for making authenticated requests.`,
},
- "auth_method": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Required: true,
Description: `The Client ID of your OAuth application.`,
@@ -159,15 +122,6 @@ func (r *SourceZendeskSunshineResource) Schema(ctx context.Context, req resource
validators.ExactlyOneChild(),
},
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-sunshine",
- ),
- },
- Description: `must be one of ["zendesk-sunshine"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -251,7 +205,7 @@ func (r *SourceZendeskSunshineResource) Create(ctx context.Context, req resource
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZendeskSunshine(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zendesksunshine_resource_sdk.go b/internal/provider/source_zendesksunshine_resource_sdk.go
old mode 100755
new mode 100644
index 10857e20c..90ce6ec45
--- a/internal/provider/source_zendesksunshine_resource_sdk.go
+++ b/internal/provider/source_zendesksunshine_resource_sdk.go
@@ -14,12 +14,10 @@ func (r *SourceZendeskSunshineResourceModel) ToCreateSDKType() *shared.SourceZen
var sourceZendeskSunshineAuthorizationMethodOAuth20 *shared.SourceZendeskSunshineAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodOAuth20.AccessToken.ValueString()
- authMethod := shared.SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodOAuth20.ClientSecret.ValueString()
sourceZendeskSunshineAuthorizationMethodOAuth20 = &shared.SourceZendeskSunshineAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -32,12 +30,10 @@ func (r *SourceZendeskSunshineResourceModel) ToCreateSDKType() *shared.SourceZen
var sourceZendeskSunshineAuthorizationMethodAPIToken *shared.SourceZendeskSunshineAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodAPIToken.APIToken.ValueString()
- authMethod1 := shared.SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethod(r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodAPIToken.AuthMethod.ValueString())
email := r.Configuration.Credentials.SourceZendeskSunshineAuthorizationMethodAPIToken.Email.ValueString()
sourceZendeskSunshineAuthorizationMethodAPIToken = &shared.SourceZendeskSunshineAuthorizationMethodAPIToken{
- APIToken: apiToken,
- AuthMethod: authMethod1,
- Email: email,
+ APIToken: apiToken,
+ Email: email,
}
}
if sourceZendeskSunshineAuthorizationMethodAPIToken != nil {
@@ -46,12 +42,10 @@ func (r *SourceZendeskSunshineResourceModel) ToCreateSDKType() *shared.SourceZen
}
}
}
- sourceType := shared.SourceZendeskSunshineZendeskSunshine(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
subdomain := r.Configuration.Subdomain.ValueString()
configuration := shared.SourceZendeskSunshine{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
Subdomain: subdomain,
}
@@ -83,12 +77,10 @@ func (r *SourceZendeskSunshineResourceModel) ToUpdateSDKType() *shared.SourceZen
var sourceZendeskSunshineUpdateAuthorizationMethodOAuth20 *shared.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20
if r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 != nil {
accessToken := r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20.AccessToken.ValueString()
- authMethod := shared.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod(r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20.AuthMethod.ValueString())
clientID := r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20.ClientID.ValueString()
clientSecret := r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20.ClientSecret.ValueString()
sourceZendeskSunshineUpdateAuthorizationMethodOAuth20 = &shared.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20{
AccessToken: accessToken,
- AuthMethod: authMethod,
ClientID: clientID,
ClientSecret: clientSecret,
}
@@ -101,12 +93,10 @@ func (r *SourceZendeskSunshineResourceModel) ToUpdateSDKType() *shared.SourceZen
var sourceZendeskSunshineUpdateAuthorizationMethodAPIToken *shared.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken
if r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken != nil {
apiToken := r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken.APIToken.ValueString()
- authMethod1 := shared.SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethod(r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken.AuthMethod.ValueString())
email := r.Configuration.Credentials.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken.Email.ValueString()
sourceZendeskSunshineUpdateAuthorizationMethodAPIToken = &shared.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken{
- APIToken: apiToken,
- AuthMethod: authMethod1,
- Email: email,
+ APIToken: apiToken,
+ Email: email,
}
}
if sourceZendeskSunshineUpdateAuthorizationMethodAPIToken != nil {
diff --git a/internal/provider/source_zendesksupport_data_source.go b/internal/provider/source_zendesksupport_data_source.go
old mode 100755
new mode 100644
index 8cc3a59d0..ae3259628
--- a/internal/provider/source_zendesksupport_data_source.go
+++ b/internal/provider/source_zendesksupport_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceZendeskSupportDataSource struct {
// SourceZendeskSupportDataSourceModel describes the data model.
type SourceZendeskSupportDataSourceModel struct {
- Configuration SourceZendeskSupport1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceZendeskSupport `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -59,36 +58,34 @@ func (r *SourceZendeskSupportDataSource) Schema(ctx context.Context, req datasou
"source_zendesk_support_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
- },
- "credentials": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
},
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
"source_zendesk_support_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"access_token": schema.StringAttribute{
Computed: true,
Description: `The OAuth access token. See the Zendesk docs for more information on generating this token.`,
@@ -101,58 +98,40 @@ func (r *SourceZendeskSupportDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `The OAuth client secret. See this guide for more information.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
"source_zendesk_support_update_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
- },
- "credentials": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
},
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
"source_zendesk_support_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
+ "additional_properties": schema.StringAttribute{
+ Computed: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"access_token": schema.StringAttribute{
Computed: true,
Description: `The OAuth access token. See the Zendesk docs for more information on generating this token.`,
@@ -165,22 +144,6 @@ func (r *SourceZendeskSupportDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `The OAuth client secret. See this guide for more information.`,
},
- "credentials": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
@@ -194,15 +157,6 @@ func (r *SourceZendeskSupportDataSource) Schema(ctx context.Context, req datasou
Computed: true,
Description: `Makes each stream read a single page of data.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-support",
- ),
- },
- Description: `must be one of ["zendesk-support"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_zendesksupport_data_source_sdk.go b/internal/provider/source_zendesksupport_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zendesksupport_resource.go b/internal/provider/source_zendesksupport_resource.go
old mode 100755
new mode 100644
index 6d0d5a8b6..3f2cd3b83
--- a/internal/provider/source_zendesksupport_resource.go
+++ b/internal/provider/source_zendesksupport_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,30 +60,21 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
"source_zendesk_support_authentication_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Required: true,
- Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
- },
- "credentials": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Required: true,
+ Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
},
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
@@ -95,6 +85,13 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
Required: true,
Description: `The OAuth access token. See the Zendesk docs for more information on generating this token.`,
},
+ "additional_properties": schema.StringAttribute{
+ Optional: true,
+ Validators: []validator.String{
+ validators.IsValidJSON(),
+ },
+ Description: `Parsed as JSON.`,
+ },
"client_id": schema.StringAttribute{
Optional: true,
Description: `The OAuth client's ID. See this guide for more information.`,
@@ -103,15 +100,12 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `The OAuth client secret. See this guide for more information.`,
},
- "credentials": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
+ },
+ Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
+ },
+ "source_zendesk_support_update_authentication_api_token": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -119,29 +113,20 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
- },
- "source_zendesk_support_update_authentication_api_token": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"api_token": schema.StringAttribute{
Required: true,
Description: `The value of the API token generated. See our full documentation for more information on generating this token.`,
},
- "credentials": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account.`,
},
+ },
+ Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
+ },
+ "source_zendesk_support_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -149,12 +134,6 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
- },
- "source_zendesk_support_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"access_token": schema.StringAttribute{
Required: true,
Description: `The OAuth access token. See the Zendesk docs for more information on generating this token.`,
@@ -167,22 +146,6 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `The OAuth client secret. See this guide for more information.`,
},
- "credentials": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk allows two authentication methods. We recommend using ` + "`" + `OAuth2.0` + "`" + ` for Airbyte Cloud users and ` + "`" + `API token` + "`" + ` for Airbyte Open Source users.`,
},
@@ -196,15 +159,6 @@ func (r *SourceZendeskSupportResource) Schema(ctx context.Context, req resource.
Optional: true,
Description: `Makes each stream read a single page of data.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-support",
- ),
- },
- Description: `must be one of ["zendesk-support"]`,
- },
"start_date": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -288,7 +242,7 @@ func (r *SourceZendeskSupportResource) Create(ctx context.Context, req resource.
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZendeskSupport(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zendesksupport_resource_sdk.go b/internal/provider/source_zendesksupport_resource_sdk.go
old mode 100755
new mode 100644
index 2d8b9695b..265167356
--- a/internal/provider/source_zendesksupport_resource_sdk.go
+++ b/internal/provider/source_zendesksupport_resource_sdk.go
@@ -14,6 +14,10 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend
if r.Configuration.Credentials != nil {
var sourceZendeskSupportAuthenticationOAuth20 *shared.SourceZendeskSupportAuthenticationOAuth20
if r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20 != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties)
+ }
accessToken := r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AccessToken.ValueString()
clientID := new(string)
if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.ClientID.IsNull() {
@@ -27,22 +31,11 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend
} else {
clientSecret = nil
}
- credentials1 := new(shared.SourceZendeskSupportAuthenticationOAuth20Credentials)
- if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.Credentials.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.Credentials.IsNull() {
- *credentials1 = shared.SourceZendeskSupportAuthenticationOAuth20Credentials(r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.Credentials.ValueString())
- } else {
- credentials1 = nil
- }
- var additionalProperties interface{}
- if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourceZendeskSupportAuthenticationOAuth20 = &shared.SourceZendeskSupportAuthenticationOAuth20{
+ AdditionalProperties: additionalProperties,
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- Credentials: credentials1,
- AdditionalProperties: additionalProperties,
}
}
if sourceZendeskSupportAuthenticationOAuth20 != nil {
@@ -52,23 +45,16 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend
}
var sourceZendeskSupportAuthenticationAPIToken *shared.SourceZendeskSupportAuthenticationAPIToken
if r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken != nil {
- apiToken := r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.APIToken.ValueString()
- credentials2 := new(shared.SourceZendeskSupportAuthenticationAPITokenCredentials)
- if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.Credentials.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.Credentials.IsNull() {
- *credentials2 = shared.SourceZendeskSupportAuthenticationAPITokenCredentials(r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.Credentials.ValueString())
- } else {
- credentials2 = nil
- }
- email := r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.Email.ValueString()
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiToken := r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.APIToken.ValueString()
+ email := r.Configuration.Credentials.SourceZendeskSupportAuthenticationAPIToken.Email.ValueString()
sourceZendeskSupportAuthenticationAPIToken = &shared.SourceZendeskSupportAuthenticationAPIToken{
+ AdditionalProperties: additionalProperties1,
APIToken: apiToken,
- Credentials: credentials2,
Email: email,
- AdditionalProperties: additionalProperties1,
}
}
if sourceZendeskSupportAuthenticationAPIToken != nil {
@@ -83,7 +69,6 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend
} else {
ignorePagination = nil
}
- sourceType := shared.SourceZendeskSupportZendeskSupport(r.Configuration.SourceType.ValueString())
startDate := new(time.Time)
if !r.Configuration.StartDate.IsUnknown() && !r.Configuration.StartDate.IsNull() {
*startDate, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
@@ -94,7 +79,6 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend
configuration := shared.SourceZendeskSupport{
Credentials: credentials,
IgnorePagination: ignorePagination,
- SourceType: sourceType,
StartDate: startDate,
Subdomain: subdomain,
}
@@ -125,6 +109,10 @@ func (r *SourceZendeskSupportResourceModel) ToUpdateSDKType() *shared.SourceZend
if r.Configuration.Credentials != nil {
var sourceZendeskSupportUpdateAuthenticationOAuth20 *shared.SourceZendeskSupportUpdateAuthenticationOAuth20
if r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20 != nil {
+ var additionalProperties interface{}
+ if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties)
+ }
accessToken := r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AccessToken.ValueString()
clientID := new(string)
if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.ClientID.IsNull() {
@@ -138,22 +126,11 @@ func (r *SourceZendeskSupportResourceModel) ToUpdateSDKType() *shared.SourceZend
} else {
clientSecret = nil
}
- credentials1 := new(shared.SourceZendeskSupportUpdateAuthenticationOAuth20Credentials)
- if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.Credentials.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.Credentials.IsNull() {
- *credentials1 = shared.SourceZendeskSupportUpdateAuthenticationOAuth20Credentials(r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.Credentials.ValueString())
- } else {
- credentials1 = nil
- }
- var additionalProperties interface{}
- if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties)
- }
sourceZendeskSupportUpdateAuthenticationOAuth20 = &shared.SourceZendeskSupportUpdateAuthenticationOAuth20{
+ AdditionalProperties: additionalProperties,
AccessToken: accessToken,
ClientID: clientID,
ClientSecret: clientSecret,
- Credentials: credentials1,
- AdditionalProperties: additionalProperties,
}
}
if sourceZendeskSupportUpdateAuthenticationOAuth20 != nil {
@@ -163,23 +140,16 @@ func (r *SourceZendeskSupportResourceModel) ToUpdateSDKType() *shared.SourceZend
}
var sourceZendeskSupportUpdateAuthenticationAPIToken *shared.SourceZendeskSupportUpdateAuthenticationAPIToken
if r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken != nil {
- apiToken := r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.APIToken.ValueString()
- credentials2 := new(shared.SourceZendeskSupportUpdateAuthenticationAPITokenCredentials)
- if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.Credentials.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.Credentials.IsNull() {
- *credentials2 = shared.SourceZendeskSupportUpdateAuthenticationAPITokenCredentials(r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.Credentials.ValueString())
- } else {
- credentials2 = nil
- }
- email := r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.Email.ValueString()
var additionalProperties1 interface{}
if !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ apiToken := r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.APIToken.ValueString()
+ email := r.Configuration.Credentials.SourceZendeskSupportUpdateAuthenticationAPIToken.Email.ValueString()
sourceZendeskSupportUpdateAuthenticationAPIToken = &shared.SourceZendeskSupportUpdateAuthenticationAPIToken{
+ AdditionalProperties: additionalProperties1,
APIToken: apiToken,
- Credentials: credentials2,
Email: email,
- AdditionalProperties: additionalProperties1,
}
}
if sourceZendeskSupportUpdateAuthenticationAPIToken != nil {
diff --git a/internal/provider/source_zendesktalk_data_source.go b/internal/provider/source_zendesktalk_data_source.go
old mode 100755
new mode 100644
index 36b2e7593..ce826a9c3
--- a/internal/provider/source_zendesktalk_data_source.go
+++ b/internal/provider/source_zendesktalk_data_source.go
@@ -9,7 +9,6 @@ import (
"fmt"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -32,11 +31,11 @@ type SourceZendeskTalkDataSource struct {
// SourceZendeskTalkDataSourceModel describes the data model.
type SourceZendeskTalkDataSourceModel struct {
- Configuration SourceZendeskTalk1 `tfsdk:"configuration"`
- Name types.String `tfsdk:"name"`
- SecretID types.String `tfsdk:"secret_id"`
- SourceID types.String `tfsdk:"source_id"`
- WorkspaceID types.String `tfsdk:"workspace_id"`
+ Configuration SourceZendeskTalk `tfsdk:"configuration"`
+ Name types.String `tfsdk:"name"`
+ SecretID types.String `tfsdk:"secret_id"`
+ SourceID types.String `tfsdk:"source_id"`
+ WorkspaceID types.String `tfsdk:"workspace_id"`
}
// Metadata returns the data source type name.
@@ -59,48 +58,37 @@ func (r *SourceZendeskTalkDataSource) Schema(ctx context.Context, req datasource
"source_zendesk_talk_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See the docs for more information.`,
- },
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See the docs for more information.`,
},
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
"source_zendesk_talk_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "access_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See the docs for more information.`,
- },
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["oauth2.0"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "access_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See the docs for more information.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -110,61 +98,43 @@ func (r *SourceZendeskTalkDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Client Secret`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
"source_zendesk_talk_update_authentication_api_token": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See the docs for more information.`,
- },
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See the docs for more information.`,
},
"email": schema.StringAttribute{
Computed: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
"source_zendesk_talk_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
- "access_token": schema.StringAttribute{
- Computed: true,
- Description: `The value of the API token generated. See the docs for more information.`,
- },
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["oauth2.0"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "access_token": schema.StringAttribute{
+ Computed: true,
+ Description: `The value of the API token generated. See the docs for more information.`,
},
"client_id": schema.StringAttribute{
Computed: true,
@@ -174,13 +144,6 @@ func (r *SourceZendeskTalkDataSource) Schema(ctx context.Context, req datasource
Computed: true,
Description: `Client Secret`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
@@ -190,15 +153,6 @@ func (r *SourceZendeskTalkDataSource) Schema(ctx context.Context, req datasource
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-talk",
- ),
- },
- Description: `must be one of ["zendesk-talk"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_zendesktalk_data_source_sdk.go b/internal/provider/source_zendesktalk_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zendesktalk_resource.go b/internal/provider/source_zendesktalk_resource.go
old mode 100755
new mode 100644
index 809e57faa..9ee7a64c0
--- a/internal/provider/source_zendesktalk_resource.go
+++ b/internal/provider/source_zendesktalk_resource.go
@@ -10,7 +10,6 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
"airbyte/internal/validators"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -61,30 +60,21 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
"source_zendesk_talk_authentication_api_token": schema.SingleNestedAttribute{
Optional: true,
Attributes: map[string]schema.Attribute{
- "api_token": schema.StringAttribute{
- Required: true,
- Description: `The value of the API token generated. See the docs for more information.`,
- },
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["api_token"]`,
+ Description: `Parsed as JSON.`,
+ },
+ "api_token": schema.StringAttribute{
+ Required: true,
+ Description: `The value of the API token generated. See the docs for more information.`,
},
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account.`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
@@ -95,14 +85,12 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
Required: true,
Description: `The value of the API token generated. See the docs for more information.`,
},
- "auth_type": schema.StringAttribute{
+ "additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
+ validators.IsValidJSON(),
},
- Description: `must be one of ["oauth2.0"]`,
+ Description: `Parsed as JSON.`,
},
"client_id": schema.StringAttribute{
Optional: true,
@@ -112,6 +100,12 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `Client Secret`,
},
+ },
+ Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
+ },
+ "source_zendesk_talk_update_authentication_api_token": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -119,29 +113,20 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
- },
- "source_zendesk_talk_update_authentication_api_token": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"api_token": schema.StringAttribute{
Required: true,
Description: `The value of the API token generated. See the docs for more information.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "api_token",
- ),
- },
- Description: `must be one of ["api_token"]`,
- },
"email": schema.StringAttribute{
Required: true,
Description: `The user email for your Zendesk account.`,
},
+ },
+ Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
+ },
+ "source_zendesk_talk_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
+ Optional: true,
+ Attributes: map[string]schema.Attribute{
"additional_properties": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -149,25 +134,10 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
},
Description: `Parsed as JSON.`,
},
- },
- Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
- },
- "source_zendesk_talk_update_authentication_o_auth2_0": schema.SingleNestedAttribute{
- Optional: true,
- Attributes: map[string]schema.Attribute{
"access_token": schema.StringAttribute{
Required: true,
Description: `The value of the API token generated. See the docs for more information.`,
},
- "auth_type": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "oauth2.0",
- ),
- },
- Description: `must be one of ["oauth2.0"]`,
- },
"client_id": schema.StringAttribute{
Optional: true,
Description: `Client ID`,
@@ -176,13 +146,6 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
Optional: true,
Description: `Client Secret`,
},
- "additional_properties": schema.StringAttribute{
- Optional: true,
- Validators: []validator.String{
- validators.IsValidJSON(),
- },
- Description: `Parsed as JSON.`,
- },
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
@@ -192,15 +155,6 @@ func (r *SourceZendeskTalkResource) Schema(ctx context.Context, req resource.Sch
},
Description: `Zendesk service provides two authentication methods. Choose between: ` + "`" + `OAuth2.0` + "`" + ` or ` + "`" + `API token` + "`" + `.`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zendesk-talk",
- ),
- },
- Description: `must be one of ["zendesk-talk"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Validators: []validator.String{
@@ -284,7 +238,7 @@ func (r *SourceZendeskTalkResource) Create(ctx context.Context, req resource.Cre
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZendeskTalk(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zendesktalk_resource_sdk.go b/internal/provider/source_zendesktalk_resource_sdk.go
old mode 100755
new mode 100644
index e7fa5696d..2afaa73b3
--- a/internal/provider/source_zendesktalk_resource_sdk.go
+++ b/internal/provider/source_zendesktalk_resource_sdk.go
@@ -14,23 +14,16 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk
if r.Configuration.Credentials != nil {
var sourceZendeskTalkAuthenticationAPIToken *shared.SourceZendeskTalkAuthenticationAPIToken
if r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken != nil {
- apiToken := r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.APIToken.ValueString()
- authType := new(shared.SourceZendeskTalkAuthenticationAPITokenAuthType)
- if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AuthType.IsNull() {
- *authType = shared.SourceZendeskTalkAuthenticationAPITokenAuthType(r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AuthType.ValueString())
- } else {
- authType = nil
- }
- email := r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.Email.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.AdditionalProperties.ValueString()), &additionalProperties)
}
+ apiToken := r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.APIToken.ValueString()
+ email := r.Configuration.Credentials.SourceZendeskTalkAuthenticationAPIToken.Email.ValueString()
sourceZendeskTalkAuthenticationAPIToken = &shared.SourceZendeskTalkAuthenticationAPIToken{
+ AdditionalProperties: additionalProperties,
APIToken: apiToken,
- AuthType: authType,
Email: email,
- AdditionalProperties: additionalProperties,
}
}
if sourceZendeskTalkAuthenticationAPIToken != nil {
@@ -40,13 +33,11 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk
}
var sourceZendeskTalkAuthenticationOAuth20 *shared.SourceZendeskTalkAuthenticationOAuth20
if r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20 != nil {
- accessToken := r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AccessToken.ValueString()
- authType1 := new(shared.SourceZendeskTalkAuthenticationOAuth20AuthType)
- if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AuthType.IsNull() {
- *authType1 = shared.SourceZendeskTalkAuthenticationOAuth20AuthType(r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AuthType.ValueString())
- } else {
- authType1 = nil
+ var additionalProperties1 interface{}
+ if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ accessToken := r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AccessToken.ValueString()
clientID := new(string)
if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.ClientID.ValueString()
@@ -59,16 +50,11 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk
} else {
clientSecret = nil
}
- var additionalProperties1 interface{}
- if !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties1)
- }
sourceZendeskTalkAuthenticationOAuth20 = &shared.SourceZendeskTalkAuthenticationOAuth20{
+ AdditionalProperties: additionalProperties1,
AccessToken: accessToken,
- AuthType: authType1,
ClientID: clientID,
ClientSecret: clientSecret,
- AdditionalProperties: additionalProperties1,
}
}
if sourceZendeskTalkAuthenticationOAuth20 != nil {
@@ -77,12 +63,10 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk
}
}
}
- sourceType := shared.SourceZendeskTalkZendeskTalk(r.Configuration.SourceType.ValueString())
startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString())
subdomain := r.Configuration.Subdomain.ValueString()
configuration := shared.SourceZendeskTalk{
Credentials: credentials,
- SourceType: sourceType,
StartDate: startDate,
Subdomain: subdomain,
}
@@ -113,23 +97,16 @@ func (r *SourceZendeskTalkResourceModel) ToUpdateSDKType() *shared.SourceZendesk
if r.Configuration.Credentials != nil {
var sourceZendeskTalkUpdateAuthenticationAPIToken *shared.SourceZendeskTalkUpdateAuthenticationAPIToken
if r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken != nil {
- apiToken := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.APIToken.ValueString()
- authType := new(shared.SourceZendeskTalkUpdateAuthenticationAPITokenAuthType)
- if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AuthType.IsNull() {
- *authType = shared.SourceZendeskTalkUpdateAuthenticationAPITokenAuthType(r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AuthType.ValueString())
- } else {
- authType = nil
- }
- email := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.Email.ValueString()
var additionalProperties interface{}
if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AdditionalProperties.IsNull() {
_ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.AdditionalProperties.ValueString()), &additionalProperties)
}
+ apiToken := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.APIToken.ValueString()
+ email := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationAPIToken.Email.ValueString()
sourceZendeskTalkUpdateAuthenticationAPIToken = &shared.SourceZendeskTalkUpdateAuthenticationAPIToken{
+ AdditionalProperties: additionalProperties,
APIToken: apiToken,
- AuthType: authType,
Email: email,
- AdditionalProperties: additionalProperties,
}
}
if sourceZendeskTalkUpdateAuthenticationAPIToken != nil {
@@ -139,13 +116,11 @@ func (r *SourceZendeskTalkResourceModel) ToUpdateSDKType() *shared.SourceZendesk
}
var sourceZendeskTalkUpdateAuthenticationOAuth20 *shared.SourceZendeskTalkUpdateAuthenticationOAuth20
if r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20 != nil {
- accessToken := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AccessToken.ValueString()
- authType1 := new(shared.SourceZendeskTalkUpdateAuthenticationOAuth20AuthType)
- if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AuthType.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AuthType.IsNull() {
- *authType1 = shared.SourceZendeskTalkUpdateAuthenticationOAuth20AuthType(r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AuthType.ValueString())
- } else {
- authType1 = nil
+ var additionalProperties1 interface{}
+ if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.IsNull() {
+ _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties1)
}
+ accessToken := r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AccessToken.ValueString()
clientID := new(string)
if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.ClientID.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.ClientID.IsNull() {
*clientID = r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.ClientID.ValueString()
@@ -158,16 +133,11 @@ func (r *SourceZendeskTalkResourceModel) ToUpdateSDKType() *shared.SourceZendesk
} else {
clientSecret = nil
}
- var additionalProperties1 interface{}
- if !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.IsUnknown() && !r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.IsNull() {
- _ = json.Unmarshal([]byte(r.Configuration.Credentials.SourceZendeskTalkUpdateAuthenticationOAuth20.AdditionalProperties.ValueString()), &additionalProperties1)
- }
sourceZendeskTalkUpdateAuthenticationOAuth20 = &shared.SourceZendeskTalkUpdateAuthenticationOAuth20{
+ AdditionalProperties: additionalProperties1,
AccessToken: accessToken,
- AuthType: authType1,
ClientID: clientID,
ClientSecret: clientSecret,
- AdditionalProperties: additionalProperties1,
}
}
if sourceZendeskTalkUpdateAuthenticationOAuth20 != nil {
diff --git a/internal/provider/source_zenloop_data_source.go b/internal/provider/source_zenloop_data_source.go
old mode 100755
new mode 100644
index fc6a92b9d..8108166b9
--- a/internal/provider/source_zenloop_data_source.go
+++ b/internal/provider/source_zenloop_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -60,15 +58,6 @@ func (r *SourceZenloopDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zenloop",
- ),
- },
- Description: `must be one of ["zenloop"]`,
- },
"survey_group_id": schema.StringAttribute{
Computed: true,
Description: `Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups`,
diff --git a/internal/provider/source_zenloop_data_source_sdk.go b/internal/provider/source_zenloop_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zenloop_resource.go b/internal/provider/source_zenloop_resource.go
old mode 100755
new mode 100644
index 829b70359..5cb6649ce
--- a/internal/provider/source_zenloop_resource.go
+++ b/internal/provider/source_zenloop_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -62,15 +60,6 @@ func (r *SourceZenloopResource) Schema(ctx context.Context, req resource.SchemaR
Optional: true,
Description: `Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zenloop",
- ),
- },
- Description: `must be one of ["zenloop"]`,
- },
"survey_group_id": schema.StringAttribute{
Optional: true,
Description: `Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups`,
@@ -151,7 +140,7 @@ func (r *SourceZenloopResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZenloop(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zenloop_resource_sdk.go b/internal/provider/source_zenloop_resource_sdk.go
old mode 100755
new mode 100644
index 141401dfb..a8e03e180
--- a/internal/provider/source_zenloop_resource_sdk.go
+++ b/internal/provider/source_zenloop_resource_sdk.go
@@ -15,7 +15,6 @@ func (r *SourceZenloopResourceModel) ToCreateSDKType() *shared.SourceZenloopCrea
} else {
dateFrom = nil
}
- sourceType := shared.SourceZenloopZenloop(r.Configuration.SourceType.ValueString())
surveyGroupID := new(string)
if !r.Configuration.SurveyGroupID.IsUnknown() && !r.Configuration.SurveyGroupID.IsNull() {
*surveyGroupID = r.Configuration.SurveyGroupID.ValueString()
@@ -31,7 +30,6 @@ func (r *SourceZenloopResourceModel) ToCreateSDKType() *shared.SourceZenloopCrea
configuration := shared.SourceZenloop{
APIToken: apiToken,
DateFrom: dateFrom,
- SourceType: sourceType,
SurveyGroupID: surveyGroupID,
SurveyID: surveyID,
}
diff --git a/internal/provider/source_zohocrm_data_source.go b/internal/provider/source_zohocrm_data_source.go
old mode 100755
new mode 100644
index 45e265b48..0c769c271
--- a/internal/provider/source_zohocrm_data_source.go
+++ b/internal/provider/source_zohocrm_data_source.go
@@ -106,15 +106,6 @@ func (r *SourceZohoCrmDataSource) Schema(ctx context.Context, req datasource.Sch
Computed: true,
Description: `OAuth2.0 Refresh Token`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zoho-crm",
- ),
- },
- Description: `must be one of ["zoho-crm"]`,
- },
"start_datetime": schema.StringAttribute{
Computed: true,
Validators: []validator.String{
diff --git a/internal/provider/source_zohocrm_data_source_sdk.go b/internal/provider/source_zohocrm_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zohocrm_resource.go b/internal/provider/source_zohocrm_resource.go
old mode 100755
new mode 100644
index 669cb5c74..34fe38fd5
--- a/internal/provider/source_zohocrm_resource.go
+++ b/internal/provider/source_zohocrm_resource.go
@@ -79,7 +79,7 @@ func (r *SourceZohoCrmResource) Schema(ctx context.Context, req resource.SchemaR
`Please choose the region of your Data Center location. More info by this Link`,
},
"edition": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Free",
@@ -108,15 +108,6 @@ func (r *SourceZohoCrmResource) Schema(ctx context.Context, req resource.SchemaR
Required: true,
Description: `OAuth2.0 Refresh Token`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zoho-crm",
- ),
- },
- Description: `must be one of ["zoho-crm"]`,
- },
"start_datetime": schema.StringAttribute{
Optional: true,
Validators: []validator.String{
@@ -196,7 +187,7 @@ func (r *SourceZohoCrmResource) Create(ctx context.Context, req resource.CreateR
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZohoCrm(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zohocrm_resource_sdk.go b/internal/provider/source_zohocrm_resource_sdk.go
old mode 100755
new mode 100644
index ba92cd7fd..01a71a303
--- a/internal/provider/source_zohocrm_resource_sdk.go
+++ b/internal/provider/source_zohocrm_resource_sdk.go
@@ -12,10 +12,14 @@ func (r *SourceZohoCrmResourceModel) ToCreateSDKType() *shared.SourceZohoCrmCrea
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
dcRegion := shared.SourceZohoCrmDataCenterLocation(r.Configuration.DcRegion.ValueString())
- edition := shared.SourceZohoCRMZohoCRMEdition(r.Configuration.Edition.ValueString())
+ edition := new(shared.SourceZohoCRMZohoCRMEdition)
+ if !r.Configuration.Edition.IsUnknown() && !r.Configuration.Edition.IsNull() {
+ *edition = shared.SourceZohoCRMZohoCRMEdition(r.Configuration.Edition.ValueString())
+ } else {
+ edition = nil
+ }
environment := shared.SourceZohoCrmEnvironment(r.Configuration.Environment.ValueString())
refreshToken := r.Configuration.RefreshToken.ValueString()
- sourceType := shared.SourceZohoCrmZohoCrm(r.Configuration.SourceType.ValueString())
startDatetime := new(time.Time)
if !r.Configuration.StartDatetime.IsUnknown() && !r.Configuration.StartDatetime.IsNull() {
*startDatetime, _ = time.Parse(time.RFC3339Nano, r.Configuration.StartDatetime.ValueString())
@@ -29,7 +33,6 @@ func (r *SourceZohoCrmResourceModel) ToCreateSDKType() *shared.SourceZohoCrmCrea
Edition: edition,
Environment: environment,
RefreshToken: refreshToken,
- SourceType: sourceType,
StartDatetime: startDatetime,
}
name := r.Name.ValueString()
@@ -58,7 +61,12 @@ func (r *SourceZohoCrmResourceModel) ToUpdateSDKType() *shared.SourceZohoCrmPutR
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
dcRegion := shared.SourceZohoCrmUpdateDataCenterLocation(r.Configuration.DcRegion.ValueString())
- edition := shared.SourceZohoCRMUpdateZohoCRMEdition(r.Configuration.Edition.ValueString())
+ edition := new(shared.SourceZohoCRMUpdateZohoCRMEdition)
+ if !r.Configuration.Edition.IsUnknown() && !r.Configuration.Edition.IsNull() {
+ *edition = shared.SourceZohoCRMUpdateZohoCRMEdition(r.Configuration.Edition.ValueString())
+ } else {
+ edition = nil
+ }
environment := shared.SourceZohoCrmUpdateEnvironment(r.Configuration.Environment.ValueString())
refreshToken := r.Configuration.RefreshToken.ValueString()
startDatetime := new(time.Time)
diff --git a/internal/provider/source_zoom_data_source.go b/internal/provider/source_zoom_data_source.go
old mode 100755
new mode 100644
index 8344b1ee4..35f2c5795
--- a/internal/provider/source_zoom_data_source.go
+++ b/internal/provider/source_zoom_data_source.go
@@ -8,10 +8,8 @@ import (
"context"
"fmt"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -56,15 +54,6 @@ func (r *SourceZoomDataSource) Schema(ctx context.Context, req datasource.Schema
Computed: true,
Description: `JWT Token`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zoom",
- ),
- },
- Description: `must be one of ["zoom"]`,
- },
},
},
"name": schema.StringAttribute{
diff --git a/internal/provider/source_zoom_data_source_sdk.go b/internal/provider/source_zoom_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zoom_resource.go b/internal/provider/source_zoom_resource.go
old mode 100755
new mode 100644
index 2eeaeb39f..2176e6528
--- a/internal/provider/source_zoom_resource.go
+++ b/internal/provider/source_zoom_resource.go
@@ -9,12 +9,10 @@ import (
speakeasy_stringplanmodifier "airbyte/internal/planmodifiers/stringplanmodifier"
"airbyte/internal/sdk/pkg/models/operations"
- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
- "github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)
@@ -58,15 +56,6 @@ func (r *SourceZoomResource) Schema(ctx context.Context, req resource.SchemaRequ
Required: true,
Description: `JWT Token`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zoom",
- ),
- },
- Description: `must be one of ["zoom"]`,
- },
},
},
"name": schema.StringAttribute{
@@ -139,7 +128,7 @@ func (r *SourceZoomResource) Create(ctx context.Context, req resource.CreateRequ
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZoom(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zoom_resource_sdk.go b/internal/provider/source_zoom_resource_sdk.go
old mode 100755
new mode 100644
index 52d0826dd..e5834df8e
--- a/internal/provider/source_zoom_resource_sdk.go
+++ b/internal/provider/source_zoom_resource_sdk.go
@@ -9,10 +9,8 @@ import (
func (r *SourceZoomResourceModel) ToCreateSDKType() *shared.SourceZoomCreateRequest {
jwtToken := r.Configuration.JwtToken.ValueString()
- sourceType := shared.SourceZoomZoom(r.Configuration.SourceType.ValueString())
configuration := shared.SourceZoom{
- JwtToken: jwtToken,
- SourceType: sourceType,
+ JwtToken: jwtToken,
}
name := r.Name.ValueString()
secretID := new(string)
diff --git a/internal/provider/source_zuora_data_source.go b/internal/provider/source_zuora_data_source.go
old mode 100755
new mode 100644
index b2d5cf6d7..e3ffddd0d
--- a/internal/provider/source_zuora_data_source.go
+++ b/internal/provider/source_zuora_data_source.go
@@ -71,15 +71,6 @@ func (r *SourceZuoraDataSource) Schema(ctx context.Context, req datasource.Schem
MarkdownDescription: `must be one of ["Live", "Unlimited"]` + "\n" +
`Choose between ` + "`" + `Live` + "`" + `, or ` + "`" + `Unlimited` + "`" + ` - the optimized, replicated database at 12 hours freshness for high volume extraction Link`,
},
- "source_type": schema.StringAttribute{
- Computed: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zuora",
- ),
- },
- Description: `must be one of ["zuora"]`,
- },
"start_date": schema.StringAttribute{
Computed: true,
Description: `Start Date in format: YYYY-MM-DD`,
diff --git a/internal/provider/source_zuora_data_source_sdk.go b/internal/provider/source_zuora_data_source_sdk.go
old mode 100755
new mode 100644
diff --git a/internal/provider/source_zuora_resource.go b/internal/provider/source_zuora_resource.go
old mode 100755
new mode 100644
index a7ed43b6b..229ffa623
--- a/internal/provider/source_zuora_resource.go
+++ b/internal/provider/source_zuora_resource.go
@@ -63,7 +63,7 @@ func (r *SourceZuoraResource) Schema(ctx context.Context, req resource.SchemaReq
Description: `Your OAuth user Client Secret`,
},
"data_query": schema.StringAttribute{
- Required: true,
+ Optional: true,
Validators: []validator.String{
stringvalidator.OneOf(
"Live",
@@ -73,15 +73,6 @@ func (r *SourceZuoraResource) Schema(ctx context.Context, req resource.SchemaReq
MarkdownDescription: `must be one of ["Live", "Unlimited"]` + "\n" +
`Choose between ` + "`" + `Live` + "`" + `, or ` + "`" + `Unlimited` + "`" + ` - the optimized, replicated database at 12 hours freshness for high volume extraction Link`,
},
- "source_type": schema.StringAttribute{
- Required: true,
- Validators: []validator.String{
- stringvalidator.OneOf(
- "zuora",
- ),
- },
- Description: `must be one of ["zuora"]`,
- },
"start_date": schema.StringAttribute{
Required: true,
Description: `Start Date in format: YYYY-MM-DD`,
@@ -180,7 +171,7 @@ func (r *SourceZuoraResource) Create(ctx context.Context, req resource.CreateReq
return
}
- request := *data.ToCreateSDKType()
+ request := data.ToCreateSDKType()
res, err := r.client.Sources.CreateSourceZuora(ctx, request)
if err != nil {
resp.Diagnostics.AddError("failure to invoke API", err.Error())
diff --git a/internal/provider/source_zuora_resource_sdk.go b/internal/provider/source_zuora_resource_sdk.go
old mode 100755
new mode 100644
index c2491b13d..8b5107955
--- a/internal/provider/source_zuora_resource_sdk.go
+++ b/internal/provider/source_zuora_resource_sdk.go
@@ -10,8 +10,12 @@ import (
func (r *SourceZuoraResourceModel) ToCreateSDKType() *shared.SourceZuoraCreateRequest {
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
- dataQuery := shared.SourceZuoraDataQueryType(r.Configuration.DataQuery.ValueString())
- sourceType := shared.SourceZuoraZuora(r.Configuration.SourceType.ValueString())
+ dataQuery := new(shared.SourceZuoraDataQueryType)
+ if !r.Configuration.DataQuery.IsUnknown() && !r.Configuration.DataQuery.IsNull() {
+ *dataQuery = shared.SourceZuoraDataQueryType(r.Configuration.DataQuery.ValueString())
+ } else {
+ dataQuery = nil
+ }
startDate := r.Configuration.StartDate.ValueString()
tenantEndpoint := shared.SourceZuoraTenantEndpointLocation(r.Configuration.TenantEndpoint.ValueString())
windowInDays := new(string)
@@ -24,7 +28,6 @@ func (r *SourceZuoraResourceModel) ToCreateSDKType() *shared.SourceZuoraCreateRe
ClientID: clientID,
ClientSecret: clientSecret,
DataQuery: dataQuery,
- SourceType: sourceType,
StartDate: startDate,
TenantEndpoint: tenantEndpoint,
WindowInDays: windowInDays,
@@ -54,7 +57,12 @@ func (r *SourceZuoraResourceModel) ToGetSDKType() *shared.SourceZuoraCreateReque
func (r *SourceZuoraResourceModel) ToUpdateSDKType() *shared.SourceZuoraPutRequest {
clientID := r.Configuration.ClientID.ValueString()
clientSecret := r.Configuration.ClientSecret.ValueString()
- dataQuery := shared.SourceZuoraUpdateDataQueryType(r.Configuration.DataQuery.ValueString())
+ dataQuery := new(shared.SourceZuoraUpdateDataQueryType)
+ if !r.Configuration.DataQuery.IsUnknown() && !r.Configuration.DataQuery.IsNull() {
+ *dataQuery = shared.SourceZuoraUpdateDataQueryType(r.Configuration.DataQuery.ValueString())
+ } else {
+ dataQuery = nil
+ }
startDate := r.Configuration.StartDate.ValueString()
tenantEndpoint := shared.SourceZuoraUpdateTenantEndpointLocation(r.Configuration.TenantEndpoint.ValueString())
windowInDays := new(string)
diff --git a/internal/provider/type_connection_schedule.go b/internal/provider/type_connection_schedule.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_aws_datalake.go b/internal/provider/type_destination_aws_datalake.go
old mode 100755
new mode 100644
index 6bc6efdd0..9122ba524
--- a/internal/provider/type_destination_aws_datalake.go
+++ b/internal/provider/type_destination_aws_datalake.go
@@ -9,7 +9,6 @@ type DestinationAwsDatalake struct {
BucketName types.String `tfsdk:"bucket_name"`
BucketPrefix types.String `tfsdk:"bucket_prefix"`
Credentials DestinationAwsDatalakeAuthenticationMode `tfsdk:"credentials"`
- DestinationType types.String `tfsdk:"destination_type"`
Format *DestinationAwsDatalakeOutputFormatWildcard `tfsdk:"format"`
GlueCatalogFloatAsDecimal types.Bool `tfsdk:"glue_catalog_float_as_decimal"`
LakeformationDatabaseDefaultTagKey types.String `tfsdk:"lakeformation_database_default_tag_key"`
diff --git a/internal/provider/type_destination_aws_datalake1.go b/internal/provider/type_destination_aws_datalake1.go
old mode 100755
new mode 100644
index ec4a15e97..1da230ac6
--- a/internal/provider/type_destination_aws_datalake1.go
+++ b/internal/provider/type_destination_aws_datalake1.go
@@ -9,7 +9,6 @@ type DestinationAwsDatalake1 struct {
BucketName types.String `tfsdk:"bucket_name"`
BucketPrefix types.String `tfsdk:"bucket_prefix"`
Credentials DestinationAwsDatalakeAuthenticationMode `tfsdk:"credentials"`
- DestinationType types.String `tfsdk:"destination_type"`
Format *DestinationAwsDatalakeOutputFormatWildcard `tfsdk:"format"`
GlueCatalogFloatAsDecimal types.Bool `tfsdk:"glue_catalog_float_as_decimal"`
LakeformationDatabaseDefaultTagKey types.String `tfsdk:"lakeformation_database_default_tag_key"`
diff --git a/internal/provider/type_destination_aws_datalake_authentication_mode.go b/internal/provider/type_destination_aws_datalake_authentication_mode.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go b/internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go
old mode 100755
new mode 100644
index 48eafe65c..bf7084a30
--- a/internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go
+++ b/internal/provider/type_destination_aws_datalake_authentication_mode_iam_role.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationAwsDatalakeAuthenticationModeIAMRole struct {
- CredentialsTitle types.String `tfsdk:"credentials_title"`
- RoleArn types.String `tfsdk:"role_arn"`
+ RoleArn types.String `tfsdk:"role_arn"`
}
diff --git a/internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go b/internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go
old mode 100755
new mode 100644
index c7cdd06c5..df6628516
--- a/internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go
+++ b/internal/provider/type_destination_aws_datalake_authentication_mode_iam_user.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationAwsDatalakeAuthenticationModeIAMUser struct {
AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"`
AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"`
- CredentialsTitle types.String `tfsdk:"credentials_title"`
}
diff --git a/internal/provider/type_destination_aws_datalake_output_format_wildcard.go b/internal/provider/type_destination_aws_datalake_output_format_wildcard.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json.go b/internal/provider/type_destination_aws_datalake_output_format_wildcard_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_aws_datalake_output_format_wildcard_parquet_columnar_storage.go b/internal/provider/type_destination_aws_datalake_output_format_wildcard_parquet_columnar_storage.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_azure_blob_storage.go b/internal/provider/type_destination_azure_blob_storage.go
old mode 100755
new mode 100644
index 59579bb49..515806184
--- a/internal/provider/type_destination_azure_blob_storage.go
+++ b/internal/provider/type_destination_azure_blob_storage.go
@@ -11,6 +11,5 @@ type DestinationAzureBlobStorage struct {
AzureBlobStorageEndpointDomainName types.String `tfsdk:"azure_blob_storage_endpoint_domain_name"`
AzureBlobStorageOutputBufferSize types.Int64 `tfsdk:"azure_blob_storage_output_buffer_size"`
AzureBlobStorageSpillSize types.Int64 `tfsdk:"azure_blob_storage_spill_size"`
- DestinationType types.String `tfsdk:"destination_type"`
Format DestinationAzureBlobStorageOutputFormat `tfsdk:"format"`
}
diff --git a/internal/provider/type_destination_azure_blob_storage_output_format.go b/internal/provider/type_destination_azure_blob_storage_output_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go b/internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go
old mode 100755
new mode 100644
index 65f84f577..af3eed1d3
--- a/internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go
+++ b/internal/provider/type_destination_azure_blob_storage_output_format_csv_comma_separated_values.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues struct {
Flattening types.String `tfsdk:"flattening"`
- FormatType types.String `tfsdk:"format_type"`
}
diff --git a/internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
index 1fee0e377..3098079f0
--- a/internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go
+++ b/internal/provider/type_destination_azure_blob_storage_output_format_json_lines_newline_delimited_json.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType types.String `tfsdk:"format_type"`
}
diff --git a/internal/provider/type_destination_bigquery.go b/internal/provider/type_destination_bigquery.go
old mode 100755
new mode 100644
index 09022d87a..2f87ad6af
--- a/internal/provider/type_destination_bigquery.go
+++ b/internal/provider/type_destination_bigquery.go
@@ -9,7 +9,6 @@ type DestinationBigquery struct {
CredentialsJSON types.String `tfsdk:"credentials_json"`
DatasetID types.String `tfsdk:"dataset_id"`
DatasetLocation types.String `tfsdk:"dataset_location"`
- DestinationType types.String `tfsdk:"destination_type"`
LoadingMethod *DestinationBigqueryLoadingMethod `tfsdk:"loading_method"`
ProjectID types.String `tfsdk:"project_id"`
RawDataDataset types.String `tfsdk:"raw_data_dataset"`
diff --git a/internal/provider/type_destination_bigquery_denormalized.go b/internal/provider/type_destination_bigquery_denormalized.go
old mode 100755
new mode 100644
index 359b5f691..313d2717a
--- a/internal/provider/type_destination_bigquery_denormalized.go
+++ b/internal/provider/type_destination_bigquery_denormalized.go
@@ -9,7 +9,6 @@ type DestinationBigqueryDenormalized struct {
CredentialsJSON types.String `tfsdk:"credentials_json"`
DatasetID types.String `tfsdk:"dataset_id"`
DatasetLocation types.String `tfsdk:"dataset_location"`
- DestinationType types.String `tfsdk:"destination_type"`
LoadingMethod *DestinationBigqueryDenormalizedLoadingMethod `tfsdk:"loading_method"`
ProjectID types.String `tfsdk:"project_id"`
}
diff --git a/internal/provider/type_destination_bigquery_denormalized_loading_method.go b/internal/provider/type_destination_bigquery_denormalized_loading_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go b/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go
old mode 100755
new mode 100644
index e3f515534..ff519bbe2
--- a/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go
+++ b/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging.go
@@ -10,5 +10,4 @@ type DestinationBigqueryDenormalizedLoadingMethodGCSStaging struct {
GcsBucketName types.String `tfsdk:"gcs_bucket_name"`
GcsBucketPath types.String `tfsdk:"gcs_bucket_path"`
KeepFilesInGcsBucket types.String `tfsdk:"keep_files_in_gcs_bucket"`
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging_credential.go b/internal/provider/type_destination_bigquery_denormalized_loading_method_gcs_staging_credential.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go b/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go
old mode 100755
new mode 100644
index f27b28539..8b6f5e52f
--- a/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go
+++ b/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging.go
@@ -10,5 +10,4 @@ type DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging struct {
GcsBucketName types.String `tfsdk:"gcs_bucket_name"`
GcsBucketPath types.String `tfsdk:"gcs_bucket_path"`
KeepFilesInGcsBucket types.String `tfsdk:"keep_files_in_gcs_bucket"`
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging_credential.go b/internal/provider/type_destination_bigquery_denormalized_update_loading_method_gcs_staging_credential.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_bigquery_loading_method.go b/internal/provider/type_destination_bigquery_loading_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_bigquery_loading_method_gcs_staging.go b/internal/provider/type_destination_bigquery_loading_method_gcs_staging.go
old mode 100755
new mode 100644
index ef871f774..047192e6f
--- a/internal/provider/type_destination_bigquery_loading_method_gcs_staging.go
+++ b/internal/provider/type_destination_bigquery_loading_method_gcs_staging.go
@@ -10,5 +10,4 @@ type DestinationBigqueryLoadingMethodGCSStaging struct {
GcsBucketName types.String `tfsdk:"gcs_bucket_name"`
GcsBucketPath types.String `tfsdk:"gcs_bucket_path"`
KeepFilesInGcsBucket types.String `tfsdk:"keep_files_in_gcs_bucket"`
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential.go b/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go b/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go
old mode 100755
new mode 100644
index 92797ef04..fc6936a18
--- a/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go
+++ b/internal/provider/type_destination_bigquery_loading_method_gcs_staging_credential_hmac_key.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey struct {
- CredentialType types.String `tfsdk:"credential_type"`
HmacKeyAccessID types.String `tfsdk:"hmac_key_access_id"`
HmacKeySecret types.String `tfsdk:"hmac_key_secret"`
}
diff --git a/internal/provider/type_destination_bigquery_loading_method_standard_inserts.go b/internal/provider/type_destination_bigquery_loading_method_standard_inserts.go
old mode 100755
new mode 100644
index 2822a74ba..1c14402ab
--- a/internal/provider/type_destination_bigquery_loading_method_standard_inserts.go
+++ b/internal/provider/type_destination_bigquery_loading_method_standard_inserts.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationBigqueryLoadingMethodStandardInserts struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go b/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go
old mode 100755
new mode 100644
index bee10ad83..7eaa5cabf
--- a/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go
+++ b/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging.go
@@ -10,5 +10,4 @@ type DestinationBigqueryUpdateLoadingMethodGCSStaging struct {
GcsBucketName types.String `tfsdk:"gcs_bucket_name"`
GcsBucketPath types.String `tfsdk:"gcs_bucket_path"`
KeepFilesInGcsBucket types.String `tfsdk:"keep_files_in_gcs_bucket"`
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging_credential.go b/internal/provider/type_destination_bigquery_update_loading_method_gcs_staging_credential.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_clickhouse.go b/internal/provider/type_destination_clickhouse.go
old mode 100755
new mode 100644
index c7490d9e7..095fc5ff8
--- a/internal/provider/type_destination_clickhouse.go
+++ b/internal/provider/type_destination_clickhouse.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationClickhouse struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ TunnelMethod *DestinationClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_clickhouse_ssh_tunnel_method.go b/internal/provider/type_destination_clickhouse_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go
old mode 100755
new mode 100644
index 5de4913ba..2dc34671f
--- a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go
+++ b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_no_tunnel.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationClickhouseSSHTunnelMethodNoTunnel struct {
- TunnelMethod types.String `tfsdk:"tunnel_method"`
}
diff --git a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go
old mode 100755
new mode 100644
index e78b97226..dcad8ec28
--- a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go
+++ b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_password_authentication.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationClickhouseSSHTunnelMethodPasswordAuthentication struct {
TunnelHost types.String `tfsdk:"tunnel_host"`
- TunnelMethod types.String `tfsdk:"tunnel_method"`
TunnelPort types.Int64 `tfsdk:"tunnel_port"`
TunnelUser types.String `tfsdk:"tunnel_user"`
TunnelUserPassword types.String `tfsdk:"tunnel_user_password"`
diff --git a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go
old mode 100755
new mode 100644
index b77ce0c86..a2b16d117
--- a/internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go
+++ b/internal/provider/type_destination_clickhouse_ssh_tunnel_method_ssh_key_authentication.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication struct {
- SSHKey types.String `tfsdk:"ssh_key"`
- TunnelHost types.String `tfsdk:"tunnel_host"`
- TunnelMethod types.String `tfsdk:"tunnel_method"`
- TunnelPort types.Int64 `tfsdk:"tunnel_port"`
- TunnelUser types.String `tfsdk:"tunnel_user"`
+ SSHKey types.String `tfsdk:"ssh_key"`
+ TunnelHost types.String `tfsdk:"tunnel_host"`
+ TunnelPort types.Int64 `tfsdk:"tunnel_port"`
+ TunnelUser types.String `tfsdk:"tunnel_user"`
}
diff --git a/internal/provider/type_destination_convex.go b/internal/provider/type_destination_convex.go
old mode 100755
new mode 100644
index 978590b43..6c3eec30d
--- a/internal/provider/type_destination_convex.go
+++ b/internal/provider/type_destination_convex.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationConvex struct {
- AccessKey types.String `tfsdk:"access_key"`
- DeploymentURL types.String `tfsdk:"deployment_url"`
- DestinationType types.String `tfsdk:"destination_type"`
+ AccessKey types.String `tfsdk:"access_key"`
+ DeploymentURL types.String `tfsdk:"deployment_url"`
}
diff --git a/internal/provider/type_destination_cumulio.go b/internal/provider/type_destination_cumulio.go
old mode 100755
new mode 100644
index 64982426e..7ccceae0e
--- a/internal/provider/type_destination_cumulio.go
+++ b/internal/provider/type_destination_cumulio.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationCumulio struct {
- APIHost types.String `tfsdk:"api_host"`
- APIKey types.String `tfsdk:"api_key"`
- APIToken types.String `tfsdk:"api_token"`
- DestinationType types.String `tfsdk:"destination_type"`
+ APIHost types.String `tfsdk:"api_host"`
+ APIKey types.String `tfsdk:"api_key"`
+ APIToken types.String `tfsdk:"api_token"`
}
diff --git a/internal/provider/type_destination_databend.go b/internal/provider/type_destination_databend.go
old mode 100755
new mode 100644
index 0d4e3fb5c..f76281d03
--- a/internal/provider/type_destination_databend.go
+++ b/internal/provider/type_destination_databend.go
@@ -5,11 +5,10 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDatabend struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Table types.String `tfsdk:"table"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Table types.String `tfsdk:"table"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_databricks.go b/internal/provider/type_destination_databricks.go
old mode 100755
new mode 100644
index e3dba160d..dd498f949
--- a/internal/provider/type_destination_databricks.go
+++ b/internal/provider/type_destination_databricks.go
@@ -12,7 +12,6 @@ type DestinationDatabricks struct {
DatabricksPersonalAccessToken types.String `tfsdk:"databricks_personal_access_token"`
DatabricksPort types.String `tfsdk:"databricks_port"`
DatabricksServerHostname types.String `tfsdk:"databricks_server_hostname"`
- DestinationType types.String `tfsdk:"destination_type"`
EnableSchemaEvolution types.Bool `tfsdk:"enable_schema_evolution"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
Schema types.String `tfsdk:"schema"`
diff --git a/internal/provider/type_destination_databricks1.go b/internal/provider/type_destination_databricks1.go
old mode 100755
new mode 100644
index 7008804e8..4cabbadcc
--- a/internal/provider/type_destination_databricks1.go
+++ b/internal/provider/type_destination_databricks1.go
@@ -12,7 +12,6 @@ type DestinationDatabricks1 struct {
DatabricksPersonalAccessToken types.String `tfsdk:"databricks_personal_access_token"`
DatabricksPort types.String `tfsdk:"databricks_port"`
DatabricksServerHostname types.String `tfsdk:"databricks_server_hostname"`
- DestinationType types.String `tfsdk:"destination_type"`
EnableSchemaEvolution types.Bool `tfsdk:"enable_schema_evolution"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
Schema types.String `tfsdk:"schema"`
diff --git a/internal/provider/type_destination_databricks_data_source1.go b/internal/provider/type_destination_databricks_data_source1.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_databricks_data_source2.go b/internal/provider/type_destination_databricks_data_source2.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_databricks_data_source_amazon_s3.go b/internal/provider/type_destination_databricks_data_source_amazon_s3.go
old mode 100755
new mode 100644
index 6e806e554..6508b9de1
--- a/internal/provider/type_destination_databricks_data_source_amazon_s3.go
+++ b/internal/provider/type_destination_databricks_data_source_amazon_s3.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDatabricksDataSourceAmazonS3 struct {
- DataSourceType types.String `tfsdk:"data_source_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
S3AccessKeyID types.String `tfsdk:"s3_access_key_id"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_databricks_data_source_amazon_s31.go b/internal/provider/type_destination_databricks_data_source_amazon_s31.go
old mode 100755
new mode 100644
index 6cddf270e..08874bd9f
--- a/internal/provider/type_destination_databricks_data_source_amazon_s31.go
+++ b/internal/provider/type_destination_databricks_data_source_amazon_s31.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDatabricksDataSourceAmazonS31 struct {
- DataSourceType types.String `tfsdk:"data_source_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
S3AccessKeyID types.String `tfsdk:"s3_access_key_id"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_databricks_data_source_azure_blob_storage.go b/internal/provider/type_destination_databricks_data_source_azure_blob_storage.go
old mode 100755
new mode 100644
index 2ebf0c25a..cad3a65d4
--- a/internal/provider/type_destination_databricks_data_source_azure_blob_storage.go
+++ b/internal/provider/type_destination_databricks_data_source_azure_blob_storage.go
@@ -9,5 +9,4 @@ type DestinationDatabricksDataSourceAzureBlobStorage struct {
AzureBlobStorageContainerName types.String `tfsdk:"azure_blob_storage_container_name"`
AzureBlobStorageEndpointDomainName types.String `tfsdk:"azure_blob_storage_endpoint_domain_name"`
AzureBlobStorageSasToken types.String `tfsdk:"azure_blob_storage_sas_token"`
- DataSourceType types.String `tfsdk:"data_source_type"`
}
diff --git a/internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go b/internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go
old mode 100755
new mode 100644
index 304da46b5..564f5952b
--- a/internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go
+++ b/internal/provider/type_destination_databricks_data_source_recommended_managed_tables.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationDatabricksDataSourceRecommendedManagedTables struct {
- DataSourceType types.String `tfsdk:"data_source_type"`
}
diff --git a/internal/provider/type_destination_databricks_update_data_source_amazon_s3.go b/internal/provider/type_destination_databricks_update_data_source_amazon_s3.go
old mode 100755
new mode 100644
index 597611906..3e38e6fb3
--- a/internal/provider/type_destination_databricks_update_data_source_amazon_s3.go
+++ b/internal/provider/type_destination_databricks_update_data_source_amazon_s3.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDatabricksUpdateDataSourceAmazonS3 struct {
- DataSourceType types.String `tfsdk:"data_source_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
S3AccessKeyID types.String `tfsdk:"s3_access_key_id"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_databricks_update_data_source_amazon_s31.go b/internal/provider/type_destination_databricks_update_data_source_amazon_s31.go
old mode 100755
new mode 100644
index 87c2925af..5b7ae4b89
--- a/internal/provider/type_destination_databricks_update_data_source_amazon_s31.go
+++ b/internal/provider/type_destination_databricks_update_data_source_amazon_s31.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDatabricksUpdateDataSourceAmazonS31 struct {
- DataSourceType types.String `tfsdk:"data_source_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
S3AccessKeyID types.String `tfsdk:"s3_access_key_id"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_dev_null.go b/internal/provider/type_destination_dev_null.go
old mode 100755
new mode 100644
index 10e3be114..7bf35de28
--- a/internal/provider/type_destination_dev_null.go
+++ b/internal/provider/type_destination_dev_null.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationDevNull struct {
- DestinationType types.String `tfsdk:"destination_type"`
TestDestination DestinationDevNullTestDestination `tfsdk:"test_destination"`
}
diff --git a/internal/provider/type_destination_dev_null_test_destination.go b/internal/provider/type_destination_dev_null_test_destination.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_dev_null_test_destination_silent.go b/internal/provider/type_destination_dev_null_test_destination_silent.go
old mode 100755
new mode 100644
index 5aa8dea45..5c6706779
--- a/internal/provider/type_destination_dev_null_test_destination_silent.go
+++ b/internal/provider/type_destination_dev_null_test_destination_silent.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationDevNullTestDestinationSilent struct {
- TestDestinationType types.String `tfsdk:"test_destination_type"`
}
diff --git a/internal/provider/type_destination_dynamodb.go b/internal/provider/type_destination_dynamodb.go
old mode 100755
new mode 100644
index f40c2493f..76b2b866d
--- a/internal/provider/type_destination_dynamodb.go
+++ b/internal/provider/type_destination_dynamodb.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDynamodb struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
DynamodbEndpoint types.String `tfsdk:"dynamodb_endpoint"`
DynamodbRegion types.String `tfsdk:"dynamodb_region"`
DynamodbTableNamePrefix types.String `tfsdk:"dynamodb_table_name_prefix"`
diff --git a/internal/provider/type_destination_dynamodb1.go b/internal/provider/type_destination_dynamodb1.go
old mode 100755
new mode 100644
index 0a2de8bdb..dc2f99831
--- a/internal/provider/type_destination_dynamodb1.go
+++ b/internal/provider/type_destination_dynamodb1.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationDynamodb1 struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
DynamodbEndpoint types.String `tfsdk:"dynamodb_endpoint"`
DynamodbRegion types.String `tfsdk:"dynamodb_region"`
DynamodbTableNamePrefix types.String `tfsdk:"dynamodb_table_name_prefix"`
diff --git a/internal/provider/type_destination_elasticsearch.go b/internal/provider/type_destination_elasticsearch.go
old mode 100755
new mode 100644
index c507f60b0..9a0981b10
--- a/internal/provider/type_destination_elasticsearch.go
+++ b/internal/provider/type_destination_elasticsearch.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationElasticsearch struct {
AuthenticationMethod *DestinationElasticsearchAuthenticationMethod `tfsdk:"authentication_method"`
CaCertificate types.String `tfsdk:"ca_certificate"`
- DestinationType types.String `tfsdk:"destination_type"`
Endpoint types.String `tfsdk:"endpoint"`
Upsert types.Bool `tfsdk:"upsert"`
}
diff --git a/internal/provider/type_destination_elasticsearch_authentication_method.go b/internal/provider/type_destination_elasticsearch_authentication_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go b/internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go
old mode 100755
new mode 100644
index 1da140eb7..feccf4ab7
--- a/internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go
+++ b/internal/provider/type_destination_elasticsearch_authentication_method_api_key_secret.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationElasticsearchAuthenticationMethodAPIKeySecret struct {
APIKeyID types.String `tfsdk:"api_key_id"`
APIKeySecret types.String `tfsdk:"api_key_secret"`
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_elasticsearch_authentication_method_username_password.go b/internal/provider/type_destination_elasticsearch_authentication_method_username_password.go
old mode 100755
new mode 100644
index dc74817bd..08dd7fdb4
--- a/internal/provider/type_destination_elasticsearch_authentication_method_username_password.go
+++ b/internal/provider/type_destination_elasticsearch_authentication_method_username_password.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationElasticsearchAuthenticationMethodUsernamePassword struct {
- Method types.String `tfsdk:"method"`
Password types.String `tfsdk:"password"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_firebolt.go b/internal/provider/type_destination_firebolt.go
old mode 100755
new mode 100644
index 97dd35bdb..1729de867
--- a/internal/provider/type_destination_firebolt.go
+++ b/internal/provider/type_destination_firebolt.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationFirebolt struct {
- Account types.String `tfsdk:"account"`
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Engine types.String `tfsdk:"engine"`
- Host types.String `tfsdk:"host"`
- LoadingMethod *DestinationFireboltLoadingMethod `tfsdk:"loading_method"`
- Password types.String `tfsdk:"password"`
- Username types.String `tfsdk:"username"`
+ Account types.String `tfsdk:"account"`
+ Database types.String `tfsdk:"database"`
+ Engine types.String `tfsdk:"engine"`
+ Host types.String `tfsdk:"host"`
+ LoadingMethod *DestinationFireboltLoadingMethod `tfsdk:"loading_method"`
+ Password types.String `tfsdk:"password"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_firebolt_loading_method.go b/internal/provider/type_destination_firebolt_loading_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go b/internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go
old mode 100755
new mode 100644
index b7ee4c519..b4135563d
--- a/internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go
+++ b/internal/provider/type_destination_firebolt_loading_method_external_table_via_s3.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationFireboltLoadingMethodExternalTableViaS3 struct {
AwsKeyID types.String `tfsdk:"aws_key_id"`
AwsKeySecret types.String `tfsdk:"aws_key_secret"`
- Method types.String `tfsdk:"method"`
S3Bucket types.String `tfsdk:"s3_bucket"`
S3Region types.String `tfsdk:"s3_region"`
}
diff --git a/internal/provider/type_destination_firebolt_loading_method_sql_inserts.go b/internal/provider/type_destination_firebolt_loading_method_sql_inserts.go
old mode 100755
new mode 100644
index 71b297a92..a30126638
--- a/internal/provider/type_destination_firebolt_loading_method_sql_inserts.go
+++ b/internal/provider/type_destination_firebolt_loading_method_sql_inserts.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationFireboltLoadingMethodSQLInserts struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_firestore.go b/internal/provider/type_destination_firestore.go
old mode 100755
new mode 100644
index ed91ad048..9f11b614c
--- a/internal/provider/type_destination_firestore.go
+++ b/internal/provider/type_destination_firestore.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationFirestore struct {
CredentialsJSON types.String `tfsdk:"credentials_json"`
- DestinationType types.String `tfsdk:"destination_type"`
ProjectID types.String `tfsdk:"project_id"`
}
diff --git a/internal/provider/type_destination_gcs.go b/internal/provider/type_destination_gcs.go
old mode 100755
new mode 100644
index d0d156915..ed2c78e8b
--- a/internal/provider/type_destination_gcs.go
+++ b/internal/provider/type_destination_gcs.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationGcs struct {
Credential DestinationGcsAuthentication `tfsdk:"credential"`
- DestinationType types.String `tfsdk:"destination_type"`
Format DestinationGcsOutputFormat `tfsdk:"format"`
GcsBucketName types.String `tfsdk:"gcs_bucket_name"`
GcsBucketPath types.String `tfsdk:"gcs_bucket_path"`
diff --git a/internal/provider/type_destination_gcs_authentication.go b/internal/provider/type_destination_gcs_authentication.go
old mode 100755
new mode 100644
index 730f79d29..c01627db5
--- a/internal/provider/type_destination_gcs_authentication.go
+++ b/internal/provider/type_destination_gcs_authentication.go
@@ -3,6 +3,6 @@
package provider
type DestinationGcsAuthentication struct {
- DestinationGcsAuthenticationHMACKey *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey `tfsdk:"destination_gcs_authentication_hmac_key"`
- DestinationGcsUpdateAuthenticationHMACKey *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey `tfsdk:"destination_gcs_update_authentication_hmac_key"`
+ DestinationGcsAuthenticationHMACKey *DestinationGcsAuthenticationHMACKey `tfsdk:"destination_gcs_authentication_hmac_key"`
+ DestinationGcsUpdateAuthenticationHMACKey *DestinationGcsAuthenticationHMACKey `tfsdk:"destination_gcs_update_authentication_hmac_key"`
}
diff --git a/internal/provider/type_destination_gcs_authentication_hmac_key.go b/internal/provider/type_destination_gcs_authentication_hmac_key.go
new file mode 100644
index 000000000..bb154b92d
--- /dev/null
+++ b/internal/provider/type_destination_gcs_authentication_hmac_key.go
@@ -0,0 +1,11 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package provider
+
+import "github.com/hashicorp/terraform-plugin-framework/types"
+
+type DestinationGcsAuthenticationHMACKey struct {
+ CredentialType types.String `tfsdk:"credential_type"`
+ HmacKeyAccessID types.String `tfsdk:"hmac_key_access_id"`
+ HmacKeySecret types.String `tfsdk:"hmac_key_secret"`
+}
diff --git a/internal/provider/type_destination_gcs_output_format.go b/internal/provider/type_destination_gcs_output_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_bzip2.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_bzip2.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_deflate.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_deflate.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_no_compression.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_no_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_snappy.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_snappy.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_xz.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_xz.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_zstandard.go b/internal/provider/type_destination_gcs_output_format_avro_apache_avro_compression_codec_zstandard.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values.go b/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression.go b/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_gzip.go b/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_gzip.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_no_compression.go b/internal/provider/type_destination_gcs_output_format_csv_comma_separated_values_compression_no_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip.go b/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_gzip.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression.go b/internal/provider/type_destination_gcs_output_format_json_lines_newline_delimited_json_compression_no_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_output_format_parquet_columnar_storage.go b/internal/provider/type_destination_gcs_output_format_parquet_columnar_storage.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_avro_apache_avro.go b/internal/provider/type_destination_gcs_update_output_format_avro_apache_avro.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_avro_apache_avro_compression_codec.go b/internal/provider/type_destination_gcs_update_output_format_avro_apache_avro_compression_codec.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values.go b/internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values_compression.go b/internal/provider/type_destination_gcs_update_output_format_csv_comma_separated_values_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_gcs_update_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_google_sheets.go b/internal/provider/type_destination_google_sheets.go
old mode 100755
new mode 100644
index 3d5fabfca..36b403613
--- a/internal/provider/type_destination_google_sheets.go
+++ b/internal/provider/type_destination_google_sheets.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationGoogleSheets struct {
- Credentials DestinationGoogleSheetsAuthenticationViaGoogleOAuth `tfsdk:"credentials"`
- DestinationType types.String `tfsdk:"destination_type"`
- SpreadsheetID types.String `tfsdk:"spreadsheet_id"`
+ Credentials DestinationGoogleSheetsAuthenticationViaGoogleOAuth `tfsdk:"credentials"`
+ SpreadsheetID types.String `tfsdk:"spreadsheet_id"`
}
diff --git a/internal/provider/type_destination_google_sheets_authentication_via_google_o_auth.go b/internal/provider/type_destination_google_sheets_authentication_via_google_o_auth.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_keen.go b/internal/provider/type_destination_keen.go
old mode 100755
new mode 100644
index fba1809e2..d06803893
--- a/internal/provider/type_destination_keen.go
+++ b/internal/provider/type_destination_keen.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationKeen struct {
- APIKey types.String `tfsdk:"api_key"`
- DestinationType types.String `tfsdk:"destination_type"`
- InferTimestamp types.Bool `tfsdk:"infer_timestamp"`
- ProjectID types.String `tfsdk:"project_id"`
+ APIKey types.String `tfsdk:"api_key"`
+ InferTimestamp types.Bool `tfsdk:"infer_timestamp"`
+ ProjectID types.String `tfsdk:"project_id"`
}
diff --git a/internal/provider/type_destination_kinesis.go b/internal/provider/type_destination_kinesis.go
old mode 100755
new mode 100644
index 40e380026..188fc0b4e
--- a/internal/provider/type_destination_kinesis.go
+++ b/internal/provider/type_destination_kinesis.go
@@ -5,11 +5,10 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationKinesis struct {
- AccessKey types.String `tfsdk:"access_key"`
- BufferSize types.Int64 `tfsdk:"buffer_size"`
- DestinationType types.String `tfsdk:"destination_type"`
- Endpoint types.String `tfsdk:"endpoint"`
- PrivateKey types.String `tfsdk:"private_key"`
- Region types.String `tfsdk:"region"`
- ShardCount types.Int64 `tfsdk:"shard_count"`
+ AccessKey types.String `tfsdk:"access_key"`
+ BufferSize types.Int64 `tfsdk:"buffer_size"`
+ Endpoint types.String `tfsdk:"endpoint"`
+ PrivateKey types.String `tfsdk:"private_key"`
+ Region types.String `tfsdk:"region"`
+ ShardCount types.Int64 `tfsdk:"shard_count"`
}
diff --git a/internal/provider/type_destination_langchain.go b/internal/provider/type_destination_langchain.go
old mode 100755
new mode 100644
index 270f11a9f..6637b7427
--- a/internal/provider/type_destination_langchain.go
+++ b/internal/provider/type_destination_langchain.go
@@ -2,11 +2,8 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationLangchain struct {
- DestinationType types.String `tfsdk:"destination_type"`
- Embedding DestinationLangchainEmbedding `tfsdk:"embedding"`
- Indexing DestinationLangchainIndexing `tfsdk:"indexing"`
- Processing DestinationLangchainProcessingConfigModel `tfsdk:"processing"`
+ Embedding DestinationLangchainEmbedding `tfsdk:"embedding"`
+ Indexing DestinationLangchainIndexing `tfsdk:"indexing"`
+ Processing DestinationLangchainProcessingConfigModel `tfsdk:"processing"`
}
diff --git a/internal/provider/type_destination_langchain_embedding.go b/internal/provider/type_destination_langchain_embedding.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_langchain_embedding_fake.go b/internal/provider/type_destination_langchain_embedding_fake.go
old mode 100755
new mode 100644
index 3709f2aca..d26cdaf0f
--- a/internal/provider/type_destination_langchain_embedding_fake.go
+++ b/internal/provider/type_destination_langchain_embedding_fake.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationLangchainEmbeddingFake struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_langchain_embedding_open_ai.go b/internal/provider/type_destination_langchain_embedding_open_ai.go
old mode 100755
new mode 100644
index 99fc449fa..41514b686
--- a/internal/provider/type_destination_langchain_embedding_open_ai.go
+++ b/internal/provider/type_destination_langchain_embedding_open_ai.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationLangchainEmbeddingOpenAI struct {
- Mode types.String `tfsdk:"mode"`
OpenaiKey types.String `tfsdk:"openai_key"`
}
diff --git a/internal/provider/type_destination_langchain_indexing.go b/internal/provider/type_destination_langchain_indexing.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go b/internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go
old mode 100755
new mode 100644
index 8b628b9a2..25d1ae0ac
--- a/internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go
+++ b/internal/provider/type_destination_langchain_indexing_chroma_local_persistance.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationLangchainIndexingChromaLocalPersistance struct {
CollectionName types.String `tfsdk:"collection_name"`
DestinationPath types.String `tfsdk:"destination_path"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go b/internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go
old mode 100755
new mode 100644
index 8dee2f017..149bd5f8d
--- a/internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go
+++ b/internal/provider/type_destination_langchain_indexing_doc_array_hnsw_search.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationLangchainIndexingDocArrayHnswSearch struct {
DestinationPath types.String `tfsdk:"destination_path"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_langchain_indexing_pinecone.go b/internal/provider/type_destination_langchain_indexing_pinecone.go
old mode 100755
new mode 100644
index cf6cb1c81..d3f8602b5
--- a/internal/provider/type_destination_langchain_indexing_pinecone.go
+++ b/internal/provider/type_destination_langchain_indexing_pinecone.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationLangchainIndexingPinecone struct {
Index types.String `tfsdk:"index"`
- Mode types.String `tfsdk:"mode"`
PineconeEnvironment types.String `tfsdk:"pinecone_environment"`
PineconeKey types.String `tfsdk:"pinecone_key"`
}
diff --git a/internal/provider/type_destination_langchain_processing_config_model.go b/internal/provider/type_destination_langchain_processing_config_model.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_milvus.go b/internal/provider/type_destination_milvus.go
old mode 100755
new mode 100644
index 3d3ea9fdf..259da3d79
--- a/internal/provider/type_destination_milvus.go
+++ b/internal/provider/type_destination_milvus.go
@@ -2,11 +2,8 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationMilvus struct {
- DestinationType types.String `tfsdk:"destination_type"`
- Embedding DestinationMilvusEmbedding `tfsdk:"embedding"`
- Indexing DestinationMilvusIndexing `tfsdk:"indexing"`
- Processing DestinationMilvusProcessingConfigModel `tfsdk:"processing"`
+ Embedding DestinationMilvusEmbedding `tfsdk:"embedding"`
+ Indexing DestinationMilvusIndexing `tfsdk:"indexing"`
+ Processing DestinationMilvusProcessingConfigModel `tfsdk:"processing"`
}
diff --git a/internal/provider/type_destination_milvus_embedding.go b/internal/provider/type_destination_milvus_embedding.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_milvus_embedding_cohere.go b/internal/provider/type_destination_milvus_embedding_cohere.go
old mode 100755
new mode 100644
index 5c0b2141d..2a758588b
--- a/internal/provider/type_destination_milvus_embedding_cohere.go
+++ b/internal/provider/type_destination_milvus_embedding_cohere.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMilvusEmbeddingCohere struct {
CohereKey types.String `tfsdk:"cohere_key"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_milvus_embedding_from_field.go b/internal/provider/type_destination_milvus_embedding_from_field.go
old mode 100755
new mode 100644
index b06084e93..aefecb930
--- a/internal/provider/type_destination_milvus_embedding_from_field.go
+++ b/internal/provider/type_destination_milvus_embedding_from_field.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMilvusEmbeddingFromField struct {
Dimensions types.Int64 `tfsdk:"dimensions"`
FieldName types.String `tfsdk:"field_name"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_milvus_indexing.go b/internal/provider/type_destination_milvus_indexing.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_milvus_indexing_authentication.go b/internal/provider/type_destination_milvus_indexing_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_milvus_indexing_authentication_api_token.go b/internal/provider/type_destination_milvus_indexing_authentication_api_token.go
old mode 100755
new mode 100644
index a49094f16..39017c083
--- a/internal/provider/type_destination_milvus_indexing_authentication_api_token.go
+++ b/internal/provider/type_destination_milvus_indexing_authentication_api_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMilvusIndexingAuthenticationAPIToken struct {
- Mode types.String `tfsdk:"mode"`
Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_destination_milvus_indexing_authentication_no_auth.go b/internal/provider/type_destination_milvus_indexing_authentication_no_auth.go
old mode 100755
new mode 100644
index 507bdc6cf..9b00aa073
--- a/internal/provider/type_destination_milvus_indexing_authentication_no_auth.go
+++ b/internal/provider/type_destination_milvus_indexing_authentication_no_auth.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationMilvusIndexingAuthenticationNoAuth struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_milvus_indexing_authentication_username_password.go b/internal/provider/type_destination_milvus_indexing_authentication_username_password.go
old mode 100755
new mode 100644
index ffea134d1..b0d83c7ed
--- a/internal/provider/type_destination_milvus_indexing_authentication_username_password.go
+++ b/internal/provider/type_destination_milvus_indexing_authentication_username_password.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMilvusIndexingAuthenticationUsernamePassword struct {
- Mode types.String `tfsdk:"mode"`
Password types.String `tfsdk:"password"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_milvus_processing_config_model.go b/internal/provider/type_destination_milvus_processing_config_model.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb.go b/internal/provider/type_destination_mongodb.go
old mode 100755
new mode 100644
index 2fb364c2b..b21e445b7
--- a/internal/provider/type_destination_mongodb.go
+++ b/internal/provider/type_destination_mongodb.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMongodb struct {
- AuthType DestinationMongodbAuthorizationType `tfsdk:"auth_type"`
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- InstanceType *DestinationMongodbMongoDbInstanceType `tfsdk:"instance_type"`
- TunnelMethod *DestinationMongodbSSHTunnelMethod `tfsdk:"tunnel_method"`
+ AuthType DestinationMongodbAuthorizationType `tfsdk:"auth_type"`
+ Database types.String `tfsdk:"database"`
+ InstanceType *DestinationMongodbMongoDbInstanceType `tfsdk:"instance_type"`
+ TunnelMethod *DestinationMongodbSSHTunnelMethod `tfsdk:"tunnel_method"`
}
diff --git a/internal/provider/type_destination_mongodb_authorization_type.go b/internal/provider/type_destination_mongodb_authorization_type.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb_authorization_type_login_password.go b/internal/provider/type_destination_mongodb_authorization_type_login_password.go
old mode 100755
new mode 100644
index 828b46f31..88e161baa
--- a/internal/provider/type_destination_mongodb_authorization_type_login_password.go
+++ b/internal/provider/type_destination_mongodb_authorization_type_login_password.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMongodbAuthorizationTypeLoginPassword struct {
- Authorization types.String `tfsdk:"authorization"`
- Password types.String `tfsdk:"password"`
- Username types.String `tfsdk:"username"`
+ Password types.String `tfsdk:"password"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_mongodb_authorization_type_none.go b/internal/provider/type_destination_mongodb_authorization_type_none.go
old mode 100755
new mode 100644
index 8cf0ca02e..624ff0a86
--- a/internal/provider/type_destination_mongodb_authorization_type_none.go
+++ b/internal/provider/type_destination_mongodb_authorization_type_none.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationMongodbAuthorizationTypeNone struct {
- Authorization types.String `tfsdk:"authorization"`
}
diff --git a/internal/provider/type_destination_mongodb_mongo_db_instance_type.go b/internal/provider/type_destination_mongodb_mongo_db_instance_type.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb_mongo_db_instance_type_mongo_db_atlas.go b/internal/provider/type_destination_mongodb_mongo_db_instance_type_mongo_db_atlas.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb_mongo_db_instance_type_replica_set.go b/internal/provider/type_destination_mongodb_mongo_db_instance_type_replica_set.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go b/internal/provider/type_destination_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mongodb_ssh_tunnel_method.go b/internal/provider/type_destination_mongodb_ssh_tunnel_method.go
old mode 100755
new mode 100644
index 15c6f2b33..136e72854
--- a/internal/provider/type_destination_mongodb_ssh_tunnel_method.go
+++ b/internal/provider/type_destination_mongodb_ssh_tunnel_method.go
@@ -3,9 +3,9 @@
package provider
type DestinationMongodbSSHTunnelMethod struct {
- DestinationMongodbSSHTunnelMethodNoTunnel *DestinationClickhouseSSHTunnelMethodNoTunnel `tfsdk:"destination_mongodb_ssh_tunnel_method_no_tunnel"`
- DestinationMongodbSSHTunnelMethodPasswordAuthentication *DestinationClickhouseSSHTunnelMethodPasswordAuthentication `tfsdk:"destination_mongodb_ssh_tunnel_method_password_authentication"`
- DestinationMongodbSSHTunnelMethodSSHKeyAuthentication *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication `tfsdk:"destination_mongodb_ssh_tunnel_method_ssh_key_authentication"`
+ DestinationMongodbSSHTunnelMethodNoTunnel *DestinationMongodbSSHTunnelMethodNoTunnel `tfsdk:"destination_mongodb_ssh_tunnel_method_no_tunnel"`
+ DestinationMongodbSSHTunnelMethodPasswordAuthentication *DestinationMongodbSSHTunnelMethodPasswordAuthentication `tfsdk:"destination_mongodb_ssh_tunnel_method_password_authentication"`
+ DestinationMongodbSSHTunnelMethodSSHKeyAuthentication *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication `tfsdk:"destination_mongodb_ssh_tunnel_method_ssh_key_authentication"`
DestinationMongodbUpdateSSHTunnelMethodNoTunnel *DestinationClickhouseSSHTunnelMethodNoTunnel `tfsdk:"destination_mongodb_update_ssh_tunnel_method_no_tunnel"`
DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication *DestinationClickhouseSSHTunnelMethodPasswordAuthentication `tfsdk:"destination_mongodb_update_ssh_tunnel_method_password_authentication"`
DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication `tfsdk:"destination_mongodb_update_ssh_tunnel_method_ssh_key_authentication"`
diff --git a/internal/provider/type_destination_mongodb_ssh_tunnel_method_no_tunnel.go b/internal/provider/type_destination_mongodb_ssh_tunnel_method_no_tunnel.go
new file mode 100644
index 000000000..c29f59a41
--- /dev/null
+++ b/internal/provider/type_destination_mongodb_ssh_tunnel_method_no_tunnel.go
@@ -0,0 +1,6 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package provider
+
+type DestinationMongodbSSHTunnelMethodNoTunnel struct {
+}
diff --git a/internal/provider/type_destination_mongodb_ssh_tunnel_method_password_authentication.go b/internal/provider/type_destination_mongodb_ssh_tunnel_method_password_authentication.go
new file mode 100644
index 000000000..5de37e0c7
--- /dev/null
+++ b/internal/provider/type_destination_mongodb_ssh_tunnel_method_password_authentication.go
@@ -0,0 +1,12 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package provider
+
+import "github.com/hashicorp/terraform-plugin-framework/types"
+
+type DestinationMongodbSSHTunnelMethodPasswordAuthentication struct {
+ TunnelHost types.String `tfsdk:"tunnel_host"`
+ TunnelPort types.Int64 `tfsdk:"tunnel_port"`
+ TunnelUser types.String `tfsdk:"tunnel_user"`
+ TunnelUserPassword types.String `tfsdk:"tunnel_user_password"`
+}
diff --git a/internal/provider/type_destination_mongodb_ssh_tunnel_method_ssh_key_authentication.go b/internal/provider/type_destination_mongodb_ssh_tunnel_method_ssh_key_authentication.go
new file mode 100644
index 000000000..d1f8138f5
--- /dev/null
+++ b/internal/provider/type_destination_mongodb_ssh_tunnel_method_ssh_key_authentication.go
@@ -0,0 +1,12 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package provider
+
+import "github.com/hashicorp/terraform-plugin-framework/types"
+
+type DestinationMongodbSSHTunnelMethodSSHKeyAuthentication struct {
+ SSHKey types.String `tfsdk:"ssh_key"`
+ TunnelHost types.String `tfsdk:"tunnel_host"`
+ TunnelPort types.Int64 `tfsdk:"tunnel_port"`
+ TunnelUser types.String `tfsdk:"tunnel_user"`
+}
diff --git a/internal/provider/type_destination_mssql.go b/internal/provider/type_destination_mssql.go
old mode 100755
new mode 100644
index f6379db85..37c3dd284
--- a/internal/provider/type_destination_mssql.go
+++ b/internal/provider/type_destination_mssql.go
@@ -5,14 +5,13 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMssql struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Schema types.String `tfsdk:"schema"`
- SslMethod *DestinationMssqlSSLMethod `tfsdk:"ssl_method"`
- TunnelMethod *DestinationMssqlSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Schema types.String `tfsdk:"schema"`
+ SslMethod *DestinationMssqlSSLMethod `tfsdk:"ssl_method"`
+ TunnelMethod *DestinationMssqlSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_mssql_ssh_tunnel_method.go b/internal/provider/type_destination_mssql_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mssql_ssl_method.go b/internal/provider/type_destination_mssql_ssl_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go b/internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go
old mode 100755
new mode 100644
index cf706fccd..1af6f0168
--- a/internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go
+++ b/internal/provider/type_destination_mssql_ssl_method_encrypted_trust_server_certificate.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationMssqlSSLMethodEncryptedTrustServerCertificate struct {
- SslMethod types.String `tfsdk:"ssl_method"`
}
diff --git a/internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go b/internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go
old mode 100755
new mode 100644
index dbcd20c6b..461d65010
--- a/internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go
+++ b/internal/provider/type_destination_mssql_ssl_method_encrypted_verify_certificate.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMssqlSSLMethodEncryptedVerifyCertificate struct {
HostNameInCertificate types.String `tfsdk:"host_name_in_certificate"`
- SslMethod types.String `tfsdk:"ssl_method"`
}
diff --git a/internal/provider/type_destination_mysql.go b/internal/provider/type_destination_mysql.go
old mode 100755
new mode 100644
index 90590290a..dcd36bf88
--- a/internal/provider/type_destination_mysql.go
+++ b/internal/provider/type_destination_mysql.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationMysql struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- TunnelMethod *DestinationMysqlSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ TunnelMethod *DestinationMysqlSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_mysql_ssh_tunnel_method.go b/internal/provider/type_destination_mysql_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_oracle.go b/internal/provider/type_destination_oracle.go
old mode 100755
new mode 100644
index 57ca13a53..f55e5787a
--- a/internal/provider/type_destination_oracle.go
+++ b/internal/provider/type_destination_oracle.go
@@ -5,13 +5,12 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationOracle struct {
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Schema types.String `tfsdk:"schema"`
- Sid types.String `tfsdk:"sid"`
- TunnelMethod *DestinationOracleSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Schema types.String `tfsdk:"schema"`
+ Sid types.String `tfsdk:"sid"`
+ TunnelMethod *DestinationOracleSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_oracle_ssh_tunnel_method.go b/internal/provider/type_destination_oracle_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_pinecone.go b/internal/provider/type_destination_pinecone.go
old mode 100755
new mode 100644
index 64eb170f3..7c15e061b
--- a/internal/provider/type_destination_pinecone.go
+++ b/internal/provider/type_destination_pinecone.go
@@ -2,11 +2,8 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationPinecone struct {
- DestinationType types.String `tfsdk:"destination_type"`
- Embedding DestinationPineconeEmbedding `tfsdk:"embedding"`
- Indexing DestinationPineconeIndexing `tfsdk:"indexing"`
- Processing DestinationMilvusProcessingConfigModel `tfsdk:"processing"`
+ Embedding DestinationPineconeEmbedding `tfsdk:"embedding"`
+ Indexing DestinationPineconeIndexing `tfsdk:"indexing"`
+ Processing DestinationMilvusProcessingConfigModel `tfsdk:"processing"`
}
diff --git a/internal/provider/type_destination_pinecone_embedding.go b/internal/provider/type_destination_pinecone_embedding.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_pinecone_indexing.go b/internal/provider/type_destination_pinecone_indexing.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_postgres.go b/internal/provider/type_destination_postgres.go
old mode 100755
new mode 100644
index c3dd06aaa..6f8f85b78
--- a/internal/provider/type_destination_postgres.go
+++ b/internal/provider/type_destination_postgres.go
@@ -5,14 +5,13 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationPostgres struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Schema types.String `tfsdk:"schema"`
- SslMode *DestinationPostgresSSLModes `tfsdk:"ssl_mode"`
- TunnelMethod *DestinationPostgresSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Schema types.String `tfsdk:"schema"`
+ SslMode *DestinationPostgresSSLModes `tfsdk:"ssl_mode"`
+ TunnelMethod *DestinationPostgresSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_postgres_ssh_tunnel_method.go b/internal/provider/type_destination_postgres_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_postgres_ssl_modes.go b/internal/provider/type_destination_postgres_ssl_modes.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_postgres_ssl_modes_allow.go b/internal/provider/type_destination_postgres_ssl_modes_allow.go
old mode 100755
new mode 100644
index 038dc1c75..ec0de8aa9
--- a/internal/provider/type_destination_postgres_ssl_modes_allow.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_allow.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationPostgresSSLModesAllow struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_postgres_ssl_modes_disable.go b/internal/provider/type_destination_postgres_ssl_modes_disable.go
old mode 100755
new mode 100644
index 2e0072d6c..87d030bf7
--- a/internal/provider/type_destination_postgres_ssl_modes_disable.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_disable.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationPostgresSSLModesDisable struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_postgres_ssl_modes_prefer.go b/internal/provider/type_destination_postgres_ssl_modes_prefer.go
old mode 100755
new mode 100644
index 564b2ae28..ba93f2d65
--- a/internal/provider/type_destination_postgres_ssl_modes_prefer.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_prefer.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationPostgresSSLModesPrefer struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_postgres_ssl_modes_require.go b/internal/provider/type_destination_postgres_ssl_modes_require.go
old mode 100755
new mode 100644
index e405d447a..6bbebff97
--- a/internal/provider/type_destination_postgres_ssl_modes_require.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_require.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationPostgresSSLModesRequire struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_postgres_ssl_modes_verify_ca.go b/internal/provider/type_destination_postgres_ssl_modes_verify_ca.go
old mode 100755
new mode 100644
index 808be3a4a..890fcd5e0
--- a/internal/provider/type_destination_postgres_ssl_modes_verify_ca.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_verify_ca.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationPostgresSSLModesVerifyCa struct {
CaCertificate types.String `tfsdk:"ca_certificate"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_postgres_ssl_modes_verify_full.go b/internal/provider/type_destination_postgres_ssl_modes_verify_full.go
old mode 100755
new mode 100644
index 77b1b1856..9b11d205c
--- a/internal/provider/type_destination_postgres_ssl_modes_verify_full.go
+++ b/internal/provider/type_destination_postgres_ssl_modes_verify_full.go
@@ -9,5 +9,4 @@ type DestinationPostgresSSLModesVerifyFull struct {
ClientCertificate types.String `tfsdk:"client_certificate"`
ClientKey types.String `tfsdk:"client_key"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_destination_pubsub.go b/internal/provider/type_destination_pubsub.go
old mode 100755
new mode 100644
index c824a851c..12e108463
--- a/internal/provider/type_destination_pubsub.go
+++ b/internal/provider/type_destination_pubsub.go
@@ -10,7 +10,6 @@ type DestinationPubsub struct {
BatchingEnabled types.Bool `tfsdk:"batching_enabled"`
BatchingRequestBytesThreshold types.Int64 `tfsdk:"batching_request_bytes_threshold"`
CredentialsJSON types.String `tfsdk:"credentials_json"`
- DestinationType types.String `tfsdk:"destination_type"`
OrderingEnabled types.Bool `tfsdk:"ordering_enabled"`
ProjectID types.String `tfsdk:"project_id"`
TopicID types.String `tfsdk:"topic_id"`
diff --git a/internal/provider/type_destination_redis.go b/internal/provider/type_destination_redis.go
old mode 100755
new mode 100644
index 5909bb7ab..81c43a895
--- a/internal/provider/type_destination_redis.go
+++ b/internal/provider/type_destination_redis.go
@@ -5,13 +5,12 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationRedis struct {
- CacheType types.String `tfsdk:"cache_type"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Ssl types.Bool `tfsdk:"ssl"`
- SslMode *DestinationRedisSSLModes `tfsdk:"ssl_mode"`
- TunnelMethod *DestinationRedisSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ CacheType types.String `tfsdk:"cache_type"`
+ Host types.String `tfsdk:"host"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Ssl types.Bool `tfsdk:"ssl"`
+ SslMode *DestinationRedisSSLModes `tfsdk:"ssl_mode"`
+ TunnelMethod *DestinationRedisSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_redis_ssh_tunnel_method.go b/internal/provider/type_destination_redis_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redis_ssl_modes.go b/internal/provider/type_destination_redis_ssl_modes.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift.go b/internal/provider/type_destination_redshift.go
old mode 100755
new mode 100644
index fc74b7ac2..2bf3fe693
--- a/internal/provider/type_destination_redshift.go
+++ b/internal/provider/type_destination_redshift.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationRedshift struct {
Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
Host types.String `tfsdk:"host"`
JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
Password types.String `tfsdk:"password"`
diff --git a/internal/provider/type_destination_redshift1.go b/internal/provider/type_destination_redshift1.go
old mode 100755
new mode 100644
index 52fbee755..2b56ef988
--- a/internal/provider/type_destination_redshift1.go
+++ b/internal/provider/type_destination_redshift1.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationRedshift1 struct {
Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
Host types.String `tfsdk:"host"`
JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
Password types.String `tfsdk:"password"`
diff --git a/internal/provider/type_destination_redshift_ssh_tunnel_method.go b/internal/provider/type_destination_redshift_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go b/internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go
old mode 100755
new mode 100644
index d25f22f03..898c82da8
--- a/internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go
+++ b/internal/provider/type_destination_redshift_update_uploading_method_s3_staging.go
@@ -9,7 +9,6 @@ type DestinationRedshiftUpdateUploadingMethodS3Staging struct {
Encryption *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption `tfsdk:"encryption"`
FileBufferCount types.Int64 `tfsdk:"file_buffer_count"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
- Method types.String `tfsdk:"method"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
S3BucketPath types.String `tfsdk:"s3_bucket_path"`
diff --git a/internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go b/internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go
old mode 100755
new mode 100644
index 7cb7027df..d65fe7aed
--- a/internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go
+++ b/internal/provider/type_destination_redshift_update_uploading_method_s3_staging1.go
@@ -9,7 +9,6 @@ type DestinationRedshiftUpdateUploadingMethodS3Staging1 struct {
Encryption *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption `tfsdk:"encryption"`
FileBufferCount types.Int64 `tfsdk:"file_buffer_count"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
- Method types.String `tfsdk:"method"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
S3BucketPath types.String `tfsdk:"s3_bucket_path"`
diff --git a/internal/provider/type_destination_redshift_update_uploading_method_s3_staging_encryption.go b/internal/provider/type_destination_redshift_update_uploading_method_s3_staging_encryption.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift_uploading_method.go b/internal/provider/type_destination_redshift_uploading_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift_uploading_method1.go b/internal/provider/type_destination_redshift_uploading_method1.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift_uploading_method_s3_staging.go b/internal/provider/type_destination_redshift_uploading_method_s3_staging.go
old mode 100755
new mode 100644
index 16d4e81df..0e78419c9
--- a/internal/provider/type_destination_redshift_uploading_method_s3_staging.go
+++ b/internal/provider/type_destination_redshift_uploading_method_s3_staging.go
@@ -9,7 +9,6 @@ type DestinationRedshiftUploadingMethodS3Staging struct {
Encryption *DestinationRedshiftUploadingMethodS3StagingEncryption `tfsdk:"encryption"`
FileBufferCount types.Int64 `tfsdk:"file_buffer_count"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
- Method types.String `tfsdk:"method"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
S3BucketPath types.String `tfsdk:"s3_bucket_path"`
diff --git a/internal/provider/type_destination_redshift_uploading_method_s3_staging1.go b/internal/provider/type_destination_redshift_uploading_method_s3_staging1.go
old mode 100755
new mode 100644
index 1e9beb6c1..8ebfc7c5d
--- a/internal/provider/type_destination_redshift_uploading_method_s3_staging1.go
+++ b/internal/provider/type_destination_redshift_uploading_method_s3_staging1.go
@@ -9,7 +9,6 @@ type DestinationRedshiftUploadingMethodS3Staging1 struct {
Encryption *DestinationRedshiftUploadingMethodS3StagingEncryption `tfsdk:"encryption"`
FileBufferCount types.Int64 `tfsdk:"file_buffer_count"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
- Method types.String `tfsdk:"method"`
PurgeStagingData types.Bool `tfsdk:"purge_staging_data"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
S3BucketPath types.String `tfsdk:"s3_bucket_path"`
diff --git a/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption.go b/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go b/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go
old mode 100755
new mode 100644
index a7615671f..8242cd841
--- a/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go
+++ b/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_aescbc_envelope_encryption.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption struct {
- EncryptionType types.String `tfsdk:"encryption_type"`
KeyEncryptingKey types.String `tfsdk:"key_encrypting_key"`
}
diff --git a/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go b/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go
old mode 100755
new mode 100644
index 38bdbe3a9..b82a6273e
--- a/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go
+++ b/internal/provider/type_destination_redshift_uploading_method_s3_staging_encryption_no_encryption.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption struct {
- EncryptionType types.String `tfsdk:"encryption_type"`
}
diff --git a/internal/provider/type_destination_redshift_uploading_method_standard.go b/internal/provider/type_destination_redshift_uploading_method_standard.go
old mode 100755
new mode 100644
index 6db071108..22c89878f
--- a/internal/provider/type_destination_redshift_uploading_method_standard.go
+++ b/internal/provider/type_destination_redshift_uploading_method_standard.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type DestinationRedshiftUploadingMethodStandard struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_destination_s3.go b/internal/provider/type_destination_s3.go
old mode 100755
new mode 100644
index 0e0d8f2fa..8c671071d
--- a/internal/provider/type_destination_s3.go
+++ b/internal/provider/type_destination_s3.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationS3 struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
Format DestinationS3OutputFormat `tfsdk:"format"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_s31.go b/internal/provider/type_destination_s31.go
old mode 100755
new mode 100644
index 13e3d8ce7..a44f85ab5
--- a/internal/provider/type_destination_s31.go
+++ b/internal/provider/type_destination_s31.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationS31 struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
Format DestinationS3OutputFormat `tfsdk:"format"`
S3BucketName types.String `tfsdk:"s3_bucket_name"`
diff --git a/internal/provider/type_destination_s3_glue.go b/internal/provider/type_destination_s3_glue.go
old mode 100755
new mode 100644
index 3696794af..f0b76c25b
--- a/internal/provider/type_destination_s3_glue.go
+++ b/internal/provider/type_destination_s3_glue.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationS3Glue struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
Format DestinationS3GlueOutputFormat `tfsdk:"format"`
GlueDatabase types.String `tfsdk:"glue_database"`
diff --git a/internal/provider/type_destination_s3_glue1.go b/internal/provider/type_destination_s3_glue1.go
old mode 100755
new mode 100644
index d691c25de..0e11cdc5e
--- a/internal/provider/type_destination_s3_glue1.go
+++ b/internal/provider/type_destination_s3_glue1.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationS3Glue1 struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
- DestinationType types.String `tfsdk:"destination_type"`
FileNamePattern types.String `tfsdk:"file_name_pattern"`
Format DestinationS3GlueOutputFormat `tfsdk:"format"`
GlueDatabase types.String `tfsdk:"glue_database"`
diff --git a/internal/provider/type_destination_s3_glue_output_format.go b/internal/provider/type_destination_s3_glue_output_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_s3_glue_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_s3_glue_update_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format.go b/internal/provider/type_destination_s3_output_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_avro_apache_avro.go b/internal/provider/type_destination_s3_output_format_avro_apache_avro.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_avro_apache_avro_compression_codec.go b/internal/provider/type_destination_s3_output_format_avro_apache_avro_compression_codec.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_csv_comma_separated_values.go b/internal/provider/type_destination_s3_output_format_csv_comma_separated_values.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_csv_comma_separated_values_compression.go b/internal/provider/type_destination_s3_output_format_csv_comma_separated_values_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_s3_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_output_format_parquet_columnar_storage.go b/internal/provider/type_destination_s3_output_format_parquet_columnar_storage.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_avro_apache_avro.go b/internal/provider/type_destination_s3_update_output_format_avro_apache_avro.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_avro_apache_avro_compression_codec.go b/internal/provider/type_destination_s3_update_output_format_avro_apache_avro_compression_codec.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values.go b/internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values_compression.go b/internal/provider/type_destination_s3_update_output_format_csv_comma_separated_values_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json.go b/internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json_compression.go b/internal/provider/type_destination_s3_update_output_format_json_lines_newline_delimited_json_compression.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_sftp_json.go b/internal/provider/type_destination_sftp_json.go
old mode 100755
new mode 100644
index 26307d9b1..443bbe5c7
--- a/internal/provider/type_destination_sftp_json.go
+++ b/internal/provider/type_destination_sftp_json.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationSftpJSON struct {
DestinationPath types.String `tfsdk:"destination_path"`
- DestinationType types.String `tfsdk:"destination_type"`
Host types.String `tfsdk:"host"`
Password types.String `tfsdk:"password"`
Port types.Int64 `tfsdk:"port"`
diff --git a/internal/provider/type_destination_snowflake.go b/internal/provider/type_destination_snowflake.go
old mode 100755
new mode 100644
index 1700af440..ff55eb685
--- a/internal/provider/type_destination_snowflake.go
+++ b/internal/provider/type_destination_snowflake.go
@@ -5,14 +5,13 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationSnowflake struct {
- Credentials *DestinationSnowflakeAuthorizationMethod `tfsdk:"credentials"`
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- RawDataSchema types.String `tfsdk:"raw_data_schema"`
- Role types.String `tfsdk:"role"`
- Schema types.String `tfsdk:"schema"`
- Username types.String `tfsdk:"username"`
- Warehouse types.String `tfsdk:"warehouse"`
+ Credentials *DestinationSnowflakeAuthorizationMethod `tfsdk:"credentials"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ RawDataSchema types.String `tfsdk:"raw_data_schema"`
+ Role types.String `tfsdk:"role"`
+ Schema types.String `tfsdk:"schema"`
+ Username types.String `tfsdk:"username"`
+ Warehouse types.String `tfsdk:"warehouse"`
}
diff --git a/internal/provider/type_destination_snowflake_authorization_method.go b/internal/provider/type_destination_snowflake_authorization_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go b/internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go
old mode 100755
new mode 100644
index 623d47936..b3b1d8f08
--- a/internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go
+++ b/internal/provider/type_destination_snowflake_authorization_method_key_pair_authentication.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationSnowflakeAuthorizationMethodKeyPairAuthentication struct {
- AuthType types.String `tfsdk:"auth_type"`
PrivateKey types.String `tfsdk:"private_key"`
PrivateKeyPassword types.String `tfsdk:"private_key_password"`
}
diff --git a/internal/provider/type_destination_snowflake_authorization_method_o_auth20.go b/internal/provider/type_destination_snowflake_authorization_method_o_auth20.go
old mode 100755
new mode 100644
index f57da9734..5754cd4f3
--- a/internal/provider/type_destination_snowflake_authorization_method_o_auth20.go
+++ b/internal/provider/type_destination_snowflake_authorization_method_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationSnowflakeAuthorizationMethodOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_destination_snowflake_authorization_method_username_and_password.go b/internal/provider/type_destination_snowflake_authorization_method_username_and_password.go
old mode 100755
new mode 100644
index efdf6bf1a..9b0dcfe88
--- a/internal/provider/type_destination_snowflake_authorization_method_username_and_password.go
+++ b/internal/provider/type_destination_snowflake_authorization_method_username_and_password.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationSnowflakeAuthorizationMethodUsernameAndPassword struct {
- AuthType types.String `tfsdk:"auth_type"`
Password types.String `tfsdk:"password"`
}
diff --git a/internal/provider/type_destination_timeplus.go b/internal/provider/type_destination_timeplus.go
old mode 100755
new mode 100644
index 6ad57aee2..34c365543
--- a/internal/provider/type_destination_timeplus.go
+++ b/internal/provider/type_destination_timeplus.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationTimeplus struct {
- Apikey types.String `tfsdk:"apikey"`
- DestinationType types.String `tfsdk:"destination_type"`
- Endpoint types.String `tfsdk:"endpoint"`
+ Apikey types.String `tfsdk:"apikey"`
+ Endpoint types.String `tfsdk:"endpoint"`
}
diff --git a/internal/provider/type_destination_typesense.go b/internal/provider/type_destination_typesense.go
old mode 100755
new mode 100644
index c895f570a..ae145bb43
--- a/internal/provider/type_destination_typesense.go
+++ b/internal/provider/type_destination_typesense.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationTypesense struct {
- APIKey types.String `tfsdk:"api_key"`
- BatchSize types.Int64 `tfsdk:"batch_size"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- Port types.String `tfsdk:"port"`
- Protocol types.String `tfsdk:"protocol"`
+ APIKey types.String `tfsdk:"api_key"`
+ BatchSize types.Int64 `tfsdk:"batch_size"`
+ Host types.String `tfsdk:"host"`
+ Port types.String `tfsdk:"port"`
+ Protocol types.String `tfsdk:"protocol"`
}
diff --git a/internal/provider/type_destination_vertica.go b/internal/provider/type_destination_vertica.go
old mode 100755
new mode 100644
index fa5e7c0fa..c9b29727f
--- a/internal/provider/type_destination_vertica.go
+++ b/internal/provider/type_destination_vertica.go
@@ -5,13 +5,12 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationVertica struct {
- Database types.String `tfsdk:"database"`
- DestinationType types.String `tfsdk:"destination_type"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- Schema types.String `tfsdk:"schema"`
- TunnelMethod *DestinationVerticaSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
+ Database types.String `tfsdk:"database"`
+ Host types.String `tfsdk:"host"`
+ JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
+ Password types.String `tfsdk:"password"`
+ Port types.Int64 `tfsdk:"port"`
+ Schema types.String `tfsdk:"schema"`
+ TunnelMethod *DestinationVerticaSSHTunnelMethod `tfsdk:"tunnel_method"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_destination_vertica_ssh_tunnel_method.go b/internal/provider/type_destination_vertica_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_destination_xata.go b/internal/provider/type_destination_xata.go
old mode 100755
new mode 100644
index 1020ecf11..df1fb11f2
--- a/internal/provider/type_destination_xata.go
+++ b/internal/provider/type_destination_xata.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type DestinationXata struct {
- APIKey types.String `tfsdk:"api_key"`
- DbURL types.String `tfsdk:"db_url"`
- DestinationType types.String `tfsdk:"destination_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ DbURL types.String `tfsdk:"db_url"`
}
diff --git a/internal/provider/type_source_aha.go b/internal/provider/type_source_aha.go
old mode 100755
new mode 100644
index 830930055..0dc06149f
--- a/internal/provider/type_source_aha.go
+++ b/internal/provider/type_source_aha.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAha struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- URL types.String `tfsdk:"url"`
+ APIKey types.String `tfsdk:"api_key"`
+ URL types.String `tfsdk:"url"`
}
diff --git a/internal/provider/type_source_aircall.go b/internal/provider/type_source_aircall.go
old mode 100755
new mode 100644
index 35f04be5f..606bb4844
--- a/internal/provider/type_source_aircall.go
+++ b/internal/provider/type_source_aircall.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAircall struct {
- APIID types.String `tfsdk:"api_id"`
- APIToken types.String `tfsdk:"api_token"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIID types.String `tfsdk:"api_id"`
+ APIToken types.String `tfsdk:"api_token"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_airtable.go b/internal/provider/type_source_airtable.go
old mode 100755
new mode 100644
index a49a6143e..47ef7d088
--- a/internal/provider/type_source_airtable.go
+++ b/internal/provider/type_source_airtable.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceAirtable struct {
Credentials *SourceAirtableAuthentication `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_airtable_authentication.go b/internal/provider/type_source_airtable_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_airtable_authentication_o_auth20.go b/internal/provider/type_source_airtable_authentication_o_auth20.go
old mode 100755
new mode 100644
index befe0bf55..9d3bb5656
--- a/internal/provider/type_source_airtable_authentication_o_auth20.go
+++ b/internal/provider/type_source_airtable_authentication_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAirtableAuthenticationOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_airtable_authentication_personal_access_token.go b/internal/provider/type_source_airtable_authentication_personal_access_token.go
old mode 100755
new mode 100644
index 61af133db..ecde41b30
--- a/internal/provider/type_source_airtable_authentication_personal_access_token.go
+++ b/internal/provider/type_source_airtable_authentication_personal_access_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAirtableAuthenticationPersonalAccessToken struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthMethod types.String `tfsdk:"auth_method"`
+ APIKey types.String `tfsdk:"api_key"`
}
diff --git a/internal/provider/type_source_alloydb.go b/internal/provider/type_source_alloydb.go
old mode 100755
new mode 100644
index e1ce96ba4..b0c9bf250
--- a/internal/provider/type_source_alloydb.go
+++ b/internal/provider/type_source_alloydb.go
@@ -12,7 +12,6 @@ type SourceAlloydb struct {
Port types.Int64 `tfsdk:"port"`
ReplicationMethod *SourceAlloydbReplicationMethod `tfsdk:"replication_method"`
Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
SslMode *SourceAlloydbSSLModes `tfsdk:"ssl_mode"`
TunnelMethod *SourceAlloydbSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
diff --git a/internal/provider/type_source_alloydb1.go b/internal/provider/type_source_alloydb1.go
deleted file mode 100755
index ad7bbb49f..000000000
--- a/internal/provider/type_source_alloydb1.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydb1 struct {
- Database types.String `tfsdk:"database"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- ReplicationMethod *SourceAlloydbReplicationMethod1 `tfsdk:"replication_method"`
- Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
- SslMode *SourceAlloydbSSLModes1 `tfsdk:"ssl_mode"`
- TunnelMethod *SourceAlloydbSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
-}
diff --git a/internal/provider/type_source_alloydb_replication_method.go b/internal/provider/type_source_alloydb_replication_method.go
old mode 100755
new mode 100644
index 606633cdd..7a59c9513
--- a/internal/provider/type_source_alloydb_replication_method.go
+++ b/internal/provider/type_source_alloydb_replication_method.go
@@ -3,10 +3,10 @@
package provider
type SourceAlloydbReplicationMethod struct {
- SourceAlloydbReplicationMethodLogicalReplicationCDC *SourceAlloydbReplicationMethodLogicalReplicationCDC `tfsdk:"source_alloydb_replication_method_logical_replication_cdc"`
- SourceAlloydbReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_replication_method_standard"`
- SourceAlloydbReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_replication_method_standard_xmin"`
- SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC `tfsdk:"source_alloydb_update_replication_method_logical_replication_cdc"`
- SourceAlloydbUpdateReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_update_replication_method_standard"`
- SourceAlloydbUpdateReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_update_replication_method_standard_xmin"`
+ SourceAlloydbReplicationMethodLogicalReplicationCDC *SourceAlloydbReplicationMethodLogicalReplicationCDC `tfsdk:"source_alloydb_replication_method_logical_replication_cdc"`
+ SourceAlloydbReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_replication_method_standard"`
+ SourceAlloydbReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_replication_method_standard_xmin"`
+ SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC *SourceAlloydbReplicationMethodLogicalReplicationCDC `tfsdk:"source_alloydb_update_replication_method_logical_replication_cdc"`
+ SourceAlloydbUpdateReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_update_replication_method_standard"`
+ SourceAlloydbUpdateReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_update_replication_method_standard_xmin"`
}
diff --git a/internal/provider/type_source_alloydb_replication_method1.go b/internal/provider/type_source_alloydb_replication_method1.go
deleted file mode 100755
index 6574f62a7..000000000
--- a/internal/provider/type_source_alloydb_replication_method1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceAlloydbReplicationMethod1 struct {
- SourceAlloydbReplicationMethodLogicalReplicationCDC *SourceAlloydbReplicationMethodLogicalReplicationCDC1 `tfsdk:"source_alloydb_replication_method_logical_replication_cdc"`
- SourceAlloydbReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_replication_method_standard"`
- SourceAlloydbReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_replication_method_standard_xmin"`
- SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC1 `tfsdk:"source_alloydb_update_replication_method_logical_replication_cdc"`
- SourceAlloydbUpdateReplicationMethodStandard *SourceAlloydbReplicationMethodStandard `tfsdk:"source_alloydb_update_replication_method_standard"`
- SourceAlloydbUpdateReplicationMethodStandardXmin *SourceAlloydbReplicationMethodStandardXmin `tfsdk:"source_alloydb_update_replication_method_standard_xmin"`
-}
diff --git a/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go b/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go
old mode 100755
new mode 100644
index 5460f2f0d..6098b6f2e
--- a/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go
+++ b/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbReplicationMethodLogicalReplicationCDC struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
Plugin types.String `tfsdk:"plugin"`
Publication types.String `tfsdk:"publication"`
QueueSize types.Int64 `tfsdk:"queue_size"`
ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc1.go b/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc1.go
deleted file mode 100755
index 420566a45..000000000
--- a/internal/provider/type_source_alloydb_replication_method_logical_replication_cdc1.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbReplicationMethodLogicalReplicationCDC1 struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_replication_method_standard.go b/internal/provider/type_source_alloydb_replication_method_standard.go
old mode 100755
new mode 100644
index b7fdee6f1..6a6f64ecf
--- a/internal/provider/type_source_alloydb_replication_method_standard.go
+++ b/internal/provider/type_source_alloydb_replication_method_standard.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceAlloydbReplicationMethodStandard struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_source_alloydb_replication_method_standard_xmin.go b/internal/provider/type_source_alloydb_replication_method_standard_xmin.go
old mode 100755
new mode 100644
index 15de383a3..87ed6fdd1
--- a/internal/provider/type_source_alloydb_replication_method_standard_xmin.go
+++ b/internal/provider/type_source_alloydb_replication_method_standard_xmin.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceAlloydbReplicationMethodStandardXmin struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_source_alloydb_ssh_tunnel_method.go b/internal/provider/type_source_alloydb_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_alloydb_ssl_modes.go b/internal/provider/type_source_alloydb_ssl_modes.go
old mode 100755
new mode 100644
index c3b187bc9..6233a7cca
--- a/internal/provider/type_source_alloydb_ssl_modes.go
+++ b/internal/provider/type_source_alloydb_ssl_modes.go
@@ -3,16 +3,16 @@
package provider
type SourceAlloydbSSLModes struct {
- SourceAlloydbSSLModesAllow *SourceAlloydbSSLModesAllow `tfsdk:"source_alloydb_ssl_modes_allow"`
- SourceAlloydbSSLModesDisable *SourceAlloydbSSLModesDisable `tfsdk:"source_alloydb_ssl_modes_disable"`
- SourceAlloydbSSLModesPrefer *SourceAlloydbSSLModesPrefer `tfsdk:"source_alloydb_ssl_modes_prefer"`
- SourceAlloydbSSLModesRequire *SourceAlloydbSSLModesRequire `tfsdk:"source_alloydb_ssl_modes_require"`
- SourceAlloydbSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa `tfsdk:"source_alloydb_ssl_modes_verify_ca"`
- SourceAlloydbSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull `tfsdk:"source_alloydb_ssl_modes_verify_full"`
- SourceAlloydbUpdateSSLModesAllow *SourceAlloydbUpdateSSLModesAllow `tfsdk:"source_alloydb_update_ssl_modes_allow"`
- SourceAlloydbUpdateSSLModesDisable *SourceAlloydbUpdateSSLModesDisable `tfsdk:"source_alloydb_update_ssl_modes_disable"`
- SourceAlloydbUpdateSSLModesPrefer *SourceAlloydbUpdateSSLModesPrefer `tfsdk:"source_alloydb_update_ssl_modes_prefer"`
- SourceAlloydbUpdateSSLModesRequire *SourceAlloydbUpdateSSLModesRequire `tfsdk:"source_alloydb_update_ssl_modes_require"`
- SourceAlloydbUpdateSSLModesVerifyCa *SourceAlloydbUpdateSSLModesVerifyCa `tfsdk:"source_alloydb_update_ssl_modes_verify_ca"`
- SourceAlloydbUpdateSSLModesVerifyFull *SourceAlloydbUpdateSSLModesVerifyFull `tfsdk:"source_alloydb_update_ssl_modes_verify_full"`
+ SourceAlloydbSSLModesAllow *SourceAlloydbSSLModesAllow `tfsdk:"source_alloydb_ssl_modes_allow"`
+ SourceAlloydbSSLModesDisable *SourceAlloydbSSLModesDisable `tfsdk:"source_alloydb_ssl_modes_disable"`
+ SourceAlloydbSSLModesPrefer *SourceAlloydbSSLModesPrefer `tfsdk:"source_alloydb_ssl_modes_prefer"`
+ SourceAlloydbSSLModesRequire *SourceAlloydbSSLModesRequire `tfsdk:"source_alloydb_ssl_modes_require"`
+ SourceAlloydbSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa `tfsdk:"source_alloydb_ssl_modes_verify_ca"`
+ SourceAlloydbSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull `tfsdk:"source_alloydb_ssl_modes_verify_full"`
+ SourceAlloydbUpdateSSLModesAllow *SourceAlloydbSSLModesAllow `tfsdk:"source_alloydb_update_ssl_modes_allow"`
+ SourceAlloydbUpdateSSLModesDisable *SourceAlloydbSSLModesDisable `tfsdk:"source_alloydb_update_ssl_modes_disable"`
+ SourceAlloydbUpdateSSLModesPrefer *SourceAlloydbSSLModesPrefer `tfsdk:"source_alloydb_update_ssl_modes_prefer"`
+ SourceAlloydbUpdateSSLModesRequire *SourceAlloydbSSLModesRequire `tfsdk:"source_alloydb_update_ssl_modes_require"`
+ SourceAlloydbUpdateSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa `tfsdk:"source_alloydb_update_ssl_modes_verify_ca"`
+ SourceAlloydbUpdateSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull `tfsdk:"source_alloydb_update_ssl_modes_verify_full"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes1.go b/internal/provider/type_source_alloydb_ssl_modes1.go
deleted file mode 100755
index c2a1917f0..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes1.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceAlloydbSSLModes1 struct {
- SourceAlloydbSSLModesAllow *SourceAlloydbSSLModesAllow1 `tfsdk:"source_alloydb_ssl_modes_allow"`
- SourceAlloydbSSLModesDisable *SourceAlloydbSSLModesDisable1 `tfsdk:"source_alloydb_ssl_modes_disable"`
- SourceAlloydbSSLModesPrefer *SourceAlloydbSSLModesPrefer1 `tfsdk:"source_alloydb_ssl_modes_prefer"`
- SourceAlloydbSSLModesRequire *SourceAlloydbSSLModesRequire1 `tfsdk:"source_alloydb_ssl_modes_require"`
- SourceAlloydbSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa1 `tfsdk:"source_alloydb_ssl_modes_verify_ca"`
- SourceAlloydbSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull1 `tfsdk:"source_alloydb_ssl_modes_verify_full"`
- SourceAlloydbUpdateSSLModesAllow *SourceAlloydbUpdateSSLModesAllow1 `tfsdk:"source_alloydb_update_ssl_modes_allow"`
- SourceAlloydbUpdateSSLModesDisable *SourceAlloydbUpdateSSLModesDisable1 `tfsdk:"source_alloydb_update_ssl_modes_disable"`
- SourceAlloydbUpdateSSLModesPrefer *SourceAlloydbUpdateSSLModesPrefer1 `tfsdk:"source_alloydb_update_ssl_modes_prefer"`
- SourceAlloydbUpdateSSLModesRequire *SourceAlloydbUpdateSSLModesRequire1 `tfsdk:"source_alloydb_update_ssl_modes_require"`
- SourceAlloydbUpdateSSLModesVerifyCa *SourceAlloydbUpdateSSLModesVerifyCa1 `tfsdk:"source_alloydb_update_ssl_modes_verify_ca"`
- SourceAlloydbUpdateSSLModesVerifyFull *SourceAlloydbUpdateSSLModesVerifyFull1 `tfsdk:"source_alloydb_update_ssl_modes_verify_full"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_allow.go b/internal/provider/type_source_alloydb_ssl_modes_allow.go
old mode 100755
new mode 100644
index e4a81e174..52d418b4f
--- a/internal/provider/type_source_alloydb_ssl_modes_allow.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_allow.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesAllow struct {
- Mode types.String `tfsdk:"mode"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_allow1.go b/internal/provider/type_source_alloydb_ssl_modes_allow1.go
deleted file mode 100755
index 8517e36e6..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_allow1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesAllow1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_disable.go b/internal/provider/type_source_alloydb_ssl_modes_disable.go
old mode 100755
new mode 100644
index 5b337fe25..ffb052537
--- a/internal/provider/type_source_alloydb_ssl_modes_disable.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_disable.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesDisable struct {
- Mode types.String `tfsdk:"mode"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_disable1.go b/internal/provider/type_source_alloydb_ssl_modes_disable1.go
deleted file mode 100755
index 16cdee8af..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_disable1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesDisable1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_prefer.go b/internal/provider/type_source_alloydb_ssl_modes_prefer.go
old mode 100755
new mode 100644
index b818b682c..af1ac7a74
--- a/internal/provider/type_source_alloydb_ssl_modes_prefer.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_prefer.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesPrefer struct {
- Mode types.String `tfsdk:"mode"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_prefer1.go b/internal/provider/type_source_alloydb_ssl_modes_prefer1.go
deleted file mode 100755
index 12561855c..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_prefer1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesPrefer1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_require.go b/internal/provider/type_source_alloydb_ssl_modes_require.go
old mode 100755
new mode 100644
index 560977031..9cbd1c75a
--- a/internal/provider/type_source_alloydb_ssl_modes_require.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_require.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesRequire struct {
- Mode types.String `tfsdk:"mode"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_require1.go b/internal/provider/type_source_alloydb_ssl_modes_require1.go
deleted file mode 100755
index 3831600b4..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_require1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesRequire1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_verify_ca.go b/internal/provider/type_source_alloydb_ssl_modes_verify_ca.go
old mode 100755
new mode 100644
index c34252c85..a0eae455d
--- a/internal/provider/type_source_alloydb_ssl_modes_verify_ca.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_verify_ca.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesVerifyCa struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
CaCertificate types.String `tfsdk:"ca_certificate"`
ClientCertificate types.String `tfsdk:"client_certificate"`
ClientKey types.String `tfsdk:"client_key"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_verify_ca1.go b/internal/provider/type_source_alloydb_ssl_modes_verify_ca1.go
deleted file mode 100755
index 6fb24b846..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_verify_ca1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesVerifyCa1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_verify_full.go b/internal/provider/type_source_alloydb_ssl_modes_verify_full.go
old mode 100755
new mode 100644
index ba81d218b..7f7b16691
--- a/internal/provider/type_source_alloydb_ssl_modes_verify_full.go
+++ b/internal/provider/type_source_alloydb_ssl_modes_verify_full.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAlloydbSSLModesVerifyFull struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
CaCertificate types.String `tfsdk:"ca_certificate"`
ClientCertificate types.String `tfsdk:"client_certificate"`
ClientKey types.String `tfsdk:"client_key"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_alloydb_ssl_modes_verify_full1.go b/internal/provider/type_source_alloydb_ssl_modes_verify_full1.go
deleted file mode 100755
index 7bc98717f..000000000
--- a/internal/provider/type_source_alloydb_ssl_modes_verify_full1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbSSLModesVerifyFull1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc.go b/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc.go
deleted file mode 100755
index 2698a4478..000000000
--- a/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc1.go b/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc1.go
deleted file mode 100755
index 35a6b5cda..000000000
--- a/internal/provider/type_source_alloydb_update_replication_method_logical_replication_cdc1.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC1 struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_allow.go b/internal/provider/type_source_alloydb_update_ssl_modes_allow.go
deleted file mode 100755
index 83f2f2cc8..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_allow.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesAllow struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_allow1.go b/internal/provider/type_source_alloydb_update_ssl_modes_allow1.go
deleted file mode 100755
index 9589675c5..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_allow1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesAllow1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_disable.go b/internal/provider/type_source_alloydb_update_ssl_modes_disable.go
deleted file mode 100755
index c25c2ca81..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_disable.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesDisable struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_disable1.go b/internal/provider/type_source_alloydb_update_ssl_modes_disable1.go
deleted file mode 100755
index 4fc05caee..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_disable1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesDisable1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_prefer.go b/internal/provider/type_source_alloydb_update_ssl_modes_prefer.go
deleted file mode 100755
index bed68d10b..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_prefer.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesPrefer struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_prefer1.go b/internal/provider/type_source_alloydb_update_ssl_modes_prefer1.go
deleted file mode 100755
index 8196b20b0..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_prefer1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesPrefer1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_require.go b/internal/provider/type_source_alloydb_update_ssl_modes_require.go
deleted file mode 100755
index 04794fdf5..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_require.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesRequire struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_require1.go b/internal/provider/type_source_alloydb_update_ssl_modes_require1.go
deleted file mode 100755
index d4ef9ee9e..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_require1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesRequire1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca.go b/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca.go
deleted file mode 100755
index 8046e038e..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesVerifyCa struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca1.go b/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca1.go
deleted file mode 100755
index 65ed7dece..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_verify_ca1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesVerifyCa1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_verify_full.go b/internal/provider/type_source_alloydb_update_ssl_modes_verify_full.go
deleted file mode 100755
index 7411282cf..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_verify_full.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesVerifyFull struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_alloydb_update_ssl_modes_verify_full1.go b/internal/provider/type_source_alloydb_update_ssl_modes_verify_full1.go
deleted file mode 100755
index 2d4b291af..000000000
--- a/internal/provider/type_source_alloydb_update_ssl_modes_verify_full1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceAlloydbUpdateSSLModesVerifyFull1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_amazon_ads.go b/internal/provider/type_source_amazon_ads.go
old mode 100755
new mode 100644
index 4c7b03712..0777ac2c5
--- a/internal/provider/type_source_amazon_ads.go
+++ b/internal/provider/type_source_amazon_ads.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAmazonAds struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
LookBackWindow types.Int64 `tfsdk:"look_back_window"`
@@ -14,7 +13,6 @@ type SourceAmazonAds struct {
RefreshToken types.String `tfsdk:"refresh_token"`
Region types.String `tfsdk:"region"`
ReportRecordTypes []types.String `tfsdk:"report_record_types"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StateFilter []types.String `tfsdk:"state_filter"`
}
diff --git a/internal/provider/type_source_amazon_seller_partner.go b/internal/provider/type_source_amazon_seller_partner.go
old mode 100755
new mode 100644
index a612edb64..54e8bd1f8
--- a/internal/provider/type_source_amazon_seller_partner.go
+++ b/internal/provider/type_source_amazon_seller_partner.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAmazonSellerPartner struct {
AdvancedStreamOptions types.String `tfsdk:"advanced_stream_options"`
- AuthType types.String `tfsdk:"auth_type"`
AwsAccessKey types.String `tfsdk:"aws_access_key"`
AwsEnvironment types.String `tfsdk:"aws_environment"`
AwsSecretKey types.String `tfsdk:"aws_secret_key"`
@@ -20,5 +19,4 @@ type SourceAmazonSellerPartner struct {
ReplicationStartDate types.String `tfsdk:"replication_start_date"`
ReportOptions types.String `tfsdk:"report_options"`
RoleArn types.String `tfsdk:"role_arn"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_amazon_sqs.go b/internal/provider/type_source_amazon_sqs.go
old mode 100755
new mode 100644
index 64306fcf4..815c047f1
--- a/internal/provider/type_source_amazon_sqs.go
+++ b/internal/provider/type_source_amazon_sqs.go
@@ -13,6 +13,5 @@ type SourceAmazonSqs struct {
QueueURL types.String `tfsdk:"queue_url"`
Region types.String `tfsdk:"region"`
SecretKey types.String `tfsdk:"secret_key"`
- SourceType types.String `tfsdk:"source_type"`
VisibilityTimeout types.Int64 `tfsdk:"visibility_timeout"`
}
diff --git a/internal/provider/type_source_amplitude.go b/internal/provider/type_source_amplitude.go
old mode 100755
new mode 100644
index eae03866f..8512184c0
--- a/internal/provider/type_source_amplitude.go
+++ b/internal/provider/type_source_amplitude.go
@@ -9,6 +9,5 @@ type SourceAmplitude struct {
DataRegion types.String `tfsdk:"data_region"`
RequestTimeRange types.Int64 `tfsdk:"request_time_range"`
SecretKey types.String `tfsdk:"secret_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_apify_dataset.go b/internal/provider/type_source_apify_dataset.go
old mode 100755
new mode 100644
index 4f958a86e..d8143da56
--- a/internal/provider/type_source_apify_dataset.go
+++ b/internal/provider/type_source_apify_dataset.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceApifyDataset struct {
- Clean types.Bool `tfsdk:"clean"`
- DatasetID types.String `tfsdk:"dataset_id"`
- SourceType types.String `tfsdk:"source_type"`
- Token types.String `tfsdk:"token"`
+ Clean types.Bool `tfsdk:"clean"`
+ DatasetID types.String `tfsdk:"dataset_id"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_appfollow.go b/internal/provider/type_source_appfollow.go
old mode 100755
new mode 100644
index aa7ec6ac6..5ac084747
--- a/internal/provider/type_source_appfollow.go
+++ b/internal/provider/type_source_appfollow.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAppfollow struct {
- APISecret types.String `tfsdk:"api_secret"`
- SourceType types.String `tfsdk:"source_type"`
+ APISecret types.String `tfsdk:"api_secret"`
}
diff --git a/internal/provider/type_source_asana.go b/internal/provider/type_source_asana.go
old mode 100755
new mode 100644
index 164e9ce54..12f8139de
--- a/internal/provider/type_source_asana.go
+++ b/internal/provider/type_source_asana.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceAsana struct {
Credentials *SourceAsanaAuthenticationMechanism `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_asana_authentication_mechanism.go b/internal/provider/type_source_asana_authentication_mechanism.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go b/internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go
old mode 100755
new mode 100644
index d42bab9ed..f9bc12d9e
--- a/internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go
+++ b/internal/provider/type_source_asana_authentication_mechanism_authenticate_via_asana_oauth.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth struct {
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- OptionTitle types.String `tfsdk:"option_title"`
RefreshToken types.String `tfsdk:"refresh_token"`
}
diff --git a/internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go b/internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go
old mode 100755
new mode 100644
index 6558041fe..6db6f7e53
--- a/internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go
+++ b/internal/provider/type_source_asana_authentication_mechanism_authenticate_with_personal_access_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
- OptionTitle types.String `tfsdk:"option_title"`
PersonalAccessToken types.String `tfsdk:"personal_access_token"`
}
diff --git a/internal/provider/type_source_auth0.go b/internal/provider/type_source_auth0.go
old mode 100755
new mode 100644
index 70589a65e..39d6970fa
--- a/internal/provider/type_source_auth0.go
+++ b/internal/provider/type_source_auth0.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAuth0 struct {
BaseURL types.String `tfsdk:"base_url"`
Credentials SourceAuth0AuthenticationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_auth0_authentication_method.go b/internal/provider/type_source_auth0_authentication_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go b/internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go
old mode 100755
new mode 100644
index 9c94a663f..177478247
--- a/internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go
+++ b/internal/provider/type_source_auth0_authentication_method_o_auth2_access_token.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAuth0AuthenticationMethodOAuth2AccessToken struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
}
diff --git a/internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go b/internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go
old mode 100755
new mode 100644
index 20189d393..bd6497372
--- a/internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go
+++ b/internal/provider/type_source_auth0_authentication_method_o_auth2_confidential_application.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication struct {
Audience types.String `tfsdk:"audience"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
}
diff --git a/internal/provider/type_source_aws_cloudtrail.go b/internal/provider/type_source_aws_cloudtrail.go
old mode 100755
new mode 100644
index d3a40daa8..3b7473aa0
--- a/internal/provider/type_source_aws_cloudtrail.go
+++ b/internal/provider/type_source_aws_cloudtrail.go
@@ -8,6 +8,5 @@ type SourceAwsCloudtrail struct {
AwsKeyID types.String `tfsdk:"aws_key_id"`
AwsRegionName types.String `tfsdk:"aws_region_name"`
AwsSecretKey types.String `tfsdk:"aws_secret_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_azure_blob_storage.go b/internal/provider/type_source_azure_blob_storage.go
old mode 100755
new mode 100644
index 737e913a3..df9504a73
--- a/internal/provider/type_source_azure_blob_storage.go
+++ b/internal/provider/type_source_azure_blob_storage.go
@@ -12,5 +12,4 @@ type SourceAzureBlobStorage struct {
AzureBlobStorageEndpoint types.String `tfsdk:"azure_blob_storage_endpoint"`
AzureBlobStorageSchemaInferenceLimit types.Int64 `tfsdk:"azure_blob_storage_schema_inference_limit"`
Format SourceAzureBlobStorageInputFormat `tfsdk:"format"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_azure_blob_storage_input_format.go b/internal/provider/type_source_azure_blob_storage_input_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go b/internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go
old mode 100755
new mode 100644
index 89f2bc7b3..90072385e
--- a/internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go
+++ b/internal/provider/type_source_azure_blob_storage_input_format_json_lines_newline_delimited_json.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType types.String `tfsdk:"format_type"`
}
diff --git a/internal/provider/type_source_azure_table.go b/internal/provider/type_source_azure_table.go
old mode 100755
new mode 100644
index aaa80e07f..07d8a2d10
--- a/internal/provider/type_source_azure_table.go
+++ b/internal/provider/type_source_azure_table.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceAzureTable struct {
- SourceType types.String `tfsdk:"source_type"`
StorageAccessKey types.String `tfsdk:"storage_access_key"`
StorageAccountName types.String `tfsdk:"storage_account_name"`
StorageEndpointSuffix types.String `tfsdk:"storage_endpoint_suffix"`
diff --git a/internal/provider/type_source_bamboo_hr.go b/internal/provider/type_source_bamboo_hr.go
old mode 100755
new mode 100644
index 857e3c89e..7bdd7809e
--- a/internal/provider/type_source_bamboo_hr.go
+++ b/internal/provider/type_source_bamboo_hr.go
@@ -8,6 +8,5 @@ type SourceBambooHr struct {
APIKey types.String `tfsdk:"api_key"`
CustomReportsFields types.String `tfsdk:"custom_reports_fields"`
CustomReportsIncludeDefaultFields types.Bool `tfsdk:"custom_reports_include_default_fields"`
- SourceType types.String `tfsdk:"source_type"`
Subdomain types.String `tfsdk:"subdomain"`
}
diff --git a/internal/provider/type_source_bigcommerce.go b/internal/provider/type_source_bigcommerce.go
old mode 100755
new mode 100644
index 28092945e..626aed997
--- a/internal/provider/type_source_bigcommerce.go
+++ b/internal/provider/type_source_bigcommerce.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceBigcommerce struct {
AccessToken types.String `tfsdk:"access_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StoreHash types.String `tfsdk:"store_hash"`
}
diff --git a/internal/provider/type_source_bigquery.go b/internal/provider/type_source_bigquery.go
old mode 100755
new mode 100644
index 51ef1a39b..0297a3afb
--- a/internal/provider/type_source_bigquery.go
+++ b/internal/provider/type_source_bigquery.go
@@ -8,5 +8,4 @@ type SourceBigquery struct {
CredentialsJSON types.String `tfsdk:"credentials_json"`
DatasetID types.String `tfsdk:"dataset_id"`
ProjectID types.String `tfsdk:"project_id"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_bing_ads.go b/internal/provider/type_source_bing_ads.go
old mode 100755
new mode 100644
index d924f0aa9..07a27d6d2
--- a/internal/provider/type_source_bing_ads.go
+++ b/internal/provider/type_source_bing_ads.go
@@ -5,13 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceBingAds struct {
- AuthMethod types.String `tfsdk:"auth_method"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
DeveloperToken types.String `tfsdk:"developer_token"`
LookbackWindow types.Int64 `tfsdk:"lookback_window"`
RefreshToken types.String `tfsdk:"refresh_token"`
ReportsStartDate types.String `tfsdk:"reports_start_date"`
- SourceType types.String `tfsdk:"source_type"`
TenantID types.String `tfsdk:"tenant_id"`
}
diff --git a/internal/provider/type_source_braintree.go b/internal/provider/type_source_braintree.go
old mode 100755
new mode 100644
index fff853c0a..961b15d68
--- a/internal/provider/type_source_braintree.go
+++ b/internal/provider/type_source_braintree.go
@@ -9,6 +9,5 @@ type SourceBraintree struct {
MerchantID types.String `tfsdk:"merchant_id"`
PrivateKey types.String `tfsdk:"private_key"`
PublicKey types.String `tfsdk:"public_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_braze.go b/internal/provider/type_source_braze.go
old mode 100755
new mode 100644
index f0118b52e..d4b295ffe
--- a/internal/provider/type_source_braze.go
+++ b/internal/provider/type_source_braze.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceBraze struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- URL types.String `tfsdk:"url"`
+ APIKey types.String `tfsdk:"api_key"`
+ StartDate types.String `tfsdk:"start_date"`
+ URL types.String `tfsdk:"url"`
}
diff --git a/internal/provider/type_source_chargebee.go b/internal/provider/type_source_chargebee.go
old mode 100755
new mode 100644
index b6d5a1820..1541e80be
--- a/internal/provider/type_source_chargebee.go
+++ b/internal/provider/type_source_chargebee.go
@@ -8,6 +8,5 @@ type SourceChargebee struct {
ProductCatalog types.String `tfsdk:"product_catalog"`
Site types.String `tfsdk:"site"`
SiteAPIKey types.String `tfsdk:"site_api_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_chartmogul.go b/internal/provider/type_source_chartmogul.go
old mode 100755
new mode 100644
index 63d24013c..1e46e2c04
--- a/internal/provider/type_source_chartmogul.go
+++ b/internal/provider/type_source_chartmogul.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceChartmogul struct {
- APIKey types.String `tfsdk:"api_key"`
- Interval types.String `tfsdk:"interval"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ Interval types.String `tfsdk:"interval"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_clickhouse.go b/internal/provider/type_source_clickhouse.go
old mode 100755
new mode 100644
index c5bc88969..e94edb53b
--- a/internal/provider/type_source_clickhouse.go
+++ b/internal/provider/type_source_clickhouse.go
@@ -9,7 +9,6 @@ type SourceClickhouse struct {
Host types.String `tfsdk:"host"`
Password types.String `tfsdk:"password"`
Port types.Int64 `tfsdk:"port"`
- SourceType types.String `tfsdk:"source_type"`
TunnelMethod *SourceClickhouseSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_clickhouse_ssh_tunnel_method.go b/internal/provider/type_source_clickhouse_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_clickup_api.go b/internal/provider/type_source_clickup_api.go
old mode 100755
new mode 100644
index ef9600a19..99008464b
--- a/internal/provider/type_source_clickup_api.go
+++ b/internal/provider/type_source_clickup_api.go
@@ -9,7 +9,6 @@ type SourceClickupAPI struct {
FolderID types.String `tfsdk:"folder_id"`
IncludeClosedTasks types.Bool `tfsdk:"include_closed_tasks"`
ListID types.String `tfsdk:"list_id"`
- SourceType types.String `tfsdk:"source_type"`
SpaceID types.String `tfsdk:"space_id"`
TeamID types.String `tfsdk:"team_id"`
}
diff --git a/internal/provider/type_source_clockify.go b/internal/provider/type_source_clockify.go
old mode 100755
new mode 100644
index e0caa273e..773f6ab12
--- a/internal/provider/type_source_clockify.go
+++ b/internal/provider/type_source_clockify.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceClockify struct {
APIKey types.String `tfsdk:"api_key"`
APIURL types.String `tfsdk:"api_url"`
- SourceType types.String `tfsdk:"source_type"`
WorkspaceID types.String `tfsdk:"workspace_id"`
}
diff --git a/internal/provider/type_source_close_com.go b/internal/provider/type_source_close_com.go
old mode 100755
new mode 100644
index 551001eda..5e31d37cf
--- a/internal/provider/type_source_close_com.go
+++ b/internal/provider/type_source_close_com.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceCloseCom struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_coda.go b/internal/provider/type_source_coda.go
old mode 100755
new mode 100644
index 3cd3ef7f0..f30bc4670
--- a/internal/provider/type_source_coda.go
+++ b/internal/provider/type_source_coda.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceCoda struct {
- AuthToken types.String `tfsdk:"auth_token"`
- SourceType types.String `tfsdk:"source_type"`
+ AuthToken types.String `tfsdk:"auth_token"`
}
diff --git a/internal/provider/type_source_coin_api.go b/internal/provider/type_source_coin_api.go
old mode 100755
new mode 100644
index b9b6ea518..8a19ee571
--- a/internal/provider/type_source_coin_api.go
+++ b/internal/provider/type_source_coin_api.go
@@ -10,7 +10,6 @@ type SourceCoinAPI struct {
Environment types.String `tfsdk:"environment"`
Limit types.Int64 `tfsdk:"limit"`
Period types.String `tfsdk:"period"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
SymbolID types.String `tfsdk:"symbol_id"`
}
diff --git a/internal/provider/type_source_coinmarketcap.go b/internal/provider/type_source_coinmarketcap.go
old mode 100755
new mode 100644
index b354d07ce..a8154dfd4
--- a/internal/provider/type_source_coinmarketcap.go
+++ b/internal/provider/type_source_coinmarketcap.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceCoinmarketcap struct {
- APIKey types.String `tfsdk:"api_key"`
- DataType types.String `tfsdk:"data_type"`
- SourceType types.String `tfsdk:"source_type"`
- Symbols []types.String `tfsdk:"symbols"`
+ APIKey types.String `tfsdk:"api_key"`
+ DataType types.String `tfsdk:"data_type"`
+ Symbols []types.String `tfsdk:"symbols"`
}
diff --git a/internal/provider/type_source_configcat.go b/internal/provider/type_source_configcat.go
old mode 100755
new mode 100644
index 5c498c754..6e1415982
--- a/internal/provider/type_source_configcat.go
+++ b/internal/provider/type_source_configcat.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceConfigcat struct {
- Password types.String `tfsdk:"password"`
- SourceType types.String `tfsdk:"source_type"`
- Username types.String `tfsdk:"username"`
+ Password types.String `tfsdk:"password"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_confluence.go b/internal/provider/type_source_confluence.go
old mode 100755
new mode 100644
index 39a53e8d8..9d7927cec
--- a/internal/provider/type_source_confluence.go
+++ b/internal/provider/type_source_confluence.go
@@ -8,5 +8,4 @@ type SourceConfluence struct {
APIToken types.String `tfsdk:"api_token"`
DomainName types.String `tfsdk:"domain_name"`
Email types.String `tfsdk:"email"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_convex.go b/internal/provider/type_source_convex.go
deleted file mode 100755
index 19b0c9dbc..000000000
--- a/internal/provider/type_source_convex.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceConvex struct {
- AccessKey types.String `tfsdk:"access_key"`
- DeploymentURL types.String `tfsdk:"deployment_url"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_datascope.go b/internal/provider/type_source_datascope.go
old mode 100755
new mode 100644
index 0e8bb68b8..1e6874ea8
--- a/internal/provider/type_source_datascope.go
+++ b/internal/provider/type_source_datascope.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceDatascope struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_delighted.go b/internal/provider/type_source_delighted.go
old mode 100755
new mode 100644
index d7156cdb1..1b49cf4f1
--- a/internal/provider/type_source_delighted.go
+++ b/internal/provider/type_source_delighted.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceDelighted struct {
- APIKey types.String `tfsdk:"api_key"`
- Since types.String `tfsdk:"since"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ Since types.String `tfsdk:"since"`
}
diff --git a/internal/provider/type_source_dixa.go b/internal/provider/type_source_dixa.go
old mode 100755
new mode 100644
index e7c42e616..f6b8637bb
--- a/internal/provider/type_source_dixa.go
+++ b/internal/provider/type_source_dixa.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceDixa struct {
- APIToken types.String `tfsdk:"api_token"`
- BatchSize types.Int64 `tfsdk:"batch_size"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIToken types.String `tfsdk:"api_token"`
+ BatchSize types.Int64 `tfsdk:"batch_size"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_dockerhub.go b/internal/provider/type_source_dockerhub.go
old mode 100755
new mode 100644
index 5d624c53c..daced560d
--- a/internal/provider/type_source_dockerhub.go
+++ b/internal/provider/type_source_dockerhub.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceDockerhub struct {
DockerUsername types.String `tfsdk:"docker_username"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_dremio.go b/internal/provider/type_source_dremio.go
old mode 100755
new mode 100644
index 8146b2348..1b07a23b5
--- a/internal/provider/type_source_dremio.go
+++ b/internal/provider/type_source_dremio.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceDremio struct {
- APIKey types.String `tfsdk:"api_key"`
- BaseURL types.String `tfsdk:"base_url"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ BaseURL types.String `tfsdk:"base_url"`
}
diff --git a/internal/provider/type_source_dynamodb.go b/internal/provider/type_source_dynamodb.go
old mode 100755
new mode 100644
index bffde3517..1eedf736d
--- a/internal/provider/type_source_dynamodb.go
+++ b/internal/provider/type_source_dynamodb.go
@@ -10,5 +10,4 @@ type SourceDynamodb struct {
Region types.String `tfsdk:"region"`
ReservedAttributeNames types.String `tfsdk:"reserved_attribute_names"`
SecretAccessKey types.String `tfsdk:"secret_access_key"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_dynamodb1.go b/internal/provider/type_source_dynamodb1.go
old mode 100755
new mode 100644
index ccadf1d43..3e0acb0bd
--- a/internal/provider/type_source_dynamodb1.go
+++ b/internal/provider/type_source_dynamodb1.go
@@ -10,5 +10,4 @@ type SourceDynamodb1 struct {
Region types.String `tfsdk:"region"`
ReservedAttributeNames types.String `tfsdk:"reserved_attribute_names"`
SecretAccessKey types.String `tfsdk:"secret_access_key"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_e2e_test_cloud.go b/internal/provider/type_source_e2e_test_cloud.go
old mode 100755
new mode 100644
index e2fe95d0f..1abe5c268
--- a/internal/provider/type_source_e2e_test_cloud.go
+++ b/internal/provider/type_source_e2e_test_cloud.go
@@ -9,6 +9,4 @@ type SourceE2eTestCloud struct {
MessageIntervalMs types.Int64 `tfsdk:"message_interval_ms"`
MockCatalog SourceE2eTestCloudMockCatalog `tfsdk:"mock_catalog"`
Seed types.Int64 `tfsdk:"seed"`
- SourceType types.String `tfsdk:"source_type"`
- Type types.String `tfsdk:"type"`
}
diff --git a/internal/provider/type_source_e2e_test_cloud_mock_catalog.go b/internal/provider/type_source_e2e_test_cloud_mock_catalog.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go b/internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go
old mode 100755
new mode 100644
index 3945d0934..5408e0032
--- a/internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go
+++ b/internal/provider/type_source_e2e_test_cloud_mock_catalog_multi_schema.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceE2eTestCloudMockCatalogMultiSchema struct {
StreamSchemas types.String `tfsdk:"stream_schemas"`
- Type types.String `tfsdk:"type"`
}
diff --git a/internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go b/internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go
old mode 100755
new mode 100644
index 5c92d78c9..50125f994
--- a/internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go
+++ b/internal/provider/type_source_e2e_test_cloud_mock_catalog_single_schema.go
@@ -8,5 +8,4 @@ type SourceE2eTestCloudMockCatalogSingleSchema struct {
StreamDuplication types.Int64 `tfsdk:"stream_duplication"`
StreamName types.String `tfsdk:"stream_name"`
StreamSchema types.String `tfsdk:"stream_schema"`
- Type types.String `tfsdk:"type"`
}
diff --git a/internal/provider/type_source_emailoctopus.go b/internal/provider/type_source_emailoctopus.go
old mode 100755
new mode 100644
index 66ccec37b..1cf34b86f
--- a/internal/provider/type_source_emailoctopus.go
+++ b/internal/provider/type_source_emailoctopus.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceEmailoctopus struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
}
diff --git a/internal/provider/type_source_exchange_rates.go b/internal/provider/type_source_exchange_rates.go
old mode 100755
new mode 100644
index 5db1e13f5..914231ce2
--- a/internal/provider/type_source_exchange_rates.go
+++ b/internal/provider/type_source_exchange_rates.go
@@ -8,6 +8,5 @@ type SourceExchangeRates struct {
AccessKey types.String `tfsdk:"access_key"`
Base types.String `tfsdk:"base"`
IgnoreWeekends types.Bool `tfsdk:"ignore_weekends"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_facebook_marketing.go b/internal/provider/type_source_facebook_marketing.go
old mode 100755
new mode 100644
index b44f1c78f..de6b0e2e1
--- a/internal/provider/type_source_facebook_marketing.go
+++ b/internal/provider/type_source_facebook_marketing.go
@@ -17,6 +17,5 @@ type SourceFacebookMarketing struct {
InsightsLookbackWindow types.Int64 `tfsdk:"insights_lookback_window"`
MaxBatchSize types.Int64 `tfsdk:"max_batch_size"`
PageSize types.Int64 `tfsdk:"page_size"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_facebook_marketing_insight_config.go b/internal/provider/type_source_facebook_marketing_insight_config.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_facebook_pages.go b/internal/provider/type_source_facebook_pages.go
old mode 100755
new mode 100644
index bf2a87ba1..f47ed2ff0
--- a/internal/provider/type_source_facebook_pages.go
+++ b/internal/provider/type_source_facebook_pages.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFacebookPages struct {
AccessToken types.String `tfsdk:"access_token"`
PageID types.String `tfsdk:"page_id"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_faker.go b/internal/provider/type_source_faker.go
old mode 100755
new mode 100644
index babe5d895..c5c8712b5
--- a/internal/provider/type_source_faker.go
+++ b/internal/provider/type_source_faker.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFaker struct {
- AlwaysUpdated types.Bool `tfsdk:"always_updated"`
- Count types.Int64 `tfsdk:"count"`
- Parallelism types.Int64 `tfsdk:"parallelism"`
- RecordsPerSlice types.Int64 `tfsdk:"records_per_slice"`
- Seed types.Int64 `tfsdk:"seed"`
- SourceType types.String `tfsdk:"source_type"`
+ AlwaysUpdated types.Bool `tfsdk:"always_updated"`
+ Count types.Int64 `tfsdk:"count"`
+ Parallelism types.Int64 `tfsdk:"parallelism"`
+ RecordsPerSlice types.Int64 `tfsdk:"records_per_slice"`
+ Seed types.Int64 `tfsdk:"seed"`
}
diff --git a/internal/provider/type_source_fauna.go b/internal/provider/type_source_fauna.go
old mode 100755
new mode 100644
index 96c4053c4..a69ecf929
--- a/internal/provider/type_source_fauna.go
+++ b/internal/provider/type_source_fauna.go
@@ -10,5 +10,4 @@ type SourceFauna struct {
Port types.Int64 `tfsdk:"port"`
Scheme types.String `tfsdk:"scheme"`
Secret types.String `tfsdk:"secret"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_fauna_collection.go b/internal/provider/type_source_fauna_collection.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_fauna_collection_deletion_mode.go b/internal/provider/type_source_fauna_collection_deletion_mode.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_fauna_collection_deletion_mode_disabled.go b/internal/provider/type_source_fauna_collection_deletion_mode_disabled.go
old mode 100755
new mode 100644
index 1618d92a2..8a48c3a96
--- a/internal/provider/type_source_fauna_collection_deletion_mode_disabled.go
+++ b/internal/provider/type_source_fauna_collection_deletion_mode_disabled.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceFaunaCollectionDeletionModeDisabled struct {
- DeletionMode types.String `tfsdk:"deletion_mode"`
}
diff --git a/internal/provider/type_source_fauna_collection_deletion_mode_enabled.go b/internal/provider/type_source_fauna_collection_deletion_mode_enabled.go
old mode 100755
new mode 100644
index ca5e2175a..a0dbdc70b
--- a/internal/provider/type_source_fauna_collection_deletion_mode_enabled.go
+++ b/internal/provider/type_source_fauna_collection_deletion_mode_enabled.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFaunaCollectionDeletionModeEnabled struct {
- Column types.String `tfsdk:"column"`
- DeletionMode types.String `tfsdk:"deletion_mode"`
+ Column types.String `tfsdk:"column"`
}
diff --git a/internal/provider/type_source_file_secure.go b/internal/provider/type_source_file_secure.go
old mode 100755
new mode 100644
index 3f66a4ce2..2390a57d6
--- a/internal/provider/type_source_file_secure.go
+++ b/internal/provider/type_source_file_secure.go
@@ -9,6 +9,5 @@ type SourceFileSecure struct {
Format types.String `tfsdk:"format"`
Provider SourceFileSecureStorageProvider `tfsdk:"provider"`
ReaderOptions types.String `tfsdk:"reader_options"`
- SourceType types.String `tfsdk:"source_type"`
URL types.String `tfsdk:"url"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider.go b/internal/provider/type_source_file_secure_storage_provider.go
old mode 100755
new mode 100644
index ad489b5b4..ea63fb00f
--- a/internal/provider/type_source_file_secure_storage_provider.go
+++ b/internal/provider/type_source_file_secure_storage_provider.go
@@ -3,18 +3,18 @@
package provider
type SourceFileSecureStorageProvider struct {
- SourceFileSecureStorageProviderAzBlobAzureBlobStorage *SourceFileSecureStorageProviderAzBlobAzureBlobStorage `tfsdk:"source_file_secure_storage_provider_az_blob_azure_blob_storage"`
- SourceFileSecureStorageProviderGCSGoogleCloudStorage *SourceFileSecureStorageProviderGCSGoogleCloudStorage `tfsdk:"source_file_secure_storage_provider_gcs_google_cloud_storage"`
- SourceFileSecureStorageProviderHTTPSPublicWeb *SourceFileSecureStorageProviderHTTPSPublicWeb `tfsdk:"source_file_secure_storage_provider_https_public_web"`
- SourceFileSecureStorageProviderS3AmazonWebServices *SourceFileSecureStorageProviderS3AmazonWebServices `tfsdk:"source_file_secure_storage_provider_s3_amazon_web_services"`
- SourceFileSecureStorageProviderSCPSecureCopyProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_storage_provider_scp_secure_copy_protocol"`
- SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol `tfsdk:"source_file_secure_storage_provider_sftp_secure_file_transfer_protocol"`
- SourceFileSecureStorageProviderSSHSecureShell *SourceFileSecureStorageProviderSSHSecureShell `tfsdk:"source_file_secure_storage_provider_ssh_secure_shell"`
- SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage *SourceFileSecureStorageProviderAzBlobAzureBlobStorage `tfsdk:"source_file_secure_update_storage_provider_az_blob_azure_blob_storage"`
- SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage *SourceFileSecureStorageProviderGCSGoogleCloudStorage `tfsdk:"source_file_secure_update_storage_provider_gcs_google_cloud_storage"`
- SourceFileSecureUpdateStorageProviderHTTPSPublicWeb *SourceFileSecureStorageProviderHTTPSPublicWeb `tfsdk:"source_file_secure_update_storage_provider_https_public_web"`
- SourceFileSecureUpdateStorageProviderS3AmazonWebServices *SourceFileSecureStorageProviderS3AmazonWebServices `tfsdk:"source_file_secure_update_storage_provider_s3_amazon_web_services"`
- SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_update_storage_provider_scp_secure_copy_protocol"`
- SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol `tfsdk:"source_file_secure_update_storage_provider_sftp_secure_file_transfer_protocol"`
- SourceFileSecureUpdateStorageProviderSSHSecureShell *SourceFileSecureStorageProviderSSHSecureShell `tfsdk:"source_file_secure_update_storage_provider_ssh_secure_shell"`
+ SourceFileSecureStorageProviderAzBlobAzureBlobStorage *SourceFileSecureStorageProviderAzBlobAzureBlobStorage `tfsdk:"source_file_secure_storage_provider_az_blob_azure_blob_storage"`
+ SourceFileSecureStorageProviderGCSGoogleCloudStorage *SourceFileSecureStorageProviderGCSGoogleCloudStorage `tfsdk:"source_file_secure_storage_provider_gcs_google_cloud_storage"`
+ SourceFileSecureStorageProviderHTTPSPublicWeb *SourceFileSecureStorageProviderHTTPSPublicWeb `tfsdk:"source_file_secure_storage_provider_https_public_web"`
+ SourceFileSecureStorageProviderS3AmazonWebServices *SourceFileSecureStorageProviderS3AmazonWebServices `tfsdk:"source_file_secure_storage_provider_s3_amazon_web_services"`
+ SourceFileSecureStorageProviderSCPSecureCopyProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_storage_provider_scp_secure_copy_protocol"`
+ SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_storage_provider_sftp_secure_file_transfer_protocol"`
+ SourceFileSecureStorageProviderSSHSecureShell *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_storage_provider_ssh_secure_shell"`
+ SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage *SourceFileSecureStorageProviderAzBlobAzureBlobStorage `tfsdk:"source_file_secure_update_storage_provider_az_blob_azure_blob_storage"`
+ SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage *SourceFileSecureStorageProviderGCSGoogleCloudStorage `tfsdk:"source_file_secure_update_storage_provider_gcs_google_cloud_storage"`
+ SourceFileSecureUpdateStorageProviderHTTPSPublicWeb *SourceFileSecureStorageProviderHTTPSPublicWeb `tfsdk:"source_file_secure_update_storage_provider_https_public_web"`
+ SourceFileSecureUpdateStorageProviderS3AmazonWebServices *SourceFileSecureStorageProviderS3AmazonWebServices `tfsdk:"source_file_secure_update_storage_provider_s3_amazon_web_services"`
+ SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_update_storage_provider_scp_secure_copy_protocol"`
+ SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_update_storage_provider_sftp_secure_file_transfer_protocol"`
+ SourceFileSecureUpdateStorageProviderSSHSecureShell *SourceFileSecureStorageProviderSCPSecureCopyProtocol `tfsdk:"source_file_secure_update_storage_provider_ssh_secure_shell"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go b/internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go
old mode 100755
new mode 100644
index 63ab2b277..8b8370fd6
--- a/internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go
+++ b/internal/provider/type_source_file_secure_storage_provider_az_blob_azure_blob_storage.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFileSecureStorageProviderAzBlobAzureBlobStorage struct {
SasToken types.String `tfsdk:"sas_token"`
SharedKey types.String `tfsdk:"shared_key"`
- Storage types.String `tfsdk:"storage"`
StorageAccount types.String `tfsdk:"storage_account"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go b/internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go
old mode 100755
new mode 100644
index caab03e25..5dacca717
--- a/internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go
+++ b/internal/provider/type_source_file_secure_storage_provider_gcs_google_cloud_storage.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFileSecureStorageProviderGCSGoogleCloudStorage struct {
ServiceAccountJSON types.String `tfsdk:"service_account_json"`
- Storage types.String `tfsdk:"storage"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_https_public_web.go b/internal/provider/type_source_file_secure_storage_provider_https_public_web.go
old mode 100755
new mode 100644
index 55339366d..624deabc7
--- a/internal/provider/type_source_file_secure_storage_provider_https_public_web.go
+++ b/internal/provider/type_source_file_secure_storage_provider_https_public_web.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFileSecureStorageProviderHTTPSPublicWeb struct {
- Storage types.String `tfsdk:"storage"`
- UserAgent types.Bool `tfsdk:"user_agent"`
+ UserAgent types.Bool `tfsdk:"user_agent"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go b/internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go
old mode 100755
new mode 100644
index ea3712295..5aaa9f029
--- a/internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go
+++ b/internal/provider/type_source_file_secure_storage_provider_s3_amazon_web_services.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFileSecureStorageProviderS3AmazonWebServices struct {
AwsAccessKeyID types.String `tfsdk:"aws_access_key_id"`
AwsSecretAccessKey types.String `tfsdk:"aws_secret_access_key"`
- Storage types.String `tfsdk:"storage"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go b/internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go
old mode 100755
new mode 100644
index 54b00cc6b..d05dfa8a9
--- a/internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go
+++ b/internal/provider/type_source_file_secure_storage_provider_scp_secure_copy_protocol.go
@@ -8,6 +8,5 @@ type SourceFileSecureStorageProviderSCPSecureCopyProtocol struct {
Host types.String `tfsdk:"host"`
Password types.String `tfsdk:"password"`
Port types.String `tfsdk:"port"`
- Storage types.String `tfsdk:"storage"`
User types.String `tfsdk:"user"`
}
diff --git a/internal/provider/type_source_file_secure_storage_provider_sftp_secure_file_transfer_protocol.go b/internal/provider/type_source_file_secure_storage_provider_sftp_secure_file_transfer_protocol.go
deleted file mode 100755
index 3f2943309..000000000
--- a/internal/provider/type_source_file_secure_storage_provider_sftp_secure_file_transfer_protocol.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol struct {
- Host types.String `tfsdk:"host"`
- Password types.String `tfsdk:"password"`
- Port types.String `tfsdk:"port"`
- Storage types.String `tfsdk:"storage"`
- User types.String `tfsdk:"user"`
-}
diff --git a/internal/provider/type_source_file_secure_storage_provider_ssh_secure_shell.go b/internal/provider/type_source_file_secure_storage_provider_ssh_secure_shell.go
deleted file mode 100755
index a20ab7c4c..000000000
--- a/internal/provider/type_source_file_secure_storage_provider_ssh_secure_shell.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceFileSecureStorageProviderSSHSecureShell struct {
- Host types.String `tfsdk:"host"`
- Password types.String `tfsdk:"password"`
- Port types.String `tfsdk:"port"`
- Storage types.String `tfsdk:"storage"`
- User types.String `tfsdk:"user"`
-}
diff --git a/internal/provider/type_source_firebolt.go b/internal/provider/type_source_firebolt.go
old mode 100755
new mode 100644
index 65f41b8b3..6f7a68890
--- a/internal/provider/type_source_firebolt.go
+++ b/internal/provider/type_source_firebolt.go
@@ -5,11 +5,10 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFirebolt struct {
- Account types.String `tfsdk:"account"`
- Database types.String `tfsdk:"database"`
- Engine types.String `tfsdk:"engine"`
- Host types.String `tfsdk:"host"`
- Password types.String `tfsdk:"password"`
- SourceType types.String `tfsdk:"source_type"`
- Username types.String `tfsdk:"username"`
+ Account types.String `tfsdk:"account"`
+ Database types.String `tfsdk:"database"`
+ Engine types.String `tfsdk:"engine"`
+ Host types.String `tfsdk:"host"`
+ Password types.String `tfsdk:"password"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_freshcaller.go b/internal/provider/type_source_freshcaller.go
old mode 100755
new mode 100644
index bb6330433..eabcdde75
--- a/internal/provider/type_source_freshcaller.go
+++ b/internal/provider/type_source_freshcaller.go
@@ -8,7 +8,6 @@ type SourceFreshcaller struct {
APIKey types.String `tfsdk:"api_key"`
Domain types.String `tfsdk:"domain"`
RequestsPerMinute types.Int64 `tfsdk:"requests_per_minute"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
SyncLagMinutes types.Int64 `tfsdk:"sync_lag_minutes"`
}
diff --git a/internal/provider/type_source_freshdesk.go b/internal/provider/type_source_freshdesk.go
old mode 100755
new mode 100644
index 6878206f2..9970ebcf1
--- a/internal/provider/type_source_freshdesk.go
+++ b/internal/provider/type_source_freshdesk.go
@@ -8,6 +8,5 @@ type SourceFreshdesk struct {
APIKey types.String `tfsdk:"api_key"`
Domain types.String `tfsdk:"domain"`
RequestsPerMinute types.Int64 `tfsdk:"requests_per_minute"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_freshsales.go b/internal/provider/type_source_freshsales.go
old mode 100755
new mode 100644
index e8d01c69a..7f49a8d55
--- a/internal/provider/type_source_freshsales.go
+++ b/internal/provider/type_source_freshsales.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceFreshsales struct {
APIKey types.String `tfsdk:"api_key"`
DomainName types.String `tfsdk:"domain_name"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_gainsight_px.go b/internal/provider/type_source_gainsight_px.go
deleted file mode 100755
index 7644167db..000000000
--- a/internal/provider/type_source_gainsight_px.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGainsightPx struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_gcs.go b/internal/provider/type_source_gcs.go
old mode 100755
new mode 100644
index 55bf6bfc7..2af5ce4e7
--- a/internal/provider/type_source_gcs.go
+++ b/internal/provider/type_source_gcs.go
@@ -8,5 +8,4 @@ type SourceGcs struct {
GcsBucket types.String `tfsdk:"gcs_bucket"`
GcsPath types.String `tfsdk:"gcs_path"`
ServiceAccount types.String `tfsdk:"service_account"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_getlago.go b/internal/provider/type_source_getlago.go
deleted file mode 100755
index 0211813a4..000000000
--- a/internal/provider/type_source_getlago.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGetlago struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_github.go b/internal/provider/type_source_github.go
old mode 100755
new mode 100644
index cbc776589..7683cca22
--- a/internal/provider/type_source_github.go
+++ b/internal/provider/type_source_github.go
@@ -9,6 +9,5 @@ type SourceGithub struct {
Credentials *SourceGithubAuthentication `tfsdk:"credentials"`
Repository types.String `tfsdk:"repository"`
RequestsPerHour types.Int64 `tfsdk:"requests_per_hour"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_github_authentication.go b/internal/provider/type_source_github_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_github_authentication_o_auth.go b/internal/provider/type_source_github_authentication_o_auth.go
old mode 100755
new mode 100644
index 37c97fc75..11ffe6264
--- a/internal/provider/type_source_github_authentication_o_auth.go
+++ b/internal/provider/type_source_github_authentication_o_auth.go
@@ -8,5 +8,4 @@ type SourceGithubAuthenticationOAuth struct {
AccessToken types.String `tfsdk:"access_token"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- OptionTitle types.String `tfsdk:"option_title"`
}
diff --git a/internal/provider/type_source_github_authentication_personal_access_token.go b/internal/provider/type_source_github_authentication_personal_access_token.go
old mode 100755
new mode 100644
index 747282179..45e385dc9
--- a/internal/provider/type_source_github_authentication_personal_access_token.go
+++ b/internal/provider/type_source_github_authentication_personal_access_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGithubAuthenticationPersonalAccessToken struct {
- OptionTitle types.String `tfsdk:"option_title"`
PersonalAccessToken types.String `tfsdk:"personal_access_token"`
}
diff --git a/internal/provider/type_source_gitlab.go b/internal/provider/type_source_gitlab.go
old mode 100755
new mode 100644
index af94d4a47..b66965fb0
--- a/internal/provider/type_source_gitlab.go
+++ b/internal/provider/type_source_gitlab.go
@@ -9,6 +9,5 @@ type SourceGitlab struct {
Credentials SourceGitlabAuthorizationMethod `tfsdk:"credentials"`
Groups types.String `tfsdk:"groups"`
Projects types.String `tfsdk:"projects"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_gitlab_authorization_method.go b/internal/provider/type_source_gitlab_authorization_method.go
old mode 100755
new mode 100644
index a031847e9..50481c9c8
--- a/internal/provider/type_source_gitlab_authorization_method.go
+++ b/internal/provider/type_source_gitlab_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourceGitlabAuthorizationMethod struct {
- SourceGitlabAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_gitlab_authorization_method_o_auth2_0"`
- SourceGitlabAuthorizationMethodPrivateToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_gitlab_authorization_method_private_token"`
- SourceGitlabUpdateAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_gitlab_update_authorization_method_o_auth2_0"`
- SourceGitlabUpdateAuthorizationMethodPrivateToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_gitlab_update_authorization_method_private_token"`
+ SourceGitlabAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_gitlab_authorization_method_o_auth2_0"`
+ SourceGitlabAuthorizationMethodPrivateToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_gitlab_authorization_method_private_token"`
+ SourceGitlabUpdateAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_gitlab_update_authorization_method_o_auth2_0"`
+ SourceGitlabUpdateAuthorizationMethodPrivateToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_gitlab_update_authorization_method_private_token"`
}
diff --git a/internal/provider/type_source_gitlab_authorization_method_o_auth20.go b/internal/provider/type_source_gitlab_authorization_method_o_auth20.go
deleted file mode 100755
index ae47b3735..000000000
--- a/internal/provider/type_source_gitlab_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGitlabAuthorizationMethodOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- TokenExpiryDate types.String `tfsdk:"token_expiry_date"`
-}
diff --git a/internal/provider/type_source_gitlab_authorization_method_private_token.go b/internal/provider/type_source_gitlab_authorization_method_private_token.go
deleted file mode 100755
index 78456ba7f..000000000
--- a/internal/provider/type_source_gitlab_authorization_method_private_token.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGitlabAuthorizationMethodPrivateToken struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
-}
diff --git a/internal/provider/type_source_glassfrog.go b/internal/provider/type_source_glassfrog.go
deleted file mode 100755
index 7b17e8f64..000000000
--- a/internal/provider/type_source_glassfrog.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGlassfrog struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_gnews.go b/internal/provider/type_source_gnews.go
old mode 100755
new mode 100644
index 974bfb3d6..faa1f8dd6
--- a/internal/provider/type_source_gnews.go
+++ b/internal/provider/type_source_gnews.go
@@ -13,7 +13,6 @@ type SourceGnews struct {
Nullable []types.String `tfsdk:"nullable"`
Query types.String `tfsdk:"query"`
Sortby types.String `tfsdk:"sortby"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
TopHeadlinesQuery types.String `tfsdk:"top_headlines_query"`
TopHeadlinesTopic types.String `tfsdk:"top_headlines_topic"`
diff --git a/internal/provider/type_source_google_ads.go b/internal/provider/type_source_google_ads.go
old mode 100755
new mode 100644
index cdbfe939d..75a614f37
--- a/internal/provider/type_source_google_ads.go
+++ b/internal/provider/type_source_google_ads.go
@@ -11,6 +11,5 @@ type SourceGoogleAds struct {
CustomerID types.String `tfsdk:"customer_id"`
EndDate types.String `tfsdk:"end_date"`
LoginCustomerID types.String `tfsdk:"login_customer_id"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_google_ads_custom_queries.go b/internal/provider/type_source_google_ads_custom_queries.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_ads_google_credentials.go b/internal/provider/type_source_google_ads_google_credentials.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_analytics_data_api.go b/internal/provider/type_source_google_analytics_data_api.go
old mode 100755
new mode 100644
index 138d980e8..7de0d40cc
--- a/internal/provider/type_source_google_analytics_data_api.go
+++ b/internal/provider/type_source_google_analytics_data_api.go
@@ -9,6 +9,5 @@ type SourceGoogleAnalyticsDataAPI struct {
CustomReports types.String `tfsdk:"custom_reports"`
DateRangesStartDate types.String `tfsdk:"date_ranges_start_date"`
PropertyID types.String `tfsdk:"property_id"`
- SourceType types.String `tfsdk:"source_type"`
WindowInDays types.Int64 `tfsdk:"window_in_days"`
}
diff --git a/internal/provider/type_source_google_analytics_data_api_credentials.go b/internal/provider/type_source_google_analytics_data_api_credentials.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go b/internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go
old mode 100755
new mode 100644
index de669e103..2641651d8
--- a/internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go
+++ b/internal/provider/type_source_google_analytics_data_api_credentials_authenticate_via_google_oauth.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go b/internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go
old mode 100755
new mode 100644
index 9617e25ce..7603ada31
--- a/internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go
+++ b/internal/provider/type_source_google_analytics_data_api_credentials_service_account_key_authentication.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication struct {
- AuthType types.String `tfsdk:"auth_type"`
CredentialsJSON types.String `tfsdk:"credentials_json"`
}
diff --git a/internal/provider/type_source_google_analytics_v4.go b/internal/provider/type_source_google_analytics_v4.go
old mode 100755
new mode 100644
index aaa86f81a..a1ea16cec
--- a/internal/provider/type_source_google_analytics_v4.go
+++ b/internal/provider/type_source_google_analytics_v4.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleAnalyticsV4 struct {
Credentials *SourceGoogleAnalyticsV4Credentials `tfsdk:"credentials"`
CustomReports types.String `tfsdk:"custom_reports"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
ViewID types.String `tfsdk:"view_id"`
WindowInDays types.Int64 `tfsdk:"window_in_days"`
diff --git a/internal/provider/type_source_google_analytics_v4_credentials.go b/internal/provider/type_source_google_analytics_v4_credentials.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_directory.go b/internal/provider/type_source_google_directory.go
old mode 100755
new mode 100644
index 6b48799b7..de35860fc
--- a/internal/provider/type_source_google_directory.go
+++ b/internal/provider/type_source_google_directory.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceGoogleDirectory struct {
Credentials *SourceGoogleDirectoryGoogleCredentials `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_google_directory_google_credentials.go b/internal/provider/type_source_google_directory_google_credentials.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_directory_google_credentials_service_account_key.go b/internal/provider/type_source_google_directory_google_credentials_service_account_key.go
old mode 100755
new mode 100644
index 8187d870e..78884e872
--- a/internal/provider/type_source_google_directory_google_credentials_service_account_key.go
+++ b/internal/provider/type_source_google_directory_google_credentials_service_account_key.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleDirectoryGoogleCredentialsServiceAccountKey struct {
- CredentialsJSON types.String `tfsdk:"credentials_json"`
- CredentialsTitle types.String `tfsdk:"credentials_title"`
- Email types.String `tfsdk:"email"`
+ CredentialsJSON types.String `tfsdk:"credentials_json"`
+ Email types.String `tfsdk:"email"`
}
diff --git a/internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go b/internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go
old mode 100755
new mode 100644
index cc96596a1..47b774275
--- a/internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go
+++ b/internal/provider/type_source_google_directory_google_credentials_sign_in_via_google_o_auth.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth struct {
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- CredentialsTitle types.String `tfsdk:"credentials_title"`
- RefreshToken types.String `tfsdk:"refresh_token"`
+ ClientID types.String `tfsdk:"client_id"`
+ ClientSecret types.String `tfsdk:"client_secret"`
+ RefreshToken types.String `tfsdk:"refresh_token"`
}
diff --git a/internal/provider/type_source_google_pagespeed_insights.go b/internal/provider/type_source_google_pagespeed_insights.go
old mode 100755
new mode 100644
index 7ca18ff33..877d534fc
--- a/internal/provider/type_source_google_pagespeed_insights.go
+++ b/internal/provider/type_source_google_pagespeed_insights.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGooglePagespeedInsights struct {
APIKey types.String `tfsdk:"api_key"`
Categories []types.String `tfsdk:"categories"`
- SourceType types.String `tfsdk:"source_type"`
Strategies []types.String `tfsdk:"strategies"`
Urls []types.String `tfsdk:"urls"`
}
diff --git a/internal/provider/type_source_google_search_console.go b/internal/provider/type_source_google_search_console.go
old mode 100755
new mode 100644
index 802b69795..1c27f89fc
--- a/internal/provider/type_source_google_search_console.go
+++ b/internal/provider/type_source_google_search_console.go
@@ -11,6 +11,5 @@ type SourceGoogleSearchConsole struct {
DataState types.String `tfsdk:"data_state"`
EndDate types.String `tfsdk:"end_date"`
SiteUrls []types.String `tfsdk:"site_urls"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_google_search_console_authentication_type.go b/internal/provider/type_source_google_search_console_authentication_type.go
old mode 100755
new mode 100644
index 4899e7438..9ade8aa1a
--- a/internal/provider/type_source_google_search_console_authentication_type.go
+++ b/internal/provider/type_source_google_search_console_authentication_type.go
@@ -3,8 +3,8 @@
package provider
type SourceGoogleSearchConsoleAuthenticationType struct {
- SourceGoogleSearchConsoleAuthenticationTypeOAuth *SourceGoogleSearchConsoleAuthenticationTypeOAuth `tfsdk:"source_google_search_console_authentication_type_o_auth"`
+ SourceGoogleSearchConsoleAuthenticationTypeOAuth *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_google_search_console_authentication_type_o_auth"`
SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication `tfsdk:"source_google_search_console_authentication_type_service_account_key_authentication"`
- SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth *SourceGoogleSearchConsoleAuthenticationTypeOAuth `tfsdk:"source_google_search_console_update_authentication_type_o_auth"`
+ SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_google_search_console_update_authentication_type_o_auth"`
SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication `tfsdk:"source_google_search_console_update_authentication_type_service_account_key_authentication"`
}
diff --git a/internal/provider/type_source_google_search_console_authentication_type_o_auth.go b/internal/provider/type_source_google_search_console_authentication_type_o_auth.go
deleted file mode 100755
index bec489327..000000000
--- a/internal/provider/type_source_google_search_console_authentication_type_o_auth.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGoogleSearchConsoleAuthenticationTypeOAuth struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
-}
diff --git a/internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go b/internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go
old mode 100755
new mode 100644
index 9279abb95..8f2bb688b
--- a/internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go
+++ b/internal/provider/type_source_google_search_console_authentication_type_service_account_key_authentication.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication struct {
- AuthType types.String `tfsdk:"auth_type"`
Email types.String `tfsdk:"email"`
ServiceAccountInfo types.String `tfsdk:"service_account_info"`
}
diff --git a/internal/provider/type_source_google_search_console_custom_report_config.go b/internal/provider/type_source_google_search_console_custom_report_config.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_sheets.go b/internal/provider/type_source_google_sheets.go
old mode 100755
new mode 100644
index 72c0282b1..8d4f45c29
--- a/internal/provider/type_source_google_sheets.go
+++ b/internal/provider/type_source_google_sheets.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleSheets struct {
Credentials SourceGoogleSheetsAuthentication `tfsdk:"credentials"`
NamesConversion types.Bool `tfsdk:"names_conversion"`
- SourceType types.String `tfsdk:"source_type"`
SpreadsheetID types.String `tfsdk:"spreadsheet_id"`
}
diff --git a/internal/provider/type_source_google_sheets_authentication.go b/internal/provider/type_source_google_sheets_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go b/internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go
old mode 100755
new mode 100644
index e580b10f1..4f62f3e13
--- a/internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go
+++ b/internal/provider/type_source_google_sheets_authentication_authenticate_via_google_o_auth.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go b/internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go
old mode 100755
new mode 100644
index 7abba9ab1..aca212f61
--- a/internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go
+++ b/internal/provider/type_source_google_sheets_authentication_service_account_key_authentication.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication struct {
- AuthType types.String `tfsdk:"auth_type"`
ServiceAccountInfo types.String `tfsdk:"service_account_info"`
}
diff --git a/internal/provider/type_source_google_webfonts.go b/internal/provider/type_source_google_webfonts.go
old mode 100755
new mode 100644
index 3c97443ee..07e6f9e1f
--- a/internal/provider/type_source_google_webfonts.go
+++ b/internal/provider/type_source_google_webfonts.go
@@ -9,5 +9,4 @@ type SourceGoogleWebfonts struct {
APIKey types.String `tfsdk:"api_key"`
PrettyPrint types.String `tfsdk:"pretty_print"`
Sort types.String `tfsdk:"sort"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_google_workspace_admin_reports.go b/internal/provider/type_source_google_workspace_admin_reports.go
old mode 100755
new mode 100644
index 8f727b4b6..3df22ffc8
--- a/internal/provider/type_source_google_workspace_admin_reports.go
+++ b/internal/provider/type_source_google_workspace_admin_reports.go
@@ -8,5 +8,4 @@ type SourceGoogleWorkspaceAdminReports struct {
CredentialsJSON types.String `tfsdk:"credentials_json"`
Email types.String `tfsdk:"email"`
Lookback types.Int64 `tfsdk:"lookback"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_greenhouse.go b/internal/provider/type_source_greenhouse.go
deleted file mode 100755
index fa1a36f60..000000000
--- a/internal/provider/type_source_greenhouse.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceGreenhouse struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_gridly.go b/internal/provider/type_source_gridly.go
old mode 100755
new mode 100644
index d485221be..2a3b0aede
--- a/internal/provider/type_source_gridly.go
+++ b/internal/provider/type_source_gridly.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceGridly struct {
- APIKey types.String `tfsdk:"api_key"`
- GridID types.String `tfsdk:"grid_id"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ GridID types.String `tfsdk:"grid_id"`
}
diff --git a/internal/provider/type_source_harvest.go b/internal/provider/type_source_harvest.go
old mode 100755
new mode 100644
index ce8c20548..56a800e37
--- a/internal/provider/type_source_harvest.go
+++ b/internal/provider/type_source_harvest.go
@@ -9,5 +9,4 @@ type SourceHarvest struct {
Credentials *SourceHarvestAuthenticationMechanism `tfsdk:"credentials"`
ReplicationEndDate types.String `tfsdk:"replication_end_date"`
ReplicationStartDate types.String `tfsdk:"replication_start_date"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_harvest1.go b/internal/provider/type_source_harvest1.go
deleted file mode 100755
index 016ff26f0..000000000
--- a/internal/provider/type_source_harvest1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvest1 struct {
- AccountID types.String `tfsdk:"account_id"`
- Credentials *SourceHarvestAuthenticationMechanism1 `tfsdk:"credentials"`
- ReplicationEndDate types.String `tfsdk:"replication_end_date"`
- ReplicationStartDate types.String `tfsdk:"replication_start_date"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism.go b/internal/provider/type_source_harvest_authentication_mechanism.go
old mode 100755
new mode 100644
index 58c50b85f..1312b3533
--- a/internal/provider/type_source_harvest_authentication_mechanism.go
+++ b/internal/provider/type_source_harvest_authentication_mechanism.go
@@ -3,8 +3,8 @@
package provider
type SourceHarvestAuthenticationMechanism struct {
- SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth `tfsdk:"source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth"`
- SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken `tfsdk:"source_harvest_authentication_mechanism_authenticate_with_personal_access_token"`
- SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth"`
- SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token"`
+ SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth `tfsdk:"source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth"`
+ SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken `tfsdk:"source_harvest_authentication_mechanism_authenticate_with_personal_access_token"`
+ SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth"`
+ SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token"`
}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism1.go b/internal/provider/type_source_harvest_authentication_mechanism1.go
deleted file mode 100755
index e6948523c..000000000
--- a/internal/provider/type_source_harvest_authentication_mechanism1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceHarvestAuthenticationMechanism1 struct {
- SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth1 `tfsdk:"source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth"`
- SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken1 `tfsdk:"source_harvest_authentication_mechanism_authenticate_with_personal_access_token"`
- SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth1 `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth"`
- SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken1 `tfsdk:"source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token"`
-}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go
old mode 100755
new mode 100644
index 438f3c3ed..6a2b970fe
--- a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go
+++ b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth1.go b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth1.go
deleted file mode 100755
index 8fc71f167..000000000
--- a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_via_harvest_o_auth1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth1 struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go
old mode 100755
new mode 100644
index f2e790608..203eb910c
--- a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go
+++ b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
+ APIToken types.String `tfsdk:"api_token"`
}
diff --git a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token1.go b/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token1.go
deleted file mode 100755
index 44536c7c1..000000000
--- a/internal/provider/type_source_harvest_authentication_mechanism_authenticate_with_personal_access_token1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth.go b/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth.go
deleted file mode 100755
index ee3c9270f..000000000
--- a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth1.go b/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth1.go
deleted file mode 100755
index 179de9a6f..000000000
--- a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_via_harvest_o_auth1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth1 struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token.go b/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token.go
deleted file mode 100755
index f7987737e..000000000
--- a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token1.go b/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token1.go
deleted file mode 100755
index 45c5bdcc4..000000000
--- a/internal/provider/type_source_harvest_update_authentication_mechanism_authenticate_with_personal_access_token1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_hubplanner.go b/internal/provider/type_source_hubplanner.go
deleted file mode 100755
index 75d24d322..000000000
--- a/internal/provider/type_source_hubplanner.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceHubplanner struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_hubspot.go b/internal/provider/type_source_hubspot.go
old mode 100755
new mode 100644
index 589a3c00f..2544104d5
--- a/internal/provider/type_source_hubspot.go
+++ b/internal/provider/type_source_hubspot.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceHubspot struct {
Credentials SourceHubspotAuthentication `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_hubspot_authentication.go b/internal/provider/type_source_hubspot_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_hubspot_authentication_o_auth.go b/internal/provider/type_source_hubspot_authentication_o_auth.go
old mode 100755
new mode 100644
index 912b45302..667fa4264
--- a/internal/provider/type_source_hubspot_authentication_o_auth.go
+++ b/internal/provider/type_source_hubspot_authentication_o_auth.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceHubspotAuthenticationOAuth struct {
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- CredentialsTitle types.String `tfsdk:"credentials_title"`
- RefreshToken types.String `tfsdk:"refresh_token"`
+ ClientID types.String `tfsdk:"client_id"`
+ ClientSecret types.String `tfsdk:"client_secret"`
+ RefreshToken types.String `tfsdk:"refresh_token"`
}
diff --git a/internal/provider/type_source_hubspot_authentication_private_app.go b/internal/provider/type_source_hubspot_authentication_private_app.go
old mode 100755
new mode 100644
index 16314a52d..2383b1092
--- a/internal/provider/type_source_hubspot_authentication_private_app.go
+++ b/internal/provider/type_source_hubspot_authentication_private_app.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceHubspotAuthenticationPrivateApp struct {
- AccessToken types.String `tfsdk:"access_token"`
- CredentialsTitle types.String `tfsdk:"credentials_title"`
+ AccessToken types.String `tfsdk:"access_token"`
}
diff --git a/internal/provider/type_source_insightly.go b/internal/provider/type_source_insightly.go
old mode 100755
new mode 100644
index 1b48c30ba..9d822746c
--- a/internal/provider/type_source_insightly.go
+++ b/internal/provider/type_source_insightly.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceInsightly struct {
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Token types.String `tfsdk:"token"`
+ StartDate types.String `tfsdk:"start_date"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_instagram.go b/internal/provider/type_source_instagram.go
old mode 100755
new mode 100644
index 90ecbde49..0403c73e7
--- a/internal/provider/type_source_instagram.go
+++ b/internal/provider/type_source_instagram.go
@@ -8,6 +8,5 @@ type SourceInstagram struct {
AccessToken types.String `tfsdk:"access_token"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_instatus.go b/internal/provider/type_source_instatus.go
deleted file mode 100755
index 70388d815..000000000
--- a/internal/provider/type_source_instatus.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceInstatus struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_intercom.go b/internal/provider/type_source_intercom.go
deleted file mode 100755
index e1166b90f..000000000
--- a/internal/provider/type_source_intercom.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceIntercom struct {
- AccessToken types.String `tfsdk:"access_token"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
-}
diff --git a/internal/provider/type_source_ip2whois.go b/internal/provider/type_source_ip2whois.go
old mode 100755
new mode 100644
index f74c3bc39..919805441
--- a/internal/provider/type_source_ip2whois.go
+++ b/internal/provider/type_source_ip2whois.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceIp2whois struct {
- APIKey types.String `tfsdk:"api_key"`
- Domain types.String `tfsdk:"domain"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ Domain types.String `tfsdk:"domain"`
}
diff --git a/internal/provider/type_source_iterable.go b/internal/provider/type_source_iterable.go
old mode 100755
new mode 100644
index 0051f2296..106192776
--- a/internal/provider/type_source_iterable.go
+++ b/internal/provider/type_source_iterable.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceIterable struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_jira.go b/internal/provider/type_source_jira.go
old mode 100755
new mode 100644
index 4095396ab..22c032fa6
--- a/internal/provider/type_source_jira.go
+++ b/internal/provider/type_source_jira.go
@@ -12,6 +12,5 @@ type SourceJira struct {
ExpandIssueChangelog types.Bool `tfsdk:"expand_issue_changelog"`
Projects []types.String `tfsdk:"projects"`
RenderFields types.Bool `tfsdk:"render_fields"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_k6_cloud.go b/internal/provider/type_source_k6_cloud.go
old mode 100755
new mode 100644
index 2940ae56c..4a9ad2c66
--- a/internal/provider/type_source_k6_cloud.go
+++ b/internal/provider/type_source_k6_cloud.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceK6Cloud struct {
- APIToken types.String `tfsdk:"api_token"`
- SourceType types.String `tfsdk:"source_type"`
+ APIToken types.String `tfsdk:"api_token"`
}
diff --git a/internal/provider/type_source_klarna.go b/internal/provider/type_source_klarna.go
old mode 100755
new mode 100644
index b094b10d7..4fd0b074f
--- a/internal/provider/type_source_klarna.go
+++ b/internal/provider/type_source_klarna.go
@@ -8,6 +8,5 @@ type SourceKlarna struct {
Password types.String `tfsdk:"password"`
Playground types.Bool `tfsdk:"playground"`
Region types.String `tfsdk:"region"`
- SourceType types.String `tfsdk:"source_type"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_klaviyo.go b/internal/provider/type_source_klaviyo.go
deleted file mode 100755
index 96972290a..000000000
--- a/internal/provider/type_source_klaviyo.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceKlaviyo struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
-}
diff --git a/internal/provider/type_source_kustomer_singer.go b/internal/provider/type_source_kustomer_singer.go
old mode 100755
new mode 100644
index bf1a0111f..183e14e6e
--- a/internal/provider/type_source_kustomer_singer.go
+++ b/internal/provider/type_source_kustomer_singer.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceKustomerSinger struct {
- APIToken types.String `tfsdk:"api_token"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIToken types.String `tfsdk:"api_token"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_kyve.go b/internal/provider/type_source_kyve.go
old mode 100755
new mode 100644
index a65900788..36a72608b
--- a/internal/provider/type_source_kyve.go
+++ b/internal/provider/type_source_kyve.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceKyve struct {
- MaxPages types.Int64 `tfsdk:"max_pages"`
- PageSize types.Int64 `tfsdk:"page_size"`
- PoolIds types.String `tfsdk:"pool_ids"`
- SourceType types.String `tfsdk:"source_type"`
- StartIds types.String `tfsdk:"start_ids"`
- URLBase types.String `tfsdk:"url_base"`
+ MaxPages types.Int64 `tfsdk:"max_pages"`
+ PageSize types.Int64 `tfsdk:"page_size"`
+ PoolIds types.String `tfsdk:"pool_ids"`
+ StartIds types.String `tfsdk:"start_ids"`
+ URLBase types.String `tfsdk:"url_base"`
}
diff --git a/internal/provider/type_source_launchdarkly.go b/internal/provider/type_source_launchdarkly.go
old mode 100755
new mode 100644
index 48ec884d3..4562c1aa9
--- a/internal/provider/type_source_launchdarkly.go
+++ b/internal/provider/type_source_launchdarkly.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLaunchdarkly struct {
AccessToken types.String `tfsdk:"access_token"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_lemlist.go b/internal/provider/type_source_lemlist.go
deleted file mode 100755
index 1f9ece86d..000000000
--- a/internal/provider/type_source_lemlist.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceLemlist struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_lever_hiring.go b/internal/provider/type_source_lever_hiring.go
old mode 100755
new mode 100644
index 6ac4e06e8..b41fa8ffc
--- a/internal/provider/type_source_lever_hiring.go
+++ b/internal/provider/type_source_lever_hiring.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLeverHiring struct {
Credentials *SourceLeverHiringAuthenticationMechanism `tfsdk:"credentials"`
Environment types.String `tfsdk:"environment"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_lever_hiring_authentication_mechanism.go b/internal/provider/type_source_lever_hiring_authentication_mechanism.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go b/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go
old mode 100755
new mode 100644
index 9d691d4c4..9e7dbf8be
--- a/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go
+++ b/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_api_key.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
+ APIKey types.String `tfsdk:"api_key"`
}
diff --git a/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go b/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go
old mode 100755
new mode 100644
index 48d504aad..2f33c9f30
--- a/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go
+++ b/internal/provider/type_source_lever_hiring_authentication_mechanism_authenticate_via_lever_o_auth.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_linkedin_ads.go b/internal/provider/type_source_linkedin_ads.go
old mode 100755
new mode 100644
index 5a78e0ba9..9b3041a8b
--- a/internal/provider/type_source_linkedin_ads.go
+++ b/internal/provider/type_source_linkedin_ads.go
@@ -8,6 +8,5 @@ type SourceLinkedinAds struct {
AccountIds []types.Int64 `tfsdk:"account_ids"`
AdAnalyticsReports []SourceLinkedinAdsAdAnalyticsReportConfiguration `tfsdk:"ad_analytics_reports"`
Credentials *SourceLinkedinAdsAuthentication `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_linkedin_ads_ad_analytics_report_configuration.go b/internal/provider/type_source_linkedin_ads_ad_analytics_report_configuration.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_linkedin_ads_authentication.go b/internal/provider/type_source_linkedin_ads_authentication.go
old mode 100755
new mode 100644
index f69a45416..c875099da
--- a/internal/provider/type_source_linkedin_ads_authentication.go
+++ b/internal/provider/type_source_linkedin_ads_authentication.go
@@ -3,8 +3,8 @@
package provider
type SourceLinkedinAdsAuthentication struct {
- SourceLinkedinAdsAuthenticationAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_linkedin_ads_authentication_access_token"`
- SourceLinkedinAdsAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_ads_authentication_o_auth2_0"`
- SourceLinkedinAdsUpdateAuthenticationAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_linkedin_ads_update_authentication_access_token"`
- SourceLinkedinAdsUpdateAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_ads_update_authentication_o_auth2_0"`
+ SourceLinkedinAdsAuthenticationAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_linkedin_ads_authentication_access_token"`
+ SourceLinkedinAdsAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_ads_authentication_o_auth2_0"`
+ SourceLinkedinAdsUpdateAuthenticationAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_linkedin_ads_update_authentication_access_token"`
+ SourceLinkedinAdsUpdateAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_ads_update_authentication_o_auth2_0"`
}
diff --git a/internal/provider/type_source_linkedin_ads_authentication_access_token.go b/internal/provider/type_source_linkedin_ads_authentication_access_token.go
deleted file mode 100755
index a128e18ba..000000000
--- a/internal/provider/type_source_linkedin_ads_authentication_access_token.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceLinkedinAdsAuthenticationAccessToken struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
-}
diff --git a/internal/provider/type_source_linkedin_ads_authentication_o_auth20.go b/internal/provider/type_source_linkedin_ads_authentication_o_auth20.go
old mode 100755
new mode 100644
index a206be21c..d7958884c
--- a/internal/provider/type_source_linkedin_ads_authentication_o_auth20.go
+++ b/internal/provider/type_source_linkedin_ads_authentication_o_auth20.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLinkedinAdsAuthenticationOAuth20 struct {
- AuthMethod types.String `tfsdk:"auth_method"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_linkedin_pages.go b/internal/provider/type_source_linkedin_pages.go
old mode 100755
new mode 100644
index 19714d492..fa115435c
--- a/internal/provider/type_source_linkedin_pages.go
+++ b/internal/provider/type_source_linkedin_pages.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLinkedinPages struct {
Credentials *SourceLinkedinPagesAuthentication `tfsdk:"credentials"`
OrgID types.String `tfsdk:"org_id"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_linkedin_pages_authentication.go b/internal/provider/type_source_linkedin_pages_authentication.go
old mode 100755
new mode 100644
index 160b48601..e94f0d2da
--- a/internal/provider/type_source_linkedin_pages_authentication.go
+++ b/internal/provider/type_source_linkedin_pages_authentication.go
@@ -3,8 +3,8 @@
package provider
type SourceLinkedinPagesAuthentication struct {
- SourceLinkedinPagesAuthenticationAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_linkedin_pages_authentication_access_token"`
- SourceLinkedinPagesAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_pages_authentication_o_auth2_0"`
- SourceLinkedinPagesUpdateAuthenticationAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_linkedin_pages_update_authentication_access_token"`
- SourceLinkedinPagesUpdateAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_pages_update_authentication_o_auth2_0"`
+ SourceLinkedinPagesAuthenticationAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_linkedin_pages_authentication_access_token"`
+ SourceLinkedinPagesAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_pages_authentication_o_auth2_0"`
+ SourceLinkedinPagesUpdateAuthenticationAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_linkedin_pages_update_authentication_access_token"`
+ SourceLinkedinPagesUpdateAuthenticationOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_linkedin_pages_update_authentication_o_auth2_0"`
}
diff --git a/internal/provider/type_source_linnworks.go b/internal/provider/type_source_linnworks.go
old mode 100755
new mode 100644
index 869e64032..289316c59
--- a/internal/provider/type_source_linnworks.go
+++ b/internal/provider/type_source_linnworks.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLinnworks struct {
ApplicationID types.String `tfsdk:"application_id"`
ApplicationSecret types.String `tfsdk:"application_secret"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_lokalise.go b/internal/provider/type_source_lokalise.go
old mode 100755
new mode 100644
index e7d0454eb..5d1f8b988
--- a/internal/provider/type_source_lokalise.go
+++ b/internal/provider/type_source_lokalise.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceLokalise struct {
- APIKey types.String `tfsdk:"api_key"`
- ProjectID types.String `tfsdk:"project_id"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ ProjectID types.String `tfsdk:"project_id"`
}
diff --git a/internal/provider/type_source_mailchimp.go b/internal/provider/type_source_mailchimp.go
old mode 100755
new mode 100644
index fd1af60f1..4cc7fb003
--- a/internal/provider/type_source_mailchimp.go
+++ b/internal/provider/type_source_mailchimp.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMailchimp struct {
CampaignID types.String `tfsdk:"campaign_id"`
Credentials *SourceMailchimpAuthentication `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_mailchimp_authentication.go b/internal/provider/type_source_mailchimp_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mailchimp_authentication_api_key.go b/internal/provider/type_source_mailchimp_authentication_api_key.go
old mode 100755
new mode 100644
index 7e095b9e8..3e5778538
--- a/internal/provider/type_source_mailchimp_authentication_api_key.go
+++ b/internal/provider/type_source_mailchimp_authentication_api_key.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMailchimpAuthenticationAPIKey struct {
- Apikey types.String `tfsdk:"apikey"`
- AuthType types.String `tfsdk:"auth_type"`
+ Apikey types.String `tfsdk:"apikey"`
}
diff --git a/internal/provider/type_source_mailchimp_authentication_o_auth20.go b/internal/provider/type_source_mailchimp_authentication_o_auth20.go
old mode 100755
new mode 100644
index 88aa7634a..e49df991d
--- a/internal/provider/type_source_mailchimp_authentication_o_auth20.go
+++ b/internal/provider/type_source_mailchimp_authentication_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMailchimpAuthenticationOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
}
diff --git a/internal/provider/type_source_mailgun.go b/internal/provider/type_source_mailgun.go
old mode 100755
new mode 100644
index 9f9edf710..eea1e1972
--- a/internal/provider/type_source_mailgun.go
+++ b/internal/provider/type_source_mailgun.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMailgun struct {
DomainRegion types.String `tfsdk:"domain_region"`
PrivateKey types.String `tfsdk:"private_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_mailjet_sms.go b/internal/provider/type_source_mailjet_sms.go
old mode 100755
new mode 100644
index 7894af472..23ac7ea4a
--- a/internal/provider/type_source_mailjet_sms.go
+++ b/internal/provider/type_source_mailjet_sms.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMailjetSms struct {
- EndDate types.Int64 `tfsdk:"end_date"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.Int64 `tfsdk:"start_date"`
- Token types.String `tfsdk:"token"`
+ EndDate types.Int64 `tfsdk:"end_date"`
+ StartDate types.Int64 `tfsdk:"start_date"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_marketo.go b/internal/provider/type_source_marketo.go
old mode 100755
new mode 100644
index 44879c8b1..b30c02f45
--- a/internal/provider/type_source_marketo.go
+++ b/internal/provider/type_source_marketo.go
@@ -8,6 +8,5 @@ type SourceMarketo struct {
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
DomainURL types.String `tfsdk:"domain_url"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_metabase.go b/internal/provider/type_source_metabase.go
old mode 100755
new mode 100644
index 304488a1b..b685208ce
--- a/internal/provider/type_source_metabase.go
+++ b/internal/provider/type_source_metabase.go
@@ -8,6 +8,5 @@ type SourceMetabase struct {
InstanceAPIURL types.String `tfsdk:"instance_api_url"`
Password types.String `tfsdk:"password"`
SessionToken types.String `tfsdk:"session_token"`
- SourceType types.String `tfsdk:"source_type"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_microsoft_teams.go b/internal/provider/type_source_microsoft_teams.go
old mode 100755
new mode 100644
index 932aa84f5..65cdea911
--- a/internal/provider/type_source_microsoft_teams.go
+++ b/internal/provider/type_source_microsoft_teams.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMicrosoftTeams struct {
Credentials *SourceMicrosoftTeamsAuthenticationMechanism `tfsdk:"credentials"`
Period types.String `tfsdk:"period"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_microsoft_teams_authentication_mechanism.go b/internal/provider/type_source_microsoft_teams_authentication_mechanism.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go b/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go
old mode 100755
new mode 100644
index c928da41a..15d209f3c
--- a/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go
+++ b/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
TenantID types.String `tfsdk:"tenant_id"`
diff --git a/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go b/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go
old mode 100755
new mode 100644
index bd93fc2c3..23828d810
--- a/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go
+++ b/internal/provider/type_source_microsoft_teams_authentication_mechanism_authenticate_via_microsoft_o_auth20.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_mixpanel.go b/internal/provider/type_source_mixpanel.go
old mode 100755
new mode 100644
index ae0b37080..213f12e06
--- a/internal/provider/type_source_mixpanel.go
+++ b/internal/provider/type_source_mixpanel.go
@@ -13,6 +13,5 @@ type SourceMixpanel struct {
ProjectTimezone types.String `tfsdk:"project_timezone"`
Region types.String `tfsdk:"region"`
SelectPropertiesByDefault types.Bool `tfsdk:"select_properties_by_default"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_mixpanel_authentication_wildcard.go b/internal/provider/type_source_mixpanel_authentication_wildcard.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go b/internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go
old mode 100755
new mode 100644
index bd47cad79..7eb30661b
--- a/internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go
+++ b/internal/provider/type_source_mixpanel_authentication_wildcard_project_secret.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMixpanelAuthenticationWildcardProjectSecret struct {
- APISecret types.String `tfsdk:"api_secret"`
- OptionTitle types.String `tfsdk:"option_title"`
+ APISecret types.String `tfsdk:"api_secret"`
}
diff --git a/internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go b/internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go
old mode 100755
new mode 100644
index 5b36e3f08..a0842eb61
--- a/internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go
+++ b/internal/provider/type_source_mixpanel_authentication_wildcard_service_account.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMixpanelAuthenticationWildcardServiceAccount struct {
- OptionTitle types.String `tfsdk:"option_title"`
- Secret types.String `tfsdk:"secret"`
- Username types.String `tfsdk:"username"`
+ Secret types.String `tfsdk:"secret"`
+ Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_monday.go b/internal/provider/type_source_monday.go
old mode 100755
new mode 100644
index 3451a818c..dd4243717
--- a/internal/provider/type_source_monday.go
+++ b/internal/provider/type_source_monday.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceMonday struct {
Credentials *SourceMondayAuthorizationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_monday_authorization_method.go b/internal/provider/type_source_monday_authorization_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_monday_authorization_method_api_token.go b/internal/provider/type_source_monday_authorization_method_api_token.go
old mode 100755
new mode 100644
index e5270e6dc..f4d966a44
--- a/internal/provider/type_source_monday_authorization_method_api_token.go
+++ b/internal/provider/type_source_monday_authorization_method_api_token.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMondayAuthorizationMethodAPIToken struct {
APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
}
diff --git a/internal/provider/type_source_monday_authorization_method_o_auth20.go b/internal/provider/type_source_monday_authorization_method_o_auth20.go
old mode 100755
new mode 100644
index 6a906dd9c..43f021586
--- a/internal/provider/type_source_monday_authorization_method_o_auth20.go
+++ b/internal/provider/type_source_monday_authorization_method_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMondayAuthorizationMethodOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
Subdomain types.String `tfsdk:"subdomain"`
diff --git a/internal/provider/type_source_mongodb.go b/internal/provider/type_source_mongodb.go
old mode 100755
new mode 100644
index 0f2f5d0d5..796c0e085
--- a/internal/provider/type_source_mongodb.go
+++ b/internal/provider/type_source_mongodb.go
@@ -9,6 +9,5 @@ type SourceMongodb struct {
Database types.String `tfsdk:"database"`
InstanceType *SourceMongodbMongoDbInstanceType `tfsdk:"instance_type"`
Password types.String `tfsdk:"password"`
- SourceType types.String `tfsdk:"source_type"`
User types.String `tfsdk:"user"`
}
diff --git a/internal/provider/type_source_mongodb1.go b/internal/provider/type_source_mongodb1.go
deleted file mode 100755
index 3c54b54cc..000000000
--- a/internal/provider/type_source_mongodb1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceMongodb1 struct {
- AuthSource types.String `tfsdk:"auth_source"`
- Database types.String `tfsdk:"database"`
- InstanceType *SourceMongodbMongoDbInstanceType1 `tfsdk:"instance_type"`
- Password types.String `tfsdk:"password"`
- SourceType types.String `tfsdk:"source_type"`
- User types.String `tfsdk:"user"`
-}
diff --git a/internal/provider/type_source_mongodb_internal_poc.go b/internal/provider/type_source_mongodb_internal_poc.go
old mode 100755
new mode 100644
index f668e4c2b..45b1137c4
--- a/internal/provider/type_source_mongodb_internal_poc.go
+++ b/internal/provider/type_source_mongodb_internal_poc.go
@@ -9,6 +9,5 @@ type SourceMongodbInternalPoc struct {
ConnectionString types.String `tfsdk:"connection_string"`
Password types.String `tfsdk:"password"`
ReplicaSet types.String `tfsdk:"replica_set"`
- SourceType types.String `tfsdk:"source_type"`
User types.String `tfsdk:"user"`
}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type.go b/internal/provider/type_source_mongodb_mongo_db_instance_type.go
old mode 100755
new mode 100644
index 36c37a0cf..ee7344279
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type.go
+++ b/internal/provider/type_source_mongodb_mongo_db_instance_type.go
@@ -6,7 +6,7 @@ type SourceMongodbMongoDbInstanceType struct {
SourceMongodbMongoDBInstanceTypeMongoDBAtlas *SourceMongodbMongoDBInstanceTypeMongoDBAtlas `tfsdk:"source_mongodb_mongo_db_instance_type_mongo_db_atlas"`
SourceMongodbMongoDbInstanceTypeReplicaSet *SourceMongodbMongoDbInstanceTypeReplicaSet `tfsdk:"source_mongodb_mongo_db_instance_type_replica_set"`
SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance `tfsdk:"source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance"`
- SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas `tfsdk:"source_mongodb_update_mongo_db_instance_type_mongo_db_atlas"`
+ SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas *SourceMongodbMongoDBInstanceTypeMongoDBAtlas `tfsdk:"source_mongodb_update_mongo_db_instance_type_mongo_db_atlas"`
SourceMongodbUpdateMongoDbInstanceTypeReplicaSet *SourceMongodbMongoDbInstanceTypeReplicaSet `tfsdk:"source_mongodb_update_mongo_db_instance_type_replica_set"`
SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance `tfsdk:"source_mongodb_update_mongo_db_instance_type_standalone_mongo_db_instance"`
}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type1.go b/internal/provider/type_source_mongodb_mongo_db_instance_type1.go
deleted file mode 100755
index 2a72f67f2..000000000
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceMongodbMongoDbInstanceType1 struct {
- SourceMongodbMongoDBInstanceTypeMongoDBAtlas *SourceMongodbMongoDBInstanceTypeMongoDBAtlas1 `tfsdk:"source_mongodb_mongo_db_instance_type_mongo_db_atlas"`
- SourceMongodbMongoDbInstanceTypeReplicaSet *SourceMongodbMongoDbInstanceTypeReplicaSet `tfsdk:"source_mongodb_mongo_db_instance_type_replica_set"`
- SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance `tfsdk:"source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance"`
- SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas1 `tfsdk:"source_mongodb_update_mongo_db_instance_type_mongo_db_atlas"`
- SourceMongodbUpdateMongoDbInstanceTypeReplicaSet *SourceMongodbMongoDbInstanceTypeReplicaSet `tfsdk:"source_mongodb_update_mongo_db_instance_type_replica_set"`
- SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance `tfsdk:"source_mongodb_update_mongo_db_instance_type_standalone_mongo_db_instance"`
-}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go b/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go
old mode 100755
new mode 100644
index b73505ec7..a63a5ebfd
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go
+++ b/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMongodbMongoDBInstanceTypeMongoDBAtlas struct {
- ClusterURL types.String `tfsdk:"cluster_url"`
- Instance types.String `tfsdk:"instance"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
+ ClusterURL types.String `tfsdk:"cluster_url"`
}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas1.go b/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas1.go
deleted file mode 100755
index 6e21b7c24..000000000
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type_mongo_db_atlas1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceMongodbMongoDBInstanceTypeMongoDBAtlas1 struct {
- ClusterURL types.String `tfsdk:"cluster_url"`
- Instance types.String `tfsdk:"instance"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go b/internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go
old mode 100755
new mode 100644
index d7219279b..eb62daf14
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go
+++ b/internal/provider/type_source_mongodb_mongo_db_instance_type_replica_set.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMongodbMongoDbInstanceTypeReplicaSet struct {
- Instance types.String `tfsdk:"instance"`
ReplicaSet types.String `tfsdk:"replica_set"`
ServerAddresses types.String `tfsdk:"server_addresses"`
}
diff --git a/internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go b/internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
old mode 100755
new mode 100644
index 71bc2132c..a2f201d5a
--- a/internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
+++ b/internal/provider/type_source_mongodb_mongo_db_instance_type_standalone_mongo_db_instance.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance struct {
- Host types.String `tfsdk:"host"`
- Instance types.String `tfsdk:"instance"`
- Port types.Int64 `tfsdk:"port"`
+ Host types.String `tfsdk:"host"`
+ Port types.Int64 `tfsdk:"port"`
}
diff --git a/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas.go b/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas.go
deleted file mode 100755
index ba0db31cf..000000000
--- a/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas struct {
- ClusterURL types.String `tfsdk:"cluster_url"`
- Instance types.String `tfsdk:"instance"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas1.go b/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas1.go
deleted file mode 100755
index e228178fe..000000000
--- a/internal/provider/type_source_mongodb_update_mongo_db_instance_type_mongo_db_atlas1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas1 struct {
- ClusterURL types.String `tfsdk:"cluster_url"`
- Instance types.String `tfsdk:"instance"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_mssql.go b/internal/provider/type_source_mssql.go
old mode 100755
new mode 100644
index 164d63031..b9318cf43
--- a/internal/provider/type_source_mssql.go
+++ b/internal/provider/type_source_mssql.go
@@ -12,7 +12,6 @@ type SourceMssql struct {
Port types.Int64 `tfsdk:"port"`
ReplicationMethod *SourceMssqlUpdateMethod `tfsdk:"replication_method"`
Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
SslMethod *SourceMssqlSSLMethod `tfsdk:"ssl_method"`
TunnelMethod *SourceMssqlSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
diff --git a/internal/provider/type_source_mssql_ssh_tunnel_method.go b/internal/provider/type_source_mssql_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mssql_ssl_method.go b/internal/provider/type_source_mssql_ssl_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mssql_update_method.go b/internal/provider/type_source_mssql_update_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go b/internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go
old mode 100755
new mode 100644
index 605edb04d..9dce29125
--- a/internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go
+++ b/internal/provider/type_source_mssql_update_method_read_changes_using_change_data_capture_cdc.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC struct {
DataToSync types.String `tfsdk:"data_to_sync"`
InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- Method types.String `tfsdk:"method"`
SnapshotIsolation types.String `tfsdk:"snapshot_isolation"`
}
diff --git a/internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go b/internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go
old mode 100755
new mode 100644
index bfc9a2d02..a374ca588
--- a/internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go
+++ b/internal/provider/type_source_mssql_update_method_scan_changes_with_user_defined_cursor.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_source_my_hours.go b/internal/provider/type_source_my_hours.go
old mode 100755
new mode 100644
index e11e97a18..1f9d7fab0
--- a/internal/provider/type_source_my_hours.go
+++ b/internal/provider/type_source_my_hours.go
@@ -8,6 +8,5 @@ type SourceMyHours struct {
Email types.String `tfsdk:"email"`
LogsBatchSize types.Int64 `tfsdk:"logs_batch_size"`
Password types.String `tfsdk:"password"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_mysql.go b/internal/provider/type_source_mysql.go
old mode 100755
new mode 100644
index 7f2ec6e2d..6c9d7923a
--- a/internal/provider/type_source_mysql.go
+++ b/internal/provider/type_source_mysql.go
@@ -11,7 +11,6 @@ type SourceMysql struct {
Password types.String `tfsdk:"password"`
Port types.Int64 `tfsdk:"port"`
ReplicationMethod SourceMysqlUpdateMethod `tfsdk:"replication_method"`
- SourceType types.String `tfsdk:"source_type"`
SslMode *SourceMysqlSSLModes `tfsdk:"ssl_mode"`
TunnelMethod *SourceMysqlSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
diff --git a/internal/provider/type_source_mysql_ssh_tunnel_method.go b/internal/provider/type_source_mysql_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mysql_ssl_modes.go b/internal/provider/type_source_mysql_ssl_modes.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mysql_ssl_modes_preferred.go b/internal/provider/type_source_mysql_ssl_modes_preferred.go
old mode 100755
new mode 100644
index b0e2e9b29..166755532
--- a/internal/provider/type_source_mysql_ssl_modes_preferred.go
+++ b/internal/provider/type_source_mysql_ssl_modes_preferred.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceMysqlSSLModesPreferred struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_source_mysql_ssl_modes_required.go b/internal/provider/type_source_mysql_ssl_modes_required.go
old mode 100755
new mode 100644
index 65e4acb1f..7b921a9a3
--- a/internal/provider/type_source_mysql_ssl_modes_required.go
+++ b/internal/provider/type_source_mysql_ssl_modes_required.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceMysqlSSLModesRequired struct {
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_source_mysql_ssl_modes_verify_ca.go b/internal/provider/type_source_mysql_ssl_modes_verify_ca.go
old mode 100755
new mode 100644
index c41817e5c..012e64601
--- a/internal/provider/type_source_mysql_ssl_modes_verify_ca.go
+++ b/internal/provider/type_source_mysql_ssl_modes_verify_ca.go
@@ -9,5 +9,4 @@ type SourceMysqlSSLModesVerifyCA struct {
ClientCertificate types.String `tfsdk:"client_certificate"`
ClientKey types.String `tfsdk:"client_key"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_source_mysql_ssl_modes_verify_identity.go b/internal/provider/type_source_mysql_ssl_modes_verify_identity.go
old mode 100755
new mode 100644
index 201dec353..40a6cac90
--- a/internal/provider/type_source_mysql_ssl_modes_verify_identity.go
+++ b/internal/provider/type_source_mysql_ssl_modes_verify_identity.go
@@ -9,5 +9,4 @@ type SourceMysqlSSLModesVerifyIdentity struct {
ClientCertificate types.String `tfsdk:"client_certificate"`
ClientKey types.String `tfsdk:"client_key"`
ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
}
diff --git a/internal/provider/type_source_mysql_update_method.go b/internal/provider/type_source_mysql_update_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go b/internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go
old mode 100755
new mode 100644
index 14cb33229..b60691ea1
--- a/internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go
+++ b/internal/provider/type_source_mysql_update_method_read_changes_using_binary_log_cdc.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC struct {
InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- Method types.String `tfsdk:"method"`
ServerTimeZone types.String `tfsdk:"server_time_zone"`
}
diff --git a/internal/provider/type_source_netsuite.go b/internal/provider/type_source_netsuite.go
old mode 100755
new mode 100644
index e548a45be..4fc0b1cf6
--- a/internal/provider/type_source_netsuite.go
+++ b/internal/provider/type_source_netsuite.go
@@ -9,7 +9,6 @@ type SourceNetsuite struct {
ConsumerSecret types.String `tfsdk:"consumer_secret"`
ObjectTypes []types.String `tfsdk:"object_types"`
Realm types.String `tfsdk:"realm"`
- SourceType types.String `tfsdk:"source_type"`
StartDatetime types.String `tfsdk:"start_datetime"`
TokenKey types.String `tfsdk:"token_key"`
TokenSecret types.String `tfsdk:"token_secret"`
diff --git a/internal/provider/type_source_notion.go b/internal/provider/type_source_notion.go
old mode 100755
new mode 100644
index 7c2b96619..4fcfb8a1e
--- a/internal/provider/type_source_notion.go
+++ b/internal/provider/type_source_notion.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceNotion struct {
Credentials *SourceNotionAuthenticateUsing `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_notion_authenticate_using.go b/internal/provider/type_source_notion_authenticate_using.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_notion_authenticate_using_access_token.go b/internal/provider/type_source_notion_authenticate_using_access_token.go
old mode 100755
new mode 100644
index 49659af77..06334b9e5
--- a/internal/provider/type_source_notion_authenticate_using_access_token.go
+++ b/internal/provider/type_source_notion_authenticate_using_access_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceNotionAuthenticateUsingAccessToken struct {
- AuthType types.String `tfsdk:"auth_type"`
- Token types.String `tfsdk:"token"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_notion_authenticate_using_o_auth20.go b/internal/provider/type_source_notion_authenticate_using_o_auth20.go
old mode 100755
new mode 100644
index 80d0e442e..b7f6bb3f3
--- a/internal/provider/type_source_notion_authenticate_using_o_auth20.go
+++ b/internal/provider/type_source_notion_authenticate_using_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceNotionAuthenticateUsingOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
}
diff --git a/internal/provider/type_source_nytimes.go b/internal/provider/type_source_nytimes.go
old mode 100755
new mode 100644
index 4fda926f8..e64226d53
--- a/internal/provider/type_source_nytimes.go
+++ b/internal/provider/type_source_nytimes.go
@@ -5,10 +5,9 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceNytimes struct {
- APIKey types.String `tfsdk:"api_key"`
- EndDate types.String `tfsdk:"end_date"`
- Period types.Int64 `tfsdk:"period"`
- ShareType types.String `tfsdk:"share_type"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ EndDate types.String `tfsdk:"end_date"`
+ Period types.Int64 `tfsdk:"period"`
+ ShareType types.String `tfsdk:"share_type"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_okta.go b/internal/provider/type_source_okta.go
old mode 100755
new mode 100644
index f52ac7c79..76ba79283
--- a/internal/provider/type_source_okta.go
+++ b/internal/provider/type_source_okta.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOkta struct {
Credentials *SourceOktaAuthorizationMethod `tfsdk:"credentials"`
Domain types.String `tfsdk:"domain"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_okta_authorization_method.go b/internal/provider/type_source_okta_authorization_method.go
old mode 100755
new mode 100644
index 495ddf36d..5c44cca2c
--- a/internal/provider/type_source_okta_authorization_method.go
+++ b/internal/provider/type_source_okta_authorization_method.go
@@ -4,7 +4,7 @@ package provider
type SourceOktaAuthorizationMethod struct {
SourceOktaAuthorizationMethodAPIToken *SourceMondayAuthorizationMethodAPIToken `tfsdk:"source_okta_authorization_method_api_token"`
- SourceOktaAuthorizationMethodOAuth20 *SourceOktaAuthorizationMethodOAuth20 `tfsdk:"source_okta_authorization_method_o_auth2_0"`
+ SourceOktaAuthorizationMethodOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_okta_authorization_method_o_auth2_0"`
SourceOktaUpdateAuthorizationMethodAPIToken *SourceMondayAuthorizationMethodAPIToken `tfsdk:"source_okta_update_authorization_method_api_token"`
- SourceOktaUpdateAuthorizationMethodOAuth20 *SourceOktaAuthorizationMethodOAuth20 `tfsdk:"source_okta_update_authorization_method_o_auth2_0"`
+ SourceOktaUpdateAuthorizationMethodOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_okta_update_authorization_method_o_auth2_0"`
}
diff --git a/internal/provider/type_source_okta_authorization_method_o_auth20.go b/internal/provider/type_source_okta_authorization_method_o_auth20.go
deleted file mode 100755
index beabcd6e3..000000000
--- a/internal/provider/type_source_okta_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceOktaAuthorizationMethodOAuth20 struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
-}
diff --git a/internal/provider/type_source_omnisend.go b/internal/provider/type_source_omnisend.go
deleted file mode 100755
index 6bc740e31..000000000
--- a/internal/provider/type_source_omnisend.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceOmnisend struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_onesignal.go b/internal/provider/type_source_onesignal.go
old mode 100755
new mode 100644
index 9520cda81..1566ebe3b
--- a/internal/provider/type_source_onesignal.go
+++ b/internal/provider/type_source_onesignal.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOnesignal struct {
Applications []SourceOnesignalApplications `tfsdk:"applications"`
OutcomeNames types.String `tfsdk:"outcome_names"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
UserAuthKey types.String `tfsdk:"user_auth_key"`
}
diff --git a/internal/provider/type_source_onesignal_applications.go b/internal/provider/type_source_onesignal_applications.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_oracle.go b/internal/provider/type_source_oracle.go
old mode 100755
new mode 100644
index c74945aa8..0dbcaa3fe
--- a/internal/provider/type_source_oracle.go
+++ b/internal/provider/type_source_oracle.go
@@ -12,7 +12,6 @@ type SourceOracle struct {
Password types.String `tfsdk:"password"`
Port types.Int64 `tfsdk:"port"`
Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
TunnelMethod *SourceOracleSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_oracle_connect_by.go b/internal/provider/type_source_oracle_connect_by.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_oracle_connect_by_service_name.go b/internal/provider/type_source_oracle_connect_by_service_name.go
old mode 100755
new mode 100644
index 39d394cc5..7833077a3
--- a/internal/provider/type_source_oracle_connect_by_service_name.go
+++ b/internal/provider/type_source_oracle_connect_by_service_name.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOracleConnectByServiceName struct {
- ConnectionType types.String `tfsdk:"connection_type"`
- ServiceName types.String `tfsdk:"service_name"`
+ ServiceName types.String `tfsdk:"service_name"`
}
diff --git a/internal/provider/type_source_oracle_connect_by_system_idsid.go b/internal/provider/type_source_oracle_connect_by_system_idsid.go
old mode 100755
new mode 100644
index 8b0bc357f..68bfe3f4b
--- a/internal/provider/type_source_oracle_connect_by_system_idsid.go
+++ b/internal/provider/type_source_oracle_connect_by_system_idsid.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOracleConnectBySystemIDSID struct {
- ConnectionType types.String `tfsdk:"connection_type"`
- Sid types.String `tfsdk:"sid"`
+ Sid types.String `tfsdk:"sid"`
}
diff --git a/internal/provider/type_source_oracle_encryption.go b/internal/provider/type_source_oracle_encryption.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go b/internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go
old mode 100755
new mode 100644
index 70a3cf871..63f8c8081
--- a/internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go
+++ b/internal/provider/type_source_oracle_encryption_native_network_encryption_nne.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOracleEncryptionNativeNetworkEncryptionNNE struct {
EncryptionAlgorithm types.String `tfsdk:"encryption_algorithm"`
- EncryptionMethod types.String `tfsdk:"encryption_method"`
}
diff --git a/internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go b/internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go
old mode 100755
new mode 100644
index dd927e56e..ddabfed62
--- a/internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go
+++ b/internal/provider/type_source_oracle_encryption_tls_encrypted_verify_certificate.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOracleEncryptionTLSEncryptedVerifyCertificate struct {
- EncryptionMethod types.String `tfsdk:"encryption_method"`
- SslCertificate types.String `tfsdk:"ssl_certificate"`
+ SslCertificate types.String `tfsdk:"ssl_certificate"`
}
diff --git a/internal/provider/type_source_oracle_ssh_tunnel_method.go b/internal/provider/type_source_oracle_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_orb.go b/internal/provider/type_source_orb.go
old mode 100755
new mode 100644
index 95723d0e4..8aacc8828
--- a/internal/provider/type_source_orb.go
+++ b/internal/provider/type_source_orb.go
@@ -9,7 +9,6 @@ type SourceOrb struct {
LookbackWindowDays types.Int64 `tfsdk:"lookback_window_days"`
NumericEventPropertiesKeys []types.String `tfsdk:"numeric_event_properties_keys"`
PlanID types.String `tfsdk:"plan_id"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StringEventPropertiesKeys []types.String `tfsdk:"string_event_properties_keys"`
SubscriptionUsageGroupingKey types.String `tfsdk:"subscription_usage_grouping_key"`
diff --git a/internal/provider/type_source_orbit.go b/internal/provider/type_source_orbit.go
old mode 100755
new mode 100644
index 92a125e08..70156ae74
--- a/internal/provider/type_source_orbit.go
+++ b/internal/provider/type_source_orbit.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOrbit struct {
- APIToken types.String `tfsdk:"api_token"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Workspace types.String `tfsdk:"workspace"`
+ APIToken types.String `tfsdk:"api_token"`
+ StartDate types.String `tfsdk:"start_date"`
+ Workspace types.String `tfsdk:"workspace"`
}
diff --git a/internal/provider/type_source_outbrain_amplify.go b/internal/provider/type_source_outbrain_amplify.go
old mode 100755
new mode 100644
index 0817f2ac6..1eb937316
--- a/internal/provider/type_source_outbrain_amplify.go
+++ b/internal/provider/type_source_outbrain_amplify.go
@@ -9,6 +9,5 @@ type SourceOutbrainAmplify struct {
EndDate types.String `tfsdk:"end_date"`
GeoLocationBreakdown types.String `tfsdk:"geo_location_breakdown"`
ReportGranularity types.String `tfsdk:"report_granularity"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_outbrain_amplify_authentication_method.go b/internal/provider/type_source_outbrain_amplify_authentication_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go b/internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go
old mode 100755
new mode 100644
index aed3a6f3b..3f8fe567e
--- a/internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go
+++ b/internal/provider/type_source_outbrain_amplify_authentication_method_access_token.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOutbrainAmplifyAuthenticationMethodAccessToken struct {
AccessToken types.String `tfsdk:"access_token"`
- Type types.String `tfsdk:"type"`
}
diff --git a/internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go b/internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go
old mode 100755
new mode 100644
index ccf767197..3aae76540
--- a/internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go
+++ b/internal/provider/type_source_outbrain_amplify_authentication_method_username_password.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceOutbrainAmplifyAuthenticationMethodUsernamePassword struct {
Password types.String `tfsdk:"password"`
- Type types.String `tfsdk:"type"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_outreach.go b/internal/provider/type_source_outreach.go
old mode 100755
new mode 100644
index 5c240eb91..c02654039
--- a/internal/provider/type_source_outreach.go
+++ b/internal/provider/type_source_outreach.go
@@ -9,6 +9,5 @@ type SourceOutreach struct {
ClientSecret types.String `tfsdk:"client_secret"`
RedirectURI types.String `tfsdk:"redirect_uri"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_paypal_transaction.go b/internal/provider/type_source_paypal_transaction.go
old mode 100755
new mode 100644
index c4cf7e726..9efbb8541
--- a/internal/provider/type_source_paypal_transaction.go
+++ b/internal/provider/type_source_paypal_transaction.go
@@ -9,6 +9,5 @@ type SourcePaypalTransaction struct {
ClientSecret types.String `tfsdk:"client_secret"`
IsSandbox types.Bool `tfsdk:"is_sandbox"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_paystack.go b/internal/provider/type_source_paystack.go
old mode 100755
new mode 100644
index dd6f9aa08..2fa052ccd
--- a/internal/provider/type_source_paystack.go
+++ b/internal/provider/type_source_paystack.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePaystack struct {
LookbackWindowDays types.Int64 `tfsdk:"lookback_window_days"`
SecretKey types.String `tfsdk:"secret_key"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_pendo.go b/internal/provider/type_source_pendo.go
deleted file mode 100755
index 62dc1d2b9..000000000
--- a/internal/provider/type_source_pendo.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePendo struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_persistiq.go b/internal/provider/type_source_persistiq.go
deleted file mode 100755
index a1d9dcfac..000000000
--- a/internal/provider/type_source_persistiq.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePersistiq struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_pexels_api.go b/internal/provider/type_source_pexels_api.go
old mode 100755
new mode 100644
index 1900669a3..f36fb120b
--- a/internal/provider/type_source_pexels_api.go
+++ b/internal/provider/type_source_pexels_api.go
@@ -11,5 +11,4 @@ type SourcePexelsAPI struct {
Orientation types.String `tfsdk:"orientation"`
Query types.String `tfsdk:"query"`
Size types.String `tfsdk:"size"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_pinterest.go b/internal/provider/type_source_pinterest.go
old mode 100755
new mode 100644
index a7de56f35..2d185976e
--- a/internal/provider/type_source_pinterest.go
+++ b/internal/provider/type_source_pinterest.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePinterest struct {
Credentials *SourcePinterestAuthorizationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Status []types.String `tfsdk:"status"`
}
diff --git a/internal/provider/type_source_pinterest_authorization_method.go b/internal/provider/type_source_pinterest_authorization_method.go
old mode 100755
new mode 100644
index ca65c40d2..a7d0b147e
--- a/internal/provider/type_source_pinterest_authorization_method.go
+++ b/internal/provider/type_source_pinterest_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourcePinterestAuthorizationMethod struct {
- SourcePinterestAuthorizationMethodAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_pinterest_authorization_method_access_token"`
- SourcePinterestAuthorizationMethodOAuth20 *SourcePinterestAuthorizationMethodOAuth20 `tfsdk:"source_pinterest_authorization_method_o_auth2_0"`
- SourcePinterestUpdateAuthorizationMethodAccessToken *SourceLinkedinAdsAuthenticationAccessToken `tfsdk:"source_pinterest_update_authorization_method_access_token"`
- SourcePinterestUpdateAuthorizationMethodOAuth20 *SourcePinterestAuthorizationMethodOAuth20 `tfsdk:"source_pinterest_update_authorization_method_o_auth2_0"`
+ SourcePinterestAuthorizationMethodAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_pinterest_authorization_method_access_token"`
+ SourcePinterestAuthorizationMethodOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_pinterest_authorization_method_o_auth2_0"`
+ SourcePinterestUpdateAuthorizationMethodAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_pinterest_update_authorization_method_access_token"`
+ SourcePinterestUpdateAuthorizationMethodOAuth20 *SourceLinkedinAdsAuthenticationOAuth20 `tfsdk:"source_pinterest_update_authorization_method_o_auth2_0"`
}
diff --git a/internal/provider/type_source_pinterest_authorization_method_o_auth20.go b/internal/provider/type_source_pinterest_authorization_method_o_auth20.go
deleted file mode 100755
index a7af7f952..000000000
--- a/internal/provider/type_source_pinterest_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePinterestAuthorizationMethodOAuth20 struct {
- AuthMethod types.String `tfsdk:"auth_method"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
-}
diff --git a/internal/provider/type_source_pipedrive.go b/internal/provider/type_source_pipedrive.go
old mode 100755
new mode 100644
index c2e016178..1b5ea3b3f
--- a/internal/provider/type_source_pipedrive.go
+++ b/internal/provider/type_source_pipedrive.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePipedrive struct {
- Authorization *SourcePipedriveAPIKeyAuthentication `tfsdk:"authorization"`
- ReplicationStartDate types.String `tfsdk:"replication_start_date"`
- SourceType types.String `tfsdk:"source_type"`
+ Authorization *SourceMondayAuthorizationMethodAPIToken `tfsdk:"authorization"`
+ ReplicationStartDate types.String `tfsdk:"replication_start_date"`
}
diff --git a/internal/provider/type_source_pipedrive_api_key_authentication.go b/internal/provider/type_source_pipedrive_api_key_authentication.go
deleted file mode 100755
index 339cc48f5..000000000
--- a/internal/provider/type_source_pipedrive_api_key_authentication.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePipedriveAPIKeyAuthentication struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
-}
diff --git a/internal/provider/type_source_pocket.go b/internal/provider/type_source_pocket.go
old mode 100755
new mode 100644
index 2e2673f3f..68a2a5800
--- a/internal/provider/type_source_pocket.go
+++ b/internal/provider/type_source_pocket.go
@@ -14,7 +14,6 @@ type SourcePocket struct {
Search types.String `tfsdk:"search"`
Since types.String `tfsdk:"since"`
Sort types.String `tfsdk:"sort"`
- SourceType types.String `tfsdk:"source_type"`
State types.String `tfsdk:"state"`
Tag types.String `tfsdk:"tag"`
}
diff --git a/internal/provider/type_source_pokeapi.go b/internal/provider/type_source_pokeapi.go
old mode 100755
new mode 100644
index 97b154641..6a5325e42
--- a/internal/provider/type_source_pokeapi.go
+++ b/internal/provider/type_source_pokeapi.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePokeapi struct {
PokemonName types.String `tfsdk:"pokemon_name"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_polygon_stock_api.go b/internal/provider/type_source_polygon_stock_api.go
old mode 100755
new mode 100644
index b14bdb030..e11edce23
--- a/internal/provider/type_source_polygon_stock_api.go
+++ b/internal/provider/type_source_polygon_stock_api.go
@@ -11,7 +11,6 @@ type SourcePolygonStockAPI struct {
Limit types.Int64 `tfsdk:"limit"`
Multiplier types.Int64 `tfsdk:"multiplier"`
Sort types.String `tfsdk:"sort"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StocksTicker types.String `tfsdk:"stocks_ticker"`
Timespan types.String `tfsdk:"timespan"`
diff --git a/internal/provider/type_source_postgres.go b/internal/provider/type_source_postgres.go
old mode 100755
new mode 100644
index 3ca85ad2e..7334637cf
--- a/internal/provider/type_source_postgres.go
+++ b/internal/provider/type_source_postgres.go
@@ -12,7 +12,6 @@ type SourcePostgres struct {
Port types.Int64 `tfsdk:"port"`
ReplicationMethod *SourcePostgresUpdateMethod `tfsdk:"replication_method"`
Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
SslMode *SourcePostgresSSLModes `tfsdk:"ssl_mode"`
TunnelMethod *SourcePostgresSSHTunnelMethod `tfsdk:"tunnel_method"`
Username types.String `tfsdk:"username"`
diff --git a/internal/provider/type_source_postgres1.go b/internal/provider/type_source_postgres1.go
deleted file mode 100755
index c9deba721..000000000
--- a/internal/provider/type_source_postgres1.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgres1 struct {
- Database types.String `tfsdk:"database"`
- Host types.String `tfsdk:"host"`
- JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
- Password types.String `tfsdk:"password"`
- Port types.Int64 `tfsdk:"port"`
- ReplicationMethod *SourcePostgresUpdateMethod1 `tfsdk:"replication_method"`
- Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
- SslMode *SourcePostgresSSLModes1 `tfsdk:"ssl_mode"`
- TunnelMethod *SourcePostgresSSHTunnelMethod `tfsdk:"tunnel_method"`
- Username types.String `tfsdk:"username"`
-}
diff --git a/internal/provider/type_source_postgres_ssh_tunnel_method.go b/internal/provider/type_source_postgres_ssh_tunnel_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_postgres_ssl_modes.go b/internal/provider/type_source_postgres_ssl_modes.go
old mode 100755
new mode 100644
index e9583a7ff..0914dbaf7
--- a/internal/provider/type_source_postgres_ssl_modes.go
+++ b/internal/provider/type_source_postgres_ssl_modes.go
@@ -3,16 +3,16 @@
package provider
type SourcePostgresSSLModes struct {
- SourcePostgresSSLModesAllow *SourcePostgresSSLModesAllow `tfsdk:"source_postgres_ssl_modes_allow"`
- SourcePostgresSSLModesDisable *SourcePostgresSSLModesDisable `tfsdk:"source_postgres_ssl_modes_disable"`
- SourcePostgresSSLModesPrefer *SourcePostgresSSLModesPrefer `tfsdk:"source_postgres_ssl_modes_prefer"`
- SourcePostgresSSLModesRequire *SourcePostgresSSLModesRequire `tfsdk:"source_postgres_ssl_modes_require"`
- SourcePostgresSSLModesVerifyCa *SourcePostgresSSLModesVerifyCa `tfsdk:"source_postgres_ssl_modes_verify_ca"`
- SourcePostgresSSLModesVerifyFull *SourcePostgresSSLModesVerifyFull `tfsdk:"source_postgres_ssl_modes_verify_full"`
- SourcePostgresUpdateSSLModesAllow *SourcePostgresUpdateSSLModesAllow `tfsdk:"source_postgres_update_ssl_modes_allow"`
- SourcePostgresUpdateSSLModesDisable *SourcePostgresUpdateSSLModesDisable `tfsdk:"source_postgres_update_ssl_modes_disable"`
- SourcePostgresUpdateSSLModesPrefer *SourcePostgresUpdateSSLModesPrefer `tfsdk:"source_postgres_update_ssl_modes_prefer"`
- SourcePostgresUpdateSSLModesRequire *SourcePostgresUpdateSSLModesRequire `tfsdk:"source_postgres_update_ssl_modes_require"`
- SourcePostgresUpdateSSLModesVerifyCa *SourcePostgresUpdateSSLModesVerifyCa `tfsdk:"source_postgres_update_ssl_modes_verify_ca"`
- SourcePostgresUpdateSSLModesVerifyFull *SourcePostgresUpdateSSLModesVerifyFull `tfsdk:"source_postgres_update_ssl_modes_verify_full"`
+ SourcePostgresSSLModesAllow *SourceAlloydbSSLModesAllow `tfsdk:"source_postgres_ssl_modes_allow"`
+ SourcePostgresSSLModesDisable *SourceAlloydbSSLModesDisable `tfsdk:"source_postgres_ssl_modes_disable"`
+ SourcePostgresSSLModesPrefer *SourceAlloydbSSLModesPrefer `tfsdk:"source_postgres_ssl_modes_prefer"`
+ SourcePostgresSSLModesRequire *SourceAlloydbSSLModesRequire `tfsdk:"source_postgres_ssl_modes_require"`
+ SourcePostgresSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa `tfsdk:"source_postgres_ssl_modes_verify_ca"`
+ SourcePostgresSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull `tfsdk:"source_postgres_ssl_modes_verify_full"`
+ SourcePostgresUpdateSSLModesAllow *SourceAlloydbSSLModesAllow `tfsdk:"source_postgres_update_ssl_modes_allow"`
+ SourcePostgresUpdateSSLModesDisable *SourceAlloydbSSLModesDisable `tfsdk:"source_postgres_update_ssl_modes_disable"`
+ SourcePostgresUpdateSSLModesPrefer *SourceAlloydbSSLModesPrefer `tfsdk:"source_postgres_update_ssl_modes_prefer"`
+ SourcePostgresUpdateSSLModesRequire *SourceAlloydbSSLModesRequire `tfsdk:"source_postgres_update_ssl_modes_require"`
+ SourcePostgresUpdateSSLModesVerifyCa *SourceAlloydbSSLModesVerifyCa `tfsdk:"source_postgres_update_ssl_modes_verify_ca"`
+ SourcePostgresUpdateSSLModesVerifyFull *SourceAlloydbSSLModesVerifyFull `tfsdk:"source_postgres_update_ssl_modes_verify_full"`
}
diff --git a/internal/provider/type_source_postgres_ssl_modes1.go b/internal/provider/type_source_postgres_ssl_modes1.go
deleted file mode 100755
index e40b71766..000000000
--- a/internal/provider/type_source_postgres_ssl_modes1.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourcePostgresSSLModes1 struct {
- SourcePostgresSSLModesAllow *SourcePostgresSSLModesAllow1 `tfsdk:"source_postgres_ssl_modes_allow"`
- SourcePostgresSSLModesDisable *SourcePostgresSSLModesDisable1 `tfsdk:"source_postgres_ssl_modes_disable"`
- SourcePostgresSSLModesPrefer *SourcePostgresSSLModesPrefer1 `tfsdk:"source_postgres_ssl_modes_prefer"`
- SourcePostgresSSLModesRequire *SourcePostgresSSLModesRequire1 `tfsdk:"source_postgres_ssl_modes_require"`
- SourcePostgresSSLModesVerifyCa *SourcePostgresSSLModesVerifyCa1 `tfsdk:"source_postgres_ssl_modes_verify_ca"`
- SourcePostgresSSLModesVerifyFull *SourcePostgresSSLModesVerifyFull1 `tfsdk:"source_postgres_ssl_modes_verify_full"`
- SourcePostgresUpdateSSLModesAllow *SourcePostgresUpdateSSLModesAllow1 `tfsdk:"source_postgres_update_ssl_modes_allow"`
- SourcePostgresUpdateSSLModesDisable *SourcePostgresUpdateSSLModesDisable1 `tfsdk:"source_postgres_update_ssl_modes_disable"`
- SourcePostgresUpdateSSLModesPrefer *SourcePostgresUpdateSSLModesPrefer1 `tfsdk:"source_postgres_update_ssl_modes_prefer"`
- SourcePostgresUpdateSSLModesRequire *SourcePostgresUpdateSSLModesRequire1 `tfsdk:"source_postgres_update_ssl_modes_require"`
- SourcePostgresUpdateSSLModesVerifyCa *SourcePostgresUpdateSSLModesVerifyCa1 `tfsdk:"source_postgres_update_ssl_modes_verify_ca"`
- SourcePostgresUpdateSSLModesVerifyFull *SourcePostgresUpdateSSLModesVerifyFull1 `tfsdk:"source_postgres_update_ssl_modes_verify_full"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_allow.go b/internal/provider/type_source_postgres_ssl_modes_allow.go
deleted file mode 100755
index c3cdf2e8f..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_allow.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesAllow struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_allow1.go b/internal/provider/type_source_postgres_ssl_modes_allow1.go
deleted file mode 100755
index 1b431d244..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_allow1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesAllow1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_disable.go b/internal/provider/type_source_postgres_ssl_modes_disable.go
deleted file mode 100755
index dcd710daa..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_disable.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesDisable struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_disable1.go b/internal/provider/type_source_postgres_ssl_modes_disable1.go
deleted file mode 100755
index e028a1e12..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_disable1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesDisable1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_prefer.go b/internal/provider/type_source_postgres_ssl_modes_prefer.go
deleted file mode 100755
index dec630456..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_prefer.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesPrefer struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_prefer1.go b/internal/provider/type_source_postgres_ssl_modes_prefer1.go
deleted file mode 100755
index 49ede7980..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_prefer1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesPrefer1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_require.go b/internal/provider/type_source_postgres_ssl_modes_require.go
deleted file mode 100755
index 0a931028b..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_require.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesRequire struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_require1.go b/internal/provider/type_source_postgres_ssl_modes_require1.go
deleted file mode 100755
index 59fbd0e04..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_require1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesRequire1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_verify_ca.go b/internal/provider/type_source_postgres_ssl_modes_verify_ca.go
deleted file mode 100755
index a69d6fd1f..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_verify_ca.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesVerifyCa struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_verify_ca1.go b/internal/provider/type_source_postgres_ssl_modes_verify_ca1.go
deleted file mode 100755
index 33053b8f5..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_verify_ca1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesVerifyCa1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_verify_full.go b/internal/provider/type_source_postgres_ssl_modes_verify_full.go
deleted file mode 100755
index ed4060e54..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_verify_full.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesVerifyFull struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_ssl_modes_verify_full1.go b/internal/provider/type_source_postgres_ssl_modes_verify_full1.go
deleted file mode 100755
index 5d38cbaf0..000000000
--- a/internal/provider/type_source_postgres_ssl_modes_verify_full1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresSSLModesVerifyFull1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_method.go b/internal/provider/type_source_postgres_update_method.go
old mode 100755
new mode 100644
index 717f7ed90..337d4b56c
--- a/internal/provider/type_source_postgres_update_method.go
+++ b/internal/provider/type_source_postgres_update_method.go
@@ -3,10 +3,10 @@
package provider
type SourcePostgresUpdateMethod struct {
- SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_method_detect_changes_with_xmin_system_column"`
- SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC `tfsdk:"source_postgres_update_method_read_changes_using_write_ahead_log_cdc"`
- SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_method_scan_changes_with_user_defined_cursor"`
- SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_update_method_detect_changes_with_xmin_system_column"`
- SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC `tfsdk:"source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc"`
- SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_update_method_scan_changes_with_user_defined_cursor"`
+ SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_method_detect_changes_with_xmin_system_column"`
+ SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC `tfsdk:"source_postgres_update_method_read_changes_using_write_ahead_log_cdc"`
+ SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor *SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_method_scan_changes_with_user_defined_cursor"`
+ SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_update_method_detect_changes_with_xmin_system_column"`
+ SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC `tfsdk:"source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc"`
+ SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor *SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_update_method_scan_changes_with_user_defined_cursor"`
}
diff --git a/internal/provider/type_source_postgres_update_method1.go b/internal/provider/type_source_postgres_update_method1.go
deleted file mode 100755
index 1969f03f3..000000000
--- a/internal/provider/type_source_postgres_update_method1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourcePostgresUpdateMethod1 struct {
- SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_method_detect_changes_with_xmin_system_column"`
- SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC1 `tfsdk:"source_postgres_update_method_read_changes_using_write_ahead_log_cdc"`
- SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_method_scan_changes_with_user_defined_cursor"`
- SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn `tfsdk:"source_postgres_update_update_method_detect_changes_with_xmin_system_column"`
- SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC1 `tfsdk:"source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc"`
- SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor `tfsdk:"source_postgres_update_update_method_scan_changes_with_user_defined_cursor"`
-}
diff --git a/internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go b/internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go
old mode 100755
new mode 100644
index 9a3b9914e..39a64620e
--- a/internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go
+++ b/internal/provider/type_source_postgres_update_method_detect_changes_with_xmin_system_column.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn struct {
- Method types.String `tfsdk:"method"`
}
diff --git a/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go b/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go
old mode 100755
new mode 100644
index 799c04180..52885decc
--- a/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go
+++ b/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
Plugin types.String `tfsdk:"plugin"`
Publication types.String `tfsdk:"publication"`
QueueSize types.Int64 `tfsdk:"queue_size"`
ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc1.go b/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc1.go
deleted file mode 100755
index 4cf9424f8..000000000
--- a/internal/provider/type_source_postgres_update_method_read_changes_using_write_ahead_log_cdc1.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC1 struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_method_scan_changes_with_user_defined_cursor.go b/internal/provider/type_source_postgres_update_method_scan_changes_with_user_defined_cursor.go
deleted file mode 100755
index c0bf69744..000000000
--- a/internal/provider/type_source_postgres_update_method_scan_changes_with_user_defined_cursor.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method types.String `tfsdk:"method"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_allow.go b/internal/provider/type_source_postgres_update_ssl_modes_allow.go
deleted file mode 100755
index 304cf8f7c..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_allow.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesAllow struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_allow1.go b/internal/provider/type_source_postgres_update_ssl_modes_allow1.go
deleted file mode 100755
index 4c25eff2c..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_allow1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesAllow1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_disable.go b/internal/provider/type_source_postgres_update_ssl_modes_disable.go
deleted file mode 100755
index 296064fc2..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_disable.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesDisable struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_disable1.go b/internal/provider/type_source_postgres_update_ssl_modes_disable1.go
deleted file mode 100755
index 4268c423d..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_disable1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesDisable1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_prefer.go b/internal/provider/type_source_postgres_update_ssl_modes_prefer.go
deleted file mode 100755
index 309ac44ea..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_prefer.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesPrefer struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_prefer1.go b/internal/provider/type_source_postgres_update_ssl_modes_prefer1.go
deleted file mode 100755
index 2334f0233..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_prefer1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesPrefer1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_require.go b/internal/provider/type_source_postgres_update_ssl_modes_require.go
deleted file mode 100755
index 31f9d429a..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_require.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesRequire struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_require1.go b/internal/provider/type_source_postgres_update_ssl_modes_require1.go
deleted file mode 100755
index 54eb5c61c..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_require1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesRequire1 struct {
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_verify_ca.go b/internal/provider/type_source_postgres_update_ssl_modes_verify_ca.go
deleted file mode 100755
index 199331782..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_verify_ca.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesVerifyCa struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_verify_ca1.go b/internal/provider/type_source_postgres_update_ssl_modes_verify_ca1.go
deleted file mode 100755
index 23cac1753..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_verify_ca1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesVerifyCa1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_verify_full.go b/internal/provider/type_source_postgres_update_ssl_modes_verify_full.go
deleted file mode 100755
index b8e5d8d7e..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_verify_full.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesVerifyFull struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_ssl_modes_verify_full1.go b/internal/provider/type_source_postgres_update_ssl_modes_verify_full1.go
deleted file mode 100755
index 30d12641f..000000000
--- a/internal/provider/type_source_postgres_update_ssl_modes_verify_full1.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateSSLModesVerifyFull1 struct {
- CaCertificate types.String `tfsdk:"ca_certificate"`
- ClientCertificate types.String `tfsdk:"client_certificate"`
- ClientKey types.String `tfsdk:"client_key"`
- ClientKeyPassword types.String `tfsdk:"client_key_password"`
- Mode types.String `tfsdk:"mode"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc.go b/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc.go
deleted file mode 100755
index b77b1e797..000000000
--- a/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc1.go b/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc1.go
deleted file mode 100755
index af29faa57..000000000
--- a/internal/provider/type_source_postgres_update_update_method_read_changes_using_write_ahead_log_cdc1.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC1 struct {
- InitialWaitingSeconds types.Int64 `tfsdk:"initial_waiting_seconds"`
- LsnCommitBehaviour types.String `tfsdk:"lsn_commit_behaviour"`
- Method types.String `tfsdk:"method"`
- Plugin types.String `tfsdk:"plugin"`
- Publication types.String `tfsdk:"publication"`
- QueueSize types.Int64 `tfsdk:"queue_size"`
- ReplicationSlot types.String `tfsdk:"replication_slot"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_posthog.go b/internal/provider/type_source_posthog.go
old mode 100755
new mode 100644
index 826d569c4..b71834f7c
--- a/internal/provider/type_source_posthog.go
+++ b/internal/provider/type_source_posthog.go
@@ -8,6 +8,5 @@ type SourcePosthog struct {
APIKey types.String `tfsdk:"api_key"`
BaseURL types.String `tfsdk:"base_url"`
EventsTimeStep types.Int64 `tfsdk:"events_time_step"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_postmarkapp.go b/internal/provider/type_source_postmarkapp.go
old mode 100755
new mode 100644
index ee778df7d..91aafecde
--- a/internal/provider/type_source_postmarkapp.go
+++ b/internal/provider/type_source_postmarkapp.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePostmarkapp struct {
- SourceType types.String `tfsdk:"source_type"`
XPostmarkAccountToken types.String `tfsdk:"x_postmark_account_token"`
XPostmarkServerToken types.String `tfsdk:"x_postmark_server_token"`
}
diff --git a/internal/provider/type_source_prestashop.go b/internal/provider/type_source_prestashop.go
old mode 100755
new mode 100644
index eca853889..0420e40d6
--- a/internal/provider/type_source_prestashop.go
+++ b/internal/provider/type_source_prestashop.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePrestashop struct {
- AccessKey types.String `tfsdk:"access_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- URL types.String `tfsdk:"url"`
+ AccessKey types.String `tfsdk:"access_key"`
+ StartDate types.String `tfsdk:"start_date"`
+ URL types.String `tfsdk:"url"`
}
diff --git a/internal/provider/type_source_punk_api.go b/internal/provider/type_source_punk_api.go
old mode 100755
new mode 100644
index c4e9e8380..56af5ff50
--- a/internal/provider/type_source_punk_api.go
+++ b/internal/provider/type_source_punk_api.go
@@ -8,5 +8,4 @@ type SourcePunkAPI struct {
BrewedAfter types.String `tfsdk:"brewed_after"`
BrewedBefore types.String `tfsdk:"brewed_before"`
ID types.String `tfsdk:"id"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_pypi.go b/internal/provider/type_source_pypi.go
old mode 100755
new mode 100644
index b17f4ca92..6b51932a4
--- a/internal/provider/type_source_pypi.go
+++ b/internal/provider/type_source_pypi.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourcePypi struct {
ProjectName types.String `tfsdk:"project_name"`
- SourceType types.String `tfsdk:"source_type"`
Version types.String `tfsdk:"version"`
}
diff --git a/internal/provider/type_source_qualaroo.go b/internal/provider/type_source_qualaroo.go
old mode 100755
new mode 100644
index a8765e84f..f1651cf72
--- a/internal/provider/type_source_qualaroo.go
+++ b/internal/provider/type_source_qualaroo.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceQualaroo struct {
- Key types.String `tfsdk:"key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- SurveyIds []types.String `tfsdk:"survey_ids"`
- Token types.String `tfsdk:"token"`
+ Key types.String `tfsdk:"key"`
+ StartDate types.String `tfsdk:"start_date"`
+ SurveyIds []types.String `tfsdk:"survey_ids"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_quickbooks.go b/internal/provider/type_source_quickbooks.go
old mode 100755
new mode 100644
index d1ea1208d..769dc46bd
--- a/internal/provider/type_source_quickbooks.go
+++ b/internal/provider/type_source_quickbooks.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceQuickbooks struct {
Credentials SourceQuickbooksAuthorizationMethod `tfsdk:"credentials"`
Sandbox types.Bool `tfsdk:"sandbox"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_quickbooks_authorization_method.go b/internal/provider/type_source_quickbooks_authorization_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_quickbooks_authorization_method_o_auth20.go b/internal/provider/type_source_quickbooks_authorization_method_o_auth20.go
old mode 100755
new mode 100644
index c98d13b47..7897f2792
--- a/internal/provider/type_source_quickbooks_authorization_method_o_auth20.go
+++ b/internal/provider/type_source_quickbooks_authorization_method_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceQuickbooksAuthorizationMethodOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RealmID types.String `tfsdk:"realm_id"`
diff --git a/internal/provider/type_source_railz.go b/internal/provider/type_source_railz.go
old mode 100755
new mode 100644
index 010aa5948..8097b9bea
--- a/internal/provider/type_source_railz.go
+++ b/internal/provider/type_source_railz.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRailz struct {
- ClientID types.String `tfsdk:"client_id"`
- SecretKey types.String `tfsdk:"secret_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ ClientID types.String `tfsdk:"client_id"`
+ SecretKey types.String `tfsdk:"secret_key"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_recharge.go b/internal/provider/type_source_recharge.go
old mode 100755
new mode 100644
index 896137b43..30e189a91
--- a/internal/provider/type_source_recharge.go
+++ b/internal/provider/type_source_recharge.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRecharge struct {
AccessToken types.String `tfsdk:"access_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_recreation.go b/internal/provider/type_source_recreation.go
old mode 100755
new mode 100644
index 333eb7753..026a8a44d
--- a/internal/provider/type_source_recreation.go
+++ b/internal/provider/type_source_recreation.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRecreation struct {
Apikey types.String `tfsdk:"apikey"`
QueryCampsites types.String `tfsdk:"query_campsites"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_recruitee.go b/internal/provider/type_source_recruitee.go
old mode 100755
new mode 100644
index 4b2a4255e..b268377cf
--- a/internal/provider/type_source_recruitee.go
+++ b/internal/provider/type_source_recruitee.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRecruitee struct {
- APIKey types.String `tfsdk:"api_key"`
- CompanyID types.Int64 `tfsdk:"company_id"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ CompanyID types.Int64 `tfsdk:"company_id"`
}
diff --git a/internal/provider/type_source_recurly.go b/internal/provider/type_source_recurly.go
old mode 100755
new mode 100644
index ffefea3d6..1492d62d3
--- a/internal/provider/type_source_recurly.go
+++ b/internal/provider/type_source_recurly.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRecurly struct {
- APIKey types.String `tfsdk:"api_key"`
- BeginTime types.String `tfsdk:"begin_time"`
- EndTime types.String `tfsdk:"end_time"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ BeginTime types.String `tfsdk:"begin_time"`
+ EndTime types.String `tfsdk:"end_time"`
}
diff --git a/internal/provider/type_source_redshift.go b/internal/provider/type_source_redshift.go
old mode 100755
new mode 100644
index 385f74000..0c501d691
--- a/internal/provider/type_source_redshift.go
+++ b/internal/provider/type_source_redshift.go
@@ -11,6 +11,5 @@ type SourceRedshift struct {
Password types.String `tfsdk:"password"`
Port types.Int64 `tfsdk:"port"`
Schemas []types.String `tfsdk:"schemas"`
- SourceType types.String `tfsdk:"source_type"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_retently.go b/internal/provider/type_source_retently.go
old mode 100755
new mode 100644
index 8b27b4430..9a3e9bcb6
--- a/internal/provider/type_source_retently.go
+++ b/internal/provider/type_source_retently.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceRetently struct {
Credentials *SourceRetentlyAuthenticationMechanism `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_retently1.go b/internal/provider/type_source_retently1.go
deleted file mode 100755
index f48c2639c..000000000
--- a/internal/provider/type_source_retently1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetently1 struct {
- Credentials *SourceRetentlyAuthenticationMechanism1 `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_retently_authentication_mechanism.go b/internal/provider/type_source_retently_authentication_mechanism.go
old mode 100755
new mode 100644
index ac899f31c..a0e7c69b3
--- a/internal/provider/type_source_retently_authentication_mechanism.go
+++ b/internal/provider/type_source_retently_authentication_mechanism.go
@@ -3,8 +3,8 @@
package provider
type SourceRetentlyAuthenticationMechanism struct {
- SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth `tfsdk:"source_retently_authentication_mechanism_authenticate_via_retently_o_auth"`
- SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken `tfsdk:"source_retently_authentication_mechanism_authenticate_with_api_token"`
- SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth `tfsdk:"source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth"`
- SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken `tfsdk:"source_retently_update_authentication_mechanism_authenticate_with_api_token"`
+ SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth `tfsdk:"source_retently_authentication_mechanism_authenticate_via_retently_o_auth"`
+ SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken `tfsdk:"source_retently_authentication_mechanism_authenticate_with_api_token"`
+ SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth `tfsdk:"source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth"`
+ SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken `tfsdk:"source_retently_update_authentication_mechanism_authenticate_with_api_token"`
}
diff --git a/internal/provider/type_source_retently_authentication_mechanism1.go b/internal/provider/type_source_retently_authentication_mechanism1.go
deleted file mode 100755
index 424060ed1..000000000
--- a/internal/provider/type_source_retently_authentication_mechanism1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceRetentlyAuthenticationMechanism1 struct {
- SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth1 `tfsdk:"source_retently_authentication_mechanism_authenticate_via_retently_o_auth"`
- SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken1 `tfsdk:"source_retently_authentication_mechanism_authenticate_with_api_token"`
- SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth1 `tfsdk:"source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth"`
- SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken1 `tfsdk:"source_retently_update_authentication_mechanism_authenticate_with_api_token"`
-}
diff --git a/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go b/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go
old mode 100755
new mode 100644
index 36aee2c32..56abf095b
--- a/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go
+++ b/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth1.go b/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth1.go
deleted file mode 100755
index 7efbf00c2..000000000
--- a/internal/provider/type_source_retently_authentication_mechanism_authenticate_via_retently_o_auth1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth1 struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go b/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go
old mode 100755
new mode 100644
index c37091cd0..2905cdb1e
--- a/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go
+++ b/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
AdditionalProperties types.String `tfsdk:"additional_properties"`
+ APIKey types.String `tfsdk:"api_key"`
}
diff --git a/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token1.go b/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token1.go
deleted file mode 100755
index 98ef48e54..000000000
--- a/internal/provider/type_source_retently_authentication_mechanism_authenticate_with_api_token1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken1 struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth.go b/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth.go
deleted file mode 100755
index e022c60e1..000000000
--- a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth1.go b/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth1.go
deleted file mode 100755
index 9b8db7122..000000000
--- a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_via_retently_o_auth1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth1 struct {
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token.go b/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token.go
deleted file mode 100755
index e18b2b0df..000000000
--- a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token1.go b/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token1.go
deleted file mode 100755
index 76ff3e9d3..000000000
--- a/internal/provider/type_source_retently_update_authentication_mechanism_authenticate_with_api_token1.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken1 struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_rki_covid.go b/internal/provider/type_source_rki_covid.go
old mode 100755
new mode 100644
index b045c566f..328a8e7fa
--- a/internal/provider/type_source_rki_covid.go
+++ b/internal/provider/type_source_rki_covid.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRkiCovid struct {
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_rss.go b/internal/provider/type_source_rss.go
old mode 100755
new mode 100644
index dd6612753..099f52037
--- a/internal/provider/type_source_rss.go
+++ b/internal/provider/type_source_rss.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceRss struct {
- SourceType types.String `tfsdk:"source_type"`
- URL types.String `tfsdk:"url"`
+ URL types.String `tfsdk:"url"`
}
diff --git a/internal/provider/type_source_s3.go b/internal/provider/type_source_s3.go
old mode 100755
new mode 100644
index f810d1468..239eb16ec
--- a/internal/provider/type_source_s3.go
+++ b/internal/provider/type_source_s3.go
@@ -14,7 +14,6 @@ type SourceS3 struct {
PathPattern types.String `tfsdk:"path_pattern"`
Provider *SourceS3S3AmazonWebServices `tfsdk:"provider"`
Schema types.String `tfsdk:"schema"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Streams []SourceS3FileBasedStreamConfig `tfsdk:"streams"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config.go b/internal/provider/type_source_s3_file_based_stream_config.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format.go b/internal/provider/type_source_s3_file_based_stream_config_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go b/internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go
old mode 100755
new mode 100644
index b9170e6cb..a5b7b7f35
--- a/internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_avro_format.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceS3FileBasedStreamConfigFormatAvroFormat struct {
- DoubleAsString types.Bool `tfsdk:"double_as_string"`
- Filetype types.String `tfsdk:"filetype"`
+ DoubleAsString types.Bool `tfsdk:"double_as_string"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go
old mode 100755
new mode 100644
index 3eb886dc5..651ca8520
--- a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format.go
@@ -10,7 +10,6 @@ type SourceS3FileBasedStreamConfigFormatCSVFormat struct {
Encoding types.String `tfsdk:"encoding"`
EscapeChar types.String `tfsdk:"escape_char"`
FalseValues []types.String `tfsdk:"false_values"`
- Filetype types.String `tfsdk:"filetype"`
HeaderDefinition *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition `tfsdk:"header_definition"`
InferenceType types.String `tfsdk:"inference_type"`
NullValues []types.String `tfsdk:"null_values"`
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go
old mode 100755
new mode 100644
index f9bed06d3..a347dcf52
--- a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition.go
@@ -4,6 +4,6 @@ package provider
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition struct {
SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated `tfsdk:"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated"`
- SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV `tfsdk:"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv"`
+ SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated `tfsdk:"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv"`
SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided `tfsdk:"source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go
old mode 100755
new mode 100644
index 79580fa10..b3f0edd1a
--- a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated struct {
- HeaderDefinitionType types.String `tfsdk:"header_definition_type"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv.go b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv.go
deleted file mode 100755
index e083f93bd..000000000
--- a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_from_csv.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV struct {
- HeaderDefinitionType types.String `tfsdk:"header_definition_type"`
-}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go
old mode 100755
new mode 100644
index ace5d88b2..e4d7c3c9f
--- a/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_csv_format_csv_header_definition_user_provided.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided struct {
- ColumnNames []types.String `tfsdk:"column_names"`
- HeaderDefinitionType types.String `tfsdk:"header_definition_type"`
+ ColumnNames []types.String `tfsdk:"column_names"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go b/internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go
old mode 100755
new mode 100644
index 41910f3b3..354820f12
--- a/internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_jsonl_format.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceS3FileBasedStreamConfigFormatJsonlFormat struct {
- Filetype types.String `tfsdk:"filetype"`
}
diff --git a/internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go b/internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go
old mode 100755
new mode 100644
index 8553b9023..d6a5a1489
--- a/internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go
+++ b/internal/provider/type_source_s3_file_based_stream_config_format_parquet_format.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceS3FileBasedStreamConfigFormatParquetFormat struct {
- DecimalAsFloat types.Bool `tfsdk:"decimal_as_float"`
- Filetype types.String `tfsdk:"filetype"`
+ DecimalAsFloat types.Bool `tfsdk:"decimal_as_float"`
}
diff --git a/internal/provider/type_source_s3_file_format.go b/internal/provider/type_source_s3_file_format.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_s3_file_format_avro.go b/internal/provider/type_source_s3_file_format_avro.go
old mode 100755
new mode 100644
index d33b14a94..395e2f1d5
--- a/internal/provider/type_source_s3_file_format_avro.go
+++ b/internal/provider/type_source_s3_file_format_avro.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceS3FileFormatAvro struct {
- Filetype types.String `tfsdk:"filetype"`
}
diff --git a/internal/provider/type_source_s3_file_format_csv.go b/internal/provider/type_source_s3_file_format_csv.go
old mode 100755
new mode 100644
index 86b77a95f..b6e6b2ebc
--- a/internal/provider/type_source_s3_file_format_csv.go
+++ b/internal/provider/type_source_s3_file_format_csv.go
@@ -12,7 +12,6 @@ type SourceS3FileFormatCSV struct {
DoubleQuote types.Bool `tfsdk:"double_quote"`
Encoding types.String `tfsdk:"encoding"`
EscapeChar types.String `tfsdk:"escape_char"`
- Filetype types.String `tfsdk:"filetype"`
InferDatatypes types.Bool `tfsdk:"infer_datatypes"`
NewlinesInValues types.Bool `tfsdk:"newlines_in_values"`
QuoteChar types.String `tfsdk:"quote_char"`
diff --git a/internal/provider/type_source_s3_file_format_jsonl.go b/internal/provider/type_source_s3_file_format_jsonl.go
old mode 100755
new mode 100644
index c5607f781..cba5d9dd8
--- a/internal/provider/type_source_s3_file_format_jsonl.go
+++ b/internal/provider/type_source_s3_file_format_jsonl.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceS3FileFormatJsonl struct {
BlockSize types.Int64 `tfsdk:"block_size"`
- Filetype types.String `tfsdk:"filetype"`
NewlinesInValues types.Bool `tfsdk:"newlines_in_values"`
UnexpectedFieldBehavior types.String `tfsdk:"unexpected_field_behavior"`
}
diff --git a/internal/provider/type_source_s3_file_format_parquet.go b/internal/provider/type_source_s3_file_format_parquet.go
old mode 100755
new mode 100644
index 0d86b3fc2..bb5d5c49e
--- a/internal/provider/type_source_s3_file_format_parquet.go
+++ b/internal/provider/type_source_s3_file_format_parquet.go
@@ -8,5 +8,4 @@ type SourceS3FileFormatParquet struct {
BatchSize types.Int64 `tfsdk:"batch_size"`
BufferSize types.Int64 `tfsdk:"buffer_size"`
Columns []types.String `tfsdk:"columns"`
- Filetype types.String `tfsdk:"filetype"`
}
diff --git a/internal/provider/type_source_s3_s3_amazon_web_services.go b/internal/provider/type_source_s3_s3_amazon_web_services.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go b/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go
old mode 100755
new mode 100644
index 00d6f4b8f..4df686b8b
--- a/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go
+++ b/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format.go
@@ -10,7 +10,6 @@ type SourceS3UpdateFileBasedStreamConfigFormatCSVFormat struct {
Encoding types.String `tfsdk:"encoding"`
EscapeChar types.String `tfsdk:"escape_char"`
FalseValues []types.String `tfsdk:"false_values"`
- Filetype types.String `tfsdk:"filetype"`
HeaderDefinition *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition `tfsdk:"header_definition"`
InferenceType types.String `tfsdk:"inference_type"`
NullValues []types.String `tfsdk:"null_values"`
diff --git a/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go b/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go
old mode 100755
new mode 100644
index bfe0c369c..3b9b5f6bd
--- a/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go
+++ b/internal/provider/type_source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition.go
@@ -3,7 +3,7 @@
package provider
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition struct {
- SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV `tfsdk:"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_from_csv"`
+ SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated `tfsdk:"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_from_csv"`
SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated `tfsdk:"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_autogenerated"`
SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided `tfsdk:"source_s3_update_file_based_stream_config_format_csv_format_csv_header_definition_user_provided"`
}
diff --git a/internal/provider/type_source_salesforce.go b/internal/provider/type_source_salesforce.go
old mode 100755
new mode 100644
index 479656581..6c985847e
--- a/internal/provider/type_source_salesforce.go
+++ b/internal/provider/type_source_salesforce.go
@@ -5,13 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSalesforce struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
ForceUseBulkAPI types.Bool `tfsdk:"force_use_bulk_api"`
IsSandbox types.Bool `tfsdk:"is_sandbox"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StreamsCriteria []SourceSalesforceStreamsCriteria `tfsdk:"streams_criteria"`
}
diff --git a/internal/provider/type_source_salesforce_streams_criteria.go b/internal/provider/type_source_salesforce_streams_criteria.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_salesloft.go b/internal/provider/type_source_salesloft.go
old mode 100755
new mode 100644
index 9e8fe53d8..f76e193b4
--- a/internal/provider/type_source_salesloft.go
+++ b/internal/provider/type_source_salesloft.go
@@ -6,6 +6,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSalesloft struct {
Credentials SourceSalesloftCredentials `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_salesloft_credentials.go b/internal/provider/type_source_salesloft_credentials.go
old mode 100755
new mode 100644
index 2b57abb76..4ddd77558
--- a/internal/provider/type_source_salesloft_credentials.go
+++ b/internal/provider/type_source_salesloft_credentials.go
@@ -3,8 +3,8 @@
package provider
type SourceSalesloftCredentials struct {
- SourceSalesloftCredentialsAuthenticateViaAPIKey *SourceSalesloftCredentialsAuthenticateViaAPIKey `tfsdk:"source_salesloft_credentials_authenticate_via_api_key"`
- SourceSalesloftCredentialsAuthenticateViaOAuth *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_salesloft_credentials_authenticate_via_o_auth"`
- SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey *SourceSalesloftCredentialsAuthenticateViaAPIKey `tfsdk:"source_salesloft_update_credentials_authenticate_via_api_key"`
- SourceSalesloftUpdateCredentialsAuthenticateViaOAuth *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_salesloft_update_credentials_authenticate_via_o_auth"`
+ SourceSalesloftCredentialsAuthenticateViaAPIKey *SourceAirtableAuthenticationPersonalAccessToken `tfsdk:"source_salesloft_credentials_authenticate_via_api_key"`
+ SourceSalesloftCredentialsAuthenticateViaOAuth *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_salesloft_credentials_authenticate_via_o_auth"`
+ SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey *SourceAirtableAuthenticationPersonalAccessToken `tfsdk:"source_salesloft_update_credentials_authenticate_via_api_key"`
+ SourceSalesloftUpdateCredentialsAuthenticateViaOAuth *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_salesloft_update_credentials_authenticate_via_o_auth"`
}
diff --git a/internal/provider/type_source_salesloft_credentials_authenticate_via_api_key.go b/internal/provider/type_source_salesloft_credentials_authenticate_via_api_key.go
deleted file mode 100755
index 783211f77..000000000
--- a/internal/provider/type_source_salesloft_credentials_authenticate_via_api_key.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSalesloftCredentialsAuthenticateViaAPIKey struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
-}
diff --git a/internal/provider/type_source_sap_fieldglass.go b/internal/provider/type_source_sap_fieldglass.go
deleted file mode 100755
index caa35b039..000000000
--- a/internal/provider/type_source_sap_fieldglass.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSapFieldglass struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_secoda.go b/internal/provider/type_source_secoda.go
deleted file mode 100755
index 5e584e3e2..000000000
--- a/internal/provider/type_source_secoda.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSecoda struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_sendgrid.go b/internal/provider/type_source_sendgrid.go
old mode 100755
new mode 100644
index 5c735eae5..52418e621
--- a/internal/provider/type_source_sendgrid.go
+++ b/internal/provider/type_source_sendgrid.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSendgrid struct {
- Apikey types.String `tfsdk:"apikey"`
- SourceType types.String `tfsdk:"source_type"`
- StartTime types.String `tfsdk:"start_time"`
+ Apikey types.String `tfsdk:"apikey"`
+ StartTime types.String `tfsdk:"start_time"`
}
diff --git a/internal/provider/type_source_sendinblue.go b/internal/provider/type_source_sendinblue.go
deleted file mode 100755
index 3fb0195ca..000000000
--- a/internal/provider/type_source_sendinblue.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSendinblue struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_senseforce.go b/internal/provider/type_source_senseforce.go
old mode 100755
new mode 100644
index 02e5d99ce..ea746bf71
--- a/internal/provider/type_source_senseforce.go
+++ b/internal/provider/type_source_senseforce.go
@@ -9,6 +9,5 @@ type SourceSenseforce struct {
BackendURL types.String `tfsdk:"backend_url"`
DatasetID types.String `tfsdk:"dataset_id"`
SliceRange types.Int64 `tfsdk:"slice_range"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_sentry.go b/internal/provider/type_source_sentry.go
old mode 100755
new mode 100644
index ee8bc15c7..f1a8a979e
--- a/internal/provider/type_source_sentry.go
+++ b/internal/provider/type_source_sentry.go
@@ -10,5 +10,4 @@ type SourceSentry struct {
Hostname types.String `tfsdk:"hostname"`
Organization types.String `tfsdk:"organization"`
Project types.String `tfsdk:"project"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_sftp.go b/internal/provider/type_source_sftp.go
old mode 100755
new mode 100644
index d9755a9b1..7e3c8199a
--- a/internal/provider/type_source_sftp.go
+++ b/internal/provider/type_source_sftp.go
@@ -11,6 +11,5 @@ type SourceSftp struct {
FolderPath types.String `tfsdk:"folder_path"`
Host types.String `tfsdk:"host"`
Port types.Int64 `tfsdk:"port"`
- SourceType types.String `tfsdk:"source_type"`
User types.String `tfsdk:"user"`
}
diff --git a/internal/provider/type_source_sftp_authentication_wildcard.go b/internal/provider/type_source_sftp_authentication_wildcard.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go b/internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go
old mode 100755
new mode 100644
index 120737475..d7956d1c3
--- a/internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go
+++ b/internal/provider/type_source_sftp_authentication_wildcard_password_authentication.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSftpAuthenticationWildcardPasswordAuthentication struct {
- AuthMethod types.String `tfsdk:"auth_method"`
AuthUserPassword types.String `tfsdk:"auth_user_password"`
}
diff --git a/internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go b/internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go
old mode 100755
new mode 100644
index ab3fd940f..2f984c797
--- a/internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go
+++ b/internal/provider/type_source_sftp_authentication_wildcard_ssh_key_authentication.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSftpAuthenticationWildcardSSHKeyAuthentication struct {
- AuthMethod types.String `tfsdk:"auth_method"`
AuthSSHKey types.String `tfsdk:"auth_ssh_key"`
}
diff --git a/internal/provider/type_source_sftp_bulk.go b/internal/provider/type_source_sftp_bulk.go
old mode 100755
new mode 100644
index 1936ce272..a0716520f
--- a/internal/provider/type_source_sftp_bulk.go
+++ b/internal/provider/type_source_sftp_bulk.go
@@ -14,7 +14,6 @@ type SourceSftpBulk struct {
Port types.Int64 `tfsdk:"port"`
PrivateKey types.String `tfsdk:"private_key"`
Separator types.String `tfsdk:"separator"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
StreamName types.String `tfsdk:"stream_name"`
Username types.String `tfsdk:"username"`
diff --git a/internal/provider/type_source_shopify.go b/internal/provider/type_source_shopify.go
old mode 100755
new mode 100644
index 9aafa332b..648982a01
--- a/internal/provider/type_source_shopify.go
+++ b/internal/provider/type_source_shopify.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceShopify struct {
Credentials *SourceShopifyShopifyAuthorizationMethod `tfsdk:"credentials"`
Shop types.String `tfsdk:"shop"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_shopify_shopify_authorization_method.go b/internal/provider/type_source_shopify_shopify_authorization_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_shopify_shopify_authorization_method_api_password.go b/internal/provider/type_source_shopify_shopify_authorization_method_api_password.go
old mode 100755
new mode 100644
index d32dbe9b5..ba214c915
--- a/internal/provider/type_source_shopify_shopify_authorization_method_api_password.go
+++ b/internal/provider/type_source_shopify_shopify_authorization_method_api_password.go
@@ -6,5 +6,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceShopifyShopifyAuthorizationMethodAPIPassword struct {
APIPassword types.String `tfsdk:"api_password"`
- AuthMethod types.String `tfsdk:"auth_method"`
}
diff --git a/internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go b/internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go
old mode 100755
new mode 100644
index 113b31a99..4a3a7bf91
--- a/internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go
+++ b/internal/provider/type_source_shopify_shopify_authorization_method_o_auth20.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceShopifyShopifyAuthorizationMethodOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
}
diff --git a/internal/provider/type_source_shortio.go b/internal/provider/type_source_shortio.go
old mode 100755
new mode 100644
index a3377140c..ccb357853
--- a/internal/provider/type_source_shortio.go
+++ b/internal/provider/type_source_shortio.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceShortio struct {
- DomainID types.String `tfsdk:"domain_id"`
- SecretKey types.String `tfsdk:"secret_key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ DomainID types.String `tfsdk:"domain_id"`
+ SecretKey types.String `tfsdk:"secret_key"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_slack.go b/internal/provider/type_source_slack.go
old mode 100755
new mode 100644
index 2a837168e..c4ed434d9
--- a/internal/provider/type_source_slack.go
+++ b/internal/provider/type_source_slack.go
@@ -9,6 +9,5 @@ type SourceSlack struct {
Credentials *SourceSlackAuthenticationMechanism `tfsdk:"credentials"`
JoinChannels types.Bool `tfsdk:"join_channels"`
LookbackWindow types.Int64 `tfsdk:"lookback_window"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_slack_authentication_mechanism.go b/internal/provider/type_source_slack_authentication_mechanism.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_slack_authentication_mechanism_api_token.go b/internal/provider/type_source_slack_authentication_mechanism_api_token.go
old mode 100755
new mode 100644
index 70b0fe099..1b2fdd7c2
--- a/internal/provider/type_source_slack_authentication_mechanism_api_token.go
+++ b/internal/provider/type_source_slack_authentication_mechanism_api_token.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSlackAuthenticationMechanismAPIToken struct {
- APIToken types.String `tfsdk:"api_token"`
- OptionTitle types.String `tfsdk:"option_title"`
+ APIToken types.String `tfsdk:"api_token"`
}
diff --git a/internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go b/internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go
old mode 100755
new mode 100644
index cecf18f87..67b083ac9
--- a/internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go
+++ b/internal/provider/type_source_slack_authentication_mechanism_sign_in_via_slack_o_auth.go
@@ -8,5 +8,4 @@ type SourceSlackAuthenticationMechanismSignInViaSlackOAuth struct {
AccessToken types.String `tfsdk:"access_token"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- OptionTitle types.String `tfsdk:"option_title"`
}
diff --git a/internal/provider/type_source_smaily.go b/internal/provider/type_source_smaily.go
old mode 100755
new mode 100644
index 36cdf373a..7db94f327
--- a/internal/provider/type_source_smaily.go
+++ b/internal/provider/type_source_smaily.go
@@ -8,5 +8,4 @@ type SourceSmaily struct {
APIPassword types.String `tfsdk:"api_password"`
APISubdomain types.String `tfsdk:"api_subdomain"`
APIUsername types.String `tfsdk:"api_username"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_smartengage.go b/internal/provider/type_source_smartengage.go
deleted file mode 100755
index 53cc5c24b..000000000
--- a/internal/provider/type_source_smartengage.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSmartengage struct {
- APIKey types.String `tfsdk:"api_key"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_smartsheets.go b/internal/provider/type_source_smartsheets.go
old mode 100755
new mode 100644
index a181611f1..6ff6f9bdb
--- a/internal/provider/type_source_smartsheets.go
+++ b/internal/provider/type_source_smartsheets.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSmartsheets struct {
Credentials SourceSmartsheetsAuthorizationMethod `tfsdk:"credentials"`
MetadataFields []types.String `tfsdk:"metadata_fields"`
- SourceType types.String `tfsdk:"source_type"`
SpreadsheetID types.String `tfsdk:"spreadsheet_id"`
StartDatetime types.String `tfsdk:"start_datetime"`
}
diff --git a/internal/provider/type_source_smartsheets_authorization_method.go b/internal/provider/type_source_smartsheets_authorization_method.go
old mode 100755
new mode 100644
index cc020ef37..be67e9e9a
--- a/internal/provider/type_source_smartsheets_authorization_method.go
+++ b/internal/provider/type_source_smartsheets_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourceSmartsheetsAuthorizationMethod struct {
- SourceSmartsheetsAuthorizationMethodAPIAccessToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_smartsheets_authorization_method_api_access_token"`
- SourceSmartsheetsAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_smartsheets_authorization_method_o_auth2_0"`
- SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_smartsheets_update_authorization_method_api_access_token"`
- SourceSmartsheetsUpdateAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_smartsheets_update_authorization_method_o_auth2_0"`
+ SourceSmartsheetsAuthorizationMethodAPIAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_smartsheets_authorization_method_api_access_token"`
+ SourceSmartsheetsAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_smartsheets_authorization_method_o_auth2_0"`
+ SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_smartsheets_update_authorization_method_api_access_token"`
+ SourceSmartsheetsUpdateAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_smartsheets_update_authorization_method_o_auth2_0"`
}
diff --git a/internal/provider/type_source_snapchat_marketing.go b/internal/provider/type_source_snapchat_marketing.go
old mode 100755
new mode 100644
index cd6ff2788..4abcd1699
--- a/internal/provider/type_source_snapchat_marketing.go
+++ b/internal/provider/type_source_snapchat_marketing.go
@@ -9,6 +9,5 @@ type SourceSnapchatMarketing struct {
ClientSecret types.String `tfsdk:"client_secret"`
EndDate types.String `tfsdk:"end_date"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_snowflake.go b/internal/provider/type_source_snowflake.go
old mode 100755
new mode 100644
index 0814b5578..b386700c6
--- a/internal/provider/type_source_snowflake.go
+++ b/internal/provider/type_source_snowflake.go
@@ -11,6 +11,5 @@ type SourceSnowflake struct {
JdbcURLParams types.String `tfsdk:"jdbc_url_params"`
Role types.String `tfsdk:"role"`
Schema types.String `tfsdk:"schema"`
- SourceType types.String `tfsdk:"source_type"`
Warehouse types.String `tfsdk:"warehouse"`
}
diff --git a/internal/provider/type_source_snowflake_authorization_method.go b/internal/provider/type_source_snowflake_authorization_method.go
old mode 100755
new mode 100644
index 12abdc74c..57908a1da
--- a/internal/provider/type_source_snowflake_authorization_method.go
+++ b/internal/provider/type_source_snowflake_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourceSnowflakeAuthorizationMethod struct {
- SourceSnowflakeAuthorizationMethodOAuth20 *SourceSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_snowflake_authorization_method_o_auth2_0"`
+ SourceSnowflakeAuthorizationMethodOAuth20 *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_snowflake_authorization_method_o_auth2_0"`
SourceSnowflakeAuthorizationMethodUsernameAndPassword *SourceSnowflakeAuthorizationMethodUsernameAndPassword `tfsdk:"source_snowflake_authorization_method_username_and_password"`
- SourceSnowflakeUpdateAuthorizationMethodOAuth20 *SourceSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_snowflake_update_authorization_method_o_auth2_0"`
+ SourceSnowflakeUpdateAuthorizationMethodOAuth20 *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_snowflake_update_authorization_method_o_auth2_0"`
SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword *SourceSnowflakeAuthorizationMethodUsernameAndPassword `tfsdk:"source_snowflake_update_authorization_method_username_and_password"`
}
diff --git a/internal/provider/type_source_snowflake_authorization_method_o_auth20.go b/internal/provider/type_source_snowflake_authorization_method_o_auth20.go
deleted file mode 100755
index 682eaa68f..000000000
--- a/internal/provider/type_source_snowflake_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSnowflakeAuthorizationMethodOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
-}
diff --git a/internal/provider/type_source_snowflake_authorization_method_username_and_password.go b/internal/provider/type_source_snowflake_authorization_method_username_and_password.go
old mode 100755
new mode 100644
index 71d0bc17b..fe1dcec1c
--- a/internal/provider/type_source_snowflake_authorization_method_username_and_password.go
+++ b/internal/provider/type_source_snowflake_authorization_method_username_and_password.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSnowflakeAuthorizationMethodUsernameAndPassword struct {
- AuthType types.String `tfsdk:"auth_type"`
Password types.String `tfsdk:"password"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_sonar_cloud.go b/internal/provider/type_source_sonar_cloud.go
old mode 100755
new mode 100644
index 220497869..e2aebae12
--- a/internal/provider/type_source_sonar_cloud.go
+++ b/internal/provider/type_source_sonar_cloud.go
@@ -8,7 +8,6 @@ type SourceSonarCloud struct {
ComponentKeys []types.String `tfsdk:"component_keys"`
EndDate types.String `tfsdk:"end_date"`
Organization types.String `tfsdk:"organization"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
UserToken types.String `tfsdk:"user_token"`
}
diff --git a/internal/provider/type_source_spacex_api.go b/internal/provider/type_source_spacex_api.go
old mode 100755
new mode 100644
index f4ac31a49..d54bbcdb6
--- a/internal/provider/type_source_spacex_api.go
+++ b/internal/provider/type_source_spacex_api.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSpacexAPI struct {
- ID types.String `tfsdk:"id"`
- Options types.String `tfsdk:"options"`
- SourceType types.String `tfsdk:"source_type"`
+ ID types.String `tfsdk:"id"`
+ Options types.String `tfsdk:"options"`
}
diff --git a/internal/provider/type_source_square.go b/internal/provider/type_source_square.go
old mode 100755
new mode 100644
index 222a295ea..611ade775
--- a/internal/provider/type_source_square.go
+++ b/internal/provider/type_source_square.go
@@ -8,6 +8,5 @@ type SourceSquare struct {
Credentials *SourceSquareAuthentication `tfsdk:"credentials"`
IncludeDeletedObjects types.Bool `tfsdk:"include_deleted_objects"`
IsSandbox types.Bool `tfsdk:"is_sandbox"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_square_authentication.go b/internal/provider/type_source_square_authentication.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_square_authentication_api_key.go b/internal/provider/type_source_square_authentication_api_key.go
old mode 100755
new mode 100644
index 793b76a10..98f6d4f31
--- a/internal/provider/type_source_square_authentication_api_key.go
+++ b/internal/provider/type_source_square_authentication_api_key.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSquareAuthenticationAPIKey struct {
- APIKey types.String `tfsdk:"api_key"`
- AuthType types.String `tfsdk:"auth_type"`
+ APIKey types.String `tfsdk:"api_key"`
}
diff --git a/internal/provider/type_source_square_authentication_oauth_authentication.go b/internal/provider/type_source_square_authentication_oauth_authentication.go
old mode 100755
new mode 100644
index cd6e7a9ab..ed70b78ae
--- a/internal/provider/type_source_square_authentication_oauth_authentication.go
+++ b/internal/provider/type_source_square_authentication_oauth_authentication.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSquareAuthenticationOauthAuthentication struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
diff --git a/internal/provider/type_source_strava.go b/internal/provider/type_source_strava.go
old mode 100755
new mode 100644
index 1fcad8656..430699f52
--- a/internal/provider/type_source_strava.go
+++ b/internal/provider/type_source_strava.go
@@ -6,10 +6,8 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceStrava struct {
AthleteID types.Int64 `tfsdk:"athlete_id"`
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_stripe.go b/internal/provider/type_source_stripe.go
old mode 100755
new mode 100644
index 440e3d3a0..24d061a50
--- a/internal/provider/type_source_stripe.go
+++ b/internal/provider/type_source_stripe.go
@@ -9,6 +9,5 @@ type SourceStripe struct {
ClientSecret types.String `tfsdk:"client_secret"`
LookbackWindowDays types.Int64 `tfsdk:"lookback_window_days"`
SliceRange types.Int64 `tfsdk:"slice_range"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_survey_sparrow.go b/internal/provider/type_source_survey_sparrow.go
old mode 100755
new mode 100644
index 11158a251..aac9bebe2
--- a/internal/provider/type_source_survey_sparrow.go
+++ b/internal/provider/type_source_survey_sparrow.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSurveySparrow struct {
AccessToken types.String `tfsdk:"access_token"`
Region *SourceSurveySparrowBaseURL `tfsdk:"region"`
- SourceType types.String `tfsdk:"source_type"`
SurveyID []types.String `tfsdk:"survey_id"`
}
diff --git a/internal/provider/type_source_survey_sparrow_base_url.go b/internal/provider/type_source_survey_sparrow_base_url.go
old mode 100755
new mode 100644
index 7329ebdd4..fe4194500
--- a/internal/provider/type_source_survey_sparrow_base_url.go
+++ b/internal/provider/type_source_survey_sparrow_base_url.go
@@ -4,7 +4,7 @@ package provider
type SourceSurveySparrowBaseURL struct {
SourceSurveySparrowBaseURLEUBasedAccount *SourceSurveySparrowBaseURLEUBasedAccount `tfsdk:"source_survey_sparrow_base_url_eu_based_account"`
- SourceSurveySparrowBaseURLGlobalAccount *SourceSurveySparrowBaseURLGlobalAccount `tfsdk:"source_survey_sparrow_base_url_global_account"`
+ SourceSurveySparrowBaseURLGlobalAccount *SourceSurveySparrowBaseURLEUBasedAccount `tfsdk:"source_survey_sparrow_base_url_global_account"`
SourceSurveySparrowUpdateBaseURLEUBasedAccount *SourceSurveySparrowBaseURLEUBasedAccount `tfsdk:"source_survey_sparrow_update_base_url_eu_based_account"`
- SourceSurveySparrowUpdateBaseURLGlobalAccount *SourceSurveySparrowBaseURLGlobalAccount `tfsdk:"source_survey_sparrow_update_base_url_global_account"`
+ SourceSurveySparrowUpdateBaseURLGlobalAccount *SourceSurveySparrowBaseURLEUBasedAccount `tfsdk:"source_survey_sparrow_update_base_url_global_account"`
}
diff --git a/internal/provider/type_source_survey_sparrow_base_url_global_account.go b/internal/provider/type_source_survey_sparrow_base_url_global_account.go
deleted file mode 100755
index a4359b7a2..000000000
--- a/internal/provider/type_source_survey_sparrow_base_url_global_account.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceSurveySparrowBaseURLGlobalAccount struct {
- URLBase types.String `tfsdk:"url_base"`
-}
diff --git a/internal/provider/type_source_survey_sparrow_base_urleu_based_account.go b/internal/provider/type_source_survey_sparrow_base_urleu_based_account.go
old mode 100755
new mode 100644
index c981a8496..7846efd1f
--- a/internal/provider/type_source_survey_sparrow_base_urleu_based_account.go
+++ b/internal/provider/type_source_survey_sparrow_base_urleu_based_account.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceSurveySparrowBaseURLEUBasedAccount struct {
- URLBase types.String `tfsdk:"url_base"`
}
diff --git a/internal/provider/type_source_surveymonkey.go b/internal/provider/type_source_surveymonkey.go
old mode 100755
new mode 100644
index 8be319f5a..05f53c9fb
--- a/internal/provider/type_source_surveymonkey.go
+++ b/internal/provider/type_source_surveymonkey.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSurveymonkey struct {
Credentials *SourceSurveymonkeySurveyMonkeyAuthorizationMethod `tfsdk:"credentials"`
Origin types.String `tfsdk:"origin"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
SurveyIds []types.String `tfsdk:"survey_ids"`
}
diff --git a/internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go b/internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go
old mode 100755
new mode 100644
index 4d4c18cd2..01299834f
--- a/internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go
+++ b/internal/provider/type_source_surveymonkey_survey_monkey_authorization_method.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceSurveymonkeySurveyMonkeyAuthorizationMethod struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
}
diff --git a/internal/provider/type_source_tempo.go b/internal/provider/type_source_tempo.go
deleted file mode 100755
index 4cfa73697..000000000
--- a/internal/provider/type_source_tempo.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceTempo struct {
- APIToken types.String `tfsdk:"api_token"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_the_guardian_api.go b/internal/provider/type_source_the_guardian_api.go
old mode 100755
new mode 100644
index 54ddf0972..351f6bba1
--- a/internal/provider/type_source_the_guardian_api.go
+++ b/internal/provider/type_source_the_guardian_api.go
@@ -5,11 +5,10 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTheGuardianAPI struct {
- APIKey types.String `tfsdk:"api_key"`
- EndDate types.String `tfsdk:"end_date"`
- Query types.String `tfsdk:"query"`
- Section types.String `tfsdk:"section"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Tag types.String `tfsdk:"tag"`
+ APIKey types.String `tfsdk:"api_key"`
+ EndDate types.String `tfsdk:"end_date"`
+ Query types.String `tfsdk:"query"`
+ Section types.String `tfsdk:"section"`
+ StartDate types.String `tfsdk:"start_date"`
+ Tag types.String `tfsdk:"tag"`
}
diff --git a/internal/provider/type_source_tiktok_marketing.go b/internal/provider/type_source_tiktok_marketing.go
old mode 100755
new mode 100644
index fcd3d740b..1dcc91f0a
--- a/internal/provider/type_source_tiktok_marketing.go
+++ b/internal/provider/type_source_tiktok_marketing.go
@@ -9,6 +9,5 @@ type SourceTiktokMarketing struct {
Credentials *SourceTiktokMarketingAuthenticationMethod `tfsdk:"credentials"`
EndDate types.String `tfsdk:"end_date"`
IncludeDeleted types.Bool `tfsdk:"include_deleted"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_tiktok_marketing_authentication_method.go b/internal/provider/type_source_tiktok_marketing_authentication_method.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go b/internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go
old mode 100755
new mode 100644
index 486f6deb8..dcc560644
--- a/internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go
+++ b/internal/provider/type_source_tiktok_marketing_authentication_method_o_auth20.go
@@ -8,6 +8,5 @@ type SourceTiktokMarketingAuthenticationMethodOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
AdvertiserID types.String `tfsdk:"advertiser_id"`
AppID types.String `tfsdk:"app_id"`
- AuthType types.String `tfsdk:"auth_type"`
Secret types.String `tfsdk:"secret"`
}
diff --git a/internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go b/internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go
old mode 100755
new mode 100644
index 1fd7a9808..b524a7843
--- a/internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go
+++ b/internal/provider/type_source_tiktok_marketing_authentication_method_sandbox_access_token.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTiktokMarketingAuthenticationMethodSandboxAccessToken struct {
AccessToken types.String `tfsdk:"access_token"`
AdvertiserID types.String `tfsdk:"advertiser_id"`
- AuthType types.String `tfsdk:"auth_type"`
}
diff --git a/internal/provider/type_source_todoist.go b/internal/provider/type_source_todoist.go
old mode 100755
new mode 100644
index d9fc1b2bf..46eafb8d3
--- a/internal/provider/type_source_todoist.go
+++ b/internal/provider/type_source_todoist.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTodoist struct {
- SourceType types.String `tfsdk:"source_type"`
- Token types.String `tfsdk:"token"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_trello.go b/internal/provider/type_source_trello.go
old mode 100755
new mode 100644
index 903564225..01b81f40b
--- a/internal/provider/type_source_trello.go
+++ b/internal/provider/type_source_trello.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTrello struct {
- BoardIds []types.String `tfsdk:"board_ids"`
- Key types.String `tfsdk:"key"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Token types.String `tfsdk:"token"`
+ BoardIds []types.String `tfsdk:"board_ids"`
+ Key types.String `tfsdk:"key"`
+ StartDate types.String `tfsdk:"start_date"`
+ Token types.String `tfsdk:"token"`
}
diff --git a/internal/provider/type_source_trustpilot.go b/internal/provider/type_source_trustpilot.go
old mode 100755
new mode 100644
index fd0b90d2d..d783dcb15
--- a/internal/provider/type_source_trustpilot.go
+++ b/internal/provider/type_source_trustpilot.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTrustpilot struct {
BusinessUnits []types.String `tfsdk:"business_units"`
Credentials SourceTrustpilotAuthorizationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_trustpilot_authorization_method.go b/internal/provider/type_source_trustpilot_authorization_method.go
old mode 100755
new mode 100644
index 2a20211f6..c0b9e448c
--- a/internal/provider/type_source_trustpilot_authorization_method.go
+++ b/internal/provider/type_source_trustpilot_authorization_method.go
@@ -4,7 +4,7 @@ package provider
type SourceTrustpilotAuthorizationMethod struct {
SourceTrustpilotAuthorizationMethodAPIKey *SourceTrustpilotAuthorizationMethodAPIKey `tfsdk:"source_trustpilot_authorization_method_api_key"`
- SourceTrustpilotAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_trustpilot_authorization_method_o_auth_2_0"`
+ SourceTrustpilotAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_trustpilot_authorization_method_o_auth_2_0"`
SourceTrustpilotUpdateAuthorizationMethodAPIKey *SourceTrustpilotAuthorizationMethodAPIKey `tfsdk:"source_trustpilot_update_authorization_method_api_key"`
- SourceTrustpilotUpdateAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_trustpilot_update_authorization_method_o_auth_2_0"`
+ SourceTrustpilotUpdateAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_trustpilot_update_authorization_method_o_auth_2_0"`
}
diff --git a/internal/provider/type_source_trustpilot_authorization_method_api_key.go b/internal/provider/type_source_trustpilot_authorization_method_api_key.go
old mode 100755
new mode 100644
index 0647d67fe..76fd62446
--- a/internal/provider/type_source_trustpilot_authorization_method_api_key.go
+++ b/internal/provider/type_source_trustpilot_authorization_method_api_key.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTrustpilotAuthorizationMethodAPIKey struct {
- AuthType types.String `tfsdk:"auth_type"`
ClientID types.String `tfsdk:"client_id"`
}
diff --git a/internal/provider/type_source_tvmaze_schedule.go b/internal/provider/type_source_tvmaze_schedule.go
old mode 100755
new mode 100644
index 70eb1bb0f..fa6d9e3cd
--- a/internal/provider/type_source_tvmaze_schedule.go
+++ b/internal/provider/type_source_tvmaze_schedule.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTvmazeSchedule struct {
DomesticScheduleCountryCode types.String `tfsdk:"domestic_schedule_country_code"`
EndDate types.String `tfsdk:"end_date"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
WebScheduleCountryCode types.String `tfsdk:"web_schedule_country_code"`
}
diff --git a/internal/provider/type_source_twilio.go b/internal/provider/type_source_twilio.go
old mode 100755
new mode 100644
index 6e2463d70..c6cc6276a
--- a/internal/provider/type_source_twilio.go
+++ b/internal/provider/type_source_twilio.go
@@ -8,6 +8,5 @@ type SourceTwilio struct {
AccountSid types.String `tfsdk:"account_sid"`
AuthToken types.String `tfsdk:"auth_token"`
LookbackWindow types.Int64 `tfsdk:"lookback_window"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_twilio_taskrouter.go b/internal/provider/type_source_twilio_taskrouter.go
old mode 100755
new mode 100644
index 706e05a14..e8c37ffe5
--- a/internal/provider/type_source_twilio_taskrouter.go
+++ b/internal/provider/type_source_twilio_taskrouter.go
@@ -7,5 +7,4 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTwilioTaskrouter struct {
AccountSid types.String `tfsdk:"account_sid"`
AuthToken types.String `tfsdk:"auth_token"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_twitter.go b/internal/provider/type_source_twitter.go
old mode 100755
new mode 100644
index b782e1451..ded3d63a2
--- a/internal/provider/type_source_twitter.go
+++ b/internal/provider/type_source_twitter.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTwitter struct {
- APIKey types.String `tfsdk:"api_key"`
- EndDate types.String `tfsdk:"end_date"`
- Query types.String `tfsdk:"query"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ EndDate types.String `tfsdk:"end_date"`
+ Query types.String `tfsdk:"query"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_typeform.go b/internal/provider/type_source_typeform.go
old mode 100755
new mode 100644
index 75ed6a447..5f3cdf255
--- a/internal/provider/type_source_typeform.go
+++ b/internal/provider/type_source_typeform.go
@@ -7,6 +7,5 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceTypeform struct {
Credentials SourceTypeformAuthorizationMethod `tfsdk:"credentials"`
FormIds []types.String `tfsdk:"form_ids"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_typeform_authorization_method.go b/internal/provider/type_source_typeform_authorization_method.go
old mode 100755
new mode 100644
index 2fe6bafda..7fb08ba43
--- a/internal/provider/type_source_typeform_authorization_method.go
+++ b/internal/provider/type_source_typeform_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourceTypeformAuthorizationMethod struct {
- SourceTypeformAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_typeform_authorization_method_o_auth2_0"`
- SourceTypeformAuthorizationMethodPrivateToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_typeform_authorization_method_private_token"`
- SourceTypeformUpdateAuthorizationMethodOAuth20 *SourceGitlabAuthorizationMethodOAuth20 `tfsdk:"source_typeform_update_authorization_method_o_auth2_0"`
- SourceTypeformUpdateAuthorizationMethodPrivateToken *SourceGitlabAuthorizationMethodPrivateToken `tfsdk:"source_typeform_update_authorization_method_private_token"`
+ SourceTypeformAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_typeform_authorization_method_o_auth2_0"`
+ SourceTypeformAuthorizationMethodPrivateToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_typeform_authorization_method_private_token"`
+ SourceTypeformUpdateAuthorizationMethodOAuth20 *SourceAirtableAuthenticationOAuth20 `tfsdk:"source_typeform_update_authorization_method_o_auth2_0"`
+ SourceTypeformUpdateAuthorizationMethodPrivateToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_typeform_update_authorization_method_private_token"`
}
diff --git a/internal/provider/type_source_us_census.go b/internal/provider/type_source_us_census.go
old mode 100755
new mode 100644
index f2e5a70a9..58020a9d9
--- a/internal/provider/type_source_us_census.go
+++ b/internal/provider/type_source_us_census.go
@@ -8,5 +8,4 @@ type SourceUsCensus struct {
APIKey types.String `tfsdk:"api_key"`
QueryParams types.String `tfsdk:"query_params"`
QueryPath types.String `tfsdk:"query_path"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_vantage.go b/internal/provider/type_source_vantage.go
deleted file mode 100755
index 3ac33c11d..000000000
--- a/internal/provider/type_source_vantage.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceVantage struct {
- AccessToken types.String `tfsdk:"access_token"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_webflow.go b/internal/provider/type_source_webflow.go
old mode 100755
new mode 100644
index 5cfa929be..998df8e44
--- a/internal/provider/type_source_webflow.go
+++ b/internal/provider/type_source_webflow.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceWebflow struct {
- APIKey types.String `tfsdk:"api_key"`
- SiteID types.String `tfsdk:"site_id"`
- SourceType types.String `tfsdk:"source_type"`
+ APIKey types.String `tfsdk:"api_key"`
+ SiteID types.String `tfsdk:"site_id"`
}
diff --git a/internal/provider/type_source_whisky_hunter.go b/internal/provider/type_source_whisky_hunter.go
old mode 100755
new mode 100644
index 58cf1628b..e9ff0548f
--- a/internal/provider/type_source_whisky_hunter.go
+++ b/internal/provider/type_source_whisky_hunter.go
@@ -2,8 +2,5 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceWhiskyHunter struct {
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_wikipedia_pageviews.go b/internal/provider/type_source_wikipedia_pageviews.go
old mode 100755
new mode 100644
index 1bc5bc7e8..2526017bb
--- a/internal/provider/type_source_wikipedia_pageviews.go
+++ b/internal/provider/type_source_wikipedia_pageviews.go
@@ -5,12 +5,11 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceWikipediaPageviews struct {
- Access types.String `tfsdk:"access"`
- Agent types.String `tfsdk:"agent"`
- Article types.String `tfsdk:"article"`
- Country types.String `tfsdk:"country"`
- End types.String `tfsdk:"end"`
- Project types.String `tfsdk:"project"`
- SourceType types.String `tfsdk:"source_type"`
- Start types.String `tfsdk:"start"`
+ Access types.String `tfsdk:"access"`
+ Agent types.String `tfsdk:"agent"`
+ Article types.String `tfsdk:"article"`
+ Country types.String `tfsdk:"country"`
+ End types.String `tfsdk:"end"`
+ Project types.String `tfsdk:"project"`
+ Start types.String `tfsdk:"start"`
}
diff --git a/internal/provider/type_source_woocommerce.go b/internal/provider/type_source_woocommerce.go
old mode 100755
new mode 100644
index bf893416f..d63637b5d
--- a/internal/provider/type_source_woocommerce.go
+++ b/internal/provider/type_source_woocommerce.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceWoocommerce struct {
- APIKey types.String `tfsdk:"api_key"`
- APISecret types.String `tfsdk:"api_secret"`
- Shop types.String `tfsdk:"shop"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ APIKey types.String `tfsdk:"api_key"`
+ APISecret types.String `tfsdk:"api_secret"`
+ Shop types.String `tfsdk:"shop"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_xero.go b/internal/provider/type_source_xero.go
old mode 100755
new mode 100644
index 7cdbeaf95..3feaff199
--- a/internal/provider/type_source_xero.go
+++ b/internal/provider/type_source_xero.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceXero struct {
Authentication SourceXeroAuthenticateViaXeroOAuth `tfsdk:"authentication"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
TenantID types.String `tfsdk:"tenant_id"`
}
diff --git a/internal/provider/type_source_xero_authenticate_via_xero_o_auth.go b/internal/provider/type_source_xero_authenticate_via_xero_o_auth.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_source_xkcd.go b/internal/provider/type_source_xkcd.go
deleted file mode 100755
index 04d3e6e4c..000000000
--- a/internal/provider/type_source_xkcd.go
+++ /dev/null
@@ -1,9 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceXkcd struct {
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_yandex_metrica.go b/internal/provider/type_source_yandex_metrica.go
old mode 100755
new mode 100644
index de46f0f47..1b4134aa5
--- a/internal/provider/type_source_yandex_metrica.go
+++ b/internal/provider/type_source_yandex_metrica.go
@@ -5,9 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceYandexMetrica struct {
- AuthToken types.String `tfsdk:"auth_token"`
- CounterID types.String `tfsdk:"counter_id"`
- EndDate types.String `tfsdk:"end_date"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
+ AuthToken types.String `tfsdk:"auth_token"`
+ CounterID types.String `tfsdk:"counter_id"`
+ EndDate types.String `tfsdk:"end_date"`
+ StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_yotpo.go b/internal/provider/type_source_yotpo.go
old mode 100755
new mode 100644
index 531e2dbc9..49e8c77f7
--- a/internal/provider/type_source_yotpo.go
+++ b/internal/provider/type_source_yotpo.go
@@ -8,6 +8,5 @@ type SourceYotpo struct {
AccessToken types.String `tfsdk:"access_token"`
AppKey types.String `tfsdk:"app_key"`
Email types.String `tfsdk:"email"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
}
diff --git a/internal/provider/type_source_younium.go b/internal/provider/type_source_younium.go
old mode 100755
new mode 100644
index 5b63b2243..e30ef3897
--- a/internal/provider/type_source_younium.go
+++ b/internal/provider/type_source_younium.go
@@ -8,6 +8,5 @@ type SourceYounium struct {
LegalEntity types.String `tfsdk:"legal_entity"`
Password types.String `tfsdk:"password"`
Playground types.Bool `tfsdk:"playground"`
- SourceType types.String `tfsdk:"source_type"`
Username types.String `tfsdk:"username"`
}
diff --git a/internal/provider/type_source_youtube_analytics.go b/internal/provider/type_source_youtube_analytics.go
old mode 100755
new mode 100644
index bdd2d7f5f..bef2022f5
--- a/internal/provider/type_source_youtube_analytics.go
+++ b/internal/provider/type_source_youtube_analytics.go
@@ -2,9 +2,6 @@
package provider
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
type SourceYoutubeAnalytics struct {
Credentials SourceYoutubeAnalyticsAuthenticateViaOAuth20 `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
}
diff --git a/internal/provider/type_source_youtube_analytics1.go b/internal/provider/type_source_youtube_analytics1.go
deleted file mode 100755
index 8d4a7ac91..000000000
--- a/internal/provider/type_source_youtube_analytics1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceYoutubeAnalytics1 struct {
- Credentials SourceYoutubeAnalyticsAuthenticateViaOAuth201 `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
-}
diff --git a/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go b/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go
old mode 100755
new mode 100644
index 55e94e069..49316891c
--- a/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go
+++ b/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth20.go
@@ -5,8 +5,8 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceYoutubeAnalyticsAuthenticateViaOAuth20 struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth201.go b/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth201.go
deleted file mode 100755
index c0bfe8d54..000000000
--- a/internal/provider/type_source_youtube_analytics_authenticate_via_o_auth201.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceYoutubeAnalyticsAuthenticateViaOAuth201 struct {
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- RefreshToken types.String `tfsdk:"refresh_token"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_chat.go b/internal/provider/type_source_zendesk_chat.go
old mode 100755
new mode 100644
index e1a25cb5e..95e0d22c5
--- a/internal/provider/type_source_zendesk_chat.go
+++ b/internal/provider/type_source_zendesk_chat.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskChat struct {
Credentials *SourceZendeskChatAuthorizationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Subdomain types.String `tfsdk:"subdomain"`
}
diff --git a/internal/provider/type_source_zendesk_chat_authorization_method.go b/internal/provider/type_source_zendesk_chat_authorization_method.go
old mode 100755
new mode 100644
index f2e882dcc..1afb2f026
--- a/internal/provider/type_source_zendesk_chat_authorization_method.go
+++ b/internal/provider/type_source_zendesk_chat_authorization_method.go
@@ -3,8 +3,8 @@
package provider
type SourceZendeskChatAuthorizationMethod struct {
- SourceZendeskChatAuthorizationMethodAccessToken *SourceZendeskChatAuthorizationMethodAccessToken `tfsdk:"source_zendesk_chat_authorization_method_access_token"`
- SourceZendeskChatAuthorizationMethodOAuth20 *SourceZendeskChatAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_chat_authorization_method_o_auth2_0"`
- SourceZendeskChatUpdateAuthorizationMethodAccessToken *SourceZendeskChatAuthorizationMethodAccessToken `tfsdk:"source_zendesk_chat_update_authorization_method_access_token"`
- SourceZendeskChatUpdateAuthorizationMethodOAuth20 *SourceZendeskChatAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_chat_update_authorization_method_o_auth2_0"`
+ SourceZendeskChatAuthorizationMethodAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_zendesk_chat_authorization_method_access_token"`
+ SourceZendeskChatAuthorizationMethodOAuth20 *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_chat_authorization_method_o_auth2_0"`
+ SourceZendeskChatUpdateAuthorizationMethodAccessToken *SourceAuth0AuthenticationMethodOAuth2AccessToken `tfsdk:"source_zendesk_chat_update_authorization_method_access_token"`
+ SourceZendeskChatUpdateAuthorizationMethodOAuth20 *DestinationSnowflakeAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_chat_update_authorization_method_o_auth2_0"`
}
diff --git a/internal/provider/type_source_zendesk_chat_authorization_method_access_token.go b/internal/provider/type_source_zendesk_chat_authorization_method_access_token.go
deleted file mode 100755
index 51bfe6698..000000000
--- a/internal/provider/type_source_zendesk_chat_authorization_method_access_token.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskChatAuthorizationMethodAccessToken struct {
- AccessToken types.String `tfsdk:"access_token"`
- Credentials types.String `tfsdk:"credentials"`
-}
diff --git a/internal/provider/type_source_zendesk_chat_authorization_method_o_auth20.go b/internal/provider/type_source_zendesk_chat_authorization_method_o_auth20.go
deleted file mode 100755
index d3e8cdab4..000000000
--- a/internal/provider/type_source_zendesk_chat_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskChatAuthorizationMethodOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- Credentials types.String `tfsdk:"credentials"`
- RefreshToken types.String `tfsdk:"refresh_token"`
-}
diff --git a/internal/provider/type_source_zendesk_sunshine.go b/internal/provider/type_source_zendesk_sunshine.go
old mode 100755
new mode 100644
index 71d1a6b1d..e30afcc77
--- a/internal/provider/type_source_zendesk_sunshine.go
+++ b/internal/provider/type_source_zendesk_sunshine.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskSunshine struct {
Credentials *SourceZendeskSunshineAuthorizationMethod `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Subdomain types.String `tfsdk:"subdomain"`
}
diff --git a/internal/provider/type_source_zendesk_sunshine_authorization_method.go b/internal/provider/type_source_zendesk_sunshine_authorization_method.go
old mode 100755
new mode 100644
index b63691156..e97d74d1a
--- a/internal/provider/type_source_zendesk_sunshine_authorization_method.go
+++ b/internal/provider/type_source_zendesk_sunshine_authorization_method.go
@@ -4,7 +4,7 @@ package provider
type SourceZendeskSunshineAuthorizationMethod struct {
SourceZendeskSunshineAuthorizationMethodAPIToken *SourceZendeskSunshineAuthorizationMethodAPIToken `tfsdk:"source_zendesk_sunshine_authorization_method_api_token"`
- SourceZendeskSunshineAuthorizationMethodOAuth20 *SourceZendeskSunshineAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_sunshine_authorization_method_o_auth2_0"`
+ SourceZendeskSunshineAuthorizationMethodOAuth20 *SourceMailchimpAuthenticationOAuth20 `tfsdk:"source_zendesk_sunshine_authorization_method_o_auth2_0"`
SourceZendeskSunshineUpdateAuthorizationMethodAPIToken *SourceZendeskSunshineAuthorizationMethodAPIToken `tfsdk:"source_zendesk_sunshine_update_authorization_method_api_token"`
- SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 *SourceZendeskSunshineAuthorizationMethodOAuth20 `tfsdk:"source_zendesk_sunshine_update_authorization_method_o_auth2_0"`
+ SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 *SourceMailchimpAuthenticationOAuth20 `tfsdk:"source_zendesk_sunshine_update_authorization_method_o_auth2_0"`
}
diff --git a/internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go b/internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go
old mode 100755
new mode 100644
index 4fca9b95a..9b7adbe7f
--- a/internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go
+++ b/internal/provider/type_source_zendesk_sunshine_authorization_method_api_token.go
@@ -5,7 +5,6 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskSunshineAuthorizationMethodAPIToken struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
- Email types.String `tfsdk:"email"`
+ APIToken types.String `tfsdk:"api_token"`
+ Email types.String `tfsdk:"email"`
}
diff --git a/internal/provider/type_source_zendesk_sunshine_authorization_method_o_auth20.go b/internal/provider/type_source_zendesk_sunshine_authorization_method_o_auth20.go
deleted file mode 100755
index 5747b9c21..000000000
--- a/internal/provider/type_source_zendesk_sunshine_authorization_method_o_auth20.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSunshineAuthorizationMethodOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthMethod types.String `tfsdk:"auth_method"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
-}
diff --git a/internal/provider/type_source_zendesk_support.go b/internal/provider/type_source_zendesk_support.go
old mode 100755
new mode 100644
index 935b8835d..d3a8bfc21
--- a/internal/provider/type_source_zendesk_support.go
+++ b/internal/provider/type_source_zendesk_support.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskSupport struct {
Credentials *SourceZendeskSupportAuthentication `tfsdk:"credentials"`
IgnorePagination types.Bool `tfsdk:"ignore_pagination"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Subdomain types.String `tfsdk:"subdomain"`
}
diff --git a/internal/provider/type_source_zendesk_support1.go b/internal/provider/type_source_zendesk_support1.go
deleted file mode 100755
index 2dee43513..000000000
--- a/internal/provider/type_source_zendesk_support1.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupport1 struct {
- Credentials *SourceZendeskSupportAuthentication1 `tfsdk:"credentials"`
- IgnorePagination types.Bool `tfsdk:"ignore_pagination"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Subdomain types.String `tfsdk:"subdomain"`
-}
diff --git a/internal/provider/type_source_zendesk_support_authentication.go b/internal/provider/type_source_zendesk_support_authentication.go
old mode 100755
new mode 100644
index d7ff61a1d..3d58144dd
--- a/internal/provider/type_source_zendesk_support_authentication.go
+++ b/internal/provider/type_source_zendesk_support_authentication.go
@@ -3,8 +3,8 @@
package provider
type SourceZendeskSupportAuthentication struct {
- SourceZendeskSupportAuthenticationAPIToken *SourceZendeskSupportAuthenticationAPIToken `tfsdk:"source_zendesk_support_authentication_api_token"`
- SourceZendeskSupportAuthenticationOAuth20 *SourceZendeskSupportAuthenticationOAuth20 `tfsdk:"source_zendesk_support_authentication_o_auth2_0"`
- SourceZendeskSupportUpdateAuthenticationAPIToken *SourceZendeskSupportUpdateAuthenticationAPIToken `tfsdk:"source_zendesk_support_update_authentication_api_token"`
- SourceZendeskSupportUpdateAuthenticationOAuth20 *SourceZendeskSupportUpdateAuthenticationOAuth20 `tfsdk:"source_zendesk_support_update_authentication_o_auth2_0"`
+ SourceZendeskSupportAuthenticationAPIToken *SourceZendeskSupportAuthenticationAPIToken `tfsdk:"source_zendesk_support_authentication_api_token"`
+ SourceZendeskSupportAuthenticationOAuth20 *SourceZendeskSupportAuthenticationOAuth20 `tfsdk:"source_zendesk_support_authentication_o_auth2_0"`
+ SourceZendeskSupportUpdateAuthenticationAPIToken *SourceZendeskSupportAuthenticationAPIToken `tfsdk:"source_zendesk_support_update_authentication_api_token"`
+ SourceZendeskSupportUpdateAuthenticationOAuth20 *SourceZendeskSupportAuthenticationOAuth20 `tfsdk:"source_zendesk_support_update_authentication_o_auth2_0"`
}
diff --git a/internal/provider/type_source_zendesk_support_authentication1.go b/internal/provider/type_source_zendesk_support_authentication1.go
deleted file mode 100755
index 1cae4440a..000000000
--- a/internal/provider/type_source_zendesk_support_authentication1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceZendeskSupportAuthentication1 struct {
- SourceZendeskSupportAuthenticationAPIToken *SourceZendeskSupportAuthenticationAPIToken1 `tfsdk:"source_zendesk_support_authentication_api_token"`
- SourceZendeskSupportAuthenticationOAuth20 *SourceZendeskSupportAuthenticationOAuth201 `tfsdk:"source_zendesk_support_authentication_o_auth2_0"`
- SourceZendeskSupportUpdateAuthenticationAPIToken *SourceZendeskSupportUpdateAuthenticationAPIToken1 `tfsdk:"source_zendesk_support_update_authentication_api_token"`
- SourceZendeskSupportUpdateAuthenticationOAuth20 *SourceZendeskSupportUpdateAuthenticationOAuth201 `tfsdk:"source_zendesk_support_update_authentication_o_auth2_0"`
-}
diff --git a/internal/provider/type_source_zendesk_support_authentication_api_token.go b/internal/provider/type_source_zendesk_support_authentication_api_token.go
old mode 100755
new mode 100644
index 69e45c83b..f4987a9e0
--- a/internal/provider/type_source_zendesk_support_authentication_api_token.go
+++ b/internal/provider/type_source_zendesk_support_authentication_api_token.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskSupportAuthenticationAPIToken struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
APIToken types.String `tfsdk:"api_token"`
- Credentials types.String `tfsdk:"credentials"`
Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_zendesk_support_authentication_api_token1.go b/internal/provider/type_source_zendesk_support_authentication_api_token1.go
deleted file mode 100755
index 1a536558c..000000000
--- a/internal/provider/type_source_zendesk_support_authentication_api_token1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportAuthenticationAPIToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- Credentials types.String `tfsdk:"credentials"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_support_authentication_o_auth20.go b/internal/provider/type_source_zendesk_support_authentication_o_auth20.go
old mode 100755
new mode 100644
index 13df8eeec..d13d205c9
--- a/internal/provider/type_source_zendesk_support_authentication_o_auth20.go
+++ b/internal/provider/type_source_zendesk_support_authentication_o_auth20.go
@@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskSupportAuthenticationOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- Credentials types.String `tfsdk:"credentials"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_zendesk_support_authentication_o_auth201.go b/internal/provider/type_source_zendesk_support_authentication_o_auth201.go
deleted file mode 100755
index 102cb10e6..000000000
--- a/internal/provider/type_source_zendesk_support_authentication_o_auth201.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportAuthenticationOAuth201 struct {
- AccessToken types.String `tfsdk:"access_token"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- Credentials types.String `tfsdk:"credentials"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_support_update_authentication_api_token.go b/internal/provider/type_source_zendesk_support_update_authentication_api_token.go
deleted file mode 100755
index 44a51d5ec..000000000
--- a/internal/provider/type_source_zendesk_support_update_authentication_api_token.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportUpdateAuthenticationAPIToken struct {
- APIToken types.String `tfsdk:"api_token"`
- Credentials types.String `tfsdk:"credentials"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_support_update_authentication_api_token1.go b/internal/provider/type_source_zendesk_support_update_authentication_api_token1.go
deleted file mode 100755
index 27e7f29ce..000000000
--- a/internal/provider/type_source_zendesk_support_update_authentication_api_token1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportUpdateAuthenticationAPIToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- Credentials types.String `tfsdk:"credentials"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_support_update_authentication_o_auth20.go b/internal/provider/type_source_zendesk_support_update_authentication_o_auth20.go
deleted file mode 100755
index 2389db150..000000000
--- a/internal/provider/type_source_zendesk_support_update_authentication_o_auth20.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportUpdateAuthenticationOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- Credentials types.String `tfsdk:"credentials"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_support_update_authentication_o_auth201.go b/internal/provider/type_source_zendesk_support_update_authentication_o_auth201.go
deleted file mode 100755
index 4b2f30e24..000000000
--- a/internal/provider/type_source_zendesk_support_update_authentication_o_auth201.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskSupportUpdateAuthenticationOAuth201 struct {
- AccessToken types.String `tfsdk:"access_token"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- Credentials types.String `tfsdk:"credentials"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk.go b/internal/provider/type_source_zendesk_talk.go
old mode 100755
new mode 100644
index 9ec8b1f98..2645eec5d
--- a/internal/provider/type_source_zendesk_talk.go
+++ b/internal/provider/type_source_zendesk_talk.go
@@ -6,7 +6,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskTalk struct {
Credentials *SourceZendeskTalkAuthentication `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
Subdomain types.String `tfsdk:"subdomain"`
}
diff --git a/internal/provider/type_source_zendesk_talk1.go b/internal/provider/type_source_zendesk_talk1.go
deleted file mode 100755
index 2740c5a3b..000000000
--- a/internal/provider/type_source_zendesk_talk1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalk1 struct {
- Credentials *SourceZendeskTalkAuthentication1 `tfsdk:"credentials"`
- SourceType types.String `tfsdk:"source_type"`
- StartDate types.String `tfsdk:"start_date"`
- Subdomain types.String `tfsdk:"subdomain"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_authentication.go b/internal/provider/type_source_zendesk_talk_authentication.go
old mode 100755
new mode 100644
index b9b1befd8..8c98fd8bf
--- a/internal/provider/type_source_zendesk_talk_authentication.go
+++ b/internal/provider/type_source_zendesk_talk_authentication.go
@@ -3,8 +3,8 @@
package provider
type SourceZendeskTalkAuthentication struct {
- SourceZendeskTalkAuthenticationAPIToken *SourceZendeskTalkAuthenticationAPIToken `tfsdk:"source_zendesk_talk_authentication_api_token"`
- SourceZendeskTalkAuthenticationOAuth20 *SourceZendeskTalkAuthenticationOAuth20 `tfsdk:"source_zendesk_talk_authentication_o_auth2_0"`
- SourceZendeskTalkUpdateAuthenticationAPIToken *SourceZendeskTalkUpdateAuthenticationAPIToken `tfsdk:"source_zendesk_talk_update_authentication_api_token"`
- SourceZendeskTalkUpdateAuthenticationOAuth20 *SourceZendeskTalkUpdateAuthenticationOAuth20 `tfsdk:"source_zendesk_talk_update_authentication_o_auth2_0"`
+ SourceZendeskTalkAuthenticationAPIToken *SourceZendeskTalkAuthenticationAPIToken `tfsdk:"source_zendesk_talk_authentication_api_token"`
+ SourceZendeskTalkAuthenticationOAuth20 *SourceZendeskTalkAuthenticationOAuth20 `tfsdk:"source_zendesk_talk_authentication_o_auth2_0"`
+ SourceZendeskTalkUpdateAuthenticationAPIToken *SourceZendeskTalkAuthenticationAPIToken `tfsdk:"source_zendesk_talk_update_authentication_api_token"`
+ SourceZendeskTalkUpdateAuthenticationOAuth20 *SourceZendeskTalkAuthenticationOAuth20 `tfsdk:"source_zendesk_talk_update_authentication_o_auth2_0"`
}
diff --git a/internal/provider/type_source_zendesk_talk_authentication1.go b/internal/provider/type_source_zendesk_talk_authentication1.go
deleted file mode 100755
index a45af85ae..000000000
--- a/internal/provider/type_source_zendesk_talk_authentication1.go
+++ /dev/null
@@ -1,10 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-type SourceZendeskTalkAuthentication1 struct {
- SourceZendeskTalkAuthenticationAPIToken *SourceZendeskTalkAuthenticationAPIToken1 `tfsdk:"source_zendesk_talk_authentication_api_token"`
- SourceZendeskTalkAuthenticationOAuth20 *SourceZendeskTalkAuthenticationOAuth201 `tfsdk:"source_zendesk_talk_authentication_o_auth2_0"`
- SourceZendeskTalkUpdateAuthenticationAPIToken *SourceZendeskTalkUpdateAuthenticationAPIToken1 `tfsdk:"source_zendesk_talk_update_authentication_api_token"`
- SourceZendeskTalkUpdateAuthenticationOAuth20 *SourceZendeskTalkUpdateAuthenticationOAuth201 `tfsdk:"source_zendesk_talk_update_authentication_o_auth2_0"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_authentication_api_token.go b/internal/provider/type_source_zendesk_talk_authentication_api_token.go
old mode 100755
new mode 100644
index 3b73a8ad9..23fa76d47
--- a/internal/provider/type_source_zendesk_talk_authentication_api_token.go
+++ b/internal/provider/type_source_zendesk_talk_authentication_api_token.go
@@ -5,8 +5,7 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskTalkAuthenticationAPIToken struct {
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_zendesk_talk_authentication_api_token1.go b/internal/provider/type_source_zendesk_talk_authentication_api_token1.go
deleted file mode 100755
index 2d692a522..000000000
--- a/internal/provider/type_source_zendesk_talk_authentication_api_token1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkAuthenticationAPIToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_authentication_o_auth20.go b/internal/provider/type_source_zendesk_talk_authentication_o_auth20.go
old mode 100755
new mode 100644
index dcf3fc703..2e81fd88e
--- a/internal/provider/type_source_zendesk_talk_authentication_o_auth20.go
+++ b/internal/provider/type_source_zendesk_talk_authentication_o_auth20.go
@@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZendeskTalkAuthenticationOAuth20 struct {
AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
+ AdditionalProperties types.String `tfsdk:"additional_properties"`
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
}
diff --git a/internal/provider/type_source_zendesk_talk_authentication_o_auth201.go b/internal/provider/type_source_zendesk_talk_authentication_o_auth201.go
deleted file mode 100755
index dc240f924..000000000
--- a/internal/provider/type_source_zendesk_talk_authentication_o_auth201.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkAuthenticationOAuth201 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_update_authentication_api_token.go b/internal/provider/type_source_zendesk_talk_update_authentication_api_token.go
deleted file mode 100755
index 60fdbde41..000000000
--- a/internal/provider/type_source_zendesk_talk_update_authentication_api_token.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkUpdateAuthenticationAPIToken struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_update_authentication_api_token1.go b/internal/provider/type_source_zendesk_talk_update_authentication_api_token1.go
deleted file mode 100755
index a158aeff0..000000000
--- a/internal/provider/type_source_zendesk_talk_update_authentication_api_token1.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkUpdateAuthenticationAPIToken1 struct {
- APIToken types.String `tfsdk:"api_token"`
- AuthType types.String `tfsdk:"auth_type"`
- Email types.String `tfsdk:"email"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_update_authentication_o_auth20.go b/internal/provider/type_source_zendesk_talk_update_authentication_o_auth20.go
deleted file mode 100755
index fde3d87b3..000000000
--- a/internal/provider/type_source_zendesk_talk_update_authentication_o_auth20.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkUpdateAuthenticationOAuth20 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zendesk_talk_update_authentication_o_auth201.go b/internal/provider/type_source_zendesk_talk_update_authentication_o_auth201.go
deleted file mode 100755
index ad2342d72..000000000
--- a/internal/provider/type_source_zendesk_talk_update_authentication_o_auth201.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
-
-package provider
-
-import "github.com/hashicorp/terraform-plugin-framework/types"
-
-type SourceZendeskTalkUpdateAuthenticationOAuth201 struct {
- AccessToken types.String `tfsdk:"access_token"`
- AuthType types.String `tfsdk:"auth_type"`
- ClientID types.String `tfsdk:"client_id"`
- ClientSecret types.String `tfsdk:"client_secret"`
- AdditionalProperties types.String `tfsdk:"additional_properties"`
-}
diff --git a/internal/provider/type_source_zenloop.go b/internal/provider/type_source_zenloop.go
old mode 100755
new mode 100644
index 979c5660c..cc6048364
--- a/internal/provider/type_source_zenloop.go
+++ b/internal/provider/type_source_zenloop.go
@@ -7,7 +7,6 @@ import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZenloop struct {
APIToken types.String `tfsdk:"api_token"`
DateFrom types.String `tfsdk:"date_from"`
- SourceType types.String `tfsdk:"source_type"`
SurveyGroupID types.String `tfsdk:"survey_group_id"`
SurveyID types.String `tfsdk:"survey_id"`
}
diff --git a/internal/provider/type_source_zoho_crm.go b/internal/provider/type_source_zoho_crm.go
old mode 100755
new mode 100644
index dd7ac3972..a91de38d0
--- a/internal/provider/type_source_zoho_crm.go
+++ b/internal/provider/type_source_zoho_crm.go
@@ -11,6 +11,5 @@ type SourceZohoCrm struct {
Edition types.String `tfsdk:"edition"`
Environment types.String `tfsdk:"environment"`
RefreshToken types.String `tfsdk:"refresh_token"`
- SourceType types.String `tfsdk:"source_type"`
StartDatetime types.String `tfsdk:"start_datetime"`
}
diff --git a/internal/provider/type_source_zoom.go b/internal/provider/type_source_zoom.go
old mode 100755
new mode 100644
index edd42ec4d..ea1e68dff
--- a/internal/provider/type_source_zoom.go
+++ b/internal/provider/type_source_zoom.go
@@ -5,6 +5,5 @@ package provider
import "github.com/hashicorp/terraform-plugin-framework/types"
type SourceZoom struct {
- JwtToken types.String `tfsdk:"jwt_token"`
- SourceType types.String `tfsdk:"source_type"`
+ JwtToken types.String `tfsdk:"jwt_token"`
}
diff --git a/internal/provider/type_source_zuora.go b/internal/provider/type_source_zuora.go
old mode 100755
new mode 100644
index d7ecfde34..5c890a4f6
--- a/internal/provider/type_source_zuora.go
+++ b/internal/provider/type_source_zuora.go
@@ -8,7 +8,6 @@ type SourceZuora struct {
ClientID types.String `tfsdk:"client_id"`
ClientSecret types.String `tfsdk:"client_secret"`
DataQuery types.String `tfsdk:"data_query"`
- SourceType types.String `tfsdk:"source_type"`
StartDate types.String `tfsdk:"start_date"`
TenantEndpoint types.String `tfsdk:"tenant_endpoint"`
WindowInDays types.String `tfsdk:"window_in_days"`
diff --git a/internal/provider/type_stream_configuration.go b/internal/provider/type_stream_configuration.go
old mode 100755
new mode 100644
diff --git a/internal/provider/type_stream_configurations.go b/internal/provider/type_stream_configurations.go
old mode 100755
new mode 100644
diff --git a/internal/provider/utils.go b/internal/provider/utils.go
old mode 100755
new mode 100644
diff --git a/internal/provider/workspace_data_source.go b/internal/provider/workspace_data_source.go
old mode 100755
new mode 100644
diff --git a/internal/provider/workspace_data_source_sdk.go b/internal/provider/workspace_data_source_sdk.go
old mode 100755
new mode 100644
index 8a1fa6591..c8a484507
--- a/internal/provider/workspace_data_source_sdk.go
+++ b/internal/provider/workspace_data_source_sdk.go
@@ -8,7 +8,11 @@ import (
)
func (r *WorkspaceDataSourceModel) RefreshFromGetResponse(resp *shared.WorkspaceResponse) {
- r.DataResidency = types.StringValue(string(resp.DataResidency))
+ if resp.DataResidency != nil {
+ r.DataResidency = types.StringValue(string(*resp.DataResidency))
+ } else {
+ r.DataResidency = types.StringNull()
+ }
r.Name = types.StringValue(resp.Name)
r.WorkspaceID = types.StringValue(resp.WorkspaceID)
}
diff --git a/internal/provider/workspace_resource.go b/internal/provider/workspace_resource.go
old mode 100755
new mode 100644
diff --git a/internal/provider/workspace_resource_sdk.go b/internal/provider/workspace_resource_sdk.go
old mode 100755
new mode 100644
index 0281dbdd6..d4b41dceb
--- a/internal/provider/workspace_resource_sdk.go
+++ b/internal/provider/workspace_resource_sdk.go
@@ -34,7 +34,11 @@ func (r *WorkspaceResourceModel) ToDeleteSDKType() *shared.WorkspaceCreateReques
}
func (r *WorkspaceResourceModel) RefreshFromGetResponse(resp *shared.WorkspaceResponse) {
- r.DataResidency = types.StringValue(string(resp.DataResidency))
+ if resp.DataResidency != nil {
+ r.DataResidency = types.StringValue(string(*resp.DataResidency))
+ } else {
+ r.DataResidency = types.StringNull()
+ }
r.Name = types.StringValue(resp.Name)
r.WorkspaceID = types.StringValue(resp.WorkspaceID)
}
diff --git a/internal/sdk/connections.go b/internal/sdk/connections.go
old mode 100755
new mode 100644
index 971d0fabe..5c134d711
--- a/internal/sdk/connections.go
+++ b/internal/sdk/connections.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -29,7 +30,7 @@ func (s *connections) CreateConnection(ctx context.Context, request shared.Conne
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/connections"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -45,7 +46,7 @@ func (s *connections) CreateConnection(ctx context.Context, request shared.Conne
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -78,12 +79,14 @@ func (s *connections) CreateConnection(ctx context.Context, request shared.Conne
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.ConnectionResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.ConnectionResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.ConnectionResponse = out
+ res.ConnectionResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -106,7 +109,7 @@ func (s *connections) DeleteConnection(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -156,7 +159,7 @@ func (s *connections) GetConnection(ctx context.Context, request operations.GetC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -186,12 +189,14 @@ func (s *connections) GetConnection(ctx context.Context, request operations.GetC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.ConnectionResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.ConnectionResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.ConnectionResponse = out
+ res.ConnectionResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -211,7 +216,7 @@ func (s *connections) ListConnections(ctx context.Context, request operations.Li
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -245,12 +250,14 @@ func (s *connections) ListConnections(ctx context.Context, request operations.Li
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.ConnectionsResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.ConnectionsResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.ConnectionsResponse = out
+ res.ConnectionsResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -268,7 +275,7 @@ func (s *connections) PatchConnection(ctx context.Context, request operations.Pa
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "ConnectionPatchRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ConnectionPatchRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -284,7 +291,7 @@ func (s *connections) PatchConnection(ctx context.Context, request operations.Pa
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -317,12 +324,14 @@ func (s *connections) PatchConnection(ctx context.Context, request operations.Pa
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.ConnectionResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.ConnectionResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.ConnectionResponse = out
+ res.ConnectionResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
diff --git a/internal/sdk/destinations.go b/internal/sdk/destinations.go
old mode 100755
new mode 100644
index aaa586ce9..bb8b48b74
--- a/internal/sdk/destinations.go
+++ b/internal/sdk/destinations.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -26,15 +27,14 @@ func newDestinations(sdkConfig sdkConfiguration) *destinations {
// CreateDestination - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *destinations) CreateDestination(ctx context.Context, request shared.DestinationCreateRequest) (*operations.CreateDestinationResponse, error) {
+func (s *destinations) CreateDestination(ctx context.Context, request *shared.DestinationCreateRequest) (*operations.CreateDestinationResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43,7 +43,7 @@ func (s *destinations) CreateDestination(ctx context.Context, request shared.Des
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -76,12 +76,14 @@ func (s *destinations) CreateDestination(ctx context.Context, request shared.Des
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -95,15 +97,14 @@ func (s *destinations) CreateDestination(ctx context.Context, request shared.Des
// CreateDestinationAwsDatalake - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationAwsDatalake(ctx context.Context, request shared.DestinationAwsDatalakeCreateRequest) (*operations.CreateDestinationAwsDatalakeResponse, error) {
+func (s *destinations) CreateDestinationAwsDatalake(ctx context.Context, request *shared.DestinationAwsDatalakeCreateRequest) (*operations.CreateDestinationAwsDatalakeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#AwsDatalake"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -112,7 +113,7 @@ func (s *destinations) CreateDestinationAwsDatalake(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -145,12 +146,14 @@ func (s *destinations) CreateDestinationAwsDatalake(ctx context.Context, request
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -162,15 +165,14 @@ func (s *destinations) CreateDestinationAwsDatalake(ctx context.Context, request
// CreateDestinationAzureBlobStorage - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationAzureBlobStorage(ctx context.Context, request shared.DestinationAzureBlobStorageCreateRequest) (*operations.CreateDestinationAzureBlobStorageResponse, error) {
+func (s *destinations) CreateDestinationAzureBlobStorage(ctx context.Context, request *shared.DestinationAzureBlobStorageCreateRequest) (*operations.CreateDestinationAzureBlobStorageResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#AzureBlobStorage"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -179,7 +181,7 @@ func (s *destinations) CreateDestinationAzureBlobStorage(ctx context.Context, re
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -212,12 +214,14 @@ func (s *destinations) CreateDestinationAzureBlobStorage(ctx context.Context, re
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -229,15 +233,14 @@ func (s *destinations) CreateDestinationAzureBlobStorage(ctx context.Context, re
// CreateDestinationBigquery - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationBigquery(ctx context.Context, request shared.DestinationBigqueryCreateRequest) (*operations.CreateDestinationBigqueryResponse, error) {
+func (s *destinations) CreateDestinationBigquery(ctx context.Context, request *shared.DestinationBigqueryCreateRequest) (*operations.CreateDestinationBigqueryResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Bigquery"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -246,7 +249,7 @@ func (s *destinations) CreateDestinationBigquery(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -279,12 +282,14 @@ func (s *destinations) CreateDestinationBigquery(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -296,15 +301,14 @@ func (s *destinations) CreateDestinationBigquery(ctx context.Context, request sh
// CreateDestinationBigqueryDenormalized - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationBigqueryDenormalized(ctx context.Context, request shared.DestinationBigqueryDenormalizedCreateRequest) (*operations.CreateDestinationBigqueryDenormalizedResponse, error) {
+func (s *destinations) CreateDestinationBigqueryDenormalized(ctx context.Context, request *shared.DestinationBigqueryDenormalizedCreateRequest) (*operations.CreateDestinationBigqueryDenormalizedResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#BigqueryDenormalized"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -313,7 +317,7 @@ func (s *destinations) CreateDestinationBigqueryDenormalized(ctx context.Context
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -346,12 +350,14 @@ func (s *destinations) CreateDestinationBigqueryDenormalized(ctx context.Context
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -363,15 +369,14 @@ func (s *destinations) CreateDestinationBigqueryDenormalized(ctx context.Context
// CreateDestinationClickhouse - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationClickhouse(ctx context.Context, request shared.DestinationClickhouseCreateRequest) (*operations.CreateDestinationClickhouseResponse, error) {
+func (s *destinations) CreateDestinationClickhouse(ctx context.Context, request *shared.DestinationClickhouseCreateRequest) (*operations.CreateDestinationClickhouseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Clickhouse"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -380,7 +385,7 @@ func (s *destinations) CreateDestinationClickhouse(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -413,12 +418,14 @@ func (s *destinations) CreateDestinationClickhouse(ctx context.Context, request
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -430,15 +437,14 @@ func (s *destinations) CreateDestinationClickhouse(ctx context.Context, request
// CreateDestinationConvex - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationConvex(ctx context.Context, request shared.DestinationConvexCreateRequest) (*operations.CreateDestinationConvexResponse, error) {
+func (s *destinations) CreateDestinationConvex(ctx context.Context, request *shared.DestinationConvexCreateRequest) (*operations.CreateDestinationConvexResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Convex"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -447,7 +453,7 @@ func (s *destinations) CreateDestinationConvex(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -480,12 +486,14 @@ func (s *destinations) CreateDestinationConvex(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -497,15 +505,14 @@ func (s *destinations) CreateDestinationConvex(ctx context.Context, request shar
// CreateDestinationCumulio - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationCumulio(ctx context.Context, request shared.DestinationCumulioCreateRequest) (*operations.CreateDestinationCumulioResponse, error) {
+func (s *destinations) CreateDestinationCumulio(ctx context.Context, request *shared.DestinationCumulioCreateRequest) (*operations.CreateDestinationCumulioResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Cumulio"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -514,7 +521,7 @@ func (s *destinations) CreateDestinationCumulio(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -547,12 +554,14 @@ func (s *destinations) CreateDestinationCumulio(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -564,15 +573,14 @@ func (s *destinations) CreateDestinationCumulio(ctx context.Context, request sha
// CreateDestinationDatabend - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationDatabend(ctx context.Context, request shared.DestinationDatabendCreateRequest) (*operations.CreateDestinationDatabendResponse, error) {
+func (s *destinations) CreateDestinationDatabend(ctx context.Context, request *shared.DestinationDatabendCreateRequest) (*operations.CreateDestinationDatabendResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Databend"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -581,7 +589,7 @@ func (s *destinations) CreateDestinationDatabend(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -614,12 +622,14 @@ func (s *destinations) CreateDestinationDatabend(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -631,15 +641,14 @@ func (s *destinations) CreateDestinationDatabend(ctx context.Context, request sh
// CreateDestinationDatabricks - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationDatabricks(ctx context.Context, request shared.DestinationDatabricksCreateRequest) (*operations.CreateDestinationDatabricksResponse, error) {
+func (s *destinations) CreateDestinationDatabricks(ctx context.Context, request *shared.DestinationDatabricksCreateRequest) (*operations.CreateDestinationDatabricksResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Databricks"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -648,7 +657,7 @@ func (s *destinations) CreateDestinationDatabricks(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -681,12 +690,14 @@ func (s *destinations) CreateDestinationDatabricks(ctx context.Context, request
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -698,15 +709,14 @@ func (s *destinations) CreateDestinationDatabricks(ctx context.Context, request
// CreateDestinationDevNull - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationDevNull(ctx context.Context, request shared.DestinationDevNullCreateRequest) (*operations.CreateDestinationDevNullResponse, error) {
+func (s *destinations) CreateDestinationDevNull(ctx context.Context, request *shared.DestinationDevNullCreateRequest) (*operations.CreateDestinationDevNullResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#DevNull"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -715,7 +725,7 @@ func (s *destinations) CreateDestinationDevNull(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -748,12 +758,14 @@ func (s *destinations) CreateDestinationDevNull(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -765,15 +777,14 @@ func (s *destinations) CreateDestinationDevNull(ctx context.Context, request sha
// CreateDestinationDynamodb - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationDynamodb(ctx context.Context, request shared.DestinationDynamodbCreateRequest) (*operations.CreateDestinationDynamodbResponse, error) {
+func (s *destinations) CreateDestinationDynamodb(ctx context.Context, request *shared.DestinationDynamodbCreateRequest) (*operations.CreateDestinationDynamodbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Dynamodb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -782,7 +793,7 @@ func (s *destinations) CreateDestinationDynamodb(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -815,12 +826,14 @@ func (s *destinations) CreateDestinationDynamodb(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -832,15 +845,14 @@ func (s *destinations) CreateDestinationDynamodb(ctx context.Context, request sh
// CreateDestinationElasticsearch - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationElasticsearch(ctx context.Context, request shared.DestinationElasticsearchCreateRequest) (*operations.CreateDestinationElasticsearchResponse, error) {
+func (s *destinations) CreateDestinationElasticsearch(ctx context.Context, request *shared.DestinationElasticsearchCreateRequest) (*operations.CreateDestinationElasticsearchResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Elasticsearch"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -849,7 +861,7 @@ func (s *destinations) CreateDestinationElasticsearch(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -882,12 +894,14 @@ func (s *destinations) CreateDestinationElasticsearch(ctx context.Context, reque
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -899,15 +913,14 @@ func (s *destinations) CreateDestinationElasticsearch(ctx context.Context, reque
// CreateDestinationFirebolt - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationFirebolt(ctx context.Context, request shared.DestinationFireboltCreateRequest) (*operations.CreateDestinationFireboltResponse, error) {
+func (s *destinations) CreateDestinationFirebolt(ctx context.Context, request *shared.DestinationFireboltCreateRequest) (*operations.CreateDestinationFireboltResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Firebolt"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -916,7 +929,7 @@ func (s *destinations) CreateDestinationFirebolt(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -949,12 +962,14 @@ func (s *destinations) CreateDestinationFirebolt(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -966,15 +981,14 @@ func (s *destinations) CreateDestinationFirebolt(ctx context.Context, request sh
// CreateDestinationFirestore - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationFirestore(ctx context.Context, request shared.DestinationFirestoreCreateRequest) (*operations.CreateDestinationFirestoreResponse, error) {
+func (s *destinations) CreateDestinationFirestore(ctx context.Context, request *shared.DestinationFirestoreCreateRequest) (*operations.CreateDestinationFirestoreResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Firestore"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -983,7 +997,7 @@ func (s *destinations) CreateDestinationFirestore(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1016,12 +1030,14 @@ func (s *destinations) CreateDestinationFirestore(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1033,15 +1049,14 @@ func (s *destinations) CreateDestinationFirestore(ctx context.Context, request s
// CreateDestinationGcs - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationGcs(ctx context.Context, request shared.DestinationGcsCreateRequest) (*operations.CreateDestinationGcsResponse, error) {
+func (s *destinations) CreateDestinationGcs(ctx context.Context, request *shared.DestinationGcsCreateRequest) (*operations.CreateDestinationGcsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Gcs"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1050,7 +1065,7 @@ func (s *destinations) CreateDestinationGcs(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1083,12 +1098,14 @@ func (s *destinations) CreateDestinationGcs(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1100,15 +1117,14 @@ func (s *destinations) CreateDestinationGcs(ctx context.Context, request shared.
// CreateDestinationGoogleSheets - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationGoogleSheets(ctx context.Context, request shared.DestinationGoogleSheetsCreateRequest) (*operations.CreateDestinationGoogleSheetsResponse, error) {
+func (s *destinations) CreateDestinationGoogleSheets(ctx context.Context, request *shared.DestinationGoogleSheetsCreateRequest) (*operations.CreateDestinationGoogleSheetsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#GoogleSheets"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1117,7 +1133,7 @@ func (s *destinations) CreateDestinationGoogleSheets(ctx context.Context, reques
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1150,12 +1166,14 @@ func (s *destinations) CreateDestinationGoogleSheets(ctx context.Context, reques
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1167,15 +1185,14 @@ func (s *destinations) CreateDestinationGoogleSheets(ctx context.Context, reques
// CreateDestinationKeen - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationKeen(ctx context.Context, request shared.DestinationKeenCreateRequest) (*operations.CreateDestinationKeenResponse, error) {
+func (s *destinations) CreateDestinationKeen(ctx context.Context, request *shared.DestinationKeenCreateRequest) (*operations.CreateDestinationKeenResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Keen"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1184,7 +1201,7 @@ func (s *destinations) CreateDestinationKeen(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1217,12 +1234,14 @@ func (s *destinations) CreateDestinationKeen(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1234,15 +1253,14 @@ func (s *destinations) CreateDestinationKeen(ctx context.Context, request shared
// CreateDestinationKinesis - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationKinesis(ctx context.Context, request shared.DestinationKinesisCreateRequest) (*operations.CreateDestinationKinesisResponse, error) {
+func (s *destinations) CreateDestinationKinesis(ctx context.Context, request *shared.DestinationKinesisCreateRequest) (*operations.CreateDestinationKinesisResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Kinesis"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1251,7 +1269,7 @@ func (s *destinations) CreateDestinationKinesis(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1284,12 +1302,14 @@ func (s *destinations) CreateDestinationKinesis(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1301,15 +1321,14 @@ func (s *destinations) CreateDestinationKinesis(ctx context.Context, request sha
// CreateDestinationLangchain - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationLangchain(ctx context.Context, request shared.DestinationLangchainCreateRequest) (*operations.CreateDestinationLangchainResponse, error) {
+func (s *destinations) CreateDestinationLangchain(ctx context.Context, request *shared.DestinationLangchainCreateRequest) (*operations.CreateDestinationLangchainResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Langchain"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1318,7 +1337,7 @@ func (s *destinations) CreateDestinationLangchain(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1351,12 +1370,14 @@ func (s *destinations) CreateDestinationLangchain(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1368,15 +1389,14 @@ func (s *destinations) CreateDestinationLangchain(ctx context.Context, request s
// CreateDestinationMilvus - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationMilvus(ctx context.Context, request shared.DestinationMilvusCreateRequest) (*operations.CreateDestinationMilvusResponse, error) {
+func (s *destinations) CreateDestinationMilvus(ctx context.Context, request *shared.DestinationMilvusCreateRequest) (*operations.CreateDestinationMilvusResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Milvus"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1385,7 +1405,7 @@ func (s *destinations) CreateDestinationMilvus(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1418,12 +1438,14 @@ func (s *destinations) CreateDestinationMilvus(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1435,15 +1457,14 @@ func (s *destinations) CreateDestinationMilvus(ctx context.Context, request shar
// CreateDestinationMongodb - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationMongodb(ctx context.Context, request shared.DestinationMongodbCreateRequest) (*operations.CreateDestinationMongodbResponse, error) {
+func (s *destinations) CreateDestinationMongodb(ctx context.Context, request *shared.DestinationMongodbCreateRequest) (*operations.CreateDestinationMongodbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Mongodb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1452,7 +1473,7 @@ func (s *destinations) CreateDestinationMongodb(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1485,12 +1506,14 @@ func (s *destinations) CreateDestinationMongodb(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1502,15 +1525,14 @@ func (s *destinations) CreateDestinationMongodb(ctx context.Context, request sha
// CreateDestinationMssql - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationMssql(ctx context.Context, request shared.DestinationMssqlCreateRequest) (*operations.CreateDestinationMssqlResponse, error) {
+func (s *destinations) CreateDestinationMssql(ctx context.Context, request *shared.DestinationMssqlCreateRequest) (*operations.CreateDestinationMssqlResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Mssql"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1519,7 +1541,7 @@ func (s *destinations) CreateDestinationMssql(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1552,12 +1574,14 @@ func (s *destinations) CreateDestinationMssql(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1569,15 +1593,14 @@ func (s *destinations) CreateDestinationMssql(ctx context.Context, request share
// CreateDestinationMysql - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationMysql(ctx context.Context, request shared.DestinationMysqlCreateRequest) (*operations.CreateDestinationMysqlResponse, error) {
+func (s *destinations) CreateDestinationMysql(ctx context.Context, request *shared.DestinationMysqlCreateRequest) (*operations.CreateDestinationMysqlResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Mysql"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1586,7 +1609,7 @@ func (s *destinations) CreateDestinationMysql(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1619,12 +1642,14 @@ func (s *destinations) CreateDestinationMysql(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1636,15 +1661,14 @@ func (s *destinations) CreateDestinationMysql(ctx context.Context, request share
// CreateDestinationOracle - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationOracle(ctx context.Context, request shared.DestinationOracleCreateRequest) (*operations.CreateDestinationOracleResponse, error) {
+func (s *destinations) CreateDestinationOracle(ctx context.Context, request *shared.DestinationOracleCreateRequest) (*operations.CreateDestinationOracleResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Oracle"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1653,7 +1677,7 @@ func (s *destinations) CreateDestinationOracle(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1686,12 +1710,14 @@ func (s *destinations) CreateDestinationOracle(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1703,15 +1729,14 @@ func (s *destinations) CreateDestinationOracle(ctx context.Context, request shar
// CreateDestinationPinecone - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationPinecone(ctx context.Context, request shared.DestinationPineconeCreateRequest) (*operations.CreateDestinationPineconeResponse, error) {
+func (s *destinations) CreateDestinationPinecone(ctx context.Context, request *shared.DestinationPineconeCreateRequest) (*operations.CreateDestinationPineconeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Pinecone"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1720,7 +1745,7 @@ func (s *destinations) CreateDestinationPinecone(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1753,12 +1778,14 @@ func (s *destinations) CreateDestinationPinecone(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1770,15 +1797,14 @@ func (s *destinations) CreateDestinationPinecone(ctx context.Context, request sh
// CreateDestinationPostgres - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationPostgres(ctx context.Context, request shared.DestinationPostgresCreateRequest) (*operations.CreateDestinationPostgresResponse, error) {
+func (s *destinations) CreateDestinationPostgres(ctx context.Context, request *shared.DestinationPostgresCreateRequest) (*operations.CreateDestinationPostgresResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Postgres"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1787,7 +1813,7 @@ func (s *destinations) CreateDestinationPostgres(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1820,12 +1846,14 @@ func (s *destinations) CreateDestinationPostgres(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1837,15 +1865,14 @@ func (s *destinations) CreateDestinationPostgres(ctx context.Context, request sh
// CreateDestinationPubsub - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationPubsub(ctx context.Context, request shared.DestinationPubsubCreateRequest) (*operations.CreateDestinationPubsubResponse, error) {
+func (s *destinations) CreateDestinationPubsub(ctx context.Context, request *shared.DestinationPubsubCreateRequest) (*operations.CreateDestinationPubsubResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Pubsub"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1854,7 +1881,7 @@ func (s *destinations) CreateDestinationPubsub(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1887,12 +1914,14 @@ func (s *destinations) CreateDestinationPubsub(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1904,15 +1933,14 @@ func (s *destinations) CreateDestinationPubsub(ctx context.Context, request shar
// CreateDestinationRedis - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationRedis(ctx context.Context, request shared.DestinationRedisCreateRequest) (*operations.CreateDestinationRedisResponse, error) {
+func (s *destinations) CreateDestinationRedis(ctx context.Context, request *shared.DestinationRedisCreateRequest) (*operations.CreateDestinationRedisResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Redis"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1921,7 +1949,7 @@ func (s *destinations) CreateDestinationRedis(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1954,12 +1982,14 @@ func (s *destinations) CreateDestinationRedis(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1971,15 +2001,14 @@ func (s *destinations) CreateDestinationRedis(ctx context.Context, request share
// CreateDestinationRedshift - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationRedshift(ctx context.Context, request shared.DestinationRedshiftCreateRequest) (*operations.CreateDestinationRedshiftResponse, error) {
+func (s *destinations) CreateDestinationRedshift(ctx context.Context, request *shared.DestinationRedshiftCreateRequest) (*operations.CreateDestinationRedshiftResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Redshift"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1988,7 +2017,7 @@ func (s *destinations) CreateDestinationRedshift(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2021,12 +2050,14 @@ func (s *destinations) CreateDestinationRedshift(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2038,15 +2069,14 @@ func (s *destinations) CreateDestinationRedshift(ctx context.Context, request sh
// CreateDestinationS3 - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationS3(ctx context.Context, request shared.DestinationS3CreateRequest) (*operations.CreateDestinationS3Response, error) {
+func (s *destinations) CreateDestinationS3(ctx context.Context, request *shared.DestinationS3CreateRequest) (*operations.CreateDestinationS3Response, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#S3"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2055,7 +2085,7 @@ func (s *destinations) CreateDestinationS3(ctx context.Context, request shared.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2088,12 +2118,14 @@ func (s *destinations) CreateDestinationS3(ctx context.Context, request shared.D
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2105,15 +2137,14 @@ func (s *destinations) CreateDestinationS3(ctx context.Context, request shared.D
// CreateDestinationS3Glue - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationS3Glue(ctx context.Context, request shared.DestinationS3GlueCreateRequest) (*operations.CreateDestinationS3GlueResponse, error) {
+func (s *destinations) CreateDestinationS3Glue(ctx context.Context, request *shared.DestinationS3GlueCreateRequest) (*operations.CreateDestinationS3GlueResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#S3Glue"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2122,7 +2153,7 @@ func (s *destinations) CreateDestinationS3Glue(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2155,12 +2186,14 @@ func (s *destinations) CreateDestinationS3Glue(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2172,15 +2205,14 @@ func (s *destinations) CreateDestinationS3Glue(ctx context.Context, request shar
// CreateDestinationSftpJSON - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationSftpJSON(ctx context.Context, request shared.DestinationSftpJSONCreateRequest) (*operations.CreateDestinationSftpJSONResponse, error) {
+func (s *destinations) CreateDestinationSftpJSON(ctx context.Context, request *shared.DestinationSftpJSONCreateRequest) (*operations.CreateDestinationSftpJSONResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#SftpJson"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2189,7 +2221,7 @@ func (s *destinations) CreateDestinationSftpJSON(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2222,12 +2254,14 @@ func (s *destinations) CreateDestinationSftpJSON(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2239,15 +2273,14 @@ func (s *destinations) CreateDestinationSftpJSON(ctx context.Context, request sh
// CreateDestinationSnowflake - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationSnowflake(ctx context.Context, request shared.DestinationSnowflakeCreateRequest) (*operations.CreateDestinationSnowflakeResponse, error) {
+func (s *destinations) CreateDestinationSnowflake(ctx context.Context, request *shared.DestinationSnowflakeCreateRequest) (*operations.CreateDestinationSnowflakeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Snowflake"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2256,7 +2289,7 @@ func (s *destinations) CreateDestinationSnowflake(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2289,12 +2322,14 @@ func (s *destinations) CreateDestinationSnowflake(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2306,15 +2341,14 @@ func (s *destinations) CreateDestinationSnowflake(ctx context.Context, request s
// CreateDestinationTimeplus - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationTimeplus(ctx context.Context, request shared.DestinationTimeplusCreateRequest) (*operations.CreateDestinationTimeplusResponse, error) {
+func (s *destinations) CreateDestinationTimeplus(ctx context.Context, request *shared.DestinationTimeplusCreateRequest) (*operations.CreateDestinationTimeplusResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Timeplus"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2323,7 +2357,7 @@ func (s *destinations) CreateDestinationTimeplus(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2356,12 +2390,14 @@ func (s *destinations) CreateDestinationTimeplus(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2373,15 +2409,14 @@ func (s *destinations) CreateDestinationTimeplus(ctx context.Context, request sh
// CreateDestinationTypesense - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationTypesense(ctx context.Context, request shared.DestinationTypesenseCreateRequest) (*operations.CreateDestinationTypesenseResponse, error) {
+func (s *destinations) CreateDestinationTypesense(ctx context.Context, request *shared.DestinationTypesenseCreateRequest) (*operations.CreateDestinationTypesenseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Typesense"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2390,7 +2425,7 @@ func (s *destinations) CreateDestinationTypesense(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2423,12 +2458,14 @@ func (s *destinations) CreateDestinationTypesense(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2440,15 +2477,14 @@ func (s *destinations) CreateDestinationTypesense(ctx context.Context, request s
// CreateDestinationVertica - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationVertica(ctx context.Context, request shared.DestinationVerticaCreateRequest) (*operations.CreateDestinationVerticaResponse, error) {
+func (s *destinations) CreateDestinationVertica(ctx context.Context, request *shared.DestinationVerticaCreateRequest) (*operations.CreateDestinationVerticaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Vertica"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2457,7 +2493,7 @@ func (s *destinations) CreateDestinationVertica(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2490,12 +2526,14 @@ func (s *destinations) CreateDestinationVertica(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2507,15 +2545,14 @@ func (s *destinations) CreateDestinationVertica(ctx context.Context, request sha
// CreateDestinationXata - Create a destination
// Creates a destination given a name, workspace id, and a json blob containing the configuration for the destination.
-func (s *destinations) CreateDestinationXata(ctx context.Context, request shared.DestinationXataCreateRequest) (*operations.CreateDestinationXataResponse, error) {
+func (s *destinations) CreateDestinationXata(ctx context.Context, request *shared.DestinationXataCreateRequest) (*operations.CreateDestinationXataResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/destinations#Xata"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2524,7 +2561,7 @@ func (s *destinations) CreateDestinationXata(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2557,12 +2594,14 @@ func (s *destinations) CreateDestinationXata(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2585,7 +2624,7 @@ func (s *destinations) DeleteDestination(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2635,7 +2674,7 @@ func (s *destinations) DeleteDestinationAwsDatalake(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2685,7 +2724,7 @@ func (s *destinations) DeleteDestinationAzureBlobStorage(ctx context.Context, re
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2735,7 +2774,7 @@ func (s *destinations) DeleteDestinationBigquery(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2785,7 +2824,7 @@ func (s *destinations) DeleteDestinationBigqueryDenormalized(ctx context.Context
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2835,7 +2874,7 @@ func (s *destinations) DeleteDestinationClickhouse(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2885,7 +2924,7 @@ func (s *destinations) DeleteDestinationConvex(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2935,7 +2974,7 @@ func (s *destinations) DeleteDestinationCumulio(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -2985,7 +3024,7 @@ func (s *destinations) DeleteDestinationDatabend(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3035,7 +3074,7 @@ func (s *destinations) DeleteDestinationDatabricks(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3085,7 +3124,7 @@ func (s *destinations) DeleteDestinationDevNull(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3135,7 +3174,7 @@ func (s *destinations) DeleteDestinationDynamodb(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3185,7 +3224,7 @@ func (s *destinations) DeleteDestinationElasticsearch(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3235,7 +3274,7 @@ func (s *destinations) DeleteDestinationFirebolt(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3285,7 +3324,7 @@ func (s *destinations) DeleteDestinationFirestore(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3335,7 +3374,7 @@ func (s *destinations) DeleteDestinationGcs(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3385,7 +3424,7 @@ func (s *destinations) DeleteDestinationGoogleSheets(ctx context.Context, reques
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3435,7 +3474,7 @@ func (s *destinations) DeleteDestinationKeen(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3485,7 +3524,7 @@ func (s *destinations) DeleteDestinationKinesis(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3535,7 +3574,7 @@ func (s *destinations) DeleteDestinationLangchain(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3585,7 +3624,7 @@ func (s *destinations) DeleteDestinationMilvus(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3635,7 +3674,7 @@ func (s *destinations) DeleteDestinationMongodb(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3685,7 +3724,7 @@ func (s *destinations) DeleteDestinationMssql(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3735,7 +3774,7 @@ func (s *destinations) DeleteDestinationMysql(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3785,7 +3824,7 @@ func (s *destinations) DeleteDestinationOracle(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3835,7 +3874,7 @@ func (s *destinations) DeleteDestinationPinecone(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3885,7 +3924,7 @@ func (s *destinations) DeleteDestinationPostgres(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3935,7 +3974,7 @@ func (s *destinations) DeleteDestinationPubsub(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -3985,7 +4024,7 @@ func (s *destinations) DeleteDestinationRedis(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4035,7 +4074,7 @@ func (s *destinations) DeleteDestinationRedshift(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4085,7 +4124,7 @@ func (s *destinations) DeleteDestinationS3(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4135,7 +4174,7 @@ func (s *destinations) DeleteDestinationS3Glue(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4185,7 +4224,7 @@ func (s *destinations) DeleteDestinationSftpJSON(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4235,7 +4274,7 @@ func (s *destinations) DeleteDestinationSnowflake(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4285,7 +4324,7 @@ func (s *destinations) DeleteDestinationTimeplus(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4335,7 +4374,7 @@ func (s *destinations) DeleteDestinationTypesense(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4385,7 +4424,7 @@ func (s *destinations) DeleteDestinationVertica(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4435,7 +4474,7 @@ func (s *destinations) DeleteDestinationXata(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4485,7 +4524,7 @@ func (s *destinations) GetDestination(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4515,12 +4554,14 @@ func (s *destinations) GetDestination(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4543,7 +4584,7 @@ func (s *destinations) GetDestinationAwsDatalake(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4573,12 +4614,14 @@ func (s *destinations) GetDestinationAwsDatalake(ctx context.Context, request op
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4601,7 +4644,7 @@ func (s *destinations) GetDestinationAzureBlobStorage(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4631,12 +4674,14 @@ func (s *destinations) GetDestinationAzureBlobStorage(ctx context.Context, reque
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4659,7 +4704,7 @@ func (s *destinations) GetDestinationBigquery(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4689,12 +4734,14 @@ func (s *destinations) GetDestinationBigquery(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4717,7 +4764,7 @@ func (s *destinations) GetDestinationBigqueryDenormalized(ctx context.Context, r
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4747,12 +4794,14 @@ func (s *destinations) GetDestinationBigqueryDenormalized(ctx context.Context, r
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4775,7 +4824,7 @@ func (s *destinations) GetDestinationClickhouse(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4805,12 +4854,14 @@ func (s *destinations) GetDestinationClickhouse(ctx context.Context, request ope
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4833,7 +4884,7 @@ func (s *destinations) GetDestinationConvex(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4863,12 +4914,14 @@ func (s *destinations) GetDestinationConvex(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4891,7 +4944,7 @@ func (s *destinations) GetDestinationCumulio(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4921,12 +4974,14 @@ func (s *destinations) GetDestinationCumulio(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -4949,7 +5004,7 @@ func (s *destinations) GetDestinationDatabend(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -4979,12 +5034,14 @@ func (s *destinations) GetDestinationDatabend(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5007,7 +5064,7 @@ func (s *destinations) GetDestinationDatabricks(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5037,12 +5094,14 @@ func (s *destinations) GetDestinationDatabricks(ctx context.Context, request ope
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5065,7 +5124,7 @@ func (s *destinations) GetDestinationDevNull(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5095,12 +5154,14 @@ func (s *destinations) GetDestinationDevNull(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5123,7 +5184,7 @@ func (s *destinations) GetDestinationDynamodb(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5153,12 +5214,14 @@ func (s *destinations) GetDestinationDynamodb(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5181,7 +5244,7 @@ func (s *destinations) GetDestinationElasticsearch(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5211,12 +5274,14 @@ func (s *destinations) GetDestinationElasticsearch(ctx context.Context, request
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5239,7 +5304,7 @@ func (s *destinations) GetDestinationFirebolt(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5269,12 +5334,14 @@ func (s *destinations) GetDestinationFirebolt(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5297,7 +5364,7 @@ func (s *destinations) GetDestinationFirestore(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5327,12 +5394,14 @@ func (s *destinations) GetDestinationFirestore(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5355,7 +5424,7 @@ func (s *destinations) GetDestinationGcs(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5385,12 +5454,14 @@ func (s *destinations) GetDestinationGcs(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5413,7 +5484,7 @@ func (s *destinations) GetDestinationGoogleSheets(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5443,12 +5514,14 @@ func (s *destinations) GetDestinationGoogleSheets(ctx context.Context, request o
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5471,7 +5544,7 @@ func (s *destinations) GetDestinationKeen(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5501,12 +5574,14 @@ func (s *destinations) GetDestinationKeen(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5529,7 +5604,7 @@ func (s *destinations) GetDestinationKinesis(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5559,12 +5634,14 @@ func (s *destinations) GetDestinationKinesis(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5587,7 +5664,7 @@ func (s *destinations) GetDestinationLangchain(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5617,12 +5694,14 @@ func (s *destinations) GetDestinationLangchain(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5645,7 +5724,7 @@ func (s *destinations) GetDestinationMilvus(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5675,12 +5754,14 @@ func (s *destinations) GetDestinationMilvus(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5703,7 +5784,7 @@ func (s *destinations) GetDestinationMongodb(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5733,12 +5814,14 @@ func (s *destinations) GetDestinationMongodb(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5761,7 +5844,7 @@ func (s *destinations) GetDestinationMssql(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5791,12 +5874,14 @@ func (s *destinations) GetDestinationMssql(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5819,7 +5904,7 @@ func (s *destinations) GetDestinationMysql(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5849,12 +5934,14 @@ func (s *destinations) GetDestinationMysql(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5877,7 +5964,7 @@ func (s *destinations) GetDestinationOracle(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5907,12 +5994,14 @@ func (s *destinations) GetDestinationOracle(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5935,7 +6024,7 @@ func (s *destinations) GetDestinationPinecone(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -5965,12 +6054,14 @@ func (s *destinations) GetDestinationPinecone(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -5993,7 +6084,7 @@ func (s *destinations) GetDestinationPostgres(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6023,12 +6114,14 @@ func (s *destinations) GetDestinationPostgres(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6051,7 +6144,7 @@ func (s *destinations) GetDestinationPubsub(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6081,12 +6174,14 @@ func (s *destinations) GetDestinationPubsub(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6109,7 +6204,7 @@ func (s *destinations) GetDestinationRedis(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6139,12 +6234,14 @@ func (s *destinations) GetDestinationRedis(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6167,7 +6264,7 @@ func (s *destinations) GetDestinationRedshift(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6197,12 +6294,14 @@ func (s *destinations) GetDestinationRedshift(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6225,7 +6324,7 @@ func (s *destinations) GetDestinationS3(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6255,12 +6354,14 @@ func (s *destinations) GetDestinationS3(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6283,7 +6384,7 @@ func (s *destinations) GetDestinationS3Glue(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6313,12 +6414,14 @@ func (s *destinations) GetDestinationS3Glue(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6341,7 +6444,7 @@ func (s *destinations) GetDestinationSftpJSON(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6371,12 +6474,14 @@ func (s *destinations) GetDestinationSftpJSON(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6399,7 +6504,7 @@ func (s *destinations) GetDestinationSnowflake(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6429,12 +6534,14 @@ func (s *destinations) GetDestinationSnowflake(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6457,7 +6564,7 @@ func (s *destinations) GetDestinationTimeplus(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6487,12 +6594,14 @@ func (s *destinations) GetDestinationTimeplus(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6515,7 +6624,7 @@ func (s *destinations) GetDestinationTypesense(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6545,12 +6654,14 @@ func (s *destinations) GetDestinationTypesense(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6573,7 +6684,7 @@ func (s *destinations) GetDestinationVertica(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6603,12 +6714,14 @@ func (s *destinations) GetDestinationVertica(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6631,7 +6744,7 @@ func (s *destinations) GetDestinationXata(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -6661,12 +6774,14 @@ func (s *destinations) GetDestinationXata(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6686,7 +6801,7 @@ func (s *destinations) ListDestinations(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -6720,12 +6835,14 @@ func (s *destinations) ListDestinations(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationsResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationsResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationsResponse = out
+ res.DestinationsResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6743,11 +6860,10 @@ func (s *destinations) PatchDestination(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationPatchRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPatchRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6756,7 +6872,7 @@ func (s *destinations) PatchDestination(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6789,12 +6905,14 @@ func (s *destinations) PatchDestination(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6812,11 +6930,10 @@ func (s *destinations) PutDestination(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6825,7 +6942,7 @@ func (s *destinations) PutDestination(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6858,12 +6975,14 @@ func (s *destinations) PutDestination(ctx context.Context, request operations.Pu
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.DestinationResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.DestinationResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.DestinationResponse = out
+ res.DestinationResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -6881,11 +7000,10 @@ func (s *destinations) PutDestinationAwsDatalake(ctx context.Context, request op
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationAwsDatalakePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationAwsDatalakePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6894,7 +7012,7 @@ func (s *destinations) PutDestinationAwsDatalake(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6942,11 +7060,10 @@ func (s *destinations) PutDestinationAzureBlobStorage(ctx context.Context, reque
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationAzureBlobStoragePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationAzureBlobStoragePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6955,7 +7072,7 @@ func (s *destinations) PutDestinationAzureBlobStorage(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7003,11 +7120,10 @@ func (s *destinations) PutDestinationBigquery(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationBigqueryPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationBigqueryPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7016,7 +7132,7 @@ func (s *destinations) PutDestinationBigquery(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7064,11 +7180,10 @@ func (s *destinations) PutDestinationBigqueryDenormalized(ctx context.Context, r
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationBigqueryDenormalizedPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationBigqueryDenormalizedPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7077,7 +7192,7 @@ func (s *destinations) PutDestinationBigqueryDenormalized(ctx context.Context, r
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7125,11 +7240,10 @@ func (s *destinations) PutDestinationClickhouse(ctx context.Context, request ope
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationClickhousePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationClickhousePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7138,7 +7252,7 @@ func (s *destinations) PutDestinationClickhouse(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7186,11 +7300,10 @@ func (s *destinations) PutDestinationConvex(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationConvexPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationConvexPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7199,7 +7312,7 @@ func (s *destinations) PutDestinationConvex(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7247,11 +7360,10 @@ func (s *destinations) PutDestinationCumulio(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationCumulioPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationCumulioPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7260,7 +7372,7 @@ func (s *destinations) PutDestinationCumulio(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7308,11 +7420,10 @@ func (s *destinations) PutDestinationDatabend(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationDatabendPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDatabendPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7321,7 +7432,7 @@ func (s *destinations) PutDestinationDatabend(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7369,11 +7480,10 @@ func (s *destinations) PutDestinationDatabricks(ctx context.Context, request ope
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationDatabricksPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDatabricksPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7382,7 +7492,7 @@ func (s *destinations) PutDestinationDatabricks(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7430,11 +7540,10 @@ func (s *destinations) PutDestinationDevNull(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationDevNullPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDevNullPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7443,7 +7552,7 @@ func (s *destinations) PutDestinationDevNull(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7491,11 +7600,10 @@ func (s *destinations) PutDestinationDynamodb(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationDynamodbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationDynamodbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7504,7 +7612,7 @@ func (s *destinations) PutDestinationDynamodb(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7552,11 +7660,10 @@ func (s *destinations) PutDestinationElasticsearch(ctx context.Context, request
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationElasticsearchPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationElasticsearchPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7565,7 +7672,7 @@ func (s *destinations) PutDestinationElasticsearch(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7613,11 +7720,10 @@ func (s *destinations) PutDestinationFirebolt(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationFireboltPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFireboltPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7626,7 +7732,7 @@ func (s *destinations) PutDestinationFirebolt(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7674,11 +7780,10 @@ func (s *destinations) PutDestinationFirestore(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationFirestorePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationFirestorePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7687,7 +7792,7 @@ func (s *destinations) PutDestinationFirestore(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7735,11 +7840,10 @@ func (s *destinations) PutDestinationGcs(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationGcsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGcsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7748,7 +7852,7 @@ func (s *destinations) PutDestinationGcs(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7796,11 +7900,10 @@ func (s *destinations) PutDestinationGoogleSheets(ctx context.Context, request o
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationGoogleSheetsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7809,7 +7912,7 @@ func (s *destinations) PutDestinationGoogleSheets(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7857,11 +7960,10 @@ func (s *destinations) PutDestinationKeen(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationKeenPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationKeenPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7870,7 +7972,7 @@ func (s *destinations) PutDestinationKeen(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7918,11 +8020,10 @@ func (s *destinations) PutDestinationKinesis(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationKinesisPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationKinesisPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7931,7 +8032,7 @@ func (s *destinations) PutDestinationKinesis(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7979,11 +8080,10 @@ func (s *destinations) PutDestinationLangchain(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationLangchainPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationLangchainPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7992,7 +8092,7 @@ func (s *destinations) PutDestinationLangchain(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8040,11 +8140,10 @@ func (s *destinations) PutDestinationMilvus(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationMilvusPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMilvusPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8053,7 +8152,7 @@ func (s *destinations) PutDestinationMilvus(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8101,11 +8200,10 @@ func (s *destinations) PutDestinationMongodb(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationMongodbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMongodbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8114,7 +8212,7 @@ func (s *destinations) PutDestinationMongodb(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8162,11 +8260,10 @@ func (s *destinations) PutDestinationMssql(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationMssqlPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMssqlPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8175,7 +8272,7 @@ func (s *destinations) PutDestinationMssql(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8223,11 +8320,10 @@ func (s *destinations) PutDestinationMysql(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationMysqlPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationMysqlPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8236,7 +8332,7 @@ func (s *destinations) PutDestinationMysql(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8284,11 +8380,10 @@ func (s *destinations) PutDestinationOracle(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationOraclePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationOraclePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8297,7 +8392,7 @@ func (s *destinations) PutDestinationOracle(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8345,11 +8440,10 @@ func (s *destinations) PutDestinationPinecone(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationPineconePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPineconePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8358,7 +8452,7 @@ func (s *destinations) PutDestinationPinecone(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8406,11 +8500,10 @@ func (s *destinations) PutDestinationPostgres(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationPostgresPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPostgresPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8419,7 +8512,7 @@ func (s *destinations) PutDestinationPostgres(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8467,11 +8560,10 @@ func (s *destinations) PutDestinationPubsub(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationPubsubPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationPubsubPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8480,7 +8572,7 @@ func (s *destinations) PutDestinationPubsub(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8528,11 +8620,10 @@ func (s *destinations) PutDestinationRedis(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationRedisPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedisPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8541,7 +8632,7 @@ func (s *destinations) PutDestinationRedis(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8589,11 +8680,10 @@ func (s *destinations) PutDestinationRedshift(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationRedshiftPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationRedshiftPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8602,7 +8692,7 @@ func (s *destinations) PutDestinationRedshift(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8650,11 +8740,10 @@ func (s *destinations) PutDestinationS3(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationS3PutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3PutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8663,7 +8752,7 @@ func (s *destinations) PutDestinationS3(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8711,11 +8800,10 @@ func (s *destinations) PutDestinationS3Glue(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationS3GluePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationS3GluePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8724,7 +8812,7 @@ func (s *destinations) PutDestinationS3Glue(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8772,11 +8860,10 @@ func (s *destinations) PutDestinationSftpJSON(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationSftpJSONPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSftpJSONPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8785,7 +8872,7 @@ func (s *destinations) PutDestinationSftpJSON(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8833,11 +8920,10 @@ func (s *destinations) PutDestinationSnowflake(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationSnowflakePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationSnowflakePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8846,7 +8932,7 @@ func (s *destinations) PutDestinationSnowflake(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8894,11 +8980,10 @@ func (s *destinations) PutDestinationTimeplus(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationTimeplusPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationTimeplusPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8907,7 +8992,7 @@ func (s *destinations) PutDestinationTimeplus(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8955,11 +9040,10 @@ func (s *destinations) PutDestinationTypesense(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationTypesensePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationTypesensePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8968,7 +9052,7 @@ func (s *destinations) PutDestinationTypesense(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9016,11 +9100,10 @@ func (s *destinations) PutDestinationVertica(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationVerticaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationVerticaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9029,7 +9112,7 @@ func (s *destinations) PutDestinationVertica(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9077,11 +9160,10 @@ func (s *destinations) PutDestinationXata(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "DestinationXataPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DestinationXataPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9090,7 +9172,7 @@ func (s *destinations) PutDestinationXata(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
diff --git a/internal/sdk/jobs.go b/internal/sdk/jobs.go
old mode 100755
new mode 100644
index 75cbfcfc3..7653088c4
--- a/internal/sdk/jobs.go
+++ b/internal/sdk/jobs.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -37,7 +38,7 @@ func (s *jobs) CancelJob(ctx context.Context, request operations.CancelJobReques
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -67,12 +68,14 @@ func (s *jobs) CancelJob(ctx context.Context, request operations.CancelJobReques
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.JobResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.JobResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.JobResponse = out
+ res.JobResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -87,7 +90,7 @@ func (s *jobs) CreateJob(ctx context.Context, request shared.JobCreateRequest) (
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/jobs"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -103,7 +106,7 @@ func (s *jobs) CreateJob(ctx context.Context, request shared.JobCreateRequest) (
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -136,12 +139,14 @@ func (s *jobs) CreateJob(ctx context.Context, request shared.JobCreateRequest) (
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.JobResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.JobResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.JobResponse = out
+ res.JobResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -164,7 +169,7 @@ func (s *jobs) GetJob(ctx context.Context, request operations.GetJobRequest) (*o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -194,12 +199,14 @@ func (s *jobs) GetJob(ctx context.Context, request operations.GetJobRequest) (*o
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.JobResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.JobResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.JobResponse = out
+ res.JobResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -219,7 +226,7 @@ func (s *jobs) ListJobs(ctx context.Context, request operations.ListJobsRequest)
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -253,12 +260,14 @@ func (s *jobs) ListJobs(ctx context.Context, request operations.ListJobsRequest)
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.JobsResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.JobsResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.JobsResponse = out
+ res.JobsResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
}
diff --git a/internal/sdk/pkg/models/operations/canceljob.go b/internal/sdk/pkg/models/operations/canceljob.go
old mode 100755
new mode 100644
index e6651dc36..6d9a06079
--- a/internal/sdk/pkg/models/operations/canceljob.go
+++ b/internal/sdk/pkg/models/operations/canceljob.go
@@ -11,10 +11,48 @@ type CancelJobRequest struct {
JobID int64 `pathParam:"style=simple,explode=false,name=jobId"`
}
+func (o *CancelJobRequest) GetJobID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.JobID
+}
+
type CancelJobResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Cancel a Job.
JobResponse *shared.JobResponse
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *CancelJobResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CancelJobResponse) GetJobResponse() *shared.JobResponse {
+ if o == nil {
+ return nil
+ }
+ return o.JobResponse
+}
+
+func (o *CancelJobResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CancelJobResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/createconnection.go b/internal/sdk/pkg/models/operations/createconnection.go
old mode 100755
new mode 100644
index bfbf3110c..73c7dee9b
--- a/internal/sdk/pkg/models/operations/createconnection.go
+++ b/internal/sdk/pkg/models/operations/createconnection.go
@@ -10,7 +10,38 @@ import (
type CreateConnectionResponse struct {
// Successful operation
ConnectionResponse *shared.ConnectionResponse
- ContentType string
- StatusCode int
- RawResponse *http.Response
+ // HTTP response content type for this operation
+ ContentType string
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateConnectionResponse) GetConnectionResponse() *shared.ConnectionResponse {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionResponse
+}
+
+func (o *CreateConnectionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateConnectionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateConnectionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestination.go b/internal/sdk/pkg/models/operations/createdestination.go
old mode 100755
new mode 100644
index 85a9219de..c703693fd
--- a/internal/sdk/pkg/models/operations/createdestination.go
+++ b/internal/sdk/pkg/models/operations/createdestination.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationawsdatalake.go b/internal/sdk/pkg/models/operations/createdestinationawsdatalake.go
old mode 100755
new mode 100644
index 4d11e4254..fe4b89bf9
--- a/internal/sdk/pkg/models/operations/createdestinationawsdatalake.go
+++ b/internal/sdk/pkg/models/operations/createdestinationawsdatalake.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationAwsDatalakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationAwsDatalakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationAwsDatalakeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationAwsDatalakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationAwsDatalakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationazureblobstorage.go b/internal/sdk/pkg/models/operations/createdestinationazureblobstorage.go
old mode 100755
new mode 100644
index bea9e73d5..009ea31c1
--- a/internal/sdk/pkg/models/operations/createdestinationazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/createdestinationazureblobstorage.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationAzureBlobStorageResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationbigquery.go b/internal/sdk/pkg/models/operations/createdestinationbigquery.go
old mode 100755
new mode 100644
index 584216d1e..377dd3644
--- a/internal/sdk/pkg/models/operations/createdestinationbigquery.go
+++ b/internal/sdk/pkg/models/operations/createdestinationbigquery.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationBigqueryResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationbigquerydenormalized.go b/internal/sdk/pkg/models/operations/createdestinationbigquerydenormalized.go
old mode 100755
new mode 100644
index 746f1c7d4..3d6fe2c48
--- a/internal/sdk/pkg/models/operations/createdestinationbigquerydenormalized.go
+++ b/internal/sdk/pkg/models/operations/createdestinationbigquerydenormalized.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationBigqueryDenormalizedResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationBigqueryDenormalizedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationBigqueryDenormalizedResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationBigqueryDenormalizedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationBigqueryDenormalizedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationclickhouse.go b/internal/sdk/pkg/models/operations/createdestinationclickhouse.go
old mode 100755
new mode 100644
index bb773d0d6..411e962e9
--- a/internal/sdk/pkg/models/operations/createdestinationclickhouse.go
+++ b/internal/sdk/pkg/models/operations/createdestinationclickhouse.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationClickhouseResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationconvex.go b/internal/sdk/pkg/models/operations/createdestinationconvex.go
old mode 100755
new mode 100644
index be30c29f2..43363964f
--- a/internal/sdk/pkg/models/operations/createdestinationconvex.go
+++ b/internal/sdk/pkg/models/operations/createdestinationconvex.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationConvexResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationcumulio.go b/internal/sdk/pkg/models/operations/createdestinationcumulio.go
old mode 100755
new mode 100644
index d39ac26de..c93d01ec9
--- a/internal/sdk/pkg/models/operations/createdestinationcumulio.go
+++ b/internal/sdk/pkg/models/operations/createdestinationcumulio.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationCumulioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationCumulioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationCumulioResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationCumulioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationCumulioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationdatabend.go b/internal/sdk/pkg/models/operations/createdestinationdatabend.go
old mode 100755
new mode 100644
index b73571df6..ec8c5b7e6
--- a/internal/sdk/pkg/models/operations/createdestinationdatabend.go
+++ b/internal/sdk/pkg/models/operations/createdestinationdatabend.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationDatabendResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationDatabendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationDatabendResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationDatabendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationDatabendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationdatabricks.go b/internal/sdk/pkg/models/operations/createdestinationdatabricks.go
old mode 100755
new mode 100644
index 26c66f234..3b7903352
--- a/internal/sdk/pkg/models/operations/createdestinationdatabricks.go
+++ b/internal/sdk/pkg/models/operations/createdestinationdatabricks.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationDatabricksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationDatabricksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationDatabricksResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationDatabricksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationDatabricksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationdevnull.go b/internal/sdk/pkg/models/operations/createdestinationdevnull.go
old mode 100755
new mode 100644
index 72c96fe5b..0f6ed4dc0
--- a/internal/sdk/pkg/models/operations/createdestinationdevnull.go
+++ b/internal/sdk/pkg/models/operations/createdestinationdevnull.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationDevNullResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationDevNullResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationDevNullResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationDevNullResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationDevNullResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationdynamodb.go b/internal/sdk/pkg/models/operations/createdestinationdynamodb.go
old mode 100755
new mode 100644
index 726cf5332..3c14bea90
--- a/internal/sdk/pkg/models/operations/createdestinationdynamodb.go
+++ b/internal/sdk/pkg/models/operations/createdestinationdynamodb.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationDynamodbResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationelasticsearch.go b/internal/sdk/pkg/models/operations/createdestinationelasticsearch.go
old mode 100755
new mode 100644
index ddd198fbf..6a3135aa2
--- a/internal/sdk/pkg/models/operations/createdestinationelasticsearch.go
+++ b/internal/sdk/pkg/models/operations/createdestinationelasticsearch.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationElasticsearchResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationElasticsearchResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationElasticsearchResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationElasticsearchResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationElasticsearchResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationfirebolt.go b/internal/sdk/pkg/models/operations/createdestinationfirebolt.go
old mode 100755
new mode 100644
index 0d13790c5..56d483c15
--- a/internal/sdk/pkg/models/operations/createdestinationfirebolt.go
+++ b/internal/sdk/pkg/models/operations/createdestinationfirebolt.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationFireboltResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationfirestore.go b/internal/sdk/pkg/models/operations/createdestinationfirestore.go
old mode 100755
new mode 100644
index b350a4d8d..cc08f9322
--- a/internal/sdk/pkg/models/operations/createdestinationfirestore.go
+++ b/internal/sdk/pkg/models/operations/createdestinationfirestore.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationFirestoreResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationFirestoreResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationFirestoreResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationFirestoreResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationFirestoreResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationgcs.go b/internal/sdk/pkg/models/operations/createdestinationgcs.go
old mode 100755
new mode 100644
index cdec896c4..fa73194ce
--- a/internal/sdk/pkg/models/operations/createdestinationgcs.go
+++ b/internal/sdk/pkg/models/operations/createdestinationgcs.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationGcsResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationgooglesheets.go b/internal/sdk/pkg/models/operations/createdestinationgooglesheets.go
old mode 100755
new mode 100644
index 911ccdcd2..00d11c5ea
--- a/internal/sdk/pkg/models/operations/createdestinationgooglesheets.go
+++ b/internal/sdk/pkg/models/operations/createdestinationgooglesheets.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationGoogleSheetsResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationkeen.go b/internal/sdk/pkg/models/operations/createdestinationkeen.go
old mode 100755
new mode 100644
index 6c7c9b310..a0f74da4b
--- a/internal/sdk/pkg/models/operations/createdestinationkeen.go
+++ b/internal/sdk/pkg/models/operations/createdestinationkeen.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationKeenResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationKeenResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationKeenResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationKeenResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationKeenResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationkinesis.go b/internal/sdk/pkg/models/operations/createdestinationkinesis.go
old mode 100755
new mode 100644
index 37e5696a4..8e7055caf
--- a/internal/sdk/pkg/models/operations/createdestinationkinesis.go
+++ b/internal/sdk/pkg/models/operations/createdestinationkinesis.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationKinesisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationKinesisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationKinesisResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationKinesisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationKinesisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationlangchain.go b/internal/sdk/pkg/models/operations/createdestinationlangchain.go
old mode 100755
new mode 100644
index 36b177d45..e4fd7f5b3
--- a/internal/sdk/pkg/models/operations/createdestinationlangchain.go
+++ b/internal/sdk/pkg/models/operations/createdestinationlangchain.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationLangchainResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationLangchainResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationLangchainResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationLangchainResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationmilvus.go b/internal/sdk/pkg/models/operations/createdestinationmilvus.go
old mode 100755
new mode 100644
index a3f0ee427..e7918f91c
--- a/internal/sdk/pkg/models/operations/createdestinationmilvus.go
+++ b/internal/sdk/pkg/models/operations/createdestinationmilvus.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationMilvusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationMilvusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationMilvusResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationMilvusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationMilvusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationmongodb.go b/internal/sdk/pkg/models/operations/createdestinationmongodb.go
old mode 100755
new mode 100644
index 6fd6f8469..489dbc710
--- a/internal/sdk/pkg/models/operations/createdestinationmongodb.go
+++ b/internal/sdk/pkg/models/operations/createdestinationmongodb.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationMongodbResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationmssql.go b/internal/sdk/pkg/models/operations/createdestinationmssql.go
old mode 100755
new mode 100644
index a0c3ec80d..05466d522
--- a/internal/sdk/pkg/models/operations/createdestinationmssql.go
+++ b/internal/sdk/pkg/models/operations/createdestinationmssql.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationMssqlResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationmysql.go b/internal/sdk/pkg/models/operations/createdestinationmysql.go
old mode 100755
new mode 100644
index c64c7276b..170f707d5
--- a/internal/sdk/pkg/models/operations/createdestinationmysql.go
+++ b/internal/sdk/pkg/models/operations/createdestinationmysql.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationMysqlResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationoracle.go b/internal/sdk/pkg/models/operations/createdestinationoracle.go
old mode 100755
new mode 100644
index b3fc23c7d..f75667332
--- a/internal/sdk/pkg/models/operations/createdestinationoracle.go
+++ b/internal/sdk/pkg/models/operations/createdestinationoracle.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationOracleResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationpinecone.go b/internal/sdk/pkg/models/operations/createdestinationpinecone.go
old mode 100755
new mode 100644
index 4cfa6e3be..101618289
--- a/internal/sdk/pkg/models/operations/createdestinationpinecone.go
+++ b/internal/sdk/pkg/models/operations/createdestinationpinecone.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationPineconeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationPineconeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationPineconeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationPineconeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationPineconeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationpostgres.go b/internal/sdk/pkg/models/operations/createdestinationpostgres.go
old mode 100755
new mode 100644
index 095130836..e680870cb
--- a/internal/sdk/pkg/models/operations/createdestinationpostgres.go
+++ b/internal/sdk/pkg/models/operations/createdestinationpostgres.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationPostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationPostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationPostgresResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationPostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationPostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationpubsub.go b/internal/sdk/pkg/models/operations/createdestinationpubsub.go
old mode 100755
new mode 100644
index 2ba7c66c6..005e28ab2
--- a/internal/sdk/pkg/models/operations/createdestinationpubsub.go
+++ b/internal/sdk/pkg/models/operations/createdestinationpubsub.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationPubsubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationPubsubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationPubsubResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationPubsubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationPubsubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationredis.go b/internal/sdk/pkg/models/operations/createdestinationredis.go
old mode 100755
new mode 100644
index ddb43135e..a976a2a02
--- a/internal/sdk/pkg/models/operations/createdestinationredis.go
+++ b/internal/sdk/pkg/models/operations/createdestinationredis.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationRedisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationRedisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationRedisResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationRedisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationRedisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationredshift.go b/internal/sdk/pkg/models/operations/createdestinationredshift.go
old mode 100755
new mode 100644
index 57f520f10..7cf081032
--- a/internal/sdk/pkg/models/operations/createdestinationredshift.go
+++ b/internal/sdk/pkg/models/operations/createdestinationredshift.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationRedshiftResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinations3.go b/internal/sdk/pkg/models/operations/createdestinations3.go
old mode 100755
new mode 100644
index 93ffdda68..088ac36e9
--- a/internal/sdk/pkg/models/operations/createdestinations3.go
+++ b/internal/sdk/pkg/models/operations/createdestinations3.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationS3Response struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationS3Response) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinations3glue.go b/internal/sdk/pkg/models/operations/createdestinations3glue.go
old mode 100755
new mode 100644
index 20f6de118..01935a74a
--- a/internal/sdk/pkg/models/operations/createdestinations3glue.go
+++ b/internal/sdk/pkg/models/operations/createdestinations3glue.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationS3GlueResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationS3GlueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationS3GlueResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationS3GlueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationS3GlueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationsftpjson.go b/internal/sdk/pkg/models/operations/createdestinationsftpjson.go
old mode 100755
new mode 100644
index 4472678c0..2cceca742
--- a/internal/sdk/pkg/models/operations/createdestinationsftpjson.go
+++ b/internal/sdk/pkg/models/operations/createdestinationsftpjson.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationSftpJSONResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationSftpJSONResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationSftpJSONResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationSftpJSONResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationSftpJSONResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationsnowflake.go b/internal/sdk/pkg/models/operations/createdestinationsnowflake.go
old mode 100755
new mode 100644
index dd9e3fb3f..f53357750
--- a/internal/sdk/pkg/models/operations/createdestinationsnowflake.go
+++ b/internal/sdk/pkg/models/operations/createdestinationsnowflake.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationSnowflakeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationtimeplus.go b/internal/sdk/pkg/models/operations/createdestinationtimeplus.go
old mode 100755
new mode 100644
index f97030231..89d26285e
--- a/internal/sdk/pkg/models/operations/createdestinationtimeplus.go
+++ b/internal/sdk/pkg/models/operations/createdestinationtimeplus.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationTimeplusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationTimeplusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationTimeplusResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationTimeplusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationTimeplusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationtypesense.go b/internal/sdk/pkg/models/operations/createdestinationtypesense.go
old mode 100755
new mode 100644
index d1498f702..987c502c1
--- a/internal/sdk/pkg/models/operations/createdestinationtypesense.go
+++ b/internal/sdk/pkg/models/operations/createdestinationtypesense.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationTypesenseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationTypesenseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationTypesenseResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationTypesenseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationTypesenseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationvertica.go b/internal/sdk/pkg/models/operations/createdestinationvertica.go
old mode 100755
new mode 100644
index 8e53c2fb9..8a8484888
--- a/internal/sdk/pkg/models/operations/createdestinationvertica.go
+++ b/internal/sdk/pkg/models/operations/createdestinationvertica.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationVerticaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationVerticaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationVerticaResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationVerticaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationVerticaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createdestinationxata.go b/internal/sdk/pkg/models/operations/createdestinationxata.go
old mode 100755
new mode 100644
index 39c056a5f..e3f9cc00d
--- a/internal/sdk/pkg/models/operations/createdestinationxata.go
+++ b/internal/sdk/pkg/models/operations/createdestinationxata.go
@@ -8,9 +8,40 @@ import (
)
type CreateDestinationXataResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateDestinationXataResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateDestinationXataResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *CreateDestinationXataResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateDestinationXataResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createjob.go b/internal/sdk/pkg/models/operations/createjob.go
old mode 100755
new mode 100644
index 7b16ee67b..25aa6ba5d
--- a/internal/sdk/pkg/models/operations/createjob.go
+++ b/internal/sdk/pkg/models/operations/createjob.go
@@ -8,9 +8,40 @@ import (
)
type CreateJobResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for.
JobResponse *shared.JobResponse
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *CreateJobResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateJobResponse) GetJobResponse() *shared.JobResponse {
+ if o == nil {
+ return nil
+ }
+ return o.JobResponse
+}
+
+func (o *CreateJobResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateJobResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/createorupdateworkspaceoauthcredentials.go b/internal/sdk/pkg/models/operations/createorupdateworkspaceoauthcredentials.go
old mode 100755
new mode 100644
index 61264fdac..c2524a4ae
--- a/internal/sdk/pkg/models/operations/createorupdateworkspaceoauthcredentials.go
+++ b/internal/sdk/pkg/models/operations/createorupdateworkspaceoauthcredentials.go
@@ -12,8 +12,46 @@ type CreateOrUpdateWorkspaceOAuthCredentialsRequest struct {
WorkspaceID string `pathParam:"style=simple,explode=false,name=workspaceId"`
}
+func (o *CreateOrUpdateWorkspaceOAuthCredentialsRequest) GetWorkspaceOAuthCredentialsRequest() shared.WorkspaceOAuthCredentialsRequest {
+ if o == nil {
+ return shared.WorkspaceOAuthCredentialsRequest{}
+ }
+ return o.WorkspaceOAuthCredentialsRequest
+}
+
+func (o *CreateOrUpdateWorkspaceOAuthCredentialsRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
+
type CreateOrUpdateWorkspaceOAuthCredentialsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *CreateOrUpdateWorkspaceOAuthCredentialsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateOrUpdateWorkspaceOAuthCredentialsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateOrUpdateWorkspaceOAuthCredentialsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/createsource.go b/internal/sdk/pkg/models/operations/createsource.go
old mode 100755
new mode 100644
index 68f8df7d2..3c4abc719
--- a/internal/sdk/pkg/models/operations/createsource.go
+++ b/internal/sdk/pkg/models/operations/createsource.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceaha.go b/internal/sdk/pkg/models/operations/createsourceaha.go
old mode 100755
new mode 100644
index e7b175a38..0d140b4b3
--- a/internal/sdk/pkg/models/operations/createsourceaha.go
+++ b/internal/sdk/pkg/models/operations/createsourceaha.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAhaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAhaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAhaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAhaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAhaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceaircall.go b/internal/sdk/pkg/models/operations/createsourceaircall.go
old mode 100755
new mode 100644
index a62c3393a..c903db9ed
--- a/internal/sdk/pkg/models/operations/createsourceaircall.go
+++ b/internal/sdk/pkg/models/operations/createsourceaircall.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAircallResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAircallResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAircallResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAircallResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAircallResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceairtable.go b/internal/sdk/pkg/models/operations/createsourceairtable.go
old mode 100755
new mode 100644
index 91486da9d..3172e6f51
--- a/internal/sdk/pkg/models/operations/createsourceairtable.go
+++ b/internal/sdk/pkg/models/operations/createsourceairtable.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAirtableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAirtableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAirtableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAirtableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAirtableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcealloydb.go b/internal/sdk/pkg/models/operations/createsourcealloydb.go
old mode 100755
new mode 100644
index d27629e1d..0c3b59c7d
--- a/internal/sdk/pkg/models/operations/createsourcealloydb.go
+++ b/internal/sdk/pkg/models/operations/createsourcealloydb.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAlloydbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAlloydbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAlloydbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAlloydbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAlloydbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceamazonads.go b/internal/sdk/pkg/models/operations/createsourceamazonads.go
old mode 100755
new mode 100644
index 5abca19e4..09b22b2c3
--- a/internal/sdk/pkg/models/operations/createsourceamazonads.go
+++ b/internal/sdk/pkg/models/operations/createsourceamazonads.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAmazonAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAmazonAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAmazonAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAmazonAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAmazonAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceamazonsellerpartner.go b/internal/sdk/pkg/models/operations/createsourceamazonsellerpartner.go
old mode 100755
new mode 100644
index 3beb263b5..00f8da3b4
--- a/internal/sdk/pkg/models/operations/createsourceamazonsellerpartner.go
+++ b/internal/sdk/pkg/models/operations/createsourceamazonsellerpartner.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAmazonSellerPartnerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAmazonSellerPartnerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAmazonSellerPartnerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAmazonSellerPartnerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAmazonSellerPartnerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceamazonsqs.go b/internal/sdk/pkg/models/operations/createsourceamazonsqs.go
old mode 100755
new mode 100644
index a157fc97d..199e8540e
--- a/internal/sdk/pkg/models/operations/createsourceamazonsqs.go
+++ b/internal/sdk/pkg/models/operations/createsourceamazonsqs.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAmazonSqsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAmazonSqsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAmazonSqsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAmazonSqsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAmazonSqsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceamplitude.go b/internal/sdk/pkg/models/operations/createsourceamplitude.go
old mode 100755
new mode 100644
index 55ee47862..da8703602
--- a/internal/sdk/pkg/models/operations/createsourceamplitude.go
+++ b/internal/sdk/pkg/models/operations/createsourceamplitude.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAmplitudeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAmplitudeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAmplitudeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAmplitudeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAmplitudeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceapifydataset.go b/internal/sdk/pkg/models/operations/createsourceapifydataset.go
old mode 100755
new mode 100644
index 703e9eb62..e4691f2b4
--- a/internal/sdk/pkg/models/operations/createsourceapifydataset.go
+++ b/internal/sdk/pkg/models/operations/createsourceapifydataset.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceApifyDatasetResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceApifyDatasetResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceApifyDatasetResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceApifyDatasetResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceApifyDatasetResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceappfollow.go b/internal/sdk/pkg/models/operations/createsourceappfollow.go
old mode 100755
new mode 100644
index 883bf3085..9c369ca6c
--- a/internal/sdk/pkg/models/operations/createsourceappfollow.go
+++ b/internal/sdk/pkg/models/operations/createsourceappfollow.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAppfollowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAppfollowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAppfollowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAppfollowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAppfollowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceasana.go b/internal/sdk/pkg/models/operations/createsourceasana.go
old mode 100755
new mode 100644
index e11b97800..9e5cf534b
--- a/internal/sdk/pkg/models/operations/createsourceasana.go
+++ b/internal/sdk/pkg/models/operations/createsourceasana.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAsanaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAsanaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAsanaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAsanaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAsanaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceauth0.go b/internal/sdk/pkg/models/operations/createsourceauth0.go
old mode 100755
new mode 100644
index 7e43cd71f..9c1c91d56
--- a/internal/sdk/pkg/models/operations/createsourceauth0.go
+++ b/internal/sdk/pkg/models/operations/createsourceauth0.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAuth0Response struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAuth0Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAuth0Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAuth0Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAuth0Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceawscloudtrail.go b/internal/sdk/pkg/models/operations/createsourceawscloudtrail.go
old mode 100755
new mode 100644
index cd2142d8e..f9a03e8ea
--- a/internal/sdk/pkg/models/operations/createsourceawscloudtrail.go
+++ b/internal/sdk/pkg/models/operations/createsourceawscloudtrail.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAwsCloudtrailResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAwsCloudtrailResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAwsCloudtrailResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAwsCloudtrailResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAwsCloudtrailResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceazureblobstorage.go b/internal/sdk/pkg/models/operations/createsourceazureblobstorage.go
old mode 100755
new mode 100644
index 10cde2393..ccf989163
--- a/internal/sdk/pkg/models/operations/createsourceazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/createsourceazureblobstorage.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAzureBlobStorageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceazuretable.go b/internal/sdk/pkg/models/operations/createsourceazuretable.go
old mode 100755
new mode 100644
index 3fbb24fc5..29d3277ee
--- a/internal/sdk/pkg/models/operations/createsourceazuretable.go
+++ b/internal/sdk/pkg/models/operations/createsourceazuretable.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceAzureTableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceAzureTableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceAzureTableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceAzureTableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceAzureTableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebamboohr.go b/internal/sdk/pkg/models/operations/createsourcebamboohr.go
old mode 100755
new mode 100644
index 4d7d39389..d29071808
--- a/internal/sdk/pkg/models/operations/createsourcebamboohr.go
+++ b/internal/sdk/pkg/models/operations/createsourcebamboohr.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBambooHrResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBambooHrResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBambooHrResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBambooHrResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBambooHrResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebigcommerce.go b/internal/sdk/pkg/models/operations/createsourcebigcommerce.go
old mode 100755
new mode 100644
index c8c47424b..bbaf59c2c
--- a/internal/sdk/pkg/models/operations/createsourcebigcommerce.go
+++ b/internal/sdk/pkg/models/operations/createsourcebigcommerce.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBigcommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBigcommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBigcommerceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBigcommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBigcommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebigquery.go b/internal/sdk/pkg/models/operations/createsourcebigquery.go
old mode 100755
new mode 100644
index def98452d..52377d35b
--- a/internal/sdk/pkg/models/operations/createsourcebigquery.go
+++ b/internal/sdk/pkg/models/operations/createsourcebigquery.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBigqueryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebingads.go b/internal/sdk/pkg/models/operations/createsourcebingads.go
old mode 100755
new mode 100644
index 3f15e00c8..c993f0cbb
--- a/internal/sdk/pkg/models/operations/createsourcebingads.go
+++ b/internal/sdk/pkg/models/operations/createsourcebingads.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBingAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBingAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBingAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBingAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBingAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebraintree.go b/internal/sdk/pkg/models/operations/createsourcebraintree.go
old mode 100755
new mode 100644
index f6d457005..ca543fbe3
--- a/internal/sdk/pkg/models/operations/createsourcebraintree.go
+++ b/internal/sdk/pkg/models/operations/createsourcebraintree.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBraintreeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBraintreeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBraintreeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBraintreeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBraintreeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcebraze.go b/internal/sdk/pkg/models/operations/createsourcebraze.go
old mode 100755
new mode 100644
index 9cc9addc3..0a9f0630c
--- a/internal/sdk/pkg/models/operations/createsourcebraze.go
+++ b/internal/sdk/pkg/models/operations/createsourcebraze.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceBrazeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceBrazeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceBrazeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceBrazeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceBrazeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcechargebee.go b/internal/sdk/pkg/models/operations/createsourcechargebee.go
old mode 100755
new mode 100644
index 0a09541b7..e308abde5
--- a/internal/sdk/pkg/models/operations/createsourcechargebee.go
+++ b/internal/sdk/pkg/models/operations/createsourcechargebee.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceChargebeeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceChargebeeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceChargebeeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceChargebeeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceChargebeeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcechartmogul.go b/internal/sdk/pkg/models/operations/createsourcechartmogul.go
old mode 100755
new mode 100644
index 9adc803db..479b6ead6
--- a/internal/sdk/pkg/models/operations/createsourcechartmogul.go
+++ b/internal/sdk/pkg/models/operations/createsourcechartmogul.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceChartmogulResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceChartmogulResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceChartmogulResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceChartmogulResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceChartmogulResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceclickhouse.go b/internal/sdk/pkg/models/operations/createsourceclickhouse.go
old mode 100755
new mode 100644
index 22e82b94b..ef362d175
--- a/internal/sdk/pkg/models/operations/createsourceclickhouse.go
+++ b/internal/sdk/pkg/models/operations/createsourceclickhouse.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceClickhouseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceclickupapi.go b/internal/sdk/pkg/models/operations/createsourceclickupapi.go
old mode 100755
new mode 100644
index 5950e9575..66437a15a
--- a/internal/sdk/pkg/models/operations/createsourceclickupapi.go
+++ b/internal/sdk/pkg/models/operations/createsourceclickupapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceClickupAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceClickupAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceClickupAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceClickupAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceClickupAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceclockify.go b/internal/sdk/pkg/models/operations/createsourceclockify.go
old mode 100755
new mode 100644
index ad6f8fba8..31653447c
--- a/internal/sdk/pkg/models/operations/createsourceclockify.go
+++ b/internal/sdk/pkg/models/operations/createsourceclockify.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceClockifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceClockifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceClockifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceClockifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceClockifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceclosecom.go b/internal/sdk/pkg/models/operations/createsourceclosecom.go
old mode 100755
new mode 100644
index c019cc77c..304f90eed
--- a/internal/sdk/pkg/models/operations/createsourceclosecom.go
+++ b/internal/sdk/pkg/models/operations/createsourceclosecom.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceCloseComResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceCloseComResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceCloseComResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceCloseComResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceCloseComResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcecoda.go b/internal/sdk/pkg/models/operations/createsourcecoda.go
old mode 100755
new mode 100644
index 78279383b..36b4332f8
--- a/internal/sdk/pkg/models/operations/createsourcecoda.go
+++ b/internal/sdk/pkg/models/operations/createsourcecoda.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceCodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceCodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceCodaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceCodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceCodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcecoinapi.go b/internal/sdk/pkg/models/operations/createsourcecoinapi.go
old mode 100755
new mode 100644
index dd82629aa..b44d35ed4
--- a/internal/sdk/pkg/models/operations/createsourcecoinapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcecoinapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceCoinAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceCoinAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceCoinAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceCoinAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceCoinAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcecoinmarketcap.go b/internal/sdk/pkg/models/operations/createsourcecoinmarketcap.go
old mode 100755
new mode 100644
index 707f0f497..9572df84a
--- a/internal/sdk/pkg/models/operations/createsourcecoinmarketcap.go
+++ b/internal/sdk/pkg/models/operations/createsourcecoinmarketcap.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceCoinmarketcapResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceCoinmarketcapResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceCoinmarketcapResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceCoinmarketcapResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceCoinmarketcapResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceconfigcat.go b/internal/sdk/pkg/models/operations/createsourceconfigcat.go
old mode 100755
new mode 100644
index e90622556..cfa970d97
--- a/internal/sdk/pkg/models/operations/createsourceconfigcat.go
+++ b/internal/sdk/pkg/models/operations/createsourceconfigcat.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceConfigcatResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceConfigcatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceConfigcatResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceConfigcatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceConfigcatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceconfluence.go b/internal/sdk/pkg/models/operations/createsourceconfluence.go
old mode 100755
new mode 100644
index 2e183fdd0..d504dadff
--- a/internal/sdk/pkg/models/operations/createsourceconfluence.go
+++ b/internal/sdk/pkg/models/operations/createsourceconfluence.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceConfluenceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceConfluenceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceConfluenceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceConfluenceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceConfluenceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceconvex.go b/internal/sdk/pkg/models/operations/createsourceconvex.go
old mode 100755
new mode 100644
index 9cd945264..b859d3468
--- a/internal/sdk/pkg/models/operations/createsourceconvex.go
+++ b/internal/sdk/pkg/models/operations/createsourceconvex.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceConvexResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedatascope.go b/internal/sdk/pkg/models/operations/createsourcedatascope.go
old mode 100755
new mode 100644
index 00b749822..a9b165d0e
--- a/internal/sdk/pkg/models/operations/createsourcedatascope.go
+++ b/internal/sdk/pkg/models/operations/createsourcedatascope.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDatascopeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDatascopeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDatascopeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDatascopeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDatascopeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedelighted.go b/internal/sdk/pkg/models/operations/createsourcedelighted.go
old mode 100755
new mode 100644
index 460e407d0..bf7c1eaf7
--- a/internal/sdk/pkg/models/operations/createsourcedelighted.go
+++ b/internal/sdk/pkg/models/operations/createsourcedelighted.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDelightedResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDelightedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDelightedResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDelightedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDelightedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedixa.go b/internal/sdk/pkg/models/operations/createsourcedixa.go
old mode 100755
new mode 100644
index 8f8b1ac7c..c7efb9136
--- a/internal/sdk/pkg/models/operations/createsourcedixa.go
+++ b/internal/sdk/pkg/models/operations/createsourcedixa.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDixaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDixaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDixaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDixaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDixaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedockerhub.go b/internal/sdk/pkg/models/operations/createsourcedockerhub.go
old mode 100755
new mode 100644
index a7a182ab1..ecb958595
--- a/internal/sdk/pkg/models/operations/createsourcedockerhub.go
+++ b/internal/sdk/pkg/models/operations/createsourcedockerhub.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDockerhubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDockerhubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDockerhubResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDockerhubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDockerhubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedremio.go b/internal/sdk/pkg/models/operations/createsourcedremio.go
old mode 100755
new mode 100644
index 534306e78..1d46be19f
--- a/internal/sdk/pkg/models/operations/createsourcedremio.go
+++ b/internal/sdk/pkg/models/operations/createsourcedremio.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDremioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDremioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDremioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDremioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDremioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcedynamodb.go b/internal/sdk/pkg/models/operations/createsourcedynamodb.go
old mode 100755
new mode 100644
index e8aaabb67..e78776f36
--- a/internal/sdk/pkg/models/operations/createsourcedynamodb.go
+++ b/internal/sdk/pkg/models/operations/createsourcedynamodb.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceDynamodbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcee2etestcloud.go b/internal/sdk/pkg/models/operations/createsourcee2etestcloud.go
old mode 100755
new mode 100644
index 3c4bde03f..0c3339a51
--- a/internal/sdk/pkg/models/operations/createsourcee2etestcloud.go
+++ b/internal/sdk/pkg/models/operations/createsourcee2etestcloud.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceE2eTestCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceE2eTestCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceE2eTestCloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceE2eTestCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceE2eTestCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceemailoctopus.go b/internal/sdk/pkg/models/operations/createsourceemailoctopus.go
old mode 100755
new mode 100644
index 63e31890d..9c1771e97
--- a/internal/sdk/pkg/models/operations/createsourceemailoctopus.go
+++ b/internal/sdk/pkg/models/operations/createsourceemailoctopus.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceEmailoctopusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceEmailoctopusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceEmailoctopusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceEmailoctopusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceEmailoctopusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceexchangerates.go b/internal/sdk/pkg/models/operations/createsourceexchangerates.go
old mode 100755
new mode 100644
index e61ed7b49..c64c5f26a
--- a/internal/sdk/pkg/models/operations/createsourceexchangerates.go
+++ b/internal/sdk/pkg/models/operations/createsourceexchangerates.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceExchangeRatesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceExchangeRatesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceExchangeRatesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceExchangeRatesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceExchangeRatesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefacebookmarketing.go b/internal/sdk/pkg/models/operations/createsourcefacebookmarketing.go
old mode 100755
new mode 100644
index 694621839..aeadd4558
--- a/internal/sdk/pkg/models/operations/createsourcefacebookmarketing.go
+++ b/internal/sdk/pkg/models/operations/createsourcefacebookmarketing.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFacebookMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFacebookMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFacebookMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFacebookMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFacebookMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefacebookpages.go b/internal/sdk/pkg/models/operations/createsourcefacebookpages.go
old mode 100755
new mode 100644
index 3ee0c54a1..51a4b6d6a
--- a/internal/sdk/pkg/models/operations/createsourcefacebookpages.go
+++ b/internal/sdk/pkg/models/operations/createsourcefacebookpages.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFacebookPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFacebookPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFacebookPagesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFacebookPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFacebookPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefaker.go b/internal/sdk/pkg/models/operations/createsourcefaker.go
old mode 100755
new mode 100644
index fca1f06e8..711d0800c
--- a/internal/sdk/pkg/models/operations/createsourcefaker.go
+++ b/internal/sdk/pkg/models/operations/createsourcefaker.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFakerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFakerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFakerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFakerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFakerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefauna.go b/internal/sdk/pkg/models/operations/createsourcefauna.go
old mode 100755
new mode 100644
index aaa0d26b7..73e02524b
--- a/internal/sdk/pkg/models/operations/createsourcefauna.go
+++ b/internal/sdk/pkg/models/operations/createsourcefauna.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFaunaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFaunaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFaunaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFaunaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFaunaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefilesecure.go b/internal/sdk/pkg/models/operations/createsourcefilesecure.go
old mode 100755
new mode 100644
index e5bbf3db6..e0517f965
--- a/internal/sdk/pkg/models/operations/createsourcefilesecure.go
+++ b/internal/sdk/pkg/models/operations/createsourcefilesecure.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFileSecureResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFileSecureResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFileSecureResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFileSecureResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFileSecureResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefirebolt.go b/internal/sdk/pkg/models/operations/createsourcefirebolt.go
old mode 100755
new mode 100644
index 129fe9055..377713a7f
--- a/internal/sdk/pkg/models/operations/createsourcefirebolt.go
+++ b/internal/sdk/pkg/models/operations/createsourcefirebolt.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFireboltResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefreshcaller.go b/internal/sdk/pkg/models/operations/createsourcefreshcaller.go
old mode 100755
new mode 100644
index d79b08a7b..d51db7927
--- a/internal/sdk/pkg/models/operations/createsourcefreshcaller.go
+++ b/internal/sdk/pkg/models/operations/createsourcefreshcaller.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFreshcallerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFreshcallerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFreshcallerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFreshcallerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFreshcallerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefreshdesk.go b/internal/sdk/pkg/models/operations/createsourcefreshdesk.go
old mode 100755
new mode 100644
index 1afeb94e5..b3ed3d086
--- a/internal/sdk/pkg/models/operations/createsourcefreshdesk.go
+++ b/internal/sdk/pkg/models/operations/createsourcefreshdesk.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFreshdeskResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFreshdeskResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFreshdeskResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFreshdeskResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFreshdeskResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcefreshsales.go b/internal/sdk/pkg/models/operations/createsourcefreshsales.go
old mode 100755
new mode 100644
index 65bac42cd..b64d48ccb
--- a/internal/sdk/pkg/models/operations/createsourcefreshsales.go
+++ b/internal/sdk/pkg/models/operations/createsourcefreshsales.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceFreshsalesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceFreshsalesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceFreshsalesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceFreshsalesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceFreshsalesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegainsightpx.go b/internal/sdk/pkg/models/operations/createsourcegainsightpx.go
old mode 100755
new mode 100644
index 2b1f7cc79..9524c4201
--- a/internal/sdk/pkg/models/operations/createsourcegainsightpx.go
+++ b/internal/sdk/pkg/models/operations/createsourcegainsightpx.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGainsightPxResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGainsightPxResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGainsightPxResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGainsightPxResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGainsightPxResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegcs.go b/internal/sdk/pkg/models/operations/createsourcegcs.go
old mode 100755
new mode 100644
index 55a837e1e..072361df1
--- a/internal/sdk/pkg/models/operations/createsourcegcs.go
+++ b/internal/sdk/pkg/models/operations/createsourcegcs.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGcsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegetlago.go b/internal/sdk/pkg/models/operations/createsourcegetlago.go
old mode 100755
new mode 100644
index 2d835069a..696fd05d4
--- a/internal/sdk/pkg/models/operations/createsourcegetlago.go
+++ b/internal/sdk/pkg/models/operations/createsourcegetlago.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGetlagoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGetlagoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGetlagoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGetlagoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGetlagoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegithub.go b/internal/sdk/pkg/models/operations/createsourcegithub.go
old mode 100755
new mode 100644
index bb6e83d78..2b9213d5a
--- a/internal/sdk/pkg/models/operations/createsourcegithub.go
+++ b/internal/sdk/pkg/models/operations/createsourcegithub.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGithubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGithubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGithubResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGithubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGithubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegitlab.go b/internal/sdk/pkg/models/operations/createsourcegitlab.go
old mode 100755
new mode 100644
index 9493cc915..fbba4d8a0
--- a/internal/sdk/pkg/models/operations/createsourcegitlab.go
+++ b/internal/sdk/pkg/models/operations/createsourcegitlab.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGitlabResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGitlabResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGitlabResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGitlabResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGitlabResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceglassfrog.go b/internal/sdk/pkg/models/operations/createsourceglassfrog.go
old mode 100755
new mode 100644
index 21b1c2c36..374999b9c
--- a/internal/sdk/pkg/models/operations/createsourceglassfrog.go
+++ b/internal/sdk/pkg/models/operations/createsourceglassfrog.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGlassfrogResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGlassfrogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGlassfrogResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGlassfrogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGlassfrogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegnews.go b/internal/sdk/pkg/models/operations/createsourcegnews.go
old mode 100755
new mode 100644
index 09c8676d4..16428ab5c
--- a/internal/sdk/pkg/models/operations/createsourcegnews.go
+++ b/internal/sdk/pkg/models/operations/createsourcegnews.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGnewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGnewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGnewsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGnewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGnewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegoogleads.go b/internal/sdk/pkg/models/operations/createsourcegoogleads.go
old mode 100755
new mode 100644
index 45a9a57cc..a7585a1f6
--- a/internal/sdk/pkg/models/operations/createsourcegoogleads.go
+++ b/internal/sdk/pkg/models/operations/createsourcegoogleads.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsdataapi.go
old mode 100755
new mode 100644
index da42f3955..5d89689d7
--- a/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsdataapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsdataapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleAnalyticsDataAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleAnalyticsDataAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleAnalyticsDataAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleAnalyticsDataAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleAnalyticsDataAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsv4.go
old mode 100755
new mode 100644
index 1bd511859..524622dad
--- a/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsv4.go
+++ b/internal/sdk/pkg/models/operations/createsourcegoogleanalyticsv4.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleAnalyticsV4Response struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleAnalyticsV4Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleAnalyticsV4Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleAnalyticsV4Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleAnalyticsV4Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegoogledirectory.go b/internal/sdk/pkg/models/operations/createsourcegoogledirectory.go
old mode 100755
new mode 100644
index 0f6744c20..465da3e70
--- a/internal/sdk/pkg/models/operations/createsourcegoogledirectory.go
+++ b/internal/sdk/pkg/models/operations/createsourcegoogledirectory.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleDirectoryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleDirectoryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleDirectoryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleDirectoryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleDirectoryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegooglepagespeedinsights.go b/internal/sdk/pkg/models/operations/createsourcegooglepagespeedinsights.go
old mode 100755
new mode 100644
index 1d38e1cb6..d234d9f32
--- a/internal/sdk/pkg/models/operations/createsourcegooglepagespeedinsights.go
+++ b/internal/sdk/pkg/models/operations/createsourcegooglepagespeedinsights.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGooglePagespeedInsightsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGooglePagespeedInsightsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGooglePagespeedInsightsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGooglePagespeedInsightsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGooglePagespeedInsightsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegooglesearchconsole.go b/internal/sdk/pkg/models/operations/createsourcegooglesearchconsole.go
old mode 100755
new mode 100644
index 985001b05..ca772141f
--- a/internal/sdk/pkg/models/operations/createsourcegooglesearchconsole.go
+++ b/internal/sdk/pkg/models/operations/createsourcegooglesearchconsole.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleSearchConsoleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleSearchConsoleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleSearchConsoleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleSearchConsoleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleSearchConsoleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegooglesheets.go b/internal/sdk/pkg/models/operations/createsourcegooglesheets.go
old mode 100755
new mode 100644
index c0a4ab835..f7ebc4cd3
--- a/internal/sdk/pkg/models/operations/createsourcegooglesheets.go
+++ b/internal/sdk/pkg/models/operations/createsourcegooglesheets.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleSheetsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegooglewebfonts.go b/internal/sdk/pkg/models/operations/createsourcegooglewebfonts.go
old mode 100755
new mode 100644
index e695b7e5a..534b3f595
--- a/internal/sdk/pkg/models/operations/createsourcegooglewebfonts.go
+++ b/internal/sdk/pkg/models/operations/createsourcegooglewebfonts.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleWebfontsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleWebfontsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleWebfontsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleWebfontsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleWebfontsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegoogleworkspaceadminreports.go b/internal/sdk/pkg/models/operations/createsourcegoogleworkspaceadminreports.go
old mode 100755
new mode 100644
index 42569e5fd..d5a1d947a
--- a/internal/sdk/pkg/models/operations/createsourcegoogleworkspaceadminreports.go
+++ b/internal/sdk/pkg/models/operations/createsourcegoogleworkspaceadminreports.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGoogleWorkspaceAdminReportsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGoogleWorkspaceAdminReportsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGoogleWorkspaceAdminReportsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGoogleWorkspaceAdminReportsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGoogleWorkspaceAdminReportsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegreenhouse.go b/internal/sdk/pkg/models/operations/createsourcegreenhouse.go
old mode 100755
new mode 100644
index 08b17b83a..96187db26
--- a/internal/sdk/pkg/models/operations/createsourcegreenhouse.go
+++ b/internal/sdk/pkg/models/operations/createsourcegreenhouse.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGreenhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGreenhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGreenhouseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGreenhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGreenhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcegridly.go b/internal/sdk/pkg/models/operations/createsourcegridly.go
old mode 100755
new mode 100644
index d5240a4a2..bb17a41dc
--- a/internal/sdk/pkg/models/operations/createsourcegridly.go
+++ b/internal/sdk/pkg/models/operations/createsourcegridly.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceGridlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceGridlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceGridlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceGridlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceGridlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceharvest.go b/internal/sdk/pkg/models/operations/createsourceharvest.go
old mode 100755
new mode 100644
index f6b6327bd..ce8653d39
--- a/internal/sdk/pkg/models/operations/createsourceharvest.go
+++ b/internal/sdk/pkg/models/operations/createsourceharvest.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceHarvestResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceHarvestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceHarvestResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceHarvestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceHarvestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcehubplanner.go b/internal/sdk/pkg/models/operations/createsourcehubplanner.go
old mode 100755
new mode 100644
index 72369494d..80f5bbae1
--- a/internal/sdk/pkg/models/operations/createsourcehubplanner.go
+++ b/internal/sdk/pkg/models/operations/createsourcehubplanner.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceHubplannerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceHubplannerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceHubplannerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceHubplannerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceHubplannerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcehubspot.go b/internal/sdk/pkg/models/operations/createsourcehubspot.go
old mode 100755
new mode 100644
index a419536ee..3bf4a86d0
--- a/internal/sdk/pkg/models/operations/createsourcehubspot.go
+++ b/internal/sdk/pkg/models/operations/createsourcehubspot.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceHubspotResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceHubspotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceHubspotResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceHubspotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceHubspotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceinsightly.go b/internal/sdk/pkg/models/operations/createsourceinsightly.go
old mode 100755
new mode 100644
index 42e23deca..ba54b5ddb
--- a/internal/sdk/pkg/models/operations/createsourceinsightly.go
+++ b/internal/sdk/pkg/models/operations/createsourceinsightly.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceInsightlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceInsightlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceInsightlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceInsightlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceInsightlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceinstagram.go b/internal/sdk/pkg/models/operations/createsourceinstagram.go
old mode 100755
new mode 100644
index f935b3ed3..9aa5071c4
--- a/internal/sdk/pkg/models/operations/createsourceinstagram.go
+++ b/internal/sdk/pkg/models/operations/createsourceinstagram.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceInstagramResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceInstagramResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceInstagramResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceInstagramResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceInstagramResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceinstatus.go b/internal/sdk/pkg/models/operations/createsourceinstatus.go
old mode 100755
new mode 100644
index a20bcd51f..3589af7fe
--- a/internal/sdk/pkg/models/operations/createsourceinstatus.go
+++ b/internal/sdk/pkg/models/operations/createsourceinstatus.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceInstatusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceInstatusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceInstatusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceInstatusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceInstatusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceintercom.go b/internal/sdk/pkg/models/operations/createsourceintercom.go
old mode 100755
new mode 100644
index 931f2ccf1..870dea606
--- a/internal/sdk/pkg/models/operations/createsourceintercom.go
+++ b/internal/sdk/pkg/models/operations/createsourceintercom.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceIntercomResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceIntercomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceIntercomResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceIntercomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceIntercomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceip2whois.go b/internal/sdk/pkg/models/operations/createsourceip2whois.go
old mode 100755
new mode 100644
index 911f13d20..68cc302f7
--- a/internal/sdk/pkg/models/operations/createsourceip2whois.go
+++ b/internal/sdk/pkg/models/operations/createsourceip2whois.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceIp2whoisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceIp2whoisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceIp2whoisResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceIp2whoisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceIp2whoisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceiterable.go b/internal/sdk/pkg/models/operations/createsourceiterable.go
old mode 100755
new mode 100644
index 3a586b660..b5148962d
--- a/internal/sdk/pkg/models/operations/createsourceiterable.go
+++ b/internal/sdk/pkg/models/operations/createsourceiterable.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceIterableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceIterableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceIterableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceIterableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceIterableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcejira.go b/internal/sdk/pkg/models/operations/createsourcejira.go
old mode 100755
new mode 100644
index 1cafc4770..d091e24e1
--- a/internal/sdk/pkg/models/operations/createsourcejira.go
+++ b/internal/sdk/pkg/models/operations/createsourcejira.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceJiraResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceJiraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceJiraResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceJiraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceJiraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcek6cloud.go b/internal/sdk/pkg/models/operations/createsourcek6cloud.go
old mode 100755
new mode 100644
index d1716f260..577a7ee90
--- a/internal/sdk/pkg/models/operations/createsourcek6cloud.go
+++ b/internal/sdk/pkg/models/operations/createsourcek6cloud.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceK6CloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceK6CloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceK6CloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceK6CloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceK6CloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceklarna.go b/internal/sdk/pkg/models/operations/createsourceklarna.go
old mode 100755
new mode 100644
index f32680d2d..b5fefae9f
--- a/internal/sdk/pkg/models/operations/createsourceklarna.go
+++ b/internal/sdk/pkg/models/operations/createsourceklarna.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceKlarnaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceKlarnaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceKlarnaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceKlarnaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceKlarnaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceklaviyo.go b/internal/sdk/pkg/models/operations/createsourceklaviyo.go
old mode 100755
new mode 100644
index 5d802c3e1..bfb0982e1
--- a/internal/sdk/pkg/models/operations/createsourceklaviyo.go
+++ b/internal/sdk/pkg/models/operations/createsourceklaviyo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceKlaviyoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceKlaviyoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceKlaviyoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceKlaviyoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceKlaviyoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcekustomersinger.go b/internal/sdk/pkg/models/operations/createsourcekustomersinger.go
old mode 100755
new mode 100644
index b1080b325..7eeddcf2e
--- a/internal/sdk/pkg/models/operations/createsourcekustomersinger.go
+++ b/internal/sdk/pkg/models/operations/createsourcekustomersinger.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceKustomerSingerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceKustomerSingerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceKustomerSingerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceKustomerSingerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceKustomerSingerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcekyve.go b/internal/sdk/pkg/models/operations/createsourcekyve.go
old mode 100755
new mode 100644
index b4c2bb7a3..000aeb421
--- a/internal/sdk/pkg/models/operations/createsourcekyve.go
+++ b/internal/sdk/pkg/models/operations/createsourcekyve.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceKyveResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceKyveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceKyveResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceKyveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceKyveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelaunchdarkly.go b/internal/sdk/pkg/models/operations/createsourcelaunchdarkly.go
old mode 100755
new mode 100644
index aa7e5303d..fda17cb93
--- a/internal/sdk/pkg/models/operations/createsourcelaunchdarkly.go
+++ b/internal/sdk/pkg/models/operations/createsourcelaunchdarkly.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLaunchdarklyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLaunchdarklyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLaunchdarklyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLaunchdarklyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLaunchdarklyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelemlist.go b/internal/sdk/pkg/models/operations/createsourcelemlist.go
old mode 100755
new mode 100644
index c5142c27e..9bf91dae9
--- a/internal/sdk/pkg/models/operations/createsourcelemlist.go
+++ b/internal/sdk/pkg/models/operations/createsourcelemlist.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLemlistResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLemlistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLemlistResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLemlistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLemlistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceleverhiring.go b/internal/sdk/pkg/models/operations/createsourceleverhiring.go
old mode 100755
new mode 100644
index 6993a465c..1195ad0d3
--- a/internal/sdk/pkg/models/operations/createsourceleverhiring.go
+++ b/internal/sdk/pkg/models/operations/createsourceleverhiring.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLeverHiringResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLeverHiringResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLeverHiringResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLeverHiringResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLeverHiringResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelinkedinads.go b/internal/sdk/pkg/models/operations/createsourcelinkedinads.go
old mode 100755
new mode 100644
index c170f3421..495531171
--- a/internal/sdk/pkg/models/operations/createsourcelinkedinads.go
+++ b/internal/sdk/pkg/models/operations/createsourcelinkedinads.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLinkedinAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLinkedinAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLinkedinAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLinkedinAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLinkedinAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelinkedinpages.go b/internal/sdk/pkg/models/operations/createsourcelinkedinpages.go
old mode 100755
new mode 100644
index 00a22de9f..5e37f123d
--- a/internal/sdk/pkg/models/operations/createsourcelinkedinpages.go
+++ b/internal/sdk/pkg/models/operations/createsourcelinkedinpages.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLinkedinPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLinkedinPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLinkedinPagesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLinkedinPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLinkedinPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelinnworks.go b/internal/sdk/pkg/models/operations/createsourcelinnworks.go
old mode 100755
new mode 100644
index 78ea0f96a..a43cb82f3
--- a/internal/sdk/pkg/models/operations/createsourcelinnworks.go
+++ b/internal/sdk/pkg/models/operations/createsourcelinnworks.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLinnworksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLinnworksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLinnworksResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLinnworksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLinnworksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcelokalise.go b/internal/sdk/pkg/models/operations/createsourcelokalise.go
old mode 100755
new mode 100644
index 9ab6da46b..b155c6358
--- a/internal/sdk/pkg/models/operations/createsourcelokalise.go
+++ b/internal/sdk/pkg/models/operations/createsourcelokalise.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceLokaliseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceLokaliseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceLokaliseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceLokaliseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceLokaliseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemailchimp.go b/internal/sdk/pkg/models/operations/createsourcemailchimp.go
old mode 100755
new mode 100644
index de3d9df51..5b92bf4dd
--- a/internal/sdk/pkg/models/operations/createsourcemailchimp.go
+++ b/internal/sdk/pkg/models/operations/createsourcemailchimp.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMailchimpResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMailchimpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMailchimpResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMailchimpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMailchimpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemailgun.go b/internal/sdk/pkg/models/operations/createsourcemailgun.go
old mode 100755
new mode 100644
index 4d2b3bd2d..a28f4760d
--- a/internal/sdk/pkg/models/operations/createsourcemailgun.go
+++ b/internal/sdk/pkg/models/operations/createsourcemailgun.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMailgunResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMailgunResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMailgunResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMailgunResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMailgunResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemailjetsms.go b/internal/sdk/pkg/models/operations/createsourcemailjetsms.go
old mode 100755
new mode 100644
index a4dabaa66..07648c3cf
--- a/internal/sdk/pkg/models/operations/createsourcemailjetsms.go
+++ b/internal/sdk/pkg/models/operations/createsourcemailjetsms.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMailjetSmsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMailjetSmsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMailjetSmsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMailjetSmsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMailjetSmsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemarketo.go b/internal/sdk/pkg/models/operations/createsourcemarketo.go
old mode 100755
new mode 100644
index 1eadd71e2..4b3dd3c17
--- a/internal/sdk/pkg/models/operations/createsourcemarketo.go
+++ b/internal/sdk/pkg/models/operations/createsourcemarketo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMarketoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMarketoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMarketoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMarketoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMarketoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemetabase.go b/internal/sdk/pkg/models/operations/createsourcemetabase.go
old mode 100755
new mode 100644
index a8528149a..7dce07cad
--- a/internal/sdk/pkg/models/operations/createsourcemetabase.go
+++ b/internal/sdk/pkg/models/operations/createsourcemetabase.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMetabaseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMetabaseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMetabaseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMetabaseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMetabaseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemicrosoftteams.go b/internal/sdk/pkg/models/operations/createsourcemicrosoftteams.go
old mode 100755
new mode 100644
index 08a8e6285..409742a75
--- a/internal/sdk/pkg/models/operations/createsourcemicrosoftteams.go
+++ b/internal/sdk/pkg/models/operations/createsourcemicrosoftteams.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMicrosoftTeamsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMicrosoftTeamsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMicrosoftTeamsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMicrosoftTeamsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMicrosoftTeamsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemixpanel.go b/internal/sdk/pkg/models/operations/createsourcemixpanel.go
old mode 100755
new mode 100644
index 1e5b1253d..952245cd4
--- a/internal/sdk/pkg/models/operations/createsourcemixpanel.go
+++ b/internal/sdk/pkg/models/operations/createsourcemixpanel.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMixpanelResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMixpanelResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMixpanelResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMixpanelResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMixpanelResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemonday.go b/internal/sdk/pkg/models/operations/createsourcemonday.go
old mode 100755
new mode 100644
index 862755313..dce7b192b
--- a/internal/sdk/pkg/models/operations/createsourcemonday.go
+++ b/internal/sdk/pkg/models/operations/createsourcemonday.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMondayResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMondayResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMondayResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMondayResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMondayResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemongodb.go b/internal/sdk/pkg/models/operations/createsourcemongodb.go
old mode 100755
new mode 100644
index 03bce5edd..d71f4d089
--- a/internal/sdk/pkg/models/operations/createsourcemongodb.go
+++ b/internal/sdk/pkg/models/operations/createsourcemongodb.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMongodbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemongodbinternalpoc.go b/internal/sdk/pkg/models/operations/createsourcemongodbinternalpoc.go
old mode 100755
new mode 100644
index 71c51babf..2c30caf65
--- a/internal/sdk/pkg/models/operations/createsourcemongodbinternalpoc.go
+++ b/internal/sdk/pkg/models/operations/createsourcemongodbinternalpoc.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMongodbInternalPocResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMongodbInternalPocResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMongodbInternalPocResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMongodbInternalPocResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMongodbInternalPocResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemssql.go b/internal/sdk/pkg/models/operations/createsourcemssql.go
old mode 100755
new mode 100644
index 317ca3b35..46567ed1d
--- a/internal/sdk/pkg/models/operations/createsourcemssql.go
+++ b/internal/sdk/pkg/models/operations/createsourcemssql.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMssqlResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemyhours.go b/internal/sdk/pkg/models/operations/createsourcemyhours.go
old mode 100755
new mode 100644
index 471456ed9..1dfbed239
--- a/internal/sdk/pkg/models/operations/createsourcemyhours.go
+++ b/internal/sdk/pkg/models/operations/createsourcemyhours.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMyHoursResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMyHoursResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMyHoursResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMyHoursResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMyHoursResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcemysql.go b/internal/sdk/pkg/models/operations/createsourcemysql.go
old mode 100755
new mode 100644
index e762e9ed7..9c70143ea
--- a/internal/sdk/pkg/models/operations/createsourcemysql.go
+++ b/internal/sdk/pkg/models/operations/createsourcemysql.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceMysqlResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcenetsuite.go b/internal/sdk/pkg/models/operations/createsourcenetsuite.go
old mode 100755
new mode 100644
index 2a6377968..42b57e01f
--- a/internal/sdk/pkg/models/operations/createsourcenetsuite.go
+++ b/internal/sdk/pkg/models/operations/createsourcenetsuite.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceNetsuiteResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceNetsuiteResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceNetsuiteResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceNetsuiteResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceNetsuiteResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcenotion.go b/internal/sdk/pkg/models/operations/createsourcenotion.go
old mode 100755
new mode 100644
index 68cdd0c62..fed3238b2
--- a/internal/sdk/pkg/models/operations/createsourcenotion.go
+++ b/internal/sdk/pkg/models/operations/createsourcenotion.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceNotionResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceNotionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceNotionResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceNotionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceNotionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcenytimes.go b/internal/sdk/pkg/models/operations/createsourcenytimes.go
old mode 100755
new mode 100644
index 7a04f882d..b593fe9a0
--- a/internal/sdk/pkg/models/operations/createsourcenytimes.go
+++ b/internal/sdk/pkg/models/operations/createsourcenytimes.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceNytimesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceNytimesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceNytimesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceNytimesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceNytimesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceokta.go b/internal/sdk/pkg/models/operations/createsourceokta.go
old mode 100755
new mode 100644
index 245c63d9d..1cc0aee9a
--- a/internal/sdk/pkg/models/operations/createsourceokta.go
+++ b/internal/sdk/pkg/models/operations/createsourceokta.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOktaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOktaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOktaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOktaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOktaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceomnisend.go b/internal/sdk/pkg/models/operations/createsourceomnisend.go
old mode 100755
new mode 100644
index 33cd1c4cf..148a47948
--- a/internal/sdk/pkg/models/operations/createsourceomnisend.go
+++ b/internal/sdk/pkg/models/operations/createsourceomnisend.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOmnisendResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOmnisendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOmnisendResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOmnisendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOmnisendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceonesignal.go b/internal/sdk/pkg/models/operations/createsourceonesignal.go
old mode 100755
new mode 100644
index e6d0b42ec..98b92a2d5
--- a/internal/sdk/pkg/models/operations/createsourceonesignal.go
+++ b/internal/sdk/pkg/models/operations/createsourceonesignal.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOnesignalResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOnesignalResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOnesignalResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOnesignalResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOnesignalResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceoracle.go b/internal/sdk/pkg/models/operations/createsourceoracle.go
old mode 100755
new mode 100644
index e141c25a3..14cd0afeb
--- a/internal/sdk/pkg/models/operations/createsourceoracle.go
+++ b/internal/sdk/pkg/models/operations/createsourceoracle.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOracleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceorb.go b/internal/sdk/pkg/models/operations/createsourceorb.go
old mode 100755
new mode 100644
index 7d9a6f327..13aa4177f
--- a/internal/sdk/pkg/models/operations/createsourceorb.go
+++ b/internal/sdk/pkg/models/operations/createsourceorb.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOrbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOrbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOrbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOrbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOrbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceorbit.go b/internal/sdk/pkg/models/operations/createsourceorbit.go
old mode 100755
new mode 100644
index 2d91dd7c7..2fa032e5b
--- a/internal/sdk/pkg/models/operations/createsourceorbit.go
+++ b/internal/sdk/pkg/models/operations/createsourceorbit.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOrbitResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOrbitResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOrbitResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOrbitResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOrbitResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceoutbrainamplify.go b/internal/sdk/pkg/models/operations/createsourceoutbrainamplify.go
old mode 100755
new mode 100644
index 5d9d6afbd..1dec457e6
--- a/internal/sdk/pkg/models/operations/createsourceoutbrainamplify.go
+++ b/internal/sdk/pkg/models/operations/createsourceoutbrainamplify.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOutbrainAmplifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOutbrainAmplifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOutbrainAmplifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOutbrainAmplifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOutbrainAmplifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceoutreach.go b/internal/sdk/pkg/models/operations/createsourceoutreach.go
old mode 100755
new mode 100644
index 11bdecbaa..36a71fd56
--- a/internal/sdk/pkg/models/operations/createsourceoutreach.go
+++ b/internal/sdk/pkg/models/operations/createsourceoutreach.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceOutreachResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceOutreachResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceOutreachResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceOutreachResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceOutreachResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepaypaltransaction.go b/internal/sdk/pkg/models/operations/createsourcepaypaltransaction.go
old mode 100755
new mode 100644
index 036b1ce2e..bd523c556
--- a/internal/sdk/pkg/models/operations/createsourcepaypaltransaction.go
+++ b/internal/sdk/pkg/models/operations/createsourcepaypaltransaction.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePaypalTransactionResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePaypalTransactionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePaypalTransactionResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePaypalTransactionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePaypalTransactionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepaystack.go b/internal/sdk/pkg/models/operations/createsourcepaystack.go
old mode 100755
new mode 100644
index 52e65cfc7..47b3267ee
--- a/internal/sdk/pkg/models/operations/createsourcepaystack.go
+++ b/internal/sdk/pkg/models/operations/createsourcepaystack.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePaystackResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePaystackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePaystackResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePaystackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePaystackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcependo.go b/internal/sdk/pkg/models/operations/createsourcependo.go
old mode 100755
new mode 100644
index 8143194f0..55a1747fc
--- a/internal/sdk/pkg/models/operations/createsourcependo.go
+++ b/internal/sdk/pkg/models/operations/createsourcependo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePendoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePendoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePendoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePendoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePendoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepersistiq.go b/internal/sdk/pkg/models/operations/createsourcepersistiq.go
old mode 100755
new mode 100644
index c2ee3c4b3..6c551898b
--- a/internal/sdk/pkg/models/operations/createsourcepersistiq.go
+++ b/internal/sdk/pkg/models/operations/createsourcepersistiq.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePersistiqResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePersistiqResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePersistiqResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePersistiqResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePersistiqResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepexelsapi.go b/internal/sdk/pkg/models/operations/createsourcepexelsapi.go
old mode 100755
new mode 100644
index a1978aea6..4a1fc51f6
--- a/internal/sdk/pkg/models/operations/createsourcepexelsapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcepexelsapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePexelsAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePexelsAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePexelsAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePexelsAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePexelsAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepinterest.go b/internal/sdk/pkg/models/operations/createsourcepinterest.go
old mode 100755
new mode 100644
index 28de6f691..d267023c8
--- a/internal/sdk/pkg/models/operations/createsourcepinterest.go
+++ b/internal/sdk/pkg/models/operations/createsourcepinterest.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePinterestResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePinterestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePinterestResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePinterestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePinterestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepipedrive.go b/internal/sdk/pkg/models/operations/createsourcepipedrive.go
old mode 100755
new mode 100644
index 7b6965409..79bde5bd7
--- a/internal/sdk/pkg/models/operations/createsourcepipedrive.go
+++ b/internal/sdk/pkg/models/operations/createsourcepipedrive.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePipedriveResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePipedriveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePipedriveResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePipedriveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePipedriveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepocket.go b/internal/sdk/pkg/models/operations/createsourcepocket.go
old mode 100755
new mode 100644
index 32cd3cb13..830180872
--- a/internal/sdk/pkg/models/operations/createsourcepocket.go
+++ b/internal/sdk/pkg/models/operations/createsourcepocket.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePocketResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePocketResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePocketResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePocketResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePocketResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepokeapi.go b/internal/sdk/pkg/models/operations/createsourcepokeapi.go
old mode 100755
new mode 100644
index 05a191506..66e25ebaf
--- a/internal/sdk/pkg/models/operations/createsourcepokeapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcepokeapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePokeapiResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePokeapiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePokeapiResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePokeapiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePokeapiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepolygonstockapi.go b/internal/sdk/pkg/models/operations/createsourcepolygonstockapi.go
old mode 100755
new mode 100644
index 84ee7f572..33a327eb3
--- a/internal/sdk/pkg/models/operations/createsourcepolygonstockapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcepolygonstockapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePolygonStockAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePolygonStockAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePolygonStockAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePolygonStockAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePolygonStockAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepostgres.go b/internal/sdk/pkg/models/operations/createsourcepostgres.go
old mode 100755
new mode 100644
index 82dc7bfaf..f181b7400
--- a/internal/sdk/pkg/models/operations/createsourcepostgres.go
+++ b/internal/sdk/pkg/models/operations/createsourcepostgres.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePostgresResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceposthog.go b/internal/sdk/pkg/models/operations/createsourceposthog.go
old mode 100755
new mode 100644
index d56612b8c..a21af5eb6
--- a/internal/sdk/pkg/models/operations/createsourceposthog.go
+++ b/internal/sdk/pkg/models/operations/createsourceposthog.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePosthogResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePosthogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePosthogResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePosthogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePosthogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepostmarkapp.go b/internal/sdk/pkg/models/operations/createsourcepostmarkapp.go
old mode 100755
new mode 100644
index a23a299a8..e7d7e7249
--- a/internal/sdk/pkg/models/operations/createsourcepostmarkapp.go
+++ b/internal/sdk/pkg/models/operations/createsourcepostmarkapp.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePostmarkappResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePostmarkappResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePostmarkappResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePostmarkappResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePostmarkappResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceprestashop.go b/internal/sdk/pkg/models/operations/createsourceprestashop.go
old mode 100755
new mode 100644
index 636da2fcd..37ea60922
--- a/internal/sdk/pkg/models/operations/createsourceprestashop.go
+++ b/internal/sdk/pkg/models/operations/createsourceprestashop.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePrestashopResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePrestashopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePrestashopResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePrestashopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePrestashopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepunkapi.go b/internal/sdk/pkg/models/operations/createsourcepunkapi.go
old mode 100755
new mode 100644
index f2f6ca95b..5d63c86d3
--- a/internal/sdk/pkg/models/operations/createsourcepunkapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcepunkapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePunkAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePunkAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePunkAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePunkAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcepypi.go b/internal/sdk/pkg/models/operations/createsourcepypi.go
old mode 100755
new mode 100644
index 3ceba9540..7167a61e6
--- a/internal/sdk/pkg/models/operations/createsourcepypi.go
+++ b/internal/sdk/pkg/models/operations/createsourcepypi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourcePypiResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourcePypiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourcePypiResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourcePypiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourcePypiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcequalaroo.go b/internal/sdk/pkg/models/operations/createsourcequalaroo.go
old mode 100755
new mode 100644
index cf3bccd09..2a975b0ad
--- a/internal/sdk/pkg/models/operations/createsourcequalaroo.go
+++ b/internal/sdk/pkg/models/operations/createsourcequalaroo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceQualarooResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceQualarooResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceQualarooResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceQualarooResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceQualarooResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcequickbooks.go b/internal/sdk/pkg/models/operations/createsourcequickbooks.go
old mode 100755
new mode 100644
index 1fc6e0adf..fec274f66
--- a/internal/sdk/pkg/models/operations/createsourcequickbooks.go
+++ b/internal/sdk/pkg/models/operations/createsourcequickbooks.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceQuickbooksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceQuickbooksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceQuickbooksResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceQuickbooksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceQuickbooksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerailz.go b/internal/sdk/pkg/models/operations/createsourcerailz.go
old mode 100755
new mode 100644
index 0880cd806..5da2632c1
--- a/internal/sdk/pkg/models/operations/createsourcerailz.go
+++ b/internal/sdk/pkg/models/operations/createsourcerailz.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRailzResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRailzResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRailzResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRailzResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRailzResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerecharge.go b/internal/sdk/pkg/models/operations/createsourcerecharge.go
old mode 100755
new mode 100644
index 6c103308c..94362dfa0
--- a/internal/sdk/pkg/models/operations/createsourcerecharge.go
+++ b/internal/sdk/pkg/models/operations/createsourcerecharge.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRechargeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRechargeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRechargeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRechargeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRechargeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerecreation.go b/internal/sdk/pkg/models/operations/createsourcerecreation.go
old mode 100755
new mode 100644
index 9aab84775..e2dcb210d
--- a/internal/sdk/pkg/models/operations/createsourcerecreation.go
+++ b/internal/sdk/pkg/models/operations/createsourcerecreation.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRecreationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRecreationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRecreationResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRecreationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRecreationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerecruitee.go b/internal/sdk/pkg/models/operations/createsourcerecruitee.go
old mode 100755
new mode 100644
index 60fe781ed..33682198e
--- a/internal/sdk/pkg/models/operations/createsourcerecruitee.go
+++ b/internal/sdk/pkg/models/operations/createsourcerecruitee.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRecruiteeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRecruiteeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRecruiteeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRecruiteeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRecruiteeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerecurly.go b/internal/sdk/pkg/models/operations/createsourcerecurly.go
old mode 100755
new mode 100644
index 75f4ae860..4336f1798
--- a/internal/sdk/pkg/models/operations/createsourcerecurly.go
+++ b/internal/sdk/pkg/models/operations/createsourcerecurly.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRecurlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRecurlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRecurlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRecurlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRecurlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceredshift.go b/internal/sdk/pkg/models/operations/createsourceredshift.go
old mode 100755
new mode 100644
index d6c633426..9be2c31b0
--- a/internal/sdk/pkg/models/operations/createsourceredshift.go
+++ b/internal/sdk/pkg/models/operations/createsourceredshift.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRedshiftResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceretently.go b/internal/sdk/pkg/models/operations/createsourceretently.go
old mode 100755
new mode 100644
index 220e410f9..5add8e5be
--- a/internal/sdk/pkg/models/operations/createsourceretently.go
+++ b/internal/sdk/pkg/models/operations/createsourceretently.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRetentlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRetentlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRetentlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRetentlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRetentlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerkicovid.go b/internal/sdk/pkg/models/operations/createsourcerkicovid.go
old mode 100755
new mode 100644
index ed6fb1079..4ce75c892
--- a/internal/sdk/pkg/models/operations/createsourcerkicovid.go
+++ b/internal/sdk/pkg/models/operations/createsourcerkicovid.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRkiCovidResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRkiCovidResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRkiCovidResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRkiCovidResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRkiCovidResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcerss.go b/internal/sdk/pkg/models/operations/createsourcerss.go
old mode 100755
new mode 100644
index b6c215e83..c7609d88a
--- a/internal/sdk/pkg/models/operations/createsourcerss.go
+++ b/internal/sdk/pkg/models/operations/createsourcerss.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceRssResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceRssResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceRssResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceRssResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceRssResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsources3.go b/internal/sdk/pkg/models/operations/createsources3.go
old mode 100755
new mode 100644
index 204862d04..1815066e9
--- a/internal/sdk/pkg/models/operations/createsources3.go
+++ b/internal/sdk/pkg/models/operations/createsources3.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceS3Response struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceS3Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesalesforce.go b/internal/sdk/pkg/models/operations/createsourcesalesforce.go
old mode 100755
new mode 100644
index a8cafdd48..5644dc699
--- a/internal/sdk/pkg/models/operations/createsourcesalesforce.go
+++ b/internal/sdk/pkg/models/operations/createsourcesalesforce.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSalesforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSalesforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSalesforceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSalesforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSalesforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesalesloft.go b/internal/sdk/pkg/models/operations/createsourcesalesloft.go
old mode 100755
new mode 100644
index 7b9cf6dcb..dfdc88f7a
--- a/internal/sdk/pkg/models/operations/createsourcesalesloft.go
+++ b/internal/sdk/pkg/models/operations/createsourcesalesloft.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSalesloftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSalesloftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSalesloftResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSalesloftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSalesloftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesapfieldglass.go b/internal/sdk/pkg/models/operations/createsourcesapfieldglass.go
old mode 100755
new mode 100644
index c0de0cc0b..81efa7748
--- a/internal/sdk/pkg/models/operations/createsourcesapfieldglass.go
+++ b/internal/sdk/pkg/models/operations/createsourcesapfieldglass.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSapFieldglassResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSapFieldglassResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSapFieldglassResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSapFieldglassResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSapFieldglassResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesecoda.go b/internal/sdk/pkg/models/operations/createsourcesecoda.go
old mode 100755
new mode 100644
index 2db5fa20b..695ab2b60
--- a/internal/sdk/pkg/models/operations/createsourcesecoda.go
+++ b/internal/sdk/pkg/models/operations/createsourcesecoda.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSecodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSecodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSecodaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSecodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSecodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesendgrid.go b/internal/sdk/pkg/models/operations/createsourcesendgrid.go
old mode 100755
new mode 100644
index 9a07102ee..ff8c0a3bb
--- a/internal/sdk/pkg/models/operations/createsourcesendgrid.go
+++ b/internal/sdk/pkg/models/operations/createsourcesendgrid.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSendgridResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSendgridResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSendgridResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSendgridResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSendgridResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesendinblue.go b/internal/sdk/pkg/models/operations/createsourcesendinblue.go
old mode 100755
new mode 100644
index e85f703ff..310a04c8b
--- a/internal/sdk/pkg/models/operations/createsourcesendinblue.go
+++ b/internal/sdk/pkg/models/operations/createsourcesendinblue.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSendinblueResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSendinblueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSendinblueResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSendinblueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSendinblueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesenseforce.go b/internal/sdk/pkg/models/operations/createsourcesenseforce.go
old mode 100755
new mode 100644
index dfae6d9fb..efcc5898c
--- a/internal/sdk/pkg/models/operations/createsourcesenseforce.go
+++ b/internal/sdk/pkg/models/operations/createsourcesenseforce.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSenseforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSenseforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSenseforceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSenseforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSenseforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesentry.go b/internal/sdk/pkg/models/operations/createsourcesentry.go
old mode 100755
new mode 100644
index 8b75ea08c..bae524992
--- a/internal/sdk/pkg/models/operations/createsourcesentry.go
+++ b/internal/sdk/pkg/models/operations/createsourcesentry.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSentryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSentryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSentryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSentryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSentryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesftp.go b/internal/sdk/pkg/models/operations/createsourcesftp.go
old mode 100755
new mode 100644
index 2e6974beb..abdcc84ab
--- a/internal/sdk/pkg/models/operations/createsourcesftp.go
+++ b/internal/sdk/pkg/models/operations/createsourcesftp.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSftpResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSftpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSftpResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSftpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSftpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesftpbulk.go b/internal/sdk/pkg/models/operations/createsourcesftpbulk.go
old mode 100755
new mode 100644
index dff73c886..ed97f6515
--- a/internal/sdk/pkg/models/operations/createsourcesftpbulk.go
+++ b/internal/sdk/pkg/models/operations/createsourcesftpbulk.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSftpBulkResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSftpBulkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSftpBulkResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSftpBulkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSftpBulkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceshopify.go b/internal/sdk/pkg/models/operations/createsourceshopify.go
old mode 100755
new mode 100644
index d8eee070e..812c69a4d
--- a/internal/sdk/pkg/models/operations/createsourceshopify.go
+++ b/internal/sdk/pkg/models/operations/createsourceshopify.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceShopifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceShopifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceShopifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceShopifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceShopifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceshortio.go b/internal/sdk/pkg/models/operations/createsourceshortio.go
old mode 100755
new mode 100644
index b3fd47e20..067386f7a
--- a/internal/sdk/pkg/models/operations/createsourceshortio.go
+++ b/internal/sdk/pkg/models/operations/createsourceshortio.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceShortioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceShortioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceShortioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceShortioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceShortioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceslack.go b/internal/sdk/pkg/models/operations/createsourceslack.go
old mode 100755
new mode 100644
index 36a5447c0..92b9dae96
--- a/internal/sdk/pkg/models/operations/createsourceslack.go
+++ b/internal/sdk/pkg/models/operations/createsourceslack.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSlackResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSlackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSlackResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSlackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSlackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesmaily.go b/internal/sdk/pkg/models/operations/createsourcesmaily.go
old mode 100755
new mode 100644
index cebea0878..36dcf6f2e
--- a/internal/sdk/pkg/models/operations/createsourcesmaily.go
+++ b/internal/sdk/pkg/models/operations/createsourcesmaily.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSmailyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSmailyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSmailyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSmailyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSmailyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesmartengage.go b/internal/sdk/pkg/models/operations/createsourcesmartengage.go
old mode 100755
new mode 100644
index 9fec9e5b9..e7147e0e3
--- a/internal/sdk/pkg/models/operations/createsourcesmartengage.go
+++ b/internal/sdk/pkg/models/operations/createsourcesmartengage.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSmartengageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSmartengageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSmartengageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSmartengageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSmartengageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesmartsheets.go b/internal/sdk/pkg/models/operations/createsourcesmartsheets.go
old mode 100755
new mode 100644
index d22d07b5f..68a1ecf42
--- a/internal/sdk/pkg/models/operations/createsourcesmartsheets.go
+++ b/internal/sdk/pkg/models/operations/createsourcesmartsheets.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSmartsheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSmartsheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSmartsheetsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSmartsheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSmartsheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesnapchatmarketing.go b/internal/sdk/pkg/models/operations/createsourcesnapchatmarketing.go
old mode 100755
new mode 100644
index 2911d37fe..e5fe10e34
--- a/internal/sdk/pkg/models/operations/createsourcesnapchatmarketing.go
+++ b/internal/sdk/pkg/models/operations/createsourcesnapchatmarketing.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSnapchatMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSnapchatMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSnapchatMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSnapchatMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSnapchatMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesnowflake.go b/internal/sdk/pkg/models/operations/createsourcesnowflake.go
old mode 100755
new mode 100644
index 125561376..4200d5dd2
--- a/internal/sdk/pkg/models/operations/createsourcesnowflake.go
+++ b/internal/sdk/pkg/models/operations/createsourcesnowflake.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSnowflakeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesonarcloud.go b/internal/sdk/pkg/models/operations/createsourcesonarcloud.go
old mode 100755
new mode 100644
index 4598c4aef..b6311e393
--- a/internal/sdk/pkg/models/operations/createsourcesonarcloud.go
+++ b/internal/sdk/pkg/models/operations/createsourcesonarcloud.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSonarCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSonarCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSonarCloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSonarCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSonarCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcespacexapi.go b/internal/sdk/pkg/models/operations/createsourcespacexapi.go
old mode 100755
new mode 100644
index 59ed3a3cb..e8f306290
--- a/internal/sdk/pkg/models/operations/createsourcespacexapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcespacexapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSpacexAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSpacexAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSpacexAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSpacexAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSpacexAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesquare.go b/internal/sdk/pkg/models/operations/createsourcesquare.go
old mode 100755
new mode 100644
index 700012ed1..092cb411a
--- a/internal/sdk/pkg/models/operations/createsourcesquare.go
+++ b/internal/sdk/pkg/models/operations/createsourcesquare.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSquareResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSquareResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSquareResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSquareResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSquareResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcestrava.go b/internal/sdk/pkg/models/operations/createsourcestrava.go
old mode 100755
new mode 100644
index efd211557..5206fd183
--- a/internal/sdk/pkg/models/operations/createsourcestrava.go
+++ b/internal/sdk/pkg/models/operations/createsourcestrava.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceStravaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceStravaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceStravaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceStravaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceStravaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcestripe.go b/internal/sdk/pkg/models/operations/createsourcestripe.go
old mode 100755
new mode 100644
index be5de3990..149e1f822
--- a/internal/sdk/pkg/models/operations/createsourcestripe.go
+++ b/internal/sdk/pkg/models/operations/createsourcestripe.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceStripeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceStripeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceStripeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceStripeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceStripeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesurveymonkey.go b/internal/sdk/pkg/models/operations/createsourcesurveymonkey.go
old mode 100755
new mode 100644
index 759932911..8be6b3591
--- a/internal/sdk/pkg/models/operations/createsourcesurveymonkey.go
+++ b/internal/sdk/pkg/models/operations/createsourcesurveymonkey.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSurveymonkeyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSurveymonkeyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSurveymonkeyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSurveymonkeyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSurveymonkeyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcesurveysparrow.go b/internal/sdk/pkg/models/operations/createsourcesurveysparrow.go
old mode 100755
new mode 100644
index b72e6ea49..6b06cfb11
--- a/internal/sdk/pkg/models/operations/createsourcesurveysparrow.go
+++ b/internal/sdk/pkg/models/operations/createsourcesurveysparrow.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceSurveySparrowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceSurveySparrowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceSurveySparrowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceSurveySparrowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceSurveySparrowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetempo.go b/internal/sdk/pkg/models/operations/createsourcetempo.go
old mode 100755
new mode 100644
index 331d16ccc..c82b658c6
--- a/internal/sdk/pkg/models/operations/createsourcetempo.go
+++ b/internal/sdk/pkg/models/operations/createsourcetempo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTempoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTempoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTempoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTempoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTempoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetheguardianapi.go b/internal/sdk/pkg/models/operations/createsourcetheguardianapi.go
old mode 100755
new mode 100644
index fd6b2a870..321e585e7
--- a/internal/sdk/pkg/models/operations/createsourcetheguardianapi.go
+++ b/internal/sdk/pkg/models/operations/createsourcetheguardianapi.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTheGuardianAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTheGuardianAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTheGuardianAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTheGuardianAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTheGuardianAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetiktokmarketing.go b/internal/sdk/pkg/models/operations/createsourcetiktokmarketing.go
old mode 100755
new mode 100644
index 609652112..285a72cb9
--- a/internal/sdk/pkg/models/operations/createsourcetiktokmarketing.go
+++ b/internal/sdk/pkg/models/operations/createsourcetiktokmarketing.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTiktokMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTiktokMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTiktokMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTiktokMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTiktokMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetodoist.go b/internal/sdk/pkg/models/operations/createsourcetodoist.go
old mode 100755
new mode 100644
index df9b8fb67..4a9e03334
--- a/internal/sdk/pkg/models/operations/createsourcetodoist.go
+++ b/internal/sdk/pkg/models/operations/createsourcetodoist.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTodoistResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTodoistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTodoistResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTodoistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTodoistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetrello.go b/internal/sdk/pkg/models/operations/createsourcetrello.go
old mode 100755
new mode 100644
index e993889fc..666611744
--- a/internal/sdk/pkg/models/operations/createsourcetrello.go
+++ b/internal/sdk/pkg/models/operations/createsourcetrello.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTrelloResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTrelloResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTrelloResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTrelloResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTrelloResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetrustpilot.go b/internal/sdk/pkg/models/operations/createsourcetrustpilot.go
old mode 100755
new mode 100644
index a7efaeb49..c8b5a6185
--- a/internal/sdk/pkg/models/operations/createsourcetrustpilot.go
+++ b/internal/sdk/pkg/models/operations/createsourcetrustpilot.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTrustpilotResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTrustpilotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTrustpilotResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTrustpilotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTrustpilotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetvmazeschedule.go b/internal/sdk/pkg/models/operations/createsourcetvmazeschedule.go
old mode 100755
new mode 100644
index a17dfda0e..5ed97beea
--- a/internal/sdk/pkg/models/operations/createsourcetvmazeschedule.go
+++ b/internal/sdk/pkg/models/operations/createsourcetvmazeschedule.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTvmazeScheduleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTvmazeScheduleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTvmazeScheduleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTvmazeScheduleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTvmazeScheduleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetwilio.go b/internal/sdk/pkg/models/operations/createsourcetwilio.go
old mode 100755
new mode 100644
index 8d029b890..acf275ed5
--- a/internal/sdk/pkg/models/operations/createsourcetwilio.go
+++ b/internal/sdk/pkg/models/operations/createsourcetwilio.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTwilioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTwilioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTwilioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTwilioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTwilioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetwiliotaskrouter.go b/internal/sdk/pkg/models/operations/createsourcetwiliotaskrouter.go
old mode 100755
new mode 100644
index 211555ab2..00d09ba13
--- a/internal/sdk/pkg/models/operations/createsourcetwiliotaskrouter.go
+++ b/internal/sdk/pkg/models/operations/createsourcetwiliotaskrouter.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTwilioTaskrouterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTwilioTaskrouterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTwilioTaskrouterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTwilioTaskrouterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTwilioTaskrouterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetwitter.go b/internal/sdk/pkg/models/operations/createsourcetwitter.go
old mode 100755
new mode 100644
index 877a88408..b0b692f09
--- a/internal/sdk/pkg/models/operations/createsourcetwitter.go
+++ b/internal/sdk/pkg/models/operations/createsourcetwitter.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTwitterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTwitterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTwitterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTwitterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTwitterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcetypeform.go b/internal/sdk/pkg/models/operations/createsourcetypeform.go
old mode 100755
new mode 100644
index cbbb6ad12..b1c860f16
--- a/internal/sdk/pkg/models/operations/createsourcetypeform.go
+++ b/internal/sdk/pkg/models/operations/createsourcetypeform.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceTypeformResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceTypeformResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceTypeformResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceTypeformResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceTypeformResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceuscensus.go b/internal/sdk/pkg/models/operations/createsourceuscensus.go
old mode 100755
new mode 100644
index cb96cf2a9..29386e347
--- a/internal/sdk/pkg/models/operations/createsourceuscensus.go
+++ b/internal/sdk/pkg/models/operations/createsourceuscensus.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceUsCensusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceUsCensusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceUsCensusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceUsCensusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceUsCensusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcevantage.go b/internal/sdk/pkg/models/operations/createsourcevantage.go
old mode 100755
new mode 100644
index ea0df4640..db484cf25
--- a/internal/sdk/pkg/models/operations/createsourcevantage.go
+++ b/internal/sdk/pkg/models/operations/createsourcevantage.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceVantageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceVantageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceVantageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceVantageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceVantageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcewebflow.go b/internal/sdk/pkg/models/operations/createsourcewebflow.go
old mode 100755
new mode 100644
index 8a472349a..143a59ed5
--- a/internal/sdk/pkg/models/operations/createsourcewebflow.go
+++ b/internal/sdk/pkg/models/operations/createsourcewebflow.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceWebflowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceWebflowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceWebflowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceWebflowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceWebflowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcewhiskyhunter.go b/internal/sdk/pkg/models/operations/createsourcewhiskyhunter.go
old mode 100755
new mode 100644
index d7b6662f5..8f5f1294f
--- a/internal/sdk/pkg/models/operations/createsourcewhiskyhunter.go
+++ b/internal/sdk/pkg/models/operations/createsourcewhiskyhunter.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceWhiskyHunterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceWhiskyHunterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceWhiskyHunterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceWhiskyHunterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceWhiskyHunterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcewikipediapageviews.go b/internal/sdk/pkg/models/operations/createsourcewikipediapageviews.go
old mode 100755
new mode 100644
index d4535db85..19ac3d6c3
--- a/internal/sdk/pkg/models/operations/createsourcewikipediapageviews.go
+++ b/internal/sdk/pkg/models/operations/createsourcewikipediapageviews.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceWikipediaPageviewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceWikipediaPageviewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceWikipediaPageviewsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceWikipediaPageviewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceWikipediaPageviewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcewoocommerce.go b/internal/sdk/pkg/models/operations/createsourcewoocommerce.go
old mode 100755
new mode 100644
index 0874577fb..2263bae28
--- a/internal/sdk/pkg/models/operations/createsourcewoocommerce.go
+++ b/internal/sdk/pkg/models/operations/createsourcewoocommerce.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceWoocommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceWoocommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceWoocommerceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceWoocommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceWoocommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcexero.go b/internal/sdk/pkg/models/operations/createsourcexero.go
old mode 100755
new mode 100644
index 344d7bc15..0e2e0f710
--- a/internal/sdk/pkg/models/operations/createsourcexero.go
+++ b/internal/sdk/pkg/models/operations/createsourcexero.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceXeroResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceXeroResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceXeroResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceXeroResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceXeroResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcexkcd.go b/internal/sdk/pkg/models/operations/createsourcexkcd.go
old mode 100755
new mode 100644
index fd5dbe602..0d7a09b16
--- a/internal/sdk/pkg/models/operations/createsourcexkcd.go
+++ b/internal/sdk/pkg/models/operations/createsourcexkcd.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceXkcdResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceXkcdResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceXkcdResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceXkcdResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceXkcdResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceyandexmetrica.go b/internal/sdk/pkg/models/operations/createsourceyandexmetrica.go
old mode 100755
new mode 100644
index 80e4342f5..fe46bc5c6
--- a/internal/sdk/pkg/models/operations/createsourceyandexmetrica.go
+++ b/internal/sdk/pkg/models/operations/createsourceyandexmetrica.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceYandexMetricaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceYandexMetricaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceYandexMetricaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceYandexMetricaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceYandexMetricaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceyotpo.go b/internal/sdk/pkg/models/operations/createsourceyotpo.go
old mode 100755
new mode 100644
index d4a1ce7c4..d2399346c
--- a/internal/sdk/pkg/models/operations/createsourceyotpo.go
+++ b/internal/sdk/pkg/models/operations/createsourceyotpo.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceYotpoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceYotpoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceYotpoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceYotpoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceYotpoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceyounium.go b/internal/sdk/pkg/models/operations/createsourceyounium.go
old mode 100755
new mode 100644
index 568434851..ede61e5a3
--- a/internal/sdk/pkg/models/operations/createsourceyounium.go
+++ b/internal/sdk/pkg/models/operations/createsourceyounium.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceYouniumResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceYouniumResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceYouniumResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceYouniumResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceYouniumResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourceyoutubeanalytics.go b/internal/sdk/pkg/models/operations/createsourceyoutubeanalytics.go
old mode 100755
new mode 100644
index 49787f3cc..5d6b25f1a
--- a/internal/sdk/pkg/models/operations/createsourceyoutubeanalytics.go
+++ b/internal/sdk/pkg/models/operations/createsourceyoutubeanalytics.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceYoutubeAnalyticsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceYoutubeAnalyticsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceYoutubeAnalyticsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceYoutubeAnalyticsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceYoutubeAnalyticsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezendeskchat.go b/internal/sdk/pkg/models/operations/createsourcezendeskchat.go
old mode 100755
new mode 100644
index cd400c0ed..d594c313a
--- a/internal/sdk/pkg/models/operations/createsourcezendeskchat.go
+++ b/internal/sdk/pkg/models/operations/createsourcezendeskchat.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZendeskChatResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZendeskChatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZendeskChatResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZendeskChatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZendeskChatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezendesksunshine.go b/internal/sdk/pkg/models/operations/createsourcezendesksunshine.go
old mode 100755
new mode 100644
index 79df388cd..42de3a29c
--- a/internal/sdk/pkg/models/operations/createsourcezendesksunshine.go
+++ b/internal/sdk/pkg/models/operations/createsourcezendesksunshine.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZendeskSunshineResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZendeskSunshineResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZendeskSunshineResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZendeskSunshineResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZendeskSunshineResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezendesksupport.go b/internal/sdk/pkg/models/operations/createsourcezendesksupport.go
old mode 100755
new mode 100644
index 8e68feb4a..ade89408b
--- a/internal/sdk/pkg/models/operations/createsourcezendesksupport.go
+++ b/internal/sdk/pkg/models/operations/createsourcezendesksupport.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZendeskSupportResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZendeskSupportResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZendeskSupportResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZendeskSupportResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZendeskSupportResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezendesktalk.go b/internal/sdk/pkg/models/operations/createsourcezendesktalk.go
old mode 100755
new mode 100644
index 44d7f4d7f..cd4bbb7b0
--- a/internal/sdk/pkg/models/operations/createsourcezendesktalk.go
+++ b/internal/sdk/pkg/models/operations/createsourcezendesktalk.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZendeskTalkResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZendeskTalkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZendeskTalkResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZendeskTalkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZendeskTalkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezenloop.go b/internal/sdk/pkg/models/operations/createsourcezenloop.go
old mode 100755
new mode 100644
index 5226a4da3..a6764212c
--- a/internal/sdk/pkg/models/operations/createsourcezenloop.go
+++ b/internal/sdk/pkg/models/operations/createsourcezenloop.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZenloopResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZenloopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZenloopResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZenloopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZenloopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezohocrm.go b/internal/sdk/pkg/models/operations/createsourcezohocrm.go
old mode 100755
new mode 100644
index 40f341e0f..170c40b3d
--- a/internal/sdk/pkg/models/operations/createsourcezohocrm.go
+++ b/internal/sdk/pkg/models/operations/createsourcezohocrm.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZohoCrmResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZohoCrmResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZohoCrmResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZohoCrmResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZohoCrmResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezoom.go b/internal/sdk/pkg/models/operations/createsourcezoom.go
old mode 100755
new mode 100644
index 0b50b899a..e2ae8a93f
--- a/internal/sdk/pkg/models/operations/createsourcezoom.go
+++ b/internal/sdk/pkg/models/operations/createsourcezoom.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZoomResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZoomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZoomResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZoomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZoomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createsourcezuora.go b/internal/sdk/pkg/models/operations/createsourcezuora.go
old mode 100755
new mode 100644
index 08d50e944..e0a602f7a
--- a/internal/sdk/pkg/models/operations/createsourcezuora.go
+++ b/internal/sdk/pkg/models/operations/createsourcezuora.go
@@ -8,9 +8,40 @@ import (
)
type CreateSourceZuoraResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *CreateSourceZuoraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateSourceZuoraResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *CreateSourceZuoraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateSourceZuoraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/createworkspace.go b/internal/sdk/pkg/models/operations/createworkspace.go
old mode 100755
new mode 100644
index b02f83b2c..d81fbffea
--- a/internal/sdk/pkg/models/operations/createworkspace.go
+++ b/internal/sdk/pkg/models/operations/createworkspace.go
@@ -8,9 +8,40 @@ import (
)
type CreateWorkspaceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// Successful operation
WorkspaceResponse *shared.WorkspaceResponse
}
+
+func (o *CreateWorkspaceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *CreateWorkspaceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *CreateWorkspaceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
+
+func (o *CreateWorkspaceResponse) GetWorkspaceResponse() *shared.WorkspaceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deleteconnection.go b/internal/sdk/pkg/models/operations/deleteconnection.go
old mode 100755
new mode 100644
index bd5224b9b..ecedcaad1
--- a/internal/sdk/pkg/models/operations/deleteconnection.go
+++ b/internal/sdk/pkg/models/operations/deleteconnection.go
@@ -10,8 +10,39 @@ type DeleteConnectionRequest struct {
ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"`
}
+func (o *DeleteConnectionRequest) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
type DeleteConnectionResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteConnectionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteConnectionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteConnectionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestination.go b/internal/sdk/pkg/models/operations/deletedestination.go
old mode 100755
new mode 100644
index 1676660b4..c69d003e4
--- a/internal/sdk/pkg/models/operations/deletedestination.go
+++ b/internal/sdk/pkg/models/operations/deletedestination.go
@@ -10,8 +10,39 @@ type DeleteDestinationRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationawsdatalake.go b/internal/sdk/pkg/models/operations/deletedestinationawsdatalake.go
old mode 100755
new mode 100644
index 6a762465b..a4ab986d8
--- a/internal/sdk/pkg/models/operations/deletedestinationawsdatalake.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationawsdatalake.go
@@ -10,8 +10,39 @@ type DeleteDestinationAwsDatalakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationAwsDatalakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationAwsDatalakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationAwsDatalakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationAwsDatalakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationAwsDatalakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationazureblobstorage.go b/internal/sdk/pkg/models/operations/deletedestinationazureblobstorage.go
old mode 100755
new mode 100644
index da8a66db7..22b035bda
--- a/internal/sdk/pkg/models/operations/deletedestinationazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationazureblobstorage.go
@@ -10,8 +10,39 @@ type DeleteDestinationAzureBlobStorageRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationAzureBlobStorageRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationbigquery.go b/internal/sdk/pkg/models/operations/deletedestinationbigquery.go
old mode 100755
new mode 100644
index 6d4a051fc..d453df999
--- a/internal/sdk/pkg/models/operations/deletedestinationbigquery.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationbigquery.go
@@ -10,8 +10,39 @@ type DeleteDestinationBigqueryRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationBigqueryRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationbigquerydenormalized.go b/internal/sdk/pkg/models/operations/deletedestinationbigquerydenormalized.go
old mode 100755
new mode 100644
index 2db785dc2..165dc5afc
--- a/internal/sdk/pkg/models/operations/deletedestinationbigquerydenormalized.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationbigquerydenormalized.go
@@ -10,8 +10,39 @@ type DeleteDestinationBigqueryDenormalizedRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationBigqueryDenormalizedRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationBigqueryDenormalizedResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationBigqueryDenormalizedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationBigqueryDenormalizedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationBigqueryDenormalizedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationclickhouse.go b/internal/sdk/pkg/models/operations/deletedestinationclickhouse.go
old mode 100755
new mode 100644
index e9d587b54..e4c3d0b2f
--- a/internal/sdk/pkg/models/operations/deletedestinationclickhouse.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationclickhouse.go
@@ -10,8 +10,39 @@ type DeleteDestinationClickhouseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationClickhouseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationconvex.go b/internal/sdk/pkg/models/operations/deletedestinationconvex.go
old mode 100755
new mode 100644
index 2c2276f3e..490b94698
--- a/internal/sdk/pkg/models/operations/deletedestinationconvex.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationconvex.go
@@ -10,8 +10,39 @@ type DeleteDestinationConvexRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationConvexRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationcumulio.go b/internal/sdk/pkg/models/operations/deletedestinationcumulio.go
old mode 100755
new mode 100644
index 3bfc0a284..34daf4d5e
--- a/internal/sdk/pkg/models/operations/deletedestinationcumulio.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationcumulio.go
@@ -10,8 +10,39 @@ type DeleteDestinationCumulioRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationCumulioRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationCumulioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationCumulioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationCumulioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationCumulioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationdatabend.go b/internal/sdk/pkg/models/operations/deletedestinationdatabend.go
old mode 100755
new mode 100644
index 4334465a7..91459f8fd
--- a/internal/sdk/pkg/models/operations/deletedestinationdatabend.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationdatabend.go
@@ -10,8 +10,39 @@ type DeleteDestinationDatabendRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationDatabendRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationDatabendResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationDatabendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationDatabendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationDatabendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationdatabricks.go b/internal/sdk/pkg/models/operations/deletedestinationdatabricks.go
old mode 100755
new mode 100644
index ecd645f69..a854fd292
--- a/internal/sdk/pkg/models/operations/deletedestinationdatabricks.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationdatabricks.go
@@ -10,8 +10,39 @@ type DeleteDestinationDatabricksRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationDatabricksRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationDatabricksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationDatabricksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationDatabricksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationDatabricksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationdevnull.go b/internal/sdk/pkg/models/operations/deletedestinationdevnull.go
old mode 100755
new mode 100644
index 588f8a43d..e16fa666c
--- a/internal/sdk/pkg/models/operations/deletedestinationdevnull.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationdevnull.go
@@ -10,8 +10,39 @@ type DeleteDestinationDevNullRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationDevNullRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationDevNullResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationDevNullResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationDevNullResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationDevNullResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationdynamodb.go b/internal/sdk/pkg/models/operations/deletedestinationdynamodb.go
old mode 100755
new mode 100644
index 1b91f356d..5472c87df
--- a/internal/sdk/pkg/models/operations/deletedestinationdynamodb.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationdynamodb.go
@@ -10,8 +10,39 @@ type DeleteDestinationDynamodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationDynamodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationelasticsearch.go b/internal/sdk/pkg/models/operations/deletedestinationelasticsearch.go
old mode 100755
new mode 100644
index aa0e05069..40181114e
--- a/internal/sdk/pkg/models/operations/deletedestinationelasticsearch.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationelasticsearch.go
@@ -10,8 +10,39 @@ type DeleteDestinationElasticsearchRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationElasticsearchRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationElasticsearchResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationElasticsearchResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationElasticsearchResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationElasticsearchResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationfirebolt.go b/internal/sdk/pkg/models/operations/deletedestinationfirebolt.go
old mode 100755
new mode 100644
index a386dd911..026de24ad
--- a/internal/sdk/pkg/models/operations/deletedestinationfirebolt.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationfirebolt.go
@@ -10,8 +10,39 @@ type DeleteDestinationFireboltRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationFireboltRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationfirestore.go b/internal/sdk/pkg/models/operations/deletedestinationfirestore.go
old mode 100755
new mode 100644
index 2aa922bff..8ce70bcbc
--- a/internal/sdk/pkg/models/operations/deletedestinationfirestore.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationfirestore.go
@@ -10,8 +10,39 @@ type DeleteDestinationFirestoreRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationFirestoreRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationFirestoreResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationFirestoreResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationFirestoreResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationFirestoreResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationgcs.go b/internal/sdk/pkg/models/operations/deletedestinationgcs.go
old mode 100755
new mode 100644
index 598089c76..e8accd9ab
--- a/internal/sdk/pkg/models/operations/deletedestinationgcs.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationgcs.go
@@ -10,8 +10,39 @@ type DeleteDestinationGcsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationGcsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationgooglesheets.go b/internal/sdk/pkg/models/operations/deletedestinationgooglesheets.go
old mode 100755
new mode 100644
index d785b3dd2..5ee58d9b7
--- a/internal/sdk/pkg/models/operations/deletedestinationgooglesheets.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationgooglesheets.go
@@ -10,8 +10,39 @@ type DeleteDestinationGoogleSheetsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationGoogleSheetsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationkeen.go b/internal/sdk/pkg/models/operations/deletedestinationkeen.go
old mode 100755
new mode 100644
index 7655b07c1..746dd6cfd
--- a/internal/sdk/pkg/models/operations/deletedestinationkeen.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationkeen.go
@@ -10,8 +10,39 @@ type DeleteDestinationKeenRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationKeenRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationKeenResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationKeenResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationKeenResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationKeenResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationkinesis.go b/internal/sdk/pkg/models/operations/deletedestinationkinesis.go
old mode 100755
new mode 100644
index 9eae56853..b1bf4a7d7
--- a/internal/sdk/pkg/models/operations/deletedestinationkinesis.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationkinesis.go
@@ -10,8 +10,39 @@ type DeleteDestinationKinesisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationKinesisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationKinesisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationKinesisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationKinesisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationKinesisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationlangchain.go b/internal/sdk/pkg/models/operations/deletedestinationlangchain.go
old mode 100755
new mode 100644
index 547a61fa4..0e6665605
--- a/internal/sdk/pkg/models/operations/deletedestinationlangchain.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationlangchain.go
@@ -10,8 +10,39 @@ type DeleteDestinationLangchainRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationLangchainRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationLangchainResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationLangchainResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationLangchainResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationLangchainResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationmilvus.go b/internal/sdk/pkg/models/operations/deletedestinationmilvus.go
old mode 100755
new mode 100644
index d79cef4d5..b9a0a528d
--- a/internal/sdk/pkg/models/operations/deletedestinationmilvus.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationmilvus.go
@@ -10,8 +10,39 @@ type DeleteDestinationMilvusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationMilvusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationMilvusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationMilvusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationMilvusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationMilvusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationmongodb.go b/internal/sdk/pkg/models/operations/deletedestinationmongodb.go
old mode 100755
new mode 100644
index 874b9680b..c4b2b17fa
--- a/internal/sdk/pkg/models/operations/deletedestinationmongodb.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationmongodb.go
@@ -10,8 +10,39 @@ type DeleteDestinationMongodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationMongodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationmssql.go b/internal/sdk/pkg/models/operations/deletedestinationmssql.go
old mode 100755
new mode 100644
index 95561a477..228b03b7f
--- a/internal/sdk/pkg/models/operations/deletedestinationmssql.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationmssql.go
@@ -10,8 +10,39 @@ type DeleteDestinationMssqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationMssqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationmysql.go b/internal/sdk/pkg/models/operations/deletedestinationmysql.go
old mode 100755
new mode 100644
index 99967db3a..ec3258ca6
--- a/internal/sdk/pkg/models/operations/deletedestinationmysql.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationmysql.go
@@ -10,8 +10,39 @@ type DeleteDestinationMysqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationMysqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationoracle.go b/internal/sdk/pkg/models/operations/deletedestinationoracle.go
old mode 100755
new mode 100644
index c700b73b5..7bc7962a0
--- a/internal/sdk/pkg/models/operations/deletedestinationoracle.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationoracle.go
@@ -10,8 +10,39 @@ type DeleteDestinationOracleRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationOracleRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationpinecone.go b/internal/sdk/pkg/models/operations/deletedestinationpinecone.go
old mode 100755
new mode 100644
index 936ad92bf..bf278aa91
--- a/internal/sdk/pkg/models/operations/deletedestinationpinecone.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationpinecone.go
@@ -10,8 +10,39 @@ type DeleteDestinationPineconeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationPineconeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationPineconeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationPineconeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationPineconeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationPineconeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationpostgres.go b/internal/sdk/pkg/models/operations/deletedestinationpostgres.go
old mode 100755
new mode 100644
index 826a4d995..4646feecc
--- a/internal/sdk/pkg/models/operations/deletedestinationpostgres.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationpostgres.go
@@ -10,8 +10,39 @@ type DeleteDestinationPostgresRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationPostgresRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationPostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationPostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationPostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationPostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationpubsub.go b/internal/sdk/pkg/models/operations/deletedestinationpubsub.go
old mode 100755
new mode 100644
index 8b5df32d6..83b1188fb
--- a/internal/sdk/pkg/models/operations/deletedestinationpubsub.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationpubsub.go
@@ -10,8 +10,39 @@ type DeleteDestinationPubsubRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationPubsubRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationPubsubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationPubsubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationPubsubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationPubsubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationredis.go b/internal/sdk/pkg/models/operations/deletedestinationredis.go
old mode 100755
new mode 100644
index 688c9e46e..3c4326fe3
--- a/internal/sdk/pkg/models/operations/deletedestinationredis.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationredis.go
@@ -10,8 +10,39 @@ type DeleteDestinationRedisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationRedisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationRedisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationRedisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationRedisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationRedisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationredshift.go b/internal/sdk/pkg/models/operations/deletedestinationredshift.go
old mode 100755
new mode 100644
index 7623d37f5..6ade712f0
--- a/internal/sdk/pkg/models/operations/deletedestinationredshift.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationredshift.go
@@ -10,8 +10,39 @@ type DeleteDestinationRedshiftRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationRedshiftRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinations3.go b/internal/sdk/pkg/models/operations/deletedestinations3.go
old mode 100755
new mode 100644
index 2f38766a1..442a4aa25
--- a/internal/sdk/pkg/models/operations/deletedestinations3.go
+++ b/internal/sdk/pkg/models/operations/deletedestinations3.go
@@ -10,8 +10,39 @@ type DeleteDestinationS3Request struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationS3Request) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationS3Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinations3glue.go b/internal/sdk/pkg/models/operations/deletedestinations3glue.go
old mode 100755
new mode 100644
index 925baced6..2471d899e
--- a/internal/sdk/pkg/models/operations/deletedestinations3glue.go
+++ b/internal/sdk/pkg/models/operations/deletedestinations3glue.go
@@ -10,8 +10,39 @@ type DeleteDestinationS3GlueRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationS3GlueRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationS3GlueResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationS3GlueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationS3GlueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationS3GlueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationsftpjson.go b/internal/sdk/pkg/models/operations/deletedestinationsftpjson.go
old mode 100755
new mode 100644
index 992dbb134..37c241897
--- a/internal/sdk/pkg/models/operations/deletedestinationsftpjson.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationsftpjson.go
@@ -10,8 +10,39 @@ type DeleteDestinationSftpJSONRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationSftpJSONRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationSftpJSONResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationSftpJSONResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationSftpJSONResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationSftpJSONResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationsnowflake.go b/internal/sdk/pkg/models/operations/deletedestinationsnowflake.go
old mode 100755
new mode 100644
index 2dd48f1f5..d25149e29
--- a/internal/sdk/pkg/models/operations/deletedestinationsnowflake.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationsnowflake.go
@@ -10,8 +10,39 @@ type DeleteDestinationSnowflakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationSnowflakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationtimeplus.go b/internal/sdk/pkg/models/operations/deletedestinationtimeplus.go
old mode 100755
new mode 100644
index 0d0306fce..fb85847c4
--- a/internal/sdk/pkg/models/operations/deletedestinationtimeplus.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationtimeplus.go
@@ -10,8 +10,39 @@ type DeleteDestinationTimeplusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationTimeplusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationTimeplusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationTimeplusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationTimeplusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationTimeplusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationtypesense.go b/internal/sdk/pkg/models/operations/deletedestinationtypesense.go
old mode 100755
new mode 100644
index e9cc4cecf..4452e7c12
--- a/internal/sdk/pkg/models/operations/deletedestinationtypesense.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationtypesense.go
@@ -10,8 +10,39 @@ type DeleteDestinationTypesenseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationTypesenseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationTypesenseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationTypesenseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationTypesenseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationTypesenseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationvertica.go b/internal/sdk/pkg/models/operations/deletedestinationvertica.go
old mode 100755
new mode 100644
index 72b429e4f..d86b78aa5
--- a/internal/sdk/pkg/models/operations/deletedestinationvertica.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationvertica.go
@@ -10,8 +10,39 @@ type DeleteDestinationVerticaRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationVerticaRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationVerticaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationVerticaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationVerticaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationVerticaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletedestinationxata.go b/internal/sdk/pkg/models/operations/deletedestinationxata.go
old mode 100755
new mode 100644
index d13716419..b37bf4e40
--- a/internal/sdk/pkg/models/operations/deletedestinationxata.go
+++ b/internal/sdk/pkg/models/operations/deletedestinationxata.go
@@ -10,8 +10,39 @@ type DeleteDestinationXataRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *DeleteDestinationXataRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type DeleteDestinationXataResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteDestinationXataResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteDestinationXataResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteDestinationXataResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesource.go b/internal/sdk/pkg/models/operations/deletesource.go
old mode 100755
new mode 100644
index 7e0f83559..99ca6b12d
--- a/internal/sdk/pkg/models/operations/deletesource.go
+++ b/internal/sdk/pkg/models/operations/deletesource.go
@@ -10,8 +10,39 @@ type DeleteSourceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceaha.go b/internal/sdk/pkg/models/operations/deletesourceaha.go
old mode 100755
new mode 100644
index 6a35ed9d6..33bb743c7
--- a/internal/sdk/pkg/models/operations/deletesourceaha.go
+++ b/internal/sdk/pkg/models/operations/deletesourceaha.go
@@ -10,8 +10,39 @@ type DeleteSourceAhaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAhaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAhaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAhaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAhaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAhaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceaircall.go b/internal/sdk/pkg/models/operations/deletesourceaircall.go
old mode 100755
new mode 100644
index 1dff28f4b..116a48e90
--- a/internal/sdk/pkg/models/operations/deletesourceaircall.go
+++ b/internal/sdk/pkg/models/operations/deletesourceaircall.go
@@ -10,8 +10,39 @@ type DeleteSourceAircallRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAircallRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAircallResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAircallResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAircallResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAircallResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceairtable.go b/internal/sdk/pkg/models/operations/deletesourceairtable.go
old mode 100755
new mode 100644
index f77e5d286..3083114c9
--- a/internal/sdk/pkg/models/operations/deletesourceairtable.go
+++ b/internal/sdk/pkg/models/operations/deletesourceairtable.go
@@ -10,8 +10,39 @@ type DeleteSourceAirtableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAirtableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAirtableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAirtableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAirtableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAirtableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcealloydb.go b/internal/sdk/pkg/models/operations/deletesourcealloydb.go
old mode 100755
new mode 100644
index ee0834c24..922ef0fff
--- a/internal/sdk/pkg/models/operations/deletesourcealloydb.go
+++ b/internal/sdk/pkg/models/operations/deletesourcealloydb.go
@@ -10,8 +10,39 @@ type DeleteSourceAlloydbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAlloydbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAlloydbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAlloydbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAlloydbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAlloydbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceamazonads.go b/internal/sdk/pkg/models/operations/deletesourceamazonads.go
old mode 100755
new mode 100644
index 84dfbed68..bf2ec7d6d
--- a/internal/sdk/pkg/models/operations/deletesourceamazonads.go
+++ b/internal/sdk/pkg/models/operations/deletesourceamazonads.go
@@ -10,8 +10,39 @@ type DeleteSourceAmazonAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAmazonAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAmazonAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAmazonAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAmazonAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAmazonAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceamazonsellerpartner.go b/internal/sdk/pkg/models/operations/deletesourceamazonsellerpartner.go
old mode 100755
new mode 100644
index 0013158b2..446aa1532
--- a/internal/sdk/pkg/models/operations/deletesourceamazonsellerpartner.go
+++ b/internal/sdk/pkg/models/operations/deletesourceamazonsellerpartner.go
@@ -10,8 +10,39 @@ type DeleteSourceAmazonSellerPartnerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAmazonSellerPartnerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAmazonSellerPartnerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAmazonSellerPartnerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAmazonSellerPartnerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAmazonSellerPartnerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceamazonsqs.go b/internal/sdk/pkg/models/operations/deletesourceamazonsqs.go
old mode 100755
new mode 100644
index dd2bd3fc2..4e2cd7b67
--- a/internal/sdk/pkg/models/operations/deletesourceamazonsqs.go
+++ b/internal/sdk/pkg/models/operations/deletesourceamazonsqs.go
@@ -10,8 +10,39 @@ type DeleteSourceAmazonSqsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAmazonSqsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAmazonSqsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAmazonSqsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAmazonSqsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAmazonSqsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceamplitude.go b/internal/sdk/pkg/models/operations/deletesourceamplitude.go
old mode 100755
new mode 100644
index d8a912dca..4f32b4033
--- a/internal/sdk/pkg/models/operations/deletesourceamplitude.go
+++ b/internal/sdk/pkg/models/operations/deletesourceamplitude.go
@@ -10,8 +10,39 @@ type DeleteSourceAmplitudeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAmplitudeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAmplitudeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAmplitudeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAmplitudeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAmplitudeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceapifydataset.go b/internal/sdk/pkg/models/operations/deletesourceapifydataset.go
old mode 100755
new mode 100644
index 57cc44017..e39e07db5
--- a/internal/sdk/pkg/models/operations/deletesourceapifydataset.go
+++ b/internal/sdk/pkg/models/operations/deletesourceapifydataset.go
@@ -10,8 +10,39 @@ type DeleteSourceApifyDatasetRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceApifyDatasetRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceApifyDatasetResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceApifyDatasetResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceApifyDatasetResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceApifyDatasetResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceappfollow.go b/internal/sdk/pkg/models/operations/deletesourceappfollow.go
old mode 100755
new mode 100644
index 31ef38c3d..48fbb1a71
--- a/internal/sdk/pkg/models/operations/deletesourceappfollow.go
+++ b/internal/sdk/pkg/models/operations/deletesourceappfollow.go
@@ -10,8 +10,39 @@ type DeleteSourceAppfollowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAppfollowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAppfollowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAppfollowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAppfollowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAppfollowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceasana.go b/internal/sdk/pkg/models/operations/deletesourceasana.go
old mode 100755
new mode 100644
index 11e673626..77dd2c244
--- a/internal/sdk/pkg/models/operations/deletesourceasana.go
+++ b/internal/sdk/pkg/models/operations/deletesourceasana.go
@@ -10,8 +10,39 @@ type DeleteSourceAsanaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAsanaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAsanaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAsanaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAsanaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAsanaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceauth0.go b/internal/sdk/pkg/models/operations/deletesourceauth0.go
old mode 100755
new mode 100644
index 00e56f4dd..c305dc3ee
--- a/internal/sdk/pkg/models/operations/deletesourceauth0.go
+++ b/internal/sdk/pkg/models/operations/deletesourceauth0.go
@@ -10,8 +10,39 @@ type DeleteSourceAuth0Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAuth0Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAuth0Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAuth0Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAuth0Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAuth0Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceawscloudtrail.go b/internal/sdk/pkg/models/operations/deletesourceawscloudtrail.go
old mode 100755
new mode 100644
index e4ba97fca..ba733bc0d
--- a/internal/sdk/pkg/models/operations/deletesourceawscloudtrail.go
+++ b/internal/sdk/pkg/models/operations/deletesourceawscloudtrail.go
@@ -10,8 +10,39 @@ type DeleteSourceAwsCloudtrailRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAwsCloudtrailRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAwsCloudtrailResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAwsCloudtrailResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAwsCloudtrailResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAwsCloudtrailResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceazureblobstorage.go b/internal/sdk/pkg/models/operations/deletesourceazureblobstorage.go
old mode 100755
new mode 100644
index 43d6b6fbb..a3a6500d7
--- a/internal/sdk/pkg/models/operations/deletesourceazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/deletesourceazureblobstorage.go
@@ -10,8 +10,39 @@ type DeleteSourceAzureBlobStorageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAzureBlobStorageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceazuretable.go b/internal/sdk/pkg/models/operations/deletesourceazuretable.go
old mode 100755
new mode 100644
index 9725e5dbc..f68e767ab
--- a/internal/sdk/pkg/models/operations/deletesourceazuretable.go
+++ b/internal/sdk/pkg/models/operations/deletesourceazuretable.go
@@ -10,8 +10,39 @@ type DeleteSourceAzureTableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceAzureTableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceAzureTableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceAzureTableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceAzureTableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceAzureTableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebamboohr.go b/internal/sdk/pkg/models/operations/deletesourcebamboohr.go
old mode 100755
new mode 100644
index cd33da082..2bf30695d
--- a/internal/sdk/pkg/models/operations/deletesourcebamboohr.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebamboohr.go
@@ -10,8 +10,39 @@ type DeleteSourceBambooHrRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBambooHrRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBambooHrResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBambooHrResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBambooHrResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBambooHrResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebigcommerce.go b/internal/sdk/pkg/models/operations/deletesourcebigcommerce.go
old mode 100755
new mode 100644
index 6ecf4bcbb..5d390e0a4
--- a/internal/sdk/pkg/models/operations/deletesourcebigcommerce.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebigcommerce.go
@@ -10,8 +10,39 @@ type DeleteSourceBigcommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBigcommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBigcommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBigcommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBigcommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBigcommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebigquery.go b/internal/sdk/pkg/models/operations/deletesourcebigquery.go
old mode 100755
new mode 100644
index b8bd25ffb..d69bac03b
--- a/internal/sdk/pkg/models/operations/deletesourcebigquery.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebigquery.go
@@ -10,8 +10,39 @@ type DeleteSourceBigqueryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBigqueryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebingads.go b/internal/sdk/pkg/models/operations/deletesourcebingads.go
old mode 100755
new mode 100644
index f015db0f1..148723aaa
--- a/internal/sdk/pkg/models/operations/deletesourcebingads.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebingads.go
@@ -10,8 +10,39 @@ type DeleteSourceBingAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBingAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBingAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBingAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBingAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBingAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebraintree.go b/internal/sdk/pkg/models/operations/deletesourcebraintree.go
old mode 100755
new mode 100644
index 34d84419b..9674173a9
--- a/internal/sdk/pkg/models/operations/deletesourcebraintree.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebraintree.go
@@ -10,8 +10,39 @@ type DeleteSourceBraintreeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBraintreeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBraintreeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBraintreeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBraintreeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBraintreeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcebraze.go b/internal/sdk/pkg/models/operations/deletesourcebraze.go
old mode 100755
new mode 100644
index 85bec60f3..485007190
--- a/internal/sdk/pkg/models/operations/deletesourcebraze.go
+++ b/internal/sdk/pkg/models/operations/deletesourcebraze.go
@@ -10,8 +10,39 @@ type DeleteSourceBrazeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceBrazeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceBrazeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceBrazeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceBrazeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceBrazeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcechargebee.go b/internal/sdk/pkg/models/operations/deletesourcechargebee.go
old mode 100755
new mode 100644
index d2cd70fb4..9c864550d
--- a/internal/sdk/pkg/models/operations/deletesourcechargebee.go
+++ b/internal/sdk/pkg/models/operations/deletesourcechargebee.go
@@ -10,8 +10,39 @@ type DeleteSourceChargebeeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceChargebeeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceChargebeeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceChargebeeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceChargebeeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceChargebeeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcechartmogul.go b/internal/sdk/pkg/models/operations/deletesourcechartmogul.go
old mode 100755
new mode 100644
index a67326e7b..f74f5ad11
--- a/internal/sdk/pkg/models/operations/deletesourcechartmogul.go
+++ b/internal/sdk/pkg/models/operations/deletesourcechartmogul.go
@@ -10,8 +10,39 @@ type DeleteSourceChartmogulRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceChartmogulRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceChartmogulResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceChartmogulResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceChartmogulResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceChartmogulResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceclickhouse.go b/internal/sdk/pkg/models/operations/deletesourceclickhouse.go
old mode 100755
new mode 100644
index e6c45d5bf..2d27aef74
--- a/internal/sdk/pkg/models/operations/deletesourceclickhouse.go
+++ b/internal/sdk/pkg/models/operations/deletesourceclickhouse.go
@@ -10,8 +10,39 @@ type DeleteSourceClickhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceClickhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceclickupapi.go b/internal/sdk/pkg/models/operations/deletesourceclickupapi.go
old mode 100755
new mode 100644
index ec07abfd6..f4760abf6
--- a/internal/sdk/pkg/models/operations/deletesourceclickupapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourceclickupapi.go
@@ -10,8 +10,39 @@ type DeleteSourceClickupAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceClickupAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceClickupAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceClickupAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceClickupAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceClickupAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceclockify.go b/internal/sdk/pkg/models/operations/deletesourceclockify.go
old mode 100755
new mode 100644
index 62ec37dd5..1ef7e920f
--- a/internal/sdk/pkg/models/operations/deletesourceclockify.go
+++ b/internal/sdk/pkg/models/operations/deletesourceclockify.go
@@ -10,8 +10,39 @@ type DeleteSourceClockifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceClockifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceClockifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceClockifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceClockifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceClockifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceclosecom.go b/internal/sdk/pkg/models/operations/deletesourceclosecom.go
old mode 100755
new mode 100644
index 58dfefee7..a4c15c5ed
--- a/internal/sdk/pkg/models/operations/deletesourceclosecom.go
+++ b/internal/sdk/pkg/models/operations/deletesourceclosecom.go
@@ -10,8 +10,39 @@ type DeleteSourceCloseComRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceCloseComRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceCloseComResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceCloseComResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceCloseComResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceCloseComResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcecoda.go b/internal/sdk/pkg/models/operations/deletesourcecoda.go
old mode 100755
new mode 100644
index 485a63527..b32f5f5f4
--- a/internal/sdk/pkg/models/operations/deletesourcecoda.go
+++ b/internal/sdk/pkg/models/operations/deletesourcecoda.go
@@ -10,8 +10,39 @@ type DeleteSourceCodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceCodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceCodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceCodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceCodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceCodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcecoinapi.go b/internal/sdk/pkg/models/operations/deletesourcecoinapi.go
old mode 100755
new mode 100644
index f49d15d52..9ed175d3c
--- a/internal/sdk/pkg/models/operations/deletesourcecoinapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcecoinapi.go
@@ -10,8 +10,39 @@ type DeleteSourceCoinAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceCoinAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceCoinAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceCoinAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceCoinAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceCoinAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcecoinmarketcap.go b/internal/sdk/pkg/models/operations/deletesourcecoinmarketcap.go
old mode 100755
new mode 100644
index e3bf70a53..dc16f24c7
--- a/internal/sdk/pkg/models/operations/deletesourcecoinmarketcap.go
+++ b/internal/sdk/pkg/models/operations/deletesourcecoinmarketcap.go
@@ -10,8 +10,39 @@ type DeleteSourceCoinmarketcapRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceCoinmarketcapRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceCoinmarketcapResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceCoinmarketcapResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceCoinmarketcapResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceCoinmarketcapResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceconfigcat.go b/internal/sdk/pkg/models/operations/deletesourceconfigcat.go
old mode 100755
new mode 100644
index 815505e1c..7064b666d
--- a/internal/sdk/pkg/models/operations/deletesourceconfigcat.go
+++ b/internal/sdk/pkg/models/operations/deletesourceconfigcat.go
@@ -10,8 +10,39 @@ type DeleteSourceConfigcatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceConfigcatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceConfigcatResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceConfigcatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceConfigcatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceConfigcatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceconfluence.go b/internal/sdk/pkg/models/operations/deletesourceconfluence.go
old mode 100755
new mode 100644
index 4f4023b78..1a6e1e251
--- a/internal/sdk/pkg/models/operations/deletesourceconfluence.go
+++ b/internal/sdk/pkg/models/operations/deletesourceconfluence.go
@@ -10,8 +10,39 @@ type DeleteSourceConfluenceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceConfluenceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceConfluenceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceConfluenceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceConfluenceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceConfluenceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceconvex.go b/internal/sdk/pkg/models/operations/deletesourceconvex.go
old mode 100755
new mode 100644
index d768d6010..ed5594e83
--- a/internal/sdk/pkg/models/operations/deletesourceconvex.go
+++ b/internal/sdk/pkg/models/operations/deletesourceconvex.go
@@ -10,8 +10,39 @@ type DeleteSourceConvexRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceConvexRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedatascope.go b/internal/sdk/pkg/models/operations/deletesourcedatascope.go
old mode 100755
new mode 100644
index 19b7b8c13..84bb7812a
--- a/internal/sdk/pkg/models/operations/deletesourcedatascope.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedatascope.go
@@ -10,8 +10,39 @@ type DeleteSourceDatascopeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDatascopeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDatascopeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDatascopeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDatascopeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDatascopeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedelighted.go b/internal/sdk/pkg/models/operations/deletesourcedelighted.go
old mode 100755
new mode 100644
index 8e0873ccd..126fb47d9
--- a/internal/sdk/pkg/models/operations/deletesourcedelighted.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedelighted.go
@@ -10,8 +10,39 @@ type DeleteSourceDelightedRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDelightedRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDelightedResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDelightedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDelightedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDelightedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedixa.go b/internal/sdk/pkg/models/operations/deletesourcedixa.go
old mode 100755
new mode 100644
index 81d9f43cf..53acd9251
--- a/internal/sdk/pkg/models/operations/deletesourcedixa.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedixa.go
@@ -10,8 +10,39 @@ type DeleteSourceDixaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDixaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDixaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDixaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDixaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDixaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedockerhub.go b/internal/sdk/pkg/models/operations/deletesourcedockerhub.go
old mode 100755
new mode 100644
index 8425f3091..7b12f566d
--- a/internal/sdk/pkg/models/operations/deletesourcedockerhub.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedockerhub.go
@@ -10,8 +10,39 @@ type DeleteSourceDockerhubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDockerhubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDockerhubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDockerhubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDockerhubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDockerhubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedremio.go b/internal/sdk/pkg/models/operations/deletesourcedremio.go
old mode 100755
new mode 100644
index 2fb83b099..abd1f6571
--- a/internal/sdk/pkg/models/operations/deletesourcedremio.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedremio.go
@@ -10,8 +10,39 @@ type DeleteSourceDremioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDremioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDremioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDremioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDremioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDremioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcedynamodb.go b/internal/sdk/pkg/models/operations/deletesourcedynamodb.go
old mode 100755
new mode 100644
index ec8461759..64359cb5f
--- a/internal/sdk/pkg/models/operations/deletesourcedynamodb.go
+++ b/internal/sdk/pkg/models/operations/deletesourcedynamodb.go
@@ -10,8 +10,39 @@ type DeleteSourceDynamodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceDynamodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcee2etestcloud.go b/internal/sdk/pkg/models/operations/deletesourcee2etestcloud.go
old mode 100755
new mode 100644
index f1a6a363c..c18a1ca31
--- a/internal/sdk/pkg/models/operations/deletesourcee2etestcloud.go
+++ b/internal/sdk/pkg/models/operations/deletesourcee2etestcloud.go
@@ -10,8 +10,39 @@ type DeleteSourceE2eTestCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceE2eTestCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceE2eTestCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceE2eTestCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceE2eTestCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceE2eTestCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceemailoctopus.go b/internal/sdk/pkg/models/operations/deletesourceemailoctopus.go
old mode 100755
new mode 100644
index 93014e854..d2589b37c
--- a/internal/sdk/pkg/models/operations/deletesourceemailoctopus.go
+++ b/internal/sdk/pkg/models/operations/deletesourceemailoctopus.go
@@ -10,8 +10,39 @@ type DeleteSourceEmailoctopusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceEmailoctopusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceEmailoctopusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceEmailoctopusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceEmailoctopusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceEmailoctopusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceexchangerates.go b/internal/sdk/pkg/models/operations/deletesourceexchangerates.go
old mode 100755
new mode 100644
index aa9697669..7c84aa9fe
--- a/internal/sdk/pkg/models/operations/deletesourceexchangerates.go
+++ b/internal/sdk/pkg/models/operations/deletesourceexchangerates.go
@@ -10,8 +10,39 @@ type DeleteSourceExchangeRatesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceExchangeRatesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceExchangeRatesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceExchangeRatesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceExchangeRatesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceExchangeRatesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefacebookmarketing.go b/internal/sdk/pkg/models/operations/deletesourcefacebookmarketing.go
old mode 100755
new mode 100644
index 07a38e91e..d29c85583
--- a/internal/sdk/pkg/models/operations/deletesourcefacebookmarketing.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefacebookmarketing.go
@@ -10,8 +10,39 @@ type DeleteSourceFacebookMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFacebookMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFacebookMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFacebookMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFacebookMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFacebookMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefacebookpages.go b/internal/sdk/pkg/models/operations/deletesourcefacebookpages.go
old mode 100755
new mode 100644
index e38a9bdcc..f1cc71277
--- a/internal/sdk/pkg/models/operations/deletesourcefacebookpages.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefacebookpages.go
@@ -10,8 +10,39 @@ type DeleteSourceFacebookPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFacebookPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFacebookPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFacebookPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFacebookPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFacebookPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefaker.go b/internal/sdk/pkg/models/operations/deletesourcefaker.go
old mode 100755
new mode 100644
index b401c3862..c9512100a
--- a/internal/sdk/pkg/models/operations/deletesourcefaker.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefaker.go
@@ -10,8 +10,39 @@ type DeleteSourceFakerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFakerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFakerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFakerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFakerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFakerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefauna.go b/internal/sdk/pkg/models/operations/deletesourcefauna.go
old mode 100755
new mode 100644
index 4387c3aca..6386cf515
--- a/internal/sdk/pkg/models/operations/deletesourcefauna.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefauna.go
@@ -10,8 +10,39 @@ type DeleteSourceFaunaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFaunaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFaunaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFaunaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFaunaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFaunaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefilesecure.go b/internal/sdk/pkg/models/operations/deletesourcefilesecure.go
old mode 100755
new mode 100644
index 487704d6d..52a22adea
--- a/internal/sdk/pkg/models/operations/deletesourcefilesecure.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefilesecure.go
@@ -10,8 +10,39 @@ type DeleteSourceFileSecureRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFileSecureRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFileSecureResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFileSecureResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFileSecureResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFileSecureResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefirebolt.go b/internal/sdk/pkg/models/operations/deletesourcefirebolt.go
old mode 100755
new mode 100644
index fe701290e..4ec6ee276
--- a/internal/sdk/pkg/models/operations/deletesourcefirebolt.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefirebolt.go
@@ -10,8 +10,39 @@ type DeleteSourceFireboltRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFireboltRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefreshcaller.go b/internal/sdk/pkg/models/operations/deletesourcefreshcaller.go
old mode 100755
new mode 100644
index a69c8bcf7..8af8b8715
--- a/internal/sdk/pkg/models/operations/deletesourcefreshcaller.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefreshcaller.go
@@ -10,8 +10,39 @@ type DeleteSourceFreshcallerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFreshcallerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFreshcallerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFreshcallerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFreshcallerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFreshcallerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefreshdesk.go b/internal/sdk/pkg/models/operations/deletesourcefreshdesk.go
old mode 100755
new mode 100644
index c130157a2..ca82a991b
--- a/internal/sdk/pkg/models/operations/deletesourcefreshdesk.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefreshdesk.go
@@ -10,8 +10,39 @@ type DeleteSourceFreshdeskRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFreshdeskRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFreshdeskResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFreshdeskResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFreshdeskResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFreshdeskResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcefreshsales.go b/internal/sdk/pkg/models/operations/deletesourcefreshsales.go
old mode 100755
new mode 100644
index 62d1e35fa..bb6bf34a9
--- a/internal/sdk/pkg/models/operations/deletesourcefreshsales.go
+++ b/internal/sdk/pkg/models/operations/deletesourcefreshsales.go
@@ -10,8 +10,39 @@ type DeleteSourceFreshsalesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceFreshsalesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceFreshsalesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceFreshsalesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceFreshsalesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceFreshsalesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegainsightpx.go b/internal/sdk/pkg/models/operations/deletesourcegainsightpx.go
old mode 100755
new mode 100644
index 9aa4b0dc1..026d94d06
--- a/internal/sdk/pkg/models/operations/deletesourcegainsightpx.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegainsightpx.go
@@ -10,8 +10,39 @@ type DeleteSourceGainsightPxRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGainsightPxRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGainsightPxResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGainsightPxResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGainsightPxResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGainsightPxResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegcs.go b/internal/sdk/pkg/models/operations/deletesourcegcs.go
old mode 100755
new mode 100644
index defb2fe76..ada4bc9e3
--- a/internal/sdk/pkg/models/operations/deletesourcegcs.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegcs.go
@@ -10,8 +10,39 @@ type DeleteSourceGcsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGcsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegetlago.go b/internal/sdk/pkg/models/operations/deletesourcegetlago.go
old mode 100755
new mode 100644
index 99697b6f4..5b54f05d8
--- a/internal/sdk/pkg/models/operations/deletesourcegetlago.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegetlago.go
@@ -10,8 +10,39 @@ type DeleteSourceGetlagoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGetlagoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGetlagoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGetlagoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGetlagoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGetlagoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegithub.go b/internal/sdk/pkg/models/operations/deletesourcegithub.go
old mode 100755
new mode 100644
index 102466350..8e0536e23
--- a/internal/sdk/pkg/models/operations/deletesourcegithub.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegithub.go
@@ -10,8 +10,39 @@ type DeleteSourceGithubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGithubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGithubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGithubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGithubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGithubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegitlab.go b/internal/sdk/pkg/models/operations/deletesourcegitlab.go
old mode 100755
new mode 100644
index 132999eba..0f080dcf8
--- a/internal/sdk/pkg/models/operations/deletesourcegitlab.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegitlab.go
@@ -10,8 +10,39 @@ type DeleteSourceGitlabRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGitlabRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGitlabResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGitlabResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGitlabResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGitlabResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceglassfrog.go b/internal/sdk/pkg/models/operations/deletesourceglassfrog.go
old mode 100755
new mode 100644
index cb8903163..574d12282
--- a/internal/sdk/pkg/models/operations/deletesourceglassfrog.go
+++ b/internal/sdk/pkg/models/operations/deletesourceglassfrog.go
@@ -10,8 +10,39 @@ type DeleteSourceGlassfrogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGlassfrogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGlassfrogResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGlassfrogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGlassfrogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGlassfrogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegnews.go b/internal/sdk/pkg/models/operations/deletesourcegnews.go
old mode 100755
new mode 100644
index a4c9a7791..5a9355397
--- a/internal/sdk/pkg/models/operations/deletesourcegnews.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegnews.go
@@ -10,8 +10,39 @@ type DeleteSourceGnewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGnewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGnewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGnewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGnewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGnewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegoogleads.go b/internal/sdk/pkg/models/operations/deletesourcegoogleads.go
old mode 100755
new mode 100644
index 9af3625fd..cf7854fec
--- a/internal/sdk/pkg/models/operations/deletesourcegoogleads.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegoogleads.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsdataapi.go
old mode 100755
new mode 100644
index 13fce300f..09d675eed
--- a/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsdataapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsdataapi.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleAnalyticsDataAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleAnalyticsDataAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleAnalyticsDataAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleAnalyticsDataAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleAnalyticsDataAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleAnalyticsDataAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsv4.go
old mode 100755
new mode 100644
index 333dd81e9..f10173fea
--- a/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsv4.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegoogleanalyticsv4.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleAnalyticsV4Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleAnalyticsV4Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleAnalyticsV4Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleAnalyticsV4Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleAnalyticsV4Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleAnalyticsV4Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegoogledirectory.go b/internal/sdk/pkg/models/operations/deletesourcegoogledirectory.go
old mode 100755
new mode 100644
index c4cf14daa..bc834b4c1
--- a/internal/sdk/pkg/models/operations/deletesourcegoogledirectory.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegoogledirectory.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleDirectoryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleDirectoryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleDirectoryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleDirectoryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleDirectoryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleDirectoryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegooglepagespeedinsights.go b/internal/sdk/pkg/models/operations/deletesourcegooglepagespeedinsights.go
old mode 100755
new mode 100644
index af362d8e0..e5754107a
--- a/internal/sdk/pkg/models/operations/deletesourcegooglepagespeedinsights.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegooglepagespeedinsights.go
@@ -10,8 +10,39 @@ type DeleteSourceGooglePagespeedInsightsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGooglePagespeedInsightsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGooglePagespeedInsightsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGooglePagespeedInsightsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGooglePagespeedInsightsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGooglePagespeedInsightsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegooglesearchconsole.go b/internal/sdk/pkg/models/operations/deletesourcegooglesearchconsole.go
old mode 100755
new mode 100644
index d7d704fc4..62a0902ad
--- a/internal/sdk/pkg/models/operations/deletesourcegooglesearchconsole.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegooglesearchconsole.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleSearchConsoleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleSearchConsoleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleSearchConsoleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleSearchConsoleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleSearchConsoleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleSearchConsoleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegooglesheets.go b/internal/sdk/pkg/models/operations/deletesourcegooglesheets.go
old mode 100755
new mode 100644
index e7ab5f3e8..bbb0d6efd
--- a/internal/sdk/pkg/models/operations/deletesourcegooglesheets.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegooglesheets.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleSheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleSheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegooglewebfonts.go b/internal/sdk/pkg/models/operations/deletesourcegooglewebfonts.go
old mode 100755
new mode 100644
index de17543ea..58adf1ad3
--- a/internal/sdk/pkg/models/operations/deletesourcegooglewebfonts.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegooglewebfonts.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleWebfontsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleWebfontsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleWebfontsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleWebfontsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleWebfontsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleWebfontsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegoogleworkspaceadminreports.go b/internal/sdk/pkg/models/operations/deletesourcegoogleworkspaceadminreports.go
old mode 100755
new mode 100644
index db728d408..154156206
--- a/internal/sdk/pkg/models/operations/deletesourcegoogleworkspaceadminreports.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegoogleworkspaceadminreports.go
@@ -10,8 +10,39 @@ type DeleteSourceGoogleWorkspaceAdminReportsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGoogleWorkspaceAdminReportsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGoogleWorkspaceAdminReportsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGoogleWorkspaceAdminReportsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGoogleWorkspaceAdminReportsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGoogleWorkspaceAdminReportsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegreenhouse.go b/internal/sdk/pkg/models/operations/deletesourcegreenhouse.go
old mode 100755
new mode 100644
index 64998410a..6df29c5bd
--- a/internal/sdk/pkg/models/operations/deletesourcegreenhouse.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegreenhouse.go
@@ -10,8 +10,39 @@ type DeleteSourceGreenhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGreenhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGreenhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGreenhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGreenhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGreenhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcegridly.go b/internal/sdk/pkg/models/operations/deletesourcegridly.go
old mode 100755
new mode 100644
index c509083d2..2f9239a5f
--- a/internal/sdk/pkg/models/operations/deletesourcegridly.go
+++ b/internal/sdk/pkg/models/operations/deletesourcegridly.go
@@ -10,8 +10,39 @@ type DeleteSourceGridlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceGridlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceGridlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceGridlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceGridlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceGridlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceharvest.go b/internal/sdk/pkg/models/operations/deletesourceharvest.go
old mode 100755
new mode 100644
index c6093bbe2..62ae1c667
--- a/internal/sdk/pkg/models/operations/deletesourceharvest.go
+++ b/internal/sdk/pkg/models/operations/deletesourceharvest.go
@@ -10,8 +10,39 @@ type DeleteSourceHarvestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceHarvestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceHarvestResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceHarvestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceHarvestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceHarvestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcehubplanner.go b/internal/sdk/pkg/models/operations/deletesourcehubplanner.go
old mode 100755
new mode 100644
index e719244a9..6d014c21d
--- a/internal/sdk/pkg/models/operations/deletesourcehubplanner.go
+++ b/internal/sdk/pkg/models/operations/deletesourcehubplanner.go
@@ -10,8 +10,39 @@ type DeleteSourceHubplannerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceHubplannerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceHubplannerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceHubplannerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceHubplannerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceHubplannerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcehubspot.go b/internal/sdk/pkg/models/operations/deletesourcehubspot.go
old mode 100755
new mode 100644
index 6167da7b6..6225af7b9
--- a/internal/sdk/pkg/models/operations/deletesourcehubspot.go
+++ b/internal/sdk/pkg/models/operations/deletesourcehubspot.go
@@ -10,8 +10,39 @@ type DeleteSourceHubspotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceHubspotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceHubspotResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceHubspotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceHubspotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceHubspotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceinsightly.go b/internal/sdk/pkg/models/operations/deletesourceinsightly.go
old mode 100755
new mode 100644
index 7335d6028..8dacd9b76
--- a/internal/sdk/pkg/models/operations/deletesourceinsightly.go
+++ b/internal/sdk/pkg/models/operations/deletesourceinsightly.go
@@ -10,8 +10,39 @@ type DeleteSourceInsightlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceInsightlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceInsightlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceInsightlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceInsightlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceInsightlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceinstagram.go b/internal/sdk/pkg/models/operations/deletesourceinstagram.go
old mode 100755
new mode 100644
index 56eff7877..cb31044fc
--- a/internal/sdk/pkg/models/operations/deletesourceinstagram.go
+++ b/internal/sdk/pkg/models/operations/deletesourceinstagram.go
@@ -10,8 +10,39 @@ type DeleteSourceInstagramRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceInstagramRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceInstagramResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceInstagramResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceInstagramResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceInstagramResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceinstatus.go b/internal/sdk/pkg/models/operations/deletesourceinstatus.go
old mode 100755
new mode 100644
index 4bebb9304..7babc84b5
--- a/internal/sdk/pkg/models/operations/deletesourceinstatus.go
+++ b/internal/sdk/pkg/models/operations/deletesourceinstatus.go
@@ -10,8 +10,39 @@ type DeleteSourceInstatusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceInstatusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceInstatusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceInstatusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceInstatusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceInstatusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceintercom.go b/internal/sdk/pkg/models/operations/deletesourceintercom.go
old mode 100755
new mode 100644
index d87fa746c..67a22d99e
--- a/internal/sdk/pkg/models/operations/deletesourceintercom.go
+++ b/internal/sdk/pkg/models/operations/deletesourceintercom.go
@@ -10,8 +10,39 @@ type DeleteSourceIntercomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceIntercomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceIntercomResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceIntercomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceIntercomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceIntercomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceip2whois.go b/internal/sdk/pkg/models/operations/deletesourceip2whois.go
old mode 100755
new mode 100644
index eab50fa9b..f5077eadc
--- a/internal/sdk/pkg/models/operations/deletesourceip2whois.go
+++ b/internal/sdk/pkg/models/operations/deletesourceip2whois.go
@@ -10,8 +10,39 @@ type DeleteSourceIp2whoisRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceIp2whoisRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceIp2whoisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceIp2whoisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceIp2whoisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceIp2whoisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceiterable.go b/internal/sdk/pkg/models/operations/deletesourceiterable.go
old mode 100755
new mode 100644
index ec7cf6b82..9b747aea4
--- a/internal/sdk/pkg/models/operations/deletesourceiterable.go
+++ b/internal/sdk/pkg/models/operations/deletesourceiterable.go
@@ -10,8 +10,39 @@ type DeleteSourceIterableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceIterableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceIterableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceIterableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceIterableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceIterableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcejira.go b/internal/sdk/pkg/models/operations/deletesourcejira.go
old mode 100755
new mode 100644
index c27ca8feb..115bc9979
--- a/internal/sdk/pkg/models/operations/deletesourcejira.go
+++ b/internal/sdk/pkg/models/operations/deletesourcejira.go
@@ -10,8 +10,39 @@ type DeleteSourceJiraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceJiraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceJiraResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceJiraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceJiraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceJiraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcek6cloud.go b/internal/sdk/pkg/models/operations/deletesourcek6cloud.go
old mode 100755
new mode 100644
index 421cedd55..dbe3d709e
--- a/internal/sdk/pkg/models/operations/deletesourcek6cloud.go
+++ b/internal/sdk/pkg/models/operations/deletesourcek6cloud.go
@@ -10,8 +10,39 @@ type DeleteSourceK6CloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceK6CloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceK6CloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceK6CloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceK6CloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceK6CloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceklarna.go b/internal/sdk/pkg/models/operations/deletesourceklarna.go
old mode 100755
new mode 100644
index 6a630ce6d..95d0bb639
--- a/internal/sdk/pkg/models/operations/deletesourceklarna.go
+++ b/internal/sdk/pkg/models/operations/deletesourceklarna.go
@@ -10,8 +10,39 @@ type DeleteSourceKlarnaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceKlarnaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceKlarnaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceKlarnaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceKlarnaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceKlarnaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceklaviyo.go b/internal/sdk/pkg/models/operations/deletesourceklaviyo.go
old mode 100755
new mode 100644
index c222578f6..d484e7cf4
--- a/internal/sdk/pkg/models/operations/deletesourceklaviyo.go
+++ b/internal/sdk/pkg/models/operations/deletesourceklaviyo.go
@@ -10,8 +10,39 @@ type DeleteSourceKlaviyoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceKlaviyoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceKlaviyoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceKlaviyoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceKlaviyoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceKlaviyoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcekustomersinger.go b/internal/sdk/pkg/models/operations/deletesourcekustomersinger.go
old mode 100755
new mode 100644
index 2db1c82de..561f03f2f
--- a/internal/sdk/pkg/models/operations/deletesourcekustomersinger.go
+++ b/internal/sdk/pkg/models/operations/deletesourcekustomersinger.go
@@ -10,8 +10,39 @@ type DeleteSourceKustomerSingerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceKustomerSingerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceKustomerSingerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceKustomerSingerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceKustomerSingerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceKustomerSingerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcekyve.go b/internal/sdk/pkg/models/operations/deletesourcekyve.go
old mode 100755
new mode 100644
index b69917768..861c7b69c
--- a/internal/sdk/pkg/models/operations/deletesourcekyve.go
+++ b/internal/sdk/pkg/models/operations/deletesourcekyve.go
@@ -10,8 +10,39 @@ type DeleteSourceKyveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceKyveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceKyveResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceKyveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceKyveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceKyveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelaunchdarkly.go b/internal/sdk/pkg/models/operations/deletesourcelaunchdarkly.go
old mode 100755
new mode 100644
index e744b4259..e550a2259
--- a/internal/sdk/pkg/models/operations/deletesourcelaunchdarkly.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelaunchdarkly.go
@@ -10,8 +10,39 @@ type DeleteSourceLaunchdarklyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLaunchdarklyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLaunchdarklyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLaunchdarklyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLaunchdarklyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLaunchdarklyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelemlist.go b/internal/sdk/pkg/models/operations/deletesourcelemlist.go
old mode 100755
new mode 100644
index 4d6c0d6fe..857cab021
--- a/internal/sdk/pkg/models/operations/deletesourcelemlist.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelemlist.go
@@ -10,8 +10,39 @@ type DeleteSourceLemlistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLemlistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLemlistResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLemlistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLemlistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLemlistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceleverhiring.go b/internal/sdk/pkg/models/operations/deletesourceleverhiring.go
old mode 100755
new mode 100644
index abd47a48d..14862cfaf
--- a/internal/sdk/pkg/models/operations/deletesourceleverhiring.go
+++ b/internal/sdk/pkg/models/operations/deletesourceleverhiring.go
@@ -10,8 +10,39 @@ type DeleteSourceLeverHiringRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLeverHiringRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLeverHiringResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLeverHiringResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLeverHiringResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLeverHiringResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelinkedinads.go b/internal/sdk/pkg/models/operations/deletesourcelinkedinads.go
old mode 100755
new mode 100644
index 9012db8e5..faf4932d5
--- a/internal/sdk/pkg/models/operations/deletesourcelinkedinads.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelinkedinads.go
@@ -10,8 +10,39 @@ type DeleteSourceLinkedinAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLinkedinAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLinkedinAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLinkedinAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLinkedinAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLinkedinAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelinkedinpages.go b/internal/sdk/pkg/models/operations/deletesourcelinkedinpages.go
old mode 100755
new mode 100644
index 890c7129f..de8965434
--- a/internal/sdk/pkg/models/operations/deletesourcelinkedinpages.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelinkedinpages.go
@@ -10,8 +10,39 @@ type DeleteSourceLinkedinPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLinkedinPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLinkedinPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLinkedinPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLinkedinPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLinkedinPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelinnworks.go b/internal/sdk/pkg/models/operations/deletesourcelinnworks.go
old mode 100755
new mode 100644
index 2bb91a679..c31baad94
--- a/internal/sdk/pkg/models/operations/deletesourcelinnworks.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelinnworks.go
@@ -10,8 +10,39 @@ type DeleteSourceLinnworksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLinnworksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLinnworksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLinnworksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLinnworksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLinnworksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcelokalise.go b/internal/sdk/pkg/models/operations/deletesourcelokalise.go
old mode 100755
new mode 100644
index 5767d9eea..808ec1185
--- a/internal/sdk/pkg/models/operations/deletesourcelokalise.go
+++ b/internal/sdk/pkg/models/operations/deletesourcelokalise.go
@@ -10,8 +10,39 @@ type DeleteSourceLokaliseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceLokaliseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceLokaliseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceLokaliseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceLokaliseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceLokaliseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemailchimp.go b/internal/sdk/pkg/models/operations/deletesourcemailchimp.go
old mode 100755
new mode 100644
index 11c111590..afe3dc054
--- a/internal/sdk/pkg/models/operations/deletesourcemailchimp.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemailchimp.go
@@ -10,8 +10,39 @@ type DeleteSourceMailchimpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMailchimpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMailchimpResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMailchimpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMailchimpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMailchimpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemailgun.go b/internal/sdk/pkg/models/operations/deletesourcemailgun.go
old mode 100755
new mode 100644
index 9fc0c485c..efe058b2e
--- a/internal/sdk/pkg/models/operations/deletesourcemailgun.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemailgun.go
@@ -10,8 +10,39 @@ type DeleteSourceMailgunRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMailgunRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMailgunResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMailgunResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMailgunResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMailgunResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemailjetsms.go b/internal/sdk/pkg/models/operations/deletesourcemailjetsms.go
old mode 100755
new mode 100644
index 0281a023e..8137c8a17
--- a/internal/sdk/pkg/models/operations/deletesourcemailjetsms.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemailjetsms.go
@@ -10,8 +10,39 @@ type DeleteSourceMailjetSmsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMailjetSmsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMailjetSmsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMailjetSmsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMailjetSmsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMailjetSmsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemarketo.go b/internal/sdk/pkg/models/operations/deletesourcemarketo.go
old mode 100755
new mode 100644
index 6b252a9e7..03320db68
--- a/internal/sdk/pkg/models/operations/deletesourcemarketo.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemarketo.go
@@ -10,8 +10,39 @@ type DeleteSourceMarketoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMarketoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMarketoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMarketoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMarketoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMarketoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemetabase.go b/internal/sdk/pkg/models/operations/deletesourcemetabase.go
old mode 100755
new mode 100644
index f5ef2bd2a..b9e171b4a
--- a/internal/sdk/pkg/models/operations/deletesourcemetabase.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemetabase.go
@@ -10,8 +10,39 @@ type DeleteSourceMetabaseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMetabaseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMetabaseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMetabaseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMetabaseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMetabaseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemicrosoftteams.go b/internal/sdk/pkg/models/operations/deletesourcemicrosoftteams.go
old mode 100755
new mode 100644
index cedfc8c99..aa84a92e2
--- a/internal/sdk/pkg/models/operations/deletesourcemicrosoftteams.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemicrosoftteams.go
@@ -10,8 +10,39 @@ type DeleteSourceMicrosoftTeamsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMicrosoftTeamsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMicrosoftTeamsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMicrosoftTeamsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMicrosoftTeamsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMicrosoftTeamsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemixpanel.go b/internal/sdk/pkg/models/operations/deletesourcemixpanel.go
old mode 100755
new mode 100644
index 6a81783d0..fe83b52f4
--- a/internal/sdk/pkg/models/operations/deletesourcemixpanel.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemixpanel.go
@@ -10,8 +10,39 @@ type DeleteSourceMixpanelRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMixpanelRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMixpanelResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMixpanelResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMixpanelResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMixpanelResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemonday.go b/internal/sdk/pkg/models/operations/deletesourcemonday.go
old mode 100755
new mode 100644
index 1eead0d36..bde0caecf
--- a/internal/sdk/pkg/models/operations/deletesourcemonday.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemonday.go
@@ -10,8 +10,39 @@ type DeleteSourceMondayRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMondayRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMondayResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMondayResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMondayResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMondayResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemongodb.go b/internal/sdk/pkg/models/operations/deletesourcemongodb.go
old mode 100755
new mode 100644
index 9e77b87ad..1589b684a
--- a/internal/sdk/pkg/models/operations/deletesourcemongodb.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemongodb.go
@@ -10,8 +10,39 @@ type DeleteSourceMongodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMongodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemongodbinternalpoc.go b/internal/sdk/pkg/models/operations/deletesourcemongodbinternalpoc.go
old mode 100755
new mode 100644
index db593f146..bbc860d5b
--- a/internal/sdk/pkg/models/operations/deletesourcemongodbinternalpoc.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemongodbinternalpoc.go
@@ -10,8 +10,39 @@ type DeleteSourceMongodbInternalPocRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMongodbInternalPocRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMongodbInternalPocResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMongodbInternalPocResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMongodbInternalPocResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMongodbInternalPocResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemssql.go b/internal/sdk/pkg/models/operations/deletesourcemssql.go
old mode 100755
new mode 100644
index 57551c2e8..794f633df
--- a/internal/sdk/pkg/models/operations/deletesourcemssql.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemssql.go
@@ -10,8 +10,39 @@ type DeleteSourceMssqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMssqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemyhours.go b/internal/sdk/pkg/models/operations/deletesourcemyhours.go
old mode 100755
new mode 100644
index 6d7932ffa..db6aacfe3
--- a/internal/sdk/pkg/models/operations/deletesourcemyhours.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemyhours.go
@@ -10,8 +10,39 @@ type DeleteSourceMyHoursRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMyHoursRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMyHoursResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMyHoursResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMyHoursResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMyHoursResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcemysql.go b/internal/sdk/pkg/models/operations/deletesourcemysql.go
old mode 100755
new mode 100644
index b3d214570..b046ca7c6
--- a/internal/sdk/pkg/models/operations/deletesourcemysql.go
+++ b/internal/sdk/pkg/models/operations/deletesourcemysql.go
@@ -10,8 +10,39 @@ type DeleteSourceMysqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceMysqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcenetsuite.go b/internal/sdk/pkg/models/operations/deletesourcenetsuite.go
old mode 100755
new mode 100644
index bc44a244a..25c4095ba
--- a/internal/sdk/pkg/models/operations/deletesourcenetsuite.go
+++ b/internal/sdk/pkg/models/operations/deletesourcenetsuite.go
@@ -10,8 +10,39 @@ type DeleteSourceNetsuiteRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceNetsuiteRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceNetsuiteResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceNetsuiteResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceNetsuiteResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceNetsuiteResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcenotion.go b/internal/sdk/pkg/models/operations/deletesourcenotion.go
old mode 100755
new mode 100644
index 72b4d161a..ecd2e307b
--- a/internal/sdk/pkg/models/operations/deletesourcenotion.go
+++ b/internal/sdk/pkg/models/operations/deletesourcenotion.go
@@ -10,8 +10,39 @@ type DeleteSourceNotionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceNotionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceNotionResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceNotionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceNotionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceNotionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcenytimes.go b/internal/sdk/pkg/models/operations/deletesourcenytimes.go
old mode 100755
new mode 100644
index e4be998be..f96f8e28c
--- a/internal/sdk/pkg/models/operations/deletesourcenytimes.go
+++ b/internal/sdk/pkg/models/operations/deletesourcenytimes.go
@@ -10,8 +10,39 @@ type DeleteSourceNytimesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceNytimesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceNytimesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceNytimesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceNytimesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceNytimesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceokta.go b/internal/sdk/pkg/models/operations/deletesourceokta.go
old mode 100755
new mode 100644
index 19544cb23..6f346767b
--- a/internal/sdk/pkg/models/operations/deletesourceokta.go
+++ b/internal/sdk/pkg/models/operations/deletesourceokta.go
@@ -10,8 +10,39 @@ type DeleteSourceOktaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOktaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOktaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOktaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOktaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOktaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceomnisend.go b/internal/sdk/pkg/models/operations/deletesourceomnisend.go
old mode 100755
new mode 100644
index 68dce3686..f0fb31947
--- a/internal/sdk/pkg/models/operations/deletesourceomnisend.go
+++ b/internal/sdk/pkg/models/operations/deletesourceomnisend.go
@@ -10,8 +10,39 @@ type DeleteSourceOmnisendRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOmnisendRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOmnisendResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOmnisendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOmnisendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOmnisendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceonesignal.go b/internal/sdk/pkg/models/operations/deletesourceonesignal.go
old mode 100755
new mode 100644
index cdcb8795b..640d75fd1
--- a/internal/sdk/pkg/models/operations/deletesourceonesignal.go
+++ b/internal/sdk/pkg/models/operations/deletesourceonesignal.go
@@ -10,8 +10,39 @@ type DeleteSourceOnesignalRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOnesignalRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOnesignalResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOnesignalResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOnesignalResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOnesignalResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceoracle.go b/internal/sdk/pkg/models/operations/deletesourceoracle.go
old mode 100755
new mode 100644
index 98a23bca5..1cc40959b
--- a/internal/sdk/pkg/models/operations/deletesourceoracle.go
+++ b/internal/sdk/pkg/models/operations/deletesourceoracle.go
@@ -10,8 +10,39 @@ type DeleteSourceOracleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOracleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceorb.go b/internal/sdk/pkg/models/operations/deletesourceorb.go
old mode 100755
new mode 100644
index 3ce3df104..62b97e7b5
--- a/internal/sdk/pkg/models/operations/deletesourceorb.go
+++ b/internal/sdk/pkg/models/operations/deletesourceorb.go
@@ -10,8 +10,39 @@ type DeleteSourceOrbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOrbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOrbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOrbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOrbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOrbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceorbit.go b/internal/sdk/pkg/models/operations/deletesourceorbit.go
old mode 100755
new mode 100644
index b474709f4..0dd0c7de8
--- a/internal/sdk/pkg/models/operations/deletesourceorbit.go
+++ b/internal/sdk/pkg/models/operations/deletesourceorbit.go
@@ -10,8 +10,39 @@ type DeleteSourceOrbitRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOrbitRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOrbitResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOrbitResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOrbitResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOrbitResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceoutbrainamplify.go b/internal/sdk/pkg/models/operations/deletesourceoutbrainamplify.go
old mode 100755
new mode 100644
index 01c7aec5d..548feaacf
--- a/internal/sdk/pkg/models/operations/deletesourceoutbrainamplify.go
+++ b/internal/sdk/pkg/models/operations/deletesourceoutbrainamplify.go
@@ -10,8 +10,39 @@ type DeleteSourceOutbrainAmplifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOutbrainAmplifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOutbrainAmplifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOutbrainAmplifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOutbrainAmplifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOutbrainAmplifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceoutreach.go b/internal/sdk/pkg/models/operations/deletesourceoutreach.go
old mode 100755
new mode 100644
index 51cde2c1d..7810f9334
--- a/internal/sdk/pkg/models/operations/deletesourceoutreach.go
+++ b/internal/sdk/pkg/models/operations/deletesourceoutreach.go
@@ -10,8 +10,39 @@ type DeleteSourceOutreachRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceOutreachRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceOutreachResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceOutreachResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceOutreachResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceOutreachResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepaypaltransaction.go b/internal/sdk/pkg/models/operations/deletesourcepaypaltransaction.go
old mode 100755
new mode 100644
index 9cd54296c..c3a4376f7
--- a/internal/sdk/pkg/models/operations/deletesourcepaypaltransaction.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepaypaltransaction.go
@@ -10,8 +10,39 @@ type DeleteSourcePaypalTransactionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePaypalTransactionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePaypalTransactionResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePaypalTransactionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePaypalTransactionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePaypalTransactionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepaystack.go b/internal/sdk/pkg/models/operations/deletesourcepaystack.go
old mode 100755
new mode 100644
index 2ee022aeb..c2eaa9b0d
--- a/internal/sdk/pkg/models/operations/deletesourcepaystack.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepaystack.go
@@ -10,8 +10,39 @@ type DeleteSourcePaystackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePaystackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePaystackResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePaystackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePaystackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePaystackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcependo.go b/internal/sdk/pkg/models/operations/deletesourcependo.go
old mode 100755
new mode 100644
index 612b5f3ba..1983b27ac
--- a/internal/sdk/pkg/models/operations/deletesourcependo.go
+++ b/internal/sdk/pkg/models/operations/deletesourcependo.go
@@ -10,8 +10,39 @@ type DeleteSourcePendoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePendoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePendoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePendoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePendoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePendoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepersistiq.go b/internal/sdk/pkg/models/operations/deletesourcepersistiq.go
old mode 100755
new mode 100644
index e1c9d26d8..68b5db747
--- a/internal/sdk/pkg/models/operations/deletesourcepersistiq.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepersistiq.go
@@ -10,8 +10,39 @@ type DeleteSourcePersistiqRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePersistiqRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePersistiqResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePersistiqResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePersistiqResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePersistiqResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepexelsapi.go b/internal/sdk/pkg/models/operations/deletesourcepexelsapi.go
old mode 100755
new mode 100644
index fe1cc5f99..cf505e4d5
--- a/internal/sdk/pkg/models/operations/deletesourcepexelsapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepexelsapi.go
@@ -10,8 +10,39 @@ type DeleteSourcePexelsAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePexelsAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePexelsAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePexelsAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePexelsAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePexelsAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepinterest.go b/internal/sdk/pkg/models/operations/deletesourcepinterest.go
old mode 100755
new mode 100644
index f9a6685e7..c513e3fc0
--- a/internal/sdk/pkg/models/operations/deletesourcepinterest.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepinterest.go
@@ -10,8 +10,39 @@ type DeleteSourcePinterestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePinterestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePinterestResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePinterestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePinterestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePinterestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepipedrive.go b/internal/sdk/pkg/models/operations/deletesourcepipedrive.go
old mode 100755
new mode 100644
index a40d7c96b..95c3906fd
--- a/internal/sdk/pkg/models/operations/deletesourcepipedrive.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepipedrive.go
@@ -10,8 +10,39 @@ type DeleteSourcePipedriveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePipedriveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePipedriveResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePipedriveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePipedriveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePipedriveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepocket.go b/internal/sdk/pkg/models/operations/deletesourcepocket.go
old mode 100755
new mode 100644
index f59f7ff8d..c65754c99
--- a/internal/sdk/pkg/models/operations/deletesourcepocket.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepocket.go
@@ -10,8 +10,39 @@ type DeleteSourcePocketRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePocketRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePocketResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePocketResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePocketResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePocketResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepokeapi.go b/internal/sdk/pkg/models/operations/deletesourcepokeapi.go
old mode 100755
new mode 100644
index d44c6e4b7..220e81c4d
--- a/internal/sdk/pkg/models/operations/deletesourcepokeapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepokeapi.go
@@ -10,8 +10,39 @@ type DeleteSourcePokeapiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePokeapiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePokeapiResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePokeapiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePokeapiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePokeapiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepolygonstockapi.go b/internal/sdk/pkg/models/operations/deletesourcepolygonstockapi.go
old mode 100755
new mode 100644
index bb96d457b..e2d57fb26
--- a/internal/sdk/pkg/models/operations/deletesourcepolygonstockapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepolygonstockapi.go
@@ -10,8 +10,39 @@ type DeleteSourcePolygonStockAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePolygonStockAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePolygonStockAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePolygonStockAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePolygonStockAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePolygonStockAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepostgres.go b/internal/sdk/pkg/models/operations/deletesourcepostgres.go
old mode 100755
new mode 100644
index c4bfbf80d..94cdd3a96
--- a/internal/sdk/pkg/models/operations/deletesourcepostgres.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepostgres.go
@@ -10,8 +10,39 @@ type DeleteSourcePostgresRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePostgresRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceposthog.go b/internal/sdk/pkg/models/operations/deletesourceposthog.go
old mode 100755
new mode 100644
index 846c3c1f5..e13e2f40e
--- a/internal/sdk/pkg/models/operations/deletesourceposthog.go
+++ b/internal/sdk/pkg/models/operations/deletesourceposthog.go
@@ -10,8 +10,39 @@ type DeleteSourcePosthogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePosthogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePosthogResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePosthogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePosthogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePosthogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepostmarkapp.go b/internal/sdk/pkg/models/operations/deletesourcepostmarkapp.go
old mode 100755
new mode 100644
index 025d919c3..af325c79e
--- a/internal/sdk/pkg/models/operations/deletesourcepostmarkapp.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepostmarkapp.go
@@ -10,8 +10,39 @@ type DeleteSourcePostmarkappRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePostmarkappRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePostmarkappResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePostmarkappResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePostmarkappResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePostmarkappResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceprestashop.go b/internal/sdk/pkg/models/operations/deletesourceprestashop.go
old mode 100755
new mode 100644
index e53ce6054..6babd76bb
--- a/internal/sdk/pkg/models/operations/deletesourceprestashop.go
+++ b/internal/sdk/pkg/models/operations/deletesourceprestashop.go
@@ -10,8 +10,39 @@ type DeleteSourcePrestashopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePrestashopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePrestashopResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePrestashopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePrestashopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePrestashopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepunkapi.go b/internal/sdk/pkg/models/operations/deletesourcepunkapi.go
old mode 100755
new mode 100644
index 116fe5f75..a779cb183
--- a/internal/sdk/pkg/models/operations/deletesourcepunkapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepunkapi.go
@@ -10,8 +10,39 @@ type DeleteSourcePunkAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePunkAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePunkAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePunkAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePunkAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePunkAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcepypi.go b/internal/sdk/pkg/models/operations/deletesourcepypi.go
old mode 100755
new mode 100644
index a53c4725a..5c8627bf2
--- a/internal/sdk/pkg/models/operations/deletesourcepypi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcepypi.go
@@ -10,8 +10,39 @@ type DeleteSourcePypiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourcePypiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourcePypiResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourcePypiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourcePypiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourcePypiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcequalaroo.go b/internal/sdk/pkg/models/operations/deletesourcequalaroo.go
old mode 100755
new mode 100644
index 5c4c109ce..7cdfdb1a0
--- a/internal/sdk/pkg/models/operations/deletesourcequalaroo.go
+++ b/internal/sdk/pkg/models/operations/deletesourcequalaroo.go
@@ -10,8 +10,39 @@ type DeleteSourceQualarooRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceQualarooRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceQualarooResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceQualarooResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceQualarooResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceQualarooResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcequickbooks.go b/internal/sdk/pkg/models/operations/deletesourcequickbooks.go
old mode 100755
new mode 100644
index 203de3758..49aaed3ac
--- a/internal/sdk/pkg/models/operations/deletesourcequickbooks.go
+++ b/internal/sdk/pkg/models/operations/deletesourcequickbooks.go
@@ -10,8 +10,39 @@ type DeleteSourceQuickbooksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceQuickbooksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceQuickbooksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceQuickbooksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceQuickbooksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceQuickbooksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerailz.go b/internal/sdk/pkg/models/operations/deletesourcerailz.go
old mode 100755
new mode 100644
index e03d312bf..bf56bd9fb
--- a/internal/sdk/pkg/models/operations/deletesourcerailz.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerailz.go
@@ -10,8 +10,39 @@ type DeleteSourceRailzRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRailzRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRailzResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRailzResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRailzResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRailzResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerecharge.go b/internal/sdk/pkg/models/operations/deletesourcerecharge.go
old mode 100755
new mode 100644
index 47cfcdbc5..e806e955a
--- a/internal/sdk/pkg/models/operations/deletesourcerecharge.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerecharge.go
@@ -10,8 +10,39 @@ type DeleteSourceRechargeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRechargeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRechargeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRechargeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRechargeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRechargeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerecreation.go b/internal/sdk/pkg/models/operations/deletesourcerecreation.go
old mode 100755
new mode 100644
index 13cd206f4..925741c36
--- a/internal/sdk/pkg/models/operations/deletesourcerecreation.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerecreation.go
@@ -10,8 +10,39 @@ type DeleteSourceRecreationRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRecreationRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRecreationResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRecreationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRecreationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRecreationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerecruitee.go b/internal/sdk/pkg/models/operations/deletesourcerecruitee.go
old mode 100755
new mode 100644
index 46edc3a1a..917139092
--- a/internal/sdk/pkg/models/operations/deletesourcerecruitee.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerecruitee.go
@@ -10,8 +10,39 @@ type DeleteSourceRecruiteeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRecruiteeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRecruiteeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRecruiteeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRecruiteeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRecruiteeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerecurly.go b/internal/sdk/pkg/models/operations/deletesourcerecurly.go
old mode 100755
new mode 100644
index e90bfea63..754aca088
--- a/internal/sdk/pkg/models/operations/deletesourcerecurly.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerecurly.go
@@ -10,8 +10,39 @@ type DeleteSourceRecurlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRecurlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRecurlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRecurlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRecurlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRecurlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceredshift.go b/internal/sdk/pkg/models/operations/deletesourceredshift.go
old mode 100755
new mode 100644
index 731a7661f..1cc8820f7
--- a/internal/sdk/pkg/models/operations/deletesourceredshift.go
+++ b/internal/sdk/pkg/models/operations/deletesourceredshift.go
@@ -10,8 +10,39 @@ type DeleteSourceRedshiftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRedshiftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceretently.go b/internal/sdk/pkg/models/operations/deletesourceretently.go
old mode 100755
new mode 100644
index 2d61db1bc..f18e68110
--- a/internal/sdk/pkg/models/operations/deletesourceretently.go
+++ b/internal/sdk/pkg/models/operations/deletesourceretently.go
@@ -10,8 +10,39 @@ type DeleteSourceRetentlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRetentlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRetentlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRetentlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRetentlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRetentlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerkicovid.go b/internal/sdk/pkg/models/operations/deletesourcerkicovid.go
old mode 100755
new mode 100644
index c70f9986e..441618080
--- a/internal/sdk/pkg/models/operations/deletesourcerkicovid.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerkicovid.go
@@ -10,8 +10,39 @@ type DeleteSourceRkiCovidRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRkiCovidRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRkiCovidResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRkiCovidResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRkiCovidResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRkiCovidResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcerss.go b/internal/sdk/pkg/models/operations/deletesourcerss.go
old mode 100755
new mode 100644
index 6d96e9627..ea9bb45e7
--- a/internal/sdk/pkg/models/operations/deletesourcerss.go
+++ b/internal/sdk/pkg/models/operations/deletesourcerss.go
@@ -10,8 +10,39 @@ type DeleteSourceRssRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceRssRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceRssResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceRssResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceRssResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceRssResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesources3.go b/internal/sdk/pkg/models/operations/deletesources3.go
old mode 100755
new mode 100644
index 161f72353..98d9b60c7
--- a/internal/sdk/pkg/models/operations/deletesources3.go
+++ b/internal/sdk/pkg/models/operations/deletesources3.go
@@ -10,8 +10,39 @@ type DeleteSourceS3Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceS3Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceS3Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesalesforce.go b/internal/sdk/pkg/models/operations/deletesourcesalesforce.go
old mode 100755
new mode 100644
index f0750816e..493ab86d8
--- a/internal/sdk/pkg/models/operations/deletesourcesalesforce.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesalesforce.go
@@ -10,8 +10,39 @@ type DeleteSourceSalesforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSalesforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSalesforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSalesforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSalesforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSalesforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesalesloft.go b/internal/sdk/pkg/models/operations/deletesourcesalesloft.go
old mode 100755
new mode 100644
index 5570670f5..c7f1badac
--- a/internal/sdk/pkg/models/operations/deletesourcesalesloft.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesalesloft.go
@@ -10,8 +10,39 @@ type DeleteSourceSalesloftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSalesloftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSalesloftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSalesloftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSalesloftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSalesloftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesapfieldglass.go b/internal/sdk/pkg/models/operations/deletesourcesapfieldglass.go
old mode 100755
new mode 100644
index ced7d6255..208b522e0
--- a/internal/sdk/pkg/models/operations/deletesourcesapfieldglass.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesapfieldglass.go
@@ -10,8 +10,39 @@ type DeleteSourceSapFieldglassRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSapFieldglassRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSapFieldglassResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSapFieldglassResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSapFieldglassResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSapFieldglassResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesecoda.go b/internal/sdk/pkg/models/operations/deletesourcesecoda.go
old mode 100755
new mode 100644
index 3d91a2e09..27e6b1128
--- a/internal/sdk/pkg/models/operations/deletesourcesecoda.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesecoda.go
@@ -10,8 +10,39 @@ type DeleteSourceSecodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSecodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSecodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSecodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSecodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSecodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesendgrid.go b/internal/sdk/pkg/models/operations/deletesourcesendgrid.go
old mode 100755
new mode 100644
index fc8bc38f7..76213deeb
--- a/internal/sdk/pkg/models/operations/deletesourcesendgrid.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesendgrid.go
@@ -10,8 +10,39 @@ type DeleteSourceSendgridRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSendgridRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSendgridResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSendgridResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSendgridResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSendgridResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesendinblue.go b/internal/sdk/pkg/models/operations/deletesourcesendinblue.go
old mode 100755
new mode 100644
index 78a5ff87b..60830f4f0
--- a/internal/sdk/pkg/models/operations/deletesourcesendinblue.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesendinblue.go
@@ -10,8 +10,39 @@ type DeleteSourceSendinblueRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSendinblueRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSendinblueResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSendinblueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSendinblueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSendinblueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesenseforce.go b/internal/sdk/pkg/models/operations/deletesourcesenseforce.go
old mode 100755
new mode 100644
index 54fa1f96a..31a038eb2
--- a/internal/sdk/pkg/models/operations/deletesourcesenseforce.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesenseforce.go
@@ -10,8 +10,39 @@ type DeleteSourceSenseforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSenseforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSenseforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSenseforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSenseforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSenseforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesentry.go b/internal/sdk/pkg/models/operations/deletesourcesentry.go
old mode 100755
new mode 100644
index 81b24fbc3..159c87c9a
--- a/internal/sdk/pkg/models/operations/deletesourcesentry.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesentry.go
@@ -10,8 +10,39 @@ type DeleteSourceSentryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSentryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSentryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSentryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSentryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSentryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesftp.go b/internal/sdk/pkg/models/operations/deletesourcesftp.go
old mode 100755
new mode 100644
index 4ce7b619e..3849b9933
--- a/internal/sdk/pkg/models/operations/deletesourcesftp.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesftp.go
@@ -10,8 +10,39 @@ type DeleteSourceSftpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSftpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSftpResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSftpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSftpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSftpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesftpbulk.go b/internal/sdk/pkg/models/operations/deletesourcesftpbulk.go
old mode 100755
new mode 100644
index 9d8524eb6..c3e48821b
--- a/internal/sdk/pkg/models/operations/deletesourcesftpbulk.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesftpbulk.go
@@ -10,8 +10,39 @@ type DeleteSourceSftpBulkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSftpBulkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSftpBulkResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSftpBulkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSftpBulkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSftpBulkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceshopify.go b/internal/sdk/pkg/models/operations/deletesourceshopify.go
old mode 100755
new mode 100644
index d55ea7cce..b9d9eceb6
--- a/internal/sdk/pkg/models/operations/deletesourceshopify.go
+++ b/internal/sdk/pkg/models/operations/deletesourceshopify.go
@@ -10,8 +10,39 @@ type DeleteSourceShopifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceShopifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceShopifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceShopifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceShopifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceShopifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceshortio.go b/internal/sdk/pkg/models/operations/deletesourceshortio.go
old mode 100755
new mode 100644
index 354f54017..37289509b
--- a/internal/sdk/pkg/models/operations/deletesourceshortio.go
+++ b/internal/sdk/pkg/models/operations/deletesourceshortio.go
@@ -10,8 +10,39 @@ type DeleteSourceShortioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceShortioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceShortioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceShortioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceShortioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceShortioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceslack.go b/internal/sdk/pkg/models/operations/deletesourceslack.go
old mode 100755
new mode 100644
index d3b28ebcc..e5c9273a4
--- a/internal/sdk/pkg/models/operations/deletesourceslack.go
+++ b/internal/sdk/pkg/models/operations/deletesourceslack.go
@@ -10,8 +10,39 @@ type DeleteSourceSlackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSlackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSlackResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSlackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSlackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSlackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesmaily.go b/internal/sdk/pkg/models/operations/deletesourcesmaily.go
old mode 100755
new mode 100644
index 6e0c4b5e2..1aa5744f3
--- a/internal/sdk/pkg/models/operations/deletesourcesmaily.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesmaily.go
@@ -10,8 +10,39 @@ type DeleteSourceSmailyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSmailyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSmailyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSmailyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSmailyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSmailyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesmartengage.go b/internal/sdk/pkg/models/operations/deletesourcesmartengage.go
old mode 100755
new mode 100644
index 1a634e171..4302dd82d
--- a/internal/sdk/pkg/models/operations/deletesourcesmartengage.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesmartengage.go
@@ -10,8 +10,39 @@ type DeleteSourceSmartengageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSmartengageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSmartengageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSmartengageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSmartengageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSmartengageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesmartsheets.go b/internal/sdk/pkg/models/operations/deletesourcesmartsheets.go
old mode 100755
new mode 100644
index a08f48306..38c59c43a
--- a/internal/sdk/pkg/models/operations/deletesourcesmartsheets.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesmartsheets.go
@@ -10,8 +10,39 @@ type DeleteSourceSmartsheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSmartsheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSmartsheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSmartsheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSmartsheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSmartsheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesnapchatmarketing.go b/internal/sdk/pkg/models/operations/deletesourcesnapchatmarketing.go
old mode 100755
new mode 100644
index 55b6cae79..5d363ac32
--- a/internal/sdk/pkg/models/operations/deletesourcesnapchatmarketing.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesnapchatmarketing.go
@@ -10,8 +10,39 @@ type DeleteSourceSnapchatMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSnapchatMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSnapchatMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSnapchatMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSnapchatMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSnapchatMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesnowflake.go b/internal/sdk/pkg/models/operations/deletesourcesnowflake.go
old mode 100755
new mode 100644
index b2285d55a..7a822fbf4
--- a/internal/sdk/pkg/models/operations/deletesourcesnowflake.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesnowflake.go
@@ -10,8 +10,39 @@ type DeleteSourceSnowflakeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSnowflakeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesonarcloud.go b/internal/sdk/pkg/models/operations/deletesourcesonarcloud.go
old mode 100755
new mode 100644
index 9f4c2c593..5ded12e2e
--- a/internal/sdk/pkg/models/operations/deletesourcesonarcloud.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesonarcloud.go
@@ -10,8 +10,39 @@ type DeleteSourceSonarCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSonarCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSonarCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSonarCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSonarCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSonarCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcespacexapi.go b/internal/sdk/pkg/models/operations/deletesourcespacexapi.go
old mode 100755
new mode 100644
index 6a1ddf19a..2bc56f398
--- a/internal/sdk/pkg/models/operations/deletesourcespacexapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcespacexapi.go
@@ -10,8 +10,39 @@ type DeleteSourceSpacexAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSpacexAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSpacexAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSpacexAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSpacexAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSpacexAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesquare.go b/internal/sdk/pkg/models/operations/deletesourcesquare.go
old mode 100755
new mode 100644
index f60d366b2..931bc9330
--- a/internal/sdk/pkg/models/operations/deletesourcesquare.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesquare.go
@@ -10,8 +10,39 @@ type DeleteSourceSquareRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSquareRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSquareResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSquareResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSquareResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSquareResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcestrava.go b/internal/sdk/pkg/models/operations/deletesourcestrava.go
old mode 100755
new mode 100644
index d0acb1b6c..1f2facaa0
--- a/internal/sdk/pkg/models/operations/deletesourcestrava.go
+++ b/internal/sdk/pkg/models/operations/deletesourcestrava.go
@@ -10,8 +10,39 @@ type DeleteSourceStravaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceStravaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceStravaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceStravaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceStravaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceStravaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcestripe.go b/internal/sdk/pkg/models/operations/deletesourcestripe.go
old mode 100755
new mode 100644
index 3fe93ac88..a2780f02d
--- a/internal/sdk/pkg/models/operations/deletesourcestripe.go
+++ b/internal/sdk/pkg/models/operations/deletesourcestripe.go
@@ -10,8 +10,39 @@ type DeleteSourceStripeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceStripeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceStripeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceStripeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceStripeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceStripeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesurveymonkey.go b/internal/sdk/pkg/models/operations/deletesourcesurveymonkey.go
old mode 100755
new mode 100644
index 45d582695..f6f3725c3
--- a/internal/sdk/pkg/models/operations/deletesourcesurveymonkey.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesurveymonkey.go
@@ -10,8 +10,39 @@ type DeleteSourceSurveymonkeyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSurveymonkeyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSurveymonkeyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSurveymonkeyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSurveymonkeyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSurveymonkeyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcesurveysparrow.go b/internal/sdk/pkg/models/operations/deletesourcesurveysparrow.go
old mode 100755
new mode 100644
index 743bc2a41..d96c40d01
--- a/internal/sdk/pkg/models/operations/deletesourcesurveysparrow.go
+++ b/internal/sdk/pkg/models/operations/deletesourcesurveysparrow.go
@@ -10,8 +10,39 @@ type DeleteSourceSurveySparrowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceSurveySparrowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceSurveySparrowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceSurveySparrowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceSurveySparrowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceSurveySparrowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetempo.go b/internal/sdk/pkg/models/operations/deletesourcetempo.go
old mode 100755
new mode 100644
index 3cd7777cd..1cedb4246
--- a/internal/sdk/pkg/models/operations/deletesourcetempo.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetempo.go
@@ -10,8 +10,39 @@ type DeleteSourceTempoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTempoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTempoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTempoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTempoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTempoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetheguardianapi.go b/internal/sdk/pkg/models/operations/deletesourcetheguardianapi.go
old mode 100755
new mode 100644
index 583f8d01a..a21513938
--- a/internal/sdk/pkg/models/operations/deletesourcetheguardianapi.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetheguardianapi.go
@@ -10,8 +10,39 @@ type DeleteSourceTheGuardianAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTheGuardianAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTheGuardianAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTheGuardianAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTheGuardianAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTheGuardianAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetiktokmarketing.go b/internal/sdk/pkg/models/operations/deletesourcetiktokmarketing.go
old mode 100755
new mode 100644
index 483bd96dd..a5c8af456
--- a/internal/sdk/pkg/models/operations/deletesourcetiktokmarketing.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetiktokmarketing.go
@@ -10,8 +10,39 @@ type DeleteSourceTiktokMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTiktokMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTiktokMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTiktokMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTiktokMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTiktokMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetodoist.go b/internal/sdk/pkg/models/operations/deletesourcetodoist.go
old mode 100755
new mode 100644
index 08d0283d9..0a823bde4
--- a/internal/sdk/pkg/models/operations/deletesourcetodoist.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetodoist.go
@@ -10,8 +10,39 @@ type DeleteSourceTodoistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTodoistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTodoistResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTodoistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTodoistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTodoistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetrello.go b/internal/sdk/pkg/models/operations/deletesourcetrello.go
old mode 100755
new mode 100644
index 49ba7893f..330b6b98c
--- a/internal/sdk/pkg/models/operations/deletesourcetrello.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetrello.go
@@ -10,8 +10,39 @@ type DeleteSourceTrelloRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTrelloRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTrelloResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTrelloResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTrelloResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTrelloResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetrustpilot.go b/internal/sdk/pkg/models/operations/deletesourcetrustpilot.go
old mode 100755
new mode 100644
index 1812f181b..a9d1043cf
--- a/internal/sdk/pkg/models/operations/deletesourcetrustpilot.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetrustpilot.go
@@ -10,8 +10,39 @@ type DeleteSourceTrustpilotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTrustpilotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTrustpilotResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTrustpilotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTrustpilotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTrustpilotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetvmazeschedule.go b/internal/sdk/pkg/models/operations/deletesourcetvmazeschedule.go
old mode 100755
new mode 100644
index c78cab8c8..6314b2867
--- a/internal/sdk/pkg/models/operations/deletesourcetvmazeschedule.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetvmazeschedule.go
@@ -10,8 +10,39 @@ type DeleteSourceTvmazeScheduleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTvmazeScheduleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTvmazeScheduleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTvmazeScheduleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTvmazeScheduleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTvmazeScheduleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetwilio.go b/internal/sdk/pkg/models/operations/deletesourcetwilio.go
old mode 100755
new mode 100644
index 9acc6a838..e5bdbdc99
--- a/internal/sdk/pkg/models/operations/deletesourcetwilio.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetwilio.go
@@ -10,8 +10,39 @@ type DeleteSourceTwilioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTwilioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTwilioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTwilioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTwilioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTwilioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetwiliotaskrouter.go b/internal/sdk/pkg/models/operations/deletesourcetwiliotaskrouter.go
old mode 100755
new mode 100644
index faa6e15ed..abca321fd
--- a/internal/sdk/pkg/models/operations/deletesourcetwiliotaskrouter.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetwiliotaskrouter.go
@@ -10,8 +10,39 @@ type DeleteSourceTwilioTaskrouterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTwilioTaskrouterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTwilioTaskrouterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTwilioTaskrouterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTwilioTaskrouterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTwilioTaskrouterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetwitter.go b/internal/sdk/pkg/models/operations/deletesourcetwitter.go
old mode 100755
new mode 100644
index 773dde1a6..000cc7809
--- a/internal/sdk/pkg/models/operations/deletesourcetwitter.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetwitter.go
@@ -10,8 +10,39 @@ type DeleteSourceTwitterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTwitterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTwitterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTwitterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTwitterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTwitterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcetypeform.go b/internal/sdk/pkg/models/operations/deletesourcetypeform.go
old mode 100755
new mode 100644
index 7919a63b8..5006ea159
--- a/internal/sdk/pkg/models/operations/deletesourcetypeform.go
+++ b/internal/sdk/pkg/models/operations/deletesourcetypeform.go
@@ -10,8 +10,39 @@ type DeleteSourceTypeformRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceTypeformRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceTypeformResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceTypeformResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceTypeformResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceTypeformResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceuscensus.go b/internal/sdk/pkg/models/operations/deletesourceuscensus.go
old mode 100755
new mode 100644
index 749d60876..7285c8344
--- a/internal/sdk/pkg/models/operations/deletesourceuscensus.go
+++ b/internal/sdk/pkg/models/operations/deletesourceuscensus.go
@@ -10,8 +10,39 @@ type DeleteSourceUsCensusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceUsCensusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceUsCensusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceUsCensusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceUsCensusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceUsCensusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcevantage.go b/internal/sdk/pkg/models/operations/deletesourcevantage.go
old mode 100755
new mode 100644
index ee6884993..c45c38d68
--- a/internal/sdk/pkg/models/operations/deletesourcevantage.go
+++ b/internal/sdk/pkg/models/operations/deletesourcevantage.go
@@ -10,8 +10,39 @@ type DeleteSourceVantageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceVantageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceVantageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceVantageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceVantageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceVantageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcewebflow.go b/internal/sdk/pkg/models/operations/deletesourcewebflow.go
old mode 100755
new mode 100644
index 07eb63d56..326186096
--- a/internal/sdk/pkg/models/operations/deletesourcewebflow.go
+++ b/internal/sdk/pkg/models/operations/deletesourcewebflow.go
@@ -10,8 +10,39 @@ type DeleteSourceWebflowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceWebflowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceWebflowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceWebflowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceWebflowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceWebflowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcewhiskyhunter.go b/internal/sdk/pkg/models/operations/deletesourcewhiskyhunter.go
old mode 100755
new mode 100644
index 42aa94b48..e23aa9f14
--- a/internal/sdk/pkg/models/operations/deletesourcewhiskyhunter.go
+++ b/internal/sdk/pkg/models/operations/deletesourcewhiskyhunter.go
@@ -10,8 +10,39 @@ type DeleteSourceWhiskyHunterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceWhiskyHunterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceWhiskyHunterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceWhiskyHunterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceWhiskyHunterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceWhiskyHunterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcewikipediapageviews.go b/internal/sdk/pkg/models/operations/deletesourcewikipediapageviews.go
old mode 100755
new mode 100644
index 8467facc0..607d56d66
--- a/internal/sdk/pkg/models/operations/deletesourcewikipediapageviews.go
+++ b/internal/sdk/pkg/models/operations/deletesourcewikipediapageviews.go
@@ -10,8 +10,39 @@ type DeleteSourceWikipediaPageviewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceWikipediaPageviewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceWikipediaPageviewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceWikipediaPageviewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceWikipediaPageviewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceWikipediaPageviewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcewoocommerce.go b/internal/sdk/pkg/models/operations/deletesourcewoocommerce.go
old mode 100755
new mode 100644
index 1a54918d0..9d638fda3
--- a/internal/sdk/pkg/models/operations/deletesourcewoocommerce.go
+++ b/internal/sdk/pkg/models/operations/deletesourcewoocommerce.go
@@ -10,8 +10,39 @@ type DeleteSourceWoocommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceWoocommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceWoocommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceWoocommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceWoocommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceWoocommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcexero.go b/internal/sdk/pkg/models/operations/deletesourcexero.go
old mode 100755
new mode 100644
index 8c88458f4..179caa10a
--- a/internal/sdk/pkg/models/operations/deletesourcexero.go
+++ b/internal/sdk/pkg/models/operations/deletesourcexero.go
@@ -10,8 +10,39 @@ type DeleteSourceXeroRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceXeroRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceXeroResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceXeroResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceXeroResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceXeroResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcexkcd.go b/internal/sdk/pkg/models/operations/deletesourcexkcd.go
old mode 100755
new mode 100644
index 3c2488656..2a89a3627
--- a/internal/sdk/pkg/models/operations/deletesourcexkcd.go
+++ b/internal/sdk/pkg/models/operations/deletesourcexkcd.go
@@ -10,8 +10,39 @@ type DeleteSourceXkcdRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceXkcdRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceXkcdResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceXkcdResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceXkcdResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceXkcdResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceyandexmetrica.go b/internal/sdk/pkg/models/operations/deletesourceyandexmetrica.go
old mode 100755
new mode 100644
index e8a2b0908..6e9f2d0f4
--- a/internal/sdk/pkg/models/operations/deletesourceyandexmetrica.go
+++ b/internal/sdk/pkg/models/operations/deletesourceyandexmetrica.go
@@ -10,8 +10,39 @@ type DeleteSourceYandexMetricaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceYandexMetricaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceYandexMetricaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceYandexMetricaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceYandexMetricaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceYandexMetricaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceyotpo.go b/internal/sdk/pkg/models/operations/deletesourceyotpo.go
old mode 100755
new mode 100644
index 87abd00b5..37ac72a33
--- a/internal/sdk/pkg/models/operations/deletesourceyotpo.go
+++ b/internal/sdk/pkg/models/operations/deletesourceyotpo.go
@@ -10,8 +10,39 @@ type DeleteSourceYotpoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceYotpoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceYotpoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceYotpoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceYotpoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceYotpoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceyounium.go b/internal/sdk/pkg/models/operations/deletesourceyounium.go
old mode 100755
new mode 100644
index 6588cf81e..c19574f28
--- a/internal/sdk/pkg/models/operations/deletesourceyounium.go
+++ b/internal/sdk/pkg/models/operations/deletesourceyounium.go
@@ -10,8 +10,39 @@ type DeleteSourceYouniumRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceYouniumRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceYouniumResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceYouniumResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceYouniumResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceYouniumResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourceyoutubeanalytics.go b/internal/sdk/pkg/models/operations/deletesourceyoutubeanalytics.go
old mode 100755
new mode 100644
index 146a09461..57ce97549
--- a/internal/sdk/pkg/models/operations/deletesourceyoutubeanalytics.go
+++ b/internal/sdk/pkg/models/operations/deletesourceyoutubeanalytics.go
@@ -10,8 +10,39 @@ type DeleteSourceYoutubeAnalyticsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceYoutubeAnalyticsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceYoutubeAnalyticsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceYoutubeAnalyticsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceYoutubeAnalyticsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceYoutubeAnalyticsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezendeskchat.go b/internal/sdk/pkg/models/operations/deletesourcezendeskchat.go
old mode 100755
new mode 100644
index d7b19aaae..632b889a8
--- a/internal/sdk/pkg/models/operations/deletesourcezendeskchat.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezendeskchat.go
@@ -10,8 +10,39 @@ type DeleteSourceZendeskChatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZendeskChatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZendeskChatResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZendeskChatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZendeskChatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZendeskChatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezendesksunshine.go b/internal/sdk/pkg/models/operations/deletesourcezendesksunshine.go
old mode 100755
new mode 100644
index e5b486659..f04b2f70b
--- a/internal/sdk/pkg/models/operations/deletesourcezendesksunshine.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezendesksunshine.go
@@ -10,8 +10,39 @@ type DeleteSourceZendeskSunshineRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZendeskSunshineRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZendeskSunshineResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZendeskSunshineResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZendeskSunshineResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZendeskSunshineResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezendesksupport.go b/internal/sdk/pkg/models/operations/deletesourcezendesksupport.go
old mode 100755
new mode 100644
index 19e05fdf8..734c32f74
--- a/internal/sdk/pkg/models/operations/deletesourcezendesksupport.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezendesksupport.go
@@ -10,8 +10,39 @@ type DeleteSourceZendeskSupportRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZendeskSupportRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZendeskSupportResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZendeskSupportResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZendeskSupportResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZendeskSupportResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezendesktalk.go b/internal/sdk/pkg/models/operations/deletesourcezendesktalk.go
old mode 100755
new mode 100644
index 778df4a80..e7823ba6d
--- a/internal/sdk/pkg/models/operations/deletesourcezendesktalk.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezendesktalk.go
@@ -10,8 +10,39 @@ type DeleteSourceZendeskTalkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZendeskTalkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZendeskTalkResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZendeskTalkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZendeskTalkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZendeskTalkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezenloop.go b/internal/sdk/pkg/models/operations/deletesourcezenloop.go
old mode 100755
new mode 100644
index ad83ad619..c975b1977
--- a/internal/sdk/pkg/models/operations/deletesourcezenloop.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezenloop.go
@@ -10,8 +10,39 @@ type DeleteSourceZenloopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZenloopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZenloopResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZenloopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZenloopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZenloopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezohocrm.go b/internal/sdk/pkg/models/operations/deletesourcezohocrm.go
old mode 100755
new mode 100644
index 5e872f65d..b34d606a8
--- a/internal/sdk/pkg/models/operations/deletesourcezohocrm.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezohocrm.go
@@ -10,8 +10,39 @@ type DeleteSourceZohoCrmRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZohoCrmRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZohoCrmResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZohoCrmResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZohoCrmResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZohoCrmResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezoom.go b/internal/sdk/pkg/models/operations/deletesourcezoom.go
old mode 100755
new mode 100644
index 7b79e21b5..61cf89e2c
--- a/internal/sdk/pkg/models/operations/deletesourcezoom.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezoom.go
@@ -10,8 +10,39 @@ type DeleteSourceZoomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZoomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZoomResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZoomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZoomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZoomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deletesourcezuora.go b/internal/sdk/pkg/models/operations/deletesourcezuora.go
old mode 100755
new mode 100644
index 538f21c26..a8ff38201
--- a/internal/sdk/pkg/models/operations/deletesourcezuora.go
+++ b/internal/sdk/pkg/models/operations/deletesourcezuora.go
@@ -10,8 +10,39 @@ type DeleteSourceZuoraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *DeleteSourceZuoraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type DeleteSourceZuoraResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteSourceZuoraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteSourceZuoraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteSourceZuoraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/deleteworkspace.go b/internal/sdk/pkg/models/operations/deleteworkspace.go
old mode 100755
new mode 100644
index f9c820923..36d011bb9
--- a/internal/sdk/pkg/models/operations/deleteworkspace.go
+++ b/internal/sdk/pkg/models/operations/deleteworkspace.go
@@ -10,8 +10,39 @@ type DeleteWorkspaceRequest struct {
WorkspaceID string `pathParam:"style=simple,explode=false,name=workspaceId"`
}
+func (o *DeleteWorkspaceRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
+
type DeleteWorkspaceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *DeleteWorkspaceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *DeleteWorkspaceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *DeleteWorkspaceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/getconnection.go b/internal/sdk/pkg/models/operations/getconnection.go
old mode 100755
new mode 100644
index df4d6be99..c7c6c4fd1
--- a/internal/sdk/pkg/models/operations/getconnection.go
+++ b/internal/sdk/pkg/models/operations/getconnection.go
@@ -11,10 +11,48 @@ type GetConnectionRequest struct {
ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"`
}
+func (o *GetConnectionRequest) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
type GetConnectionResponse struct {
// Get a Connection by the id in the path.
ConnectionResponse *shared.ConnectionResponse
- ContentType string
- StatusCode int
- RawResponse *http.Response
+ // HTTP response content type for this operation
+ ContentType string
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetConnectionResponse) GetConnectionResponse() *shared.ConnectionResponse {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionResponse
+}
+
+func (o *GetConnectionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetConnectionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetConnectionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestination.go b/internal/sdk/pkg/models/operations/getdestination.go
old mode 100755
new mode 100644
index aacb3f187..57e7f4ce1
--- a/internal/sdk/pkg/models/operations/getdestination.go
+++ b/internal/sdk/pkg/models/operations/getdestination.go
@@ -11,10 +11,48 @@ type GetDestinationRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationawsdatalake.go b/internal/sdk/pkg/models/operations/getdestinationawsdatalake.go
old mode 100755
new mode 100644
index 9cc639370..c0adf143b
--- a/internal/sdk/pkg/models/operations/getdestinationawsdatalake.go
+++ b/internal/sdk/pkg/models/operations/getdestinationawsdatalake.go
@@ -11,10 +11,48 @@ type GetDestinationAwsDatalakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationAwsDatalakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationAwsDatalakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationAwsDatalakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationAwsDatalakeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationAwsDatalakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationAwsDatalakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationazureblobstorage.go b/internal/sdk/pkg/models/operations/getdestinationazureblobstorage.go
old mode 100755
new mode 100644
index 6637ed30b..21a75a539
--- a/internal/sdk/pkg/models/operations/getdestinationazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/getdestinationazureblobstorage.go
@@ -11,10 +11,48 @@ type GetDestinationAzureBlobStorageRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationAzureBlobStorageRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationAzureBlobStorageResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationbigquery.go b/internal/sdk/pkg/models/operations/getdestinationbigquery.go
old mode 100755
new mode 100644
index 709aff2c7..7700d7ea7
--- a/internal/sdk/pkg/models/operations/getdestinationbigquery.go
+++ b/internal/sdk/pkg/models/operations/getdestinationbigquery.go
@@ -11,10 +11,48 @@ type GetDestinationBigqueryRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationBigqueryRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationBigqueryResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationbigquerydenormalized.go b/internal/sdk/pkg/models/operations/getdestinationbigquerydenormalized.go
old mode 100755
new mode 100644
index 0d797b72a..68662725e
--- a/internal/sdk/pkg/models/operations/getdestinationbigquerydenormalized.go
+++ b/internal/sdk/pkg/models/operations/getdestinationbigquerydenormalized.go
@@ -11,10 +11,48 @@ type GetDestinationBigqueryDenormalizedRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationBigqueryDenormalizedRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationBigqueryDenormalizedResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationBigqueryDenormalizedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationBigqueryDenormalizedResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationBigqueryDenormalizedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationBigqueryDenormalizedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationclickhouse.go b/internal/sdk/pkg/models/operations/getdestinationclickhouse.go
old mode 100755
new mode 100644
index a8aa47bd4..4f724f551
--- a/internal/sdk/pkg/models/operations/getdestinationclickhouse.go
+++ b/internal/sdk/pkg/models/operations/getdestinationclickhouse.go
@@ -11,10 +11,48 @@ type GetDestinationClickhouseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationClickhouseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationClickhouseResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationconvex.go b/internal/sdk/pkg/models/operations/getdestinationconvex.go
old mode 100755
new mode 100644
index d6ce4de38..a5f6799fd
--- a/internal/sdk/pkg/models/operations/getdestinationconvex.go
+++ b/internal/sdk/pkg/models/operations/getdestinationconvex.go
@@ -11,10 +11,48 @@ type GetDestinationConvexRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationConvexRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationConvexResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationcumulio.go b/internal/sdk/pkg/models/operations/getdestinationcumulio.go
old mode 100755
new mode 100644
index b8e7b5c97..1eec2561a
--- a/internal/sdk/pkg/models/operations/getdestinationcumulio.go
+++ b/internal/sdk/pkg/models/operations/getdestinationcumulio.go
@@ -11,10 +11,48 @@ type GetDestinationCumulioRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationCumulioRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationCumulioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationCumulioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationCumulioResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationCumulioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationCumulioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationdatabend.go b/internal/sdk/pkg/models/operations/getdestinationdatabend.go
old mode 100755
new mode 100644
index e1ac4c8d2..1645add92
--- a/internal/sdk/pkg/models/operations/getdestinationdatabend.go
+++ b/internal/sdk/pkg/models/operations/getdestinationdatabend.go
@@ -11,10 +11,48 @@ type GetDestinationDatabendRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationDatabendRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationDatabendResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationDatabendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationDatabendResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationDatabendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationDatabendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationdatabricks.go b/internal/sdk/pkg/models/operations/getdestinationdatabricks.go
old mode 100755
new mode 100644
index b2bb8d07b..2f340ca49
--- a/internal/sdk/pkg/models/operations/getdestinationdatabricks.go
+++ b/internal/sdk/pkg/models/operations/getdestinationdatabricks.go
@@ -11,10 +11,48 @@ type GetDestinationDatabricksRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationDatabricksRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationDatabricksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationDatabricksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationDatabricksResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationDatabricksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationDatabricksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationdevnull.go b/internal/sdk/pkg/models/operations/getdestinationdevnull.go
old mode 100755
new mode 100644
index c99f42f14..52702036c
--- a/internal/sdk/pkg/models/operations/getdestinationdevnull.go
+++ b/internal/sdk/pkg/models/operations/getdestinationdevnull.go
@@ -11,10 +11,48 @@ type GetDestinationDevNullRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationDevNullRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationDevNullResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationDevNullResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationDevNullResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationDevNullResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationDevNullResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationdynamodb.go b/internal/sdk/pkg/models/operations/getdestinationdynamodb.go
old mode 100755
new mode 100644
index 8b2647afa..0cc24bf41
--- a/internal/sdk/pkg/models/operations/getdestinationdynamodb.go
+++ b/internal/sdk/pkg/models/operations/getdestinationdynamodb.go
@@ -11,10 +11,48 @@ type GetDestinationDynamodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationDynamodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationDynamodbResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationelasticsearch.go b/internal/sdk/pkg/models/operations/getdestinationelasticsearch.go
old mode 100755
new mode 100644
index 4150d030d..d135dc540
--- a/internal/sdk/pkg/models/operations/getdestinationelasticsearch.go
+++ b/internal/sdk/pkg/models/operations/getdestinationelasticsearch.go
@@ -11,10 +11,48 @@ type GetDestinationElasticsearchRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationElasticsearchRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationElasticsearchResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationElasticsearchResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationElasticsearchResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationElasticsearchResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationElasticsearchResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationfirebolt.go b/internal/sdk/pkg/models/operations/getdestinationfirebolt.go
old mode 100755
new mode 100644
index 6e78a7ff1..67d397ead
--- a/internal/sdk/pkg/models/operations/getdestinationfirebolt.go
+++ b/internal/sdk/pkg/models/operations/getdestinationfirebolt.go
@@ -11,10 +11,48 @@ type GetDestinationFireboltRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationFireboltRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationFireboltResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationfirestore.go b/internal/sdk/pkg/models/operations/getdestinationfirestore.go
old mode 100755
new mode 100644
index 860e71ef7..df47af938
--- a/internal/sdk/pkg/models/operations/getdestinationfirestore.go
+++ b/internal/sdk/pkg/models/operations/getdestinationfirestore.go
@@ -11,10 +11,48 @@ type GetDestinationFirestoreRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationFirestoreRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationFirestoreResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationFirestoreResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationFirestoreResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationFirestoreResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationFirestoreResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationgcs.go b/internal/sdk/pkg/models/operations/getdestinationgcs.go
old mode 100755
new mode 100644
index 037ecb163..5ed6177c8
--- a/internal/sdk/pkg/models/operations/getdestinationgcs.go
+++ b/internal/sdk/pkg/models/operations/getdestinationgcs.go
@@ -11,10 +11,48 @@ type GetDestinationGcsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationGcsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationGcsResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationgooglesheets.go b/internal/sdk/pkg/models/operations/getdestinationgooglesheets.go
old mode 100755
new mode 100644
index bde67830e..4c308e555
--- a/internal/sdk/pkg/models/operations/getdestinationgooglesheets.go
+++ b/internal/sdk/pkg/models/operations/getdestinationgooglesheets.go
@@ -11,10 +11,48 @@ type GetDestinationGoogleSheetsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationGoogleSheetsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationGoogleSheetsResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationkeen.go b/internal/sdk/pkg/models/operations/getdestinationkeen.go
old mode 100755
new mode 100644
index 6af105e65..51c9ce971
--- a/internal/sdk/pkg/models/operations/getdestinationkeen.go
+++ b/internal/sdk/pkg/models/operations/getdestinationkeen.go
@@ -11,10 +11,48 @@ type GetDestinationKeenRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationKeenRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationKeenResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationKeenResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationKeenResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationKeenResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationKeenResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationkinesis.go b/internal/sdk/pkg/models/operations/getdestinationkinesis.go
old mode 100755
new mode 100644
index 14788a94f..8df2f1272
--- a/internal/sdk/pkg/models/operations/getdestinationkinesis.go
+++ b/internal/sdk/pkg/models/operations/getdestinationkinesis.go
@@ -11,10 +11,48 @@ type GetDestinationKinesisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationKinesisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationKinesisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationKinesisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationKinesisResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationKinesisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationKinesisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationlangchain.go b/internal/sdk/pkg/models/operations/getdestinationlangchain.go
old mode 100755
new mode 100644
index 5a3fa55a1..f28285ff8
--- a/internal/sdk/pkg/models/operations/getdestinationlangchain.go
+++ b/internal/sdk/pkg/models/operations/getdestinationlangchain.go
@@ -11,10 +11,48 @@ type GetDestinationLangchainRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationLangchainRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationLangchainResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationLangchainResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationLangchainResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationLangchainResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationLangchainResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationmilvus.go b/internal/sdk/pkg/models/operations/getdestinationmilvus.go
old mode 100755
new mode 100644
index 1796f623e..6f1b107fc
--- a/internal/sdk/pkg/models/operations/getdestinationmilvus.go
+++ b/internal/sdk/pkg/models/operations/getdestinationmilvus.go
@@ -11,10 +11,48 @@ type GetDestinationMilvusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationMilvusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationMilvusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationMilvusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationMilvusResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationMilvusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationMilvusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationmongodb.go b/internal/sdk/pkg/models/operations/getdestinationmongodb.go
old mode 100755
new mode 100644
index 5b80e1e23..9a49f6155
--- a/internal/sdk/pkg/models/operations/getdestinationmongodb.go
+++ b/internal/sdk/pkg/models/operations/getdestinationmongodb.go
@@ -11,10 +11,48 @@ type GetDestinationMongodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationMongodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationMongodbResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationmssql.go b/internal/sdk/pkg/models/operations/getdestinationmssql.go
old mode 100755
new mode 100644
index 67fdb77aa..675246bb5
--- a/internal/sdk/pkg/models/operations/getdestinationmssql.go
+++ b/internal/sdk/pkg/models/operations/getdestinationmssql.go
@@ -11,10 +11,48 @@ type GetDestinationMssqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationMssqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationMssqlResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationmysql.go b/internal/sdk/pkg/models/operations/getdestinationmysql.go
old mode 100755
new mode 100644
index 6ec306ec0..f19fdb9b8
--- a/internal/sdk/pkg/models/operations/getdestinationmysql.go
+++ b/internal/sdk/pkg/models/operations/getdestinationmysql.go
@@ -11,10 +11,48 @@ type GetDestinationMysqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationMysqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationMysqlResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationoracle.go b/internal/sdk/pkg/models/operations/getdestinationoracle.go
old mode 100755
new mode 100644
index 95a497834..a60d411f1
--- a/internal/sdk/pkg/models/operations/getdestinationoracle.go
+++ b/internal/sdk/pkg/models/operations/getdestinationoracle.go
@@ -11,10 +11,48 @@ type GetDestinationOracleRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationOracleRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationOracleResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationpinecone.go b/internal/sdk/pkg/models/operations/getdestinationpinecone.go
old mode 100755
new mode 100644
index a5b4e2cb4..d4e84e2b7
--- a/internal/sdk/pkg/models/operations/getdestinationpinecone.go
+++ b/internal/sdk/pkg/models/operations/getdestinationpinecone.go
@@ -11,10 +11,48 @@ type GetDestinationPineconeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationPineconeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationPineconeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationPineconeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationPineconeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationPineconeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationPineconeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationpostgres.go b/internal/sdk/pkg/models/operations/getdestinationpostgres.go
old mode 100755
new mode 100644
index 018f65299..9e53a3dd6
--- a/internal/sdk/pkg/models/operations/getdestinationpostgres.go
+++ b/internal/sdk/pkg/models/operations/getdestinationpostgres.go
@@ -11,10 +11,48 @@ type GetDestinationPostgresRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationPostgresRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationPostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationPostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationPostgresResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationPostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationPostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationpubsub.go b/internal/sdk/pkg/models/operations/getdestinationpubsub.go
old mode 100755
new mode 100644
index f2582a5a7..d5e360d85
--- a/internal/sdk/pkg/models/operations/getdestinationpubsub.go
+++ b/internal/sdk/pkg/models/operations/getdestinationpubsub.go
@@ -11,10 +11,48 @@ type GetDestinationPubsubRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationPubsubRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationPubsubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationPubsubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationPubsubResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationPubsubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationPubsubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationredis.go b/internal/sdk/pkg/models/operations/getdestinationredis.go
old mode 100755
new mode 100644
index 3c9b2b900..a3f100c37
--- a/internal/sdk/pkg/models/operations/getdestinationredis.go
+++ b/internal/sdk/pkg/models/operations/getdestinationredis.go
@@ -11,10 +11,48 @@ type GetDestinationRedisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationRedisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationRedisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationRedisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationRedisResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationRedisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationRedisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationredshift.go b/internal/sdk/pkg/models/operations/getdestinationredshift.go
old mode 100755
new mode 100644
index b43b8c2d2..60322cca3
--- a/internal/sdk/pkg/models/operations/getdestinationredshift.go
+++ b/internal/sdk/pkg/models/operations/getdestinationredshift.go
@@ -11,10 +11,48 @@ type GetDestinationRedshiftRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationRedshiftRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationRedshiftResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinations3.go b/internal/sdk/pkg/models/operations/getdestinations3.go
old mode 100755
new mode 100644
index 8f22c2898..2eb42de59
--- a/internal/sdk/pkg/models/operations/getdestinations3.go
+++ b/internal/sdk/pkg/models/operations/getdestinations3.go
@@ -11,10 +11,48 @@ type GetDestinationS3Request struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationS3Request) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationS3Response struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationS3Response) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinations3glue.go b/internal/sdk/pkg/models/operations/getdestinations3glue.go
old mode 100755
new mode 100644
index 48231910d..0bfca1aa7
--- a/internal/sdk/pkg/models/operations/getdestinations3glue.go
+++ b/internal/sdk/pkg/models/operations/getdestinations3glue.go
@@ -11,10 +11,48 @@ type GetDestinationS3GlueRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationS3GlueRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationS3GlueResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationS3GlueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationS3GlueResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationS3GlueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationS3GlueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationsftpjson.go b/internal/sdk/pkg/models/operations/getdestinationsftpjson.go
old mode 100755
new mode 100644
index 30afdc9e6..9fb4afd86
--- a/internal/sdk/pkg/models/operations/getdestinationsftpjson.go
+++ b/internal/sdk/pkg/models/operations/getdestinationsftpjson.go
@@ -11,10 +11,48 @@ type GetDestinationSftpJSONRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationSftpJSONRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationSftpJSONResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationSftpJSONResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationSftpJSONResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationSftpJSONResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationSftpJSONResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationsnowflake.go b/internal/sdk/pkg/models/operations/getdestinationsnowflake.go
old mode 100755
new mode 100644
index 61f9ded5a..4ba9521c3
--- a/internal/sdk/pkg/models/operations/getdestinationsnowflake.go
+++ b/internal/sdk/pkg/models/operations/getdestinationsnowflake.go
@@ -11,10 +11,48 @@ type GetDestinationSnowflakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationSnowflakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationSnowflakeResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationtimeplus.go b/internal/sdk/pkg/models/operations/getdestinationtimeplus.go
old mode 100755
new mode 100644
index f76b61f69..8c1311960
--- a/internal/sdk/pkg/models/operations/getdestinationtimeplus.go
+++ b/internal/sdk/pkg/models/operations/getdestinationtimeplus.go
@@ -11,10 +11,48 @@ type GetDestinationTimeplusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationTimeplusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationTimeplusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationTimeplusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationTimeplusResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationTimeplusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationTimeplusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationtypesense.go b/internal/sdk/pkg/models/operations/getdestinationtypesense.go
old mode 100755
new mode 100644
index 5e27a5672..2ddf0974c
--- a/internal/sdk/pkg/models/operations/getdestinationtypesense.go
+++ b/internal/sdk/pkg/models/operations/getdestinationtypesense.go
@@ -11,10 +11,48 @@ type GetDestinationTypesenseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationTypesenseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationTypesenseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationTypesenseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationTypesenseResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationTypesenseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationTypesenseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationvertica.go b/internal/sdk/pkg/models/operations/getdestinationvertica.go
old mode 100755
new mode 100644
index 6a5e98a16..e2edd0ae4
--- a/internal/sdk/pkg/models/operations/getdestinationvertica.go
+++ b/internal/sdk/pkg/models/operations/getdestinationvertica.go
@@ -11,10 +11,48 @@ type GetDestinationVerticaRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationVerticaRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationVerticaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationVerticaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationVerticaResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationVerticaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationVerticaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getdestinationxata.go b/internal/sdk/pkg/models/operations/getdestinationxata.go
old mode 100755
new mode 100644
index 6cc078686..e9b858966
--- a/internal/sdk/pkg/models/operations/getdestinationxata.go
+++ b/internal/sdk/pkg/models/operations/getdestinationxata.go
@@ -11,10 +11,48 @@ type GetDestinationXataRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *GetDestinationXataRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type GetDestinationXataResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Destination by the id in the path.
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetDestinationXataResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetDestinationXataResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *GetDestinationXataResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetDestinationXataResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getjob.go b/internal/sdk/pkg/models/operations/getjob.go
old mode 100755
new mode 100644
index 9dd4ef96c..83d4c9867
--- a/internal/sdk/pkg/models/operations/getjob.go
+++ b/internal/sdk/pkg/models/operations/getjob.go
@@ -11,10 +11,48 @@ type GetJobRequest struct {
JobID int64 `pathParam:"style=simple,explode=false,name=jobId"`
}
+func (o *GetJobRequest) GetJobID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.JobID
+}
+
type GetJobResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Job by the id in the path.
JobResponse *shared.JobResponse
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *GetJobResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetJobResponse) GetJobResponse() *shared.JobResponse {
+ if o == nil {
+ return nil
+ }
+ return o.JobResponse
+}
+
+func (o *GetJobResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetJobResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/getsource.go b/internal/sdk/pkg/models/operations/getsource.go
old mode 100755
new mode 100644
index cb9242deb..0887f3212
--- a/internal/sdk/pkg/models/operations/getsource.go
+++ b/internal/sdk/pkg/models/operations/getsource.go
@@ -11,10 +11,48 @@ type GetSourceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceaha.go b/internal/sdk/pkg/models/operations/getsourceaha.go
old mode 100755
new mode 100644
index 1c8f82f71..b4a0960b7
--- a/internal/sdk/pkg/models/operations/getsourceaha.go
+++ b/internal/sdk/pkg/models/operations/getsourceaha.go
@@ -11,10 +11,48 @@ type GetSourceAhaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAhaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAhaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAhaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAhaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAhaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAhaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceaircall.go b/internal/sdk/pkg/models/operations/getsourceaircall.go
old mode 100755
new mode 100644
index 3708833e0..3c929ad36
--- a/internal/sdk/pkg/models/operations/getsourceaircall.go
+++ b/internal/sdk/pkg/models/operations/getsourceaircall.go
@@ -11,10 +11,48 @@ type GetSourceAircallRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAircallRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAircallResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAircallResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAircallResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAircallResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAircallResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceairtable.go b/internal/sdk/pkg/models/operations/getsourceairtable.go
old mode 100755
new mode 100644
index 645dc0b58..2ed8fe41a
--- a/internal/sdk/pkg/models/operations/getsourceairtable.go
+++ b/internal/sdk/pkg/models/operations/getsourceairtable.go
@@ -11,10 +11,48 @@ type GetSourceAirtableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAirtableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAirtableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAirtableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAirtableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAirtableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAirtableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcealloydb.go b/internal/sdk/pkg/models/operations/getsourcealloydb.go
old mode 100755
new mode 100644
index c7344b11b..5df2a79b8
--- a/internal/sdk/pkg/models/operations/getsourcealloydb.go
+++ b/internal/sdk/pkg/models/operations/getsourcealloydb.go
@@ -11,10 +11,48 @@ type GetSourceAlloydbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAlloydbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAlloydbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAlloydbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAlloydbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAlloydbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAlloydbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceamazonads.go b/internal/sdk/pkg/models/operations/getsourceamazonads.go
old mode 100755
new mode 100644
index e76b98318..ed6ec84b3
--- a/internal/sdk/pkg/models/operations/getsourceamazonads.go
+++ b/internal/sdk/pkg/models/operations/getsourceamazonads.go
@@ -11,10 +11,48 @@ type GetSourceAmazonAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAmazonAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAmazonAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAmazonAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAmazonAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAmazonAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAmazonAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceamazonsellerpartner.go b/internal/sdk/pkg/models/operations/getsourceamazonsellerpartner.go
old mode 100755
new mode 100644
index 9154785ce..ded331579
--- a/internal/sdk/pkg/models/operations/getsourceamazonsellerpartner.go
+++ b/internal/sdk/pkg/models/operations/getsourceamazonsellerpartner.go
@@ -11,10 +11,48 @@ type GetSourceAmazonSellerPartnerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAmazonSellerPartnerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAmazonSellerPartnerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAmazonSellerPartnerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAmazonSellerPartnerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAmazonSellerPartnerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAmazonSellerPartnerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceamazonsqs.go b/internal/sdk/pkg/models/operations/getsourceamazonsqs.go
old mode 100755
new mode 100644
index 553324327..3679342cb
--- a/internal/sdk/pkg/models/operations/getsourceamazonsqs.go
+++ b/internal/sdk/pkg/models/operations/getsourceamazonsqs.go
@@ -11,10 +11,48 @@ type GetSourceAmazonSqsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAmazonSqsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAmazonSqsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAmazonSqsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAmazonSqsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAmazonSqsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAmazonSqsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceamplitude.go b/internal/sdk/pkg/models/operations/getsourceamplitude.go
old mode 100755
new mode 100644
index c16c671b9..e50d5fca3
--- a/internal/sdk/pkg/models/operations/getsourceamplitude.go
+++ b/internal/sdk/pkg/models/operations/getsourceamplitude.go
@@ -11,10 +11,48 @@ type GetSourceAmplitudeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAmplitudeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAmplitudeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAmplitudeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAmplitudeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAmplitudeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAmplitudeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceapifydataset.go b/internal/sdk/pkg/models/operations/getsourceapifydataset.go
old mode 100755
new mode 100644
index e7a415b90..1116392ef
--- a/internal/sdk/pkg/models/operations/getsourceapifydataset.go
+++ b/internal/sdk/pkg/models/operations/getsourceapifydataset.go
@@ -11,10 +11,48 @@ type GetSourceApifyDatasetRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceApifyDatasetRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceApifyDatasetResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceApifyDatasetResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceApifyDatasetResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceApifyDatasetResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceApifyDatasetResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceappfollow.go b/internal/sdk/pkg/models/operations/getsourceappfollow.go
old mode 100755
new mode 100644
index 0573daa9b..1f5822d29
--- a/internal/sdk/pkg/models/operations/getsourceappfollow.go
+++ b/internal/sdk/pkg/models/operations/getsourceappfollow.go
@@ -11,10 +11,48 @@ type GetSourceAppfollowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAppfollowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAppfollowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAppfollowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAppfollowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAppfollowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAppfollowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceasana.go b/internal/sdk/pkg/models/operations/getsourceasana.go
old mode 100755
new mode 100644
index 982f99de9..a4f055979
--- a/internal/sdk/pkg/models/operations/getsourceasana.go
+++ b/internal/sdk/pkg/models/operations/getsourceasana.go
@@ -11,10 +11,48 @@ type GetSourceAsanaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAsanaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAsanaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAsanaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAsanaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAsanaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAsanaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceauth0.go b/internal/sdk/pkg/models/operations/getsourceauth0.go
old mode 100755
new mode 100644
index ffe25fa1e..f1a79b27e
--- a/internal/sdk/pkg/models/operations/getsourceauth0.go
+++ b/internal/sdk/pkg/models/operations/getsourceauth0.go
@@ -11,10 +11,48 @@ type GetSourceAuth0Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAuth0Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAuth0Response struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAuth0Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAuth0Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAuth0Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAuth0Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceawscloudtrail.go b/internal/sdk/pkg/models/operations/getsourceawscloudtrail.go
old mode 100755
new mode 100644
index 205bc3133..177a4fa27
--- a/internal/sdk/pkg/models/operations/getsourceawscloudtrail.go
+++ b/internal/sdk/pkg/models/operations/getsourceawscloudtrail.go
@@ -11,10 +11,48 @@ type GetSourceAwsCloudtrailRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAwsCloudtrailRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAwsCloudtrailResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAwsCloudtrailResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAwsCloudtrailResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAwsCloudtrailResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAwsCloudtrailResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceazureblobstorage.go b/internal/sdk/pkg/models/operations/getsourceazureblobstorage.go
old mode 100755
new mode 100644
index 003a689bb..7ec76c89d
--- a/internal/sdk/pkg/models/operations/getsourceazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/getsourceazureblobstorage.go
@@ -11,10 +11,48 @@ type GetSourceAzureBlobStorageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAzureBlobStorageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAzureBlobStorageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceazuretable.go b/internal/sdk/pkg/models/operations/getsourceazuretable.go
old mode 100755
new mode 100644
index 4ae066741..0e791b791
--- a/internal/sdk/pkg/models/operations/getsourceazuretable.go
+++ b/internal/sdk/pkg/models/operations/getsourceazuretable.go
@@ -11,10 +11,48 @@ type GetSourceAzureTableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceAzureTableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceAzureTableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceAzureTableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceAzureTableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceAzureTableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceAzureTableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebamboohr.go b/internal/sdk/pkg/models/operations/getsourcebamboohr.go
old mode 100755
new mode 100644
index a06389757..a3e88c037
--- a/internal/sdk/pkg/models/operations/getsourcebamboohr.go
+++ b/internal/sdk/pkg/models/operations/getsourcebamboohr.go
@@ -11,10 +11,48 @@ type GetSourceBambooHrRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBambooHrRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBambooHrResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBambooHrResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBambooHrResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBambooHrResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBambooHrResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebigcommerce.go b/internal/sdk/pkg/models/operations/getsourcebigcommerce.go
old mode 100755
new mode 100644
index 452cb7b0e..ad19533c1
--- a/internal/sdk/pkg/models/operations/getsourcebigcommerce.go
+++ b/internal/sdk/pkg/models/operations/getsourcebigcommerce.go
@@ -11,10 +11,48 @@ type GetSourceBigcommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBigcommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBigcommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBigcommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBigcommerceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBigcommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBigcommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebigquery.go b/internal/sdk/pkg/models/operations/getsourcebigquery.go
old mode 100755
new mode 100644
index 8a7578d50..effd11896
--- a/internal/sdk/pkg/models/operations/getsourcebigquery.go
+++ b/internal/sdk/pkg/models/operations/getsourcebigquery.go
@@ -11,10 +11,48 @@ type GetSourceBigqueryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBigqueryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBigqueryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebingads.go b/internal/sdk/pkg/models/operations/getsourcebingads.go
old mode 100755
new mode 100644
index 455366a11..c225b6014
--- a/internal/sdk/pkg/models/operations/getsourcebingads.go
+++ b/internal/sdk/pkg/models/operations/getsourcebingads.go
@@ -11,10 +11,48 @@ type GetSourceBingAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBingAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBingAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBingAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBingAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBingAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBingAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebraintree.go b/internal/sdk/pkg/models/operations/getsourcebraintree.go
old mode 100755
new mode 100644
index 9e0ae5b6e..d6c456471
--- a/internal/sdk/pkg/models/operations/getsourcebraintree.go
+++ b/internal/sdk/pkg/models/operations/getsourcebraintree.go
@@ -11,10 +11,48 @@ type GetSourceBraintreeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBraintreeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBraintreeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBraintreeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBraintreeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBraintreeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBraintreeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcebraze.go b/internal/sdk/pkg/models/operations/getsourcebraze.go
old mode 100755
new mode 100644
index 4d771dd96..1eeaad57b
--- a/internal/sdk/pkg/models/operations/getsourcebraze.go
+++ b/internal/sdk/pkg/models/operations/getsourcebraze.go
@@ -11,10 +11,48 @@ type GetSourceBrazeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceBrazeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceBrazeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceBrazeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceBrazeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceBrazeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceBrazeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcechargebee.go b/internal/sdk/pkg/models/operations/getsourcechargebee.go
old mode 100755
new mode 100644
index 825956cc5..9ca58d0f7
--- a/internal/sdk/pkg/models/operations/getsourcechargebee.go
+++ b/internal/sdk/pkg/models/operations/getsourcechargebee.go
@@ -11,10 +11,48 @@ type GetSourceChargebeeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceChargebeeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceChargebeeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceChargebeeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceChargebeeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceChargebeeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceChargebeeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcechartmogul.go b/internal/sdk/pkg/models/operations/getsourcechartmogul.go
old mode 100755
new mode 100644
index 32410df83..b4cbd7bff
--- a/internal/sdk/pkg/models/operations/getsourcechartmogul.go
+++ b/internal/sdk/pkg/models/operations/getsourcechartmogul.go
@@ -11,10 +11,48 @@ type GetSourceChartmogulRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceChartmogulRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceChartmogulResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceChartmogulResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceChartmogulResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceChartmogulResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceChartmogulResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceclickhouse.go b/internal/sdk/pkg/models/operations/getsourceclickhouse.go
old mode 100755
new mode 100644
index c43792617..34e427211
--- a/internal/sdk/pkg/models/operations/getsourceclickhouse.go
+++ b/internal/sdk/pkg/models/operations/getsourceclickhouse.go
@@ -11,10 +11,48 @@ type GetSourceClickhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceClickhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceClickhouseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceclickupapi.go b/internal/sdk/pkg/models/operations/getsourceclickupapi.go
old mode 100755
new mode 100644
index 235d13a78..f097eeccd
--- a/internal/sdk/pkg/models/operations/getsourceclickupapi.go
+++ b/internal/sdk/pkg/models/operations/getsourceclickupapi.go
@@ -11,10 +11,48 @@ type GetSourceClickupAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceClickupAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceClickupAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceClickupAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceClickupAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceClickupAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceClickupAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceclockify.go b/internal/sdk/pkg/models/operations/getsourceclockify.go
old mode 100755
new mode 100644
index d2d51fc80..12a6335e2
--- a/internal/sdk/pkg/models/operations/getsourceclockify.go
+++ b/internal/sdk/pkg/models/operations/getsourceclockify.go
@@ -11,10 +11,48 @@ type GetSourceClockifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceClockifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceClockifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceClockifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceClockifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceClockifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceClockifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceclosecom.go b/internal/sdk/pkg/models/operations/getsourceclosecom.go
old mode 100755
new mode 100644
index f91142fd6..cbd372fd7
--- a/internal/sdk/pkg/models/operations/getsourceclosecom.go
+++ b/internal/sdk/pkg/models/operations/getsourceclosecom.go
@@ -11,10 +11,48 @@ type GetSourceCloseComRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceCloseComRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceCloseComResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceCloseComResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceCloseComResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceCloseComResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceCloseComResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcecoda.go b/internal/sdk/pkg/models/operations/getsourcecoda.go
old mode 100755
new mode 100644
index b53a6eea1..f833885f3
--- a/internal/sdk/pkg/models/operations/getsourcecoda.go
+++ b/internal/sdk/pkg/models/operations/getsourcecoda.go
@@ -11,10 +11,48 @@ type GetSourceCodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceCodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceCodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceCodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceCodaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceCodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceCodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcecoinapi.go b/internal/sdk/pkg/models/operations/getsourcecoinapi.go
old mode 100755
new mode 100644
index 1075e2e9c..6a0b6767e
--- a/internal/sdk/pkg/models/operations/getsourcecoinapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcecoinapi.go
@@ -11,10 +11,48 @@ type GetSourceCoinAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceCoinAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceCoinAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceCoinAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceCoinAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceCoinAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceCoinAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcecoinmarketcap.go b/internal/sdk/pkg/models/operations/getsourcecoinmarketcap.go
old mode 100755
new mode 100644
index f1b28a2cb..c73d9b061
--- a/internal/sdk/pkg/models/operations/getsourcecoinmarketcap.go
+++ b/internal/sdk/pkg/models/operations/getsourcecoinmarketcap.go
@@ -11,10 +11,48 @@ type GetSourceCoinmarketcapRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceCoinmarketcapRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceCoinmarketcapResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceCoinmarketcapResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceCoinmarketcapResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceCoinmarketcapResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceCoinmarketcapResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceconfigcat.go b/internal/sdk/pkg/models/operations/getsourceconfigcat.go
old mode 100755
new mode 100644
index 64c384294..8219c04c3
--- a/internal/sdk/pkg/models/operations/getsourceconfigcat.go
+++ b/internal/sdk/pkg/models/operations/getsourceconfigcat.go
@@ -11,10 +11,48 @@ type GetSourceConfigcatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceConfigcatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceConfigcatResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceConfigcatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceConfigcatResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceConfigcatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceConfigcatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceconfluence.go b/internal/sdk/pkg/models/operations/getsourceconfluence.go
old mode 100755
new mode 100644
index b727c6cfa..fca6eea9a
--- a/internal/sdk/pkg/models/operations/getsourceconfluence.go
+++ b/internal/sdk/pkg/models/operations/getsourceconfluence.go
@@ -11,10 +11,48 @@ type GetSourceConfluenceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceConfluenceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceConfluenceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceConfluenceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceConfluenceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceConfluenceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceConfluenceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceconvex.go b/internal/sdk/pkg/models/operations/getsourceconvex.go
old mode 100755
new mode 100644
index e93a971a1..85923b51f
--- a/internal/sdk/pkg/models/operations/getsourceconvex.go
+++ b/internal/sdk/pkg/models/operations/getsourceconvex.go
@@ -11,10 +11,48 @@ type GetSourceConvexRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceConvexRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceConvexResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedatascope.go b/internal/sdk/pkg/models/operations/getsourcedatascope.go
old mode 100755
new mode 100644
index 40ad8610b..2da3db800
--- a/internal/sdk/pkg/models/operations/getsourcedatascope.go
+++ b/internal/sdk/pkg/models/operations/getsourcedatascope.go
@@ -11,10 +11,48 @@ type GetSourceDatascopeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDatascopeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDatascopeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDatascopeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDatascopeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDatascopeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDatascopeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedelighted.go b/internal/sdk/pkg/models/operations/getsourcedelighted.go
old mode 100755
new mode 100644
index 574bdeb90..44d256aaa
--- a/internal/sdk/pkg/models/operations/getsourcedelighted.go
+++ b/internal/sdk/pkg/models/operations/getsourcedelighted.go
@@ -11,10 +11,48 @@ type GetSourceDelightedRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDelightedRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDelightedResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDelightedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDelightedResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDelightedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDelightedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedixa.go b/internal/sdk/pkg/models/operations/getsourcedixa.go
old mode 100755
new mode 100644
index 7baa94079..d3bdf0909
--- a/internal/sdk/pkg/models/operations/getsourcedixa.go
+++ b/internal/sdk/pkg/models/operations/getsourcedixa.go
@@ -11,10 +11,48 @@ type GetSourceDixaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDixaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDixaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDixaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDixaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDixaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDixaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedockerhub.go b/internal/sdk/pkg/models/operations/getsourcedockerhub.go
old mode 100755
new mode 100644
index 06a35a7b4..fe1fc8c31
--- a/internal/sdk/pkg/models/operations/getsourcedockerhub.go
+++ b/internal/sdk/pkg/models/operations/getsourcedockerhub.go
@@ -11,10 +11,48 @@ type GetSourceDockerhubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDockerhubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDockerhubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDockerhubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDockerhubResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDockerhubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDockerhubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedremio.go b/internal/sdk/pkg/models/operations/getsourcedremio.go
old mode 100755
new mode 100644
index 512ce570e..8b7104561
--- a/internal/sdk/pkg/models/operations/getsourcedremio.go
+++ b/internal/sdk/pkg/models/operations/getsourcedremio.go
@@ -11,10 +11,48 @@ type GetSourceDremioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDremioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDremioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDremioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDremioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDremioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDremioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcedynamodb.go b/internal/sdk/pkg/models/operations/getsourcedynamodb.go
old mode 100755
new mode 100644
index 408d921f8..5531f0447
--- a/internal/sdk/pkg/models/operations/getsourcedynamodb.go
+++ b/internal/sdk/pkg/models/operations/getsourcedynamodb.go
@@ -11,10 +11,48 @@ type GetSourceDynamodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceDynamodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceDynamodbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcee2etestcloud.go b/internal/sdk/pkg/models/operations/getsourcee2etestcloud.go
old mode 100755
new mode 100644
index 65b3dccfc..d0206c6be
--- a/internal/sdk/pkg/models/operations/getsourcee2etestcloud.go
+++ b/internal/sdk/pkg/models/operations/getsourcee2etestcloud.go
@@ -11,10 +11,48 @@ type GetSourceE2eTestCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceE2eTestCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceE2eTestCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceE2eTestCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceE2eTestCloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceE2eTestCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceE2eTestCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceemailoctopus.go b/internal/sdk/pkg/models/operations/getsourceemailoctopus.go
old mode 100755
new mode 100644
index 7fcd26a55..e4ad66b55
--- a/internal/sdk/pkg/models/operations/getsourceemailoctopus.go
+++ b/internal/sdk/pkg/models/operations/getsourceemailoctopus.go
@@ -11,10 +11,48 @@ type GetSourceEmailoctopusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceEmailoctopusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceEmailoctopusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceEmailoctopusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceEmailoctopusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceEmailoctopusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceEmailoctopusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceexchangerates.go b/internal/sdk/pkg/models/operations/getsourceexchangerates.go
old mode 100755
new mode 100644
index 1a1dde806..5bba44cb7
--- a/internal/sdk/pkg/models/operations/getsourceexchangerates.go
+++ b/internal/sdk/pkg/models/operations/getsourceexchangerates.go
@@ -11,10 +11,48 @@ type GetSourceExchangeRatesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceExchangeRatesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceExchangeRatesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceExchangeRatesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceExchangeRatesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceExchangeRatesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceExchangeRatesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefacebookmarketing.go b/internal/sdk/pkg/models/operations/getsourcefacebookmarketing.go
old mode 100755
new mode 100644
index f8f805ff2..b4c932647
--- a/internal/sdk/pkg/models/operations/getsourcefacebookmarketing.go
+++ b/internal/sdk/pkg/models/operations/getsourcefacebookmarketing.go
@@ -11,10 +11,48 @@ type GetSourceFacebookMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFacebookMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFacebookMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFacebookMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFacebookMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFacebookMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFacebookMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefacebookpages.go b/internal/sdk/pkg/models/operations/getsourcefacebookpages.go
old mode 100755
new mode 100644
index dd077980f..612f2827f
--- a/internal/sdk/pkg/models/operations/getsourcefacebookpages.go
+++ b/internal/sdk/pkg/models/operations/getsourcefacebookpages.go
@@ -11,10 +11,48 @@ type GetSourceFacebookPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFacebookPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFacebookPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFacebookPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFacebookPagesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFacebookPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFacebookPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefaker.go b/internal/sdk/pkg/models/operations/getsourcefaker.go
old mode 100755
new mode 100644
index 84a8d74da..ae8ef7893
--- a/internal/sdk/pkg/models/operations/getsourcefaker.go
+++ b/internal/sdk/pkg/models/operations/getsourcefaker.go
@@ -11,10 +11,48 @@ type GetSourceFakerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFakerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFakerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFakerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFakerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFakerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFakerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefauna.go b/internal/sdk/pkg/models/operations/getsourcefauna.go
old mode 100755
new mode 100644
index a81bbb19a..ec3bb95d9
--- a/internal/sdk/pkg/models/operations/getsourcefauna.go
+++ b/internal/sdk/pkg/models/operations/getsourcefauna.go
@@ -11,10 +11,48 @@ type GetSourceFaunaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFaunaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFaunaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFaunaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFaunaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFaunaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFaunaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefilesecure.go b/internal/sdk/pkg/models/operations/getsourcefilesecure.go
old mode 100755
new mode 100644
index 0834d7644..d5e550b2d
--- a/internal/sdk/pkg/models/operations/getsourcefilesecure.go
+++ b/internal/sdk/pkg/models/operations/getsourcefilesecure.go
@@ -11,10 +11,48 @@ type GetSourceFileSecureRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFileSecureRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFileSecureResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFileSecureResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFileSecureResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFileSecureResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFileSecureResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefirebolt.go b/internal/sdk/pkg/models/operations/getsourcefirebolt.go
old mode 100755
new mode 100644
index bfd7f3c20..4b13e345c
--- a/internal/sdk/pkg/models/operations/getsourcefirebolt.go
+++ b/internal/sdk/pkg/models/operations/getsourcefirebolt.go
@@ -11,10 +11,48 @@ type GetSourceFireboltRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFireboltRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFireboltResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefreshcaller.go b/internal/sdk/pkg/models/operations/getsourcefreshcaller.go
old mode 100755
new mode 100644
index 7938134c1..d841e4b8c
--- a/internal/sdk/pkg/models/operations/getsourcefreshcaller.go
+++ b/internal/sdk/pkg/models/operations/getsourcefreshcaller.go
@@ -11,10 +11,48 @@ type GetSourceFreshcallerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFreshcallerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFreshcallerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFreshcallerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFreshcallerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFreshcallerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFreshcallerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefreshdesk.go b/internal/sdk/pkg/models/operations/getsourcefreshdesk.go
old mode 100755
new mode 100644
index e46f59267..199bf2bd1
--- a/internal/sdk/pkg/models/operations/getsourcefreshdesk.go
+++ b/internal/sdk/pkg/models/operations/getsourcefreshdesk.go
@@ -11,10 +11,48 @@ type GetSourceFreshdeskRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFreshdeskRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFreshdeskResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFreshdeskResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFreshdeskResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFreshdeskResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFreshdeskResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcefreshsales.go b/internal/sdk/pkg/models/operations/getsourcefreshsales.go
old mode 100755
new mode 100644
index 950307f21..5452f2246
--- a/internal/sdk/pkg/models/operations/getsourcefreshsales.go
+++ b/internal/sdk/pkg/models/operations/getsourcefreshsales.go
@@ -11,10 +11,48 @@ type GetSourceFreshsalesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceFreshsalesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceFreshsalesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceFreshsalesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceFreshsalesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceFreshsalesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceFreshsalesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegainsightpx.go b/internal/sdk/pkg/models/operations/getsourcegainsightpx.go
old mode 100755
new mode 100644
index 52390a24e..6665e0af4
--- a/internal/sdk/pkg/models/operations/getsourcegainsightpx.go
+++ b/internal/sdk/pkg/models/operations/getsourcegainsightpx.go
@@ -11,10 +11,48 @@ type GetSourceGainsightPxRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGainsightPxRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGainsightPxResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGainsightPxResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGainsightPxResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGainsightPxResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGainsightPxResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegcs.go b/internal/sdk/pkg/models/operations/getsourcegcs.go
old mode 100755
new mode 100644
index 7473cbeec..517fb3ab5
--- a/internal/sdk/pkg/models/operations/getsourcegcs.go
+++ b/internal/sdk/pkg/models/operations/getsourcegcs.go
@@ -11,10 +11,48 @@ type GetSourceGcsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGcsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGcsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegetlago.go b/internal/sdk/pkg/models/operations/getsourcegetlago.go
old mode 100755
new mode 100644
index c0b2e3f75..3dcc7ae5a
--- a/internal/sdk/pkg/models/operations/getsourcegetlago.go
+++ b/internal/sdk/pkg/models/operations/getsourcegetlago.go
@@ -11,10 +11,48 @@ type GetSourceGetlagoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGetlagoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGetlagoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGetlagoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGetlagoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGetlagoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGetlagoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegithub.go b/internal/sdk/pkg/models/operations/getsourcegithub.go
old mode 100755
new mode 100644
index 2b2a7fd35..d6596f126
--- a/internal/sdk/pkg/models/operations/getsourcegithub.go
+++ b/internal/sdk/pkg/models/operations/getsourcegithub.go
@@ -11,10 +11,48 @@ type GetSourceGithubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGithubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGithubResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGithubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGithubResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGithubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGithubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegitlab.go b/internal/sdk/pkg/models/operations/getsourcegitlab.go
old mode 100755
new mode 100644
index 550649573..cebbdd4d8
--- a/internal/sdk/pkg/models/operations/getsourcegitlab.go
+++ b/internal/sdk/pkg/models/operations/getsourcegitlab.go
@@ -11,10 +11,48 @@ type GetSourceGitlabRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGitlabRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGitlabResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGitlabResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGitlabResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGitlabResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGitlabResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceglassfrog.go b/internal/sdk/pkg/models/operations/getsourceglassfrog.go
old mode 100755
new mode 100644
index f2b270252..aae7dbe8a
--- a/internal/sdk/pkg/models/operations/getsourceglassfrog.go
+++ b/internal/sdk/pkg/models/operations/getsourceglassfrog.go
@@ -11,10 +11,48 @@ type GetSourceGlassfrogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGlassfrogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGlassfrogResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGlassfrogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGlassfrogResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGlassfrogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGlassfrogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegnews.go b/internal/sdk/pkg/models/operations/getsourcegnews.go
old mode 100755
new mode 100644
index 943877941..119a0324d
--- a/internal/sdk/pkg/models/operations/getsourcegnews.go
+++ b/internal/sdk/pkg/models/operations/getsourcegnews.go
@@ -11,10 +11,48 @@ type GetSourceGnewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGnewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGnewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGnewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGnewsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGnewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGnewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegoogleads.go b/internal/sdk/pkg/models/operations/getsourcegoogleads.go
old mode 100755
new mode 100644
index 9858499ee..3f8911cdf
--- a/internal/sdk/pkg/models/operations/getsourcegoogleads.go
+++ b/internal/sdk/pkg/models/operations/getsourcegoogleads.go
@@ -11,10 +11,48 @@ type GetSourceGoogleAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsdataapi.go
old mode 100755
new mode 100644
index 3815dc8e7..112b285f2
--- a/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsdataapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsdataapi.go
@@ -11,10 +11,48 @@ type GetSourceGoogleAnalyticsDataAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleAnalyticsDataAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleAnalyticsDataAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleAnalyticsDataAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleAnalyticsDataAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleAnalyticsDataAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleAnalyticsDataAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsv4.go
old mode 100755
new mode 100644
index f12184d80..d9c7572fb
--- a/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsv4.go
+++ b/internal/sdk/pkg/models/operations/getsourcegoogleanalyticsv4.go
@@ -11,10 +11,48 @@ type GetSourceGoogleAnalyticsV4Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleAnalyticsV4Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleAnalyticsV4Response struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleAnalyticsV4Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleAnalyticsV4Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleAnalyticsV4Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleAnalyticsV4Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegoogledirectory.go b/internal/sdk/pkg/models/operations/getsourcegoogledirectory.go
old mode 100755
new mode 100644
index 1ad39e636..e8927d402
--- a/internal/sdk/pkg/models/operations/getsourcegoogledirectory.go
+++ b/internal/sdk/pkg/models/operations/getsourcegoogledirectory.go
@@ -11,10 +11,48 @@ type GetSourceGoogleDirectoryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleDirectoryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleDirectoryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleDirectoryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleDirectoryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleDirectoryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleDirectoryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegooglepagespeedinsights.go b/internal/sdk/pkg/models/operations/getsourcegooglepagespeedinsights.go
old mode 100755
new mode 100644
index 7094b93c4..f2bbf6518
--- a/internal/sdk/pkg/models/operations/getsourcegooglepagespeedinsights.go
+++ b/internal/sdk/pkg/models/operations/getsourcegooglepagespeedinsights.go
@@ -11,10 +11,48 @@ type GetSourceGooglePagespeedInsightsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGooglePagespeedInsightsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGooglePagespeedInsightsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGooglePagespeedInsightsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGooglePagespeedInsightsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGooglePagespeedInsightsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGooglePagespeedInsightsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegooglesearchconsole.go b/internal/sdk/pkg/models/operations/getsourcegooglesearchconsole.go
old mode 100755
new mode 100644
index a57046547..319a54c6c
--- a/internal/sdk/pkg/models/operations/getsourcegooglesearchconsole.go
+++ b/internal/sdk/pkg/models/operations/getsourcegooglesearchconsole.go
@@ -11,10 +11,48 @@ type GetSourceGoogleSearchConsoleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleSearchConsoleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleSearchConsoleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleSearchConsoleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleSearchConsoleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleSearchConsoleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleSearchConsoleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegooglesheets.go b/internal/sdk/pkg/models/operations/getsourcegooglesheets.go
old mode 100755
new mode 100644
index 0180e6c42..aab267837
--- a/internal/sdk/pkg/models/operations/getsourcegooglesheets.go
+++ b/internal/sdk/pkg/models/operations/getsourcegooglesheets.go
@@ -11,10 +11,48 @@ type GetSourceGoogleSheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleSheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleSheetsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegooglewebfonts.go b/internal/sdk/pkg/models/operations/getsourcegooglewebfonts.go
old mode 100755
new mode 100644
index 93730d84a..cf0dc55e4
--- a/internal/sdk/pkg/models/operations/getsourcegooglewebfonts.go
+++ b/internal/sdk/pkg/models/operations/getsourcegooglewebfonts.go
@@ -11,10 +11,48 @@ type GetSourceGoogleWebfontsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleWebfontsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleWebfontsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleWebfontsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleWebfontsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleWebfontsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleWebfontsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegoogleworkspaceadminreports.go b/internal/sdk/pkg/models/operations/getsourcegoogleworkspaceadminreports.go
old mode 100755
new mode 100644
index 283a6bf19..9ee8b4fd5
--- a/internal/sdk/pkg/models/operations/getsourcegoogleworkspaceadminreports.go
+++ b/internal/sdk/pkg/models/operations/getsourcegoogleworkspaceadminreports.go
@@ -11,10 +11,48 @@ type GetSourceGoogleWorkspaceAdminReportsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGoogleWorkspaceAdminReportsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGoogleWorkspaceAdminReportsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGoogleWorkspaceAdminReportsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGoogleWorkspaceAdminReportsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGoogleWorkspaceAdminReportsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGoogleWorkspaceAdminReportsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegreenhouse.go b/internal/sdk/pkg/models/operations/getsourcegreenhouse.go
old mode 100755
new mode 100644
index c21943538..2063e2a89
--- a/internal/sdk/pkg/models/operations/getsourcegreenhouse.go
+++ b/internal/sdk/pkg/models/operations/getsourcegreenhouse.go
@@ -11,10 +11,48 @@ type GetSourceGreenhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGreenhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGreenhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGreenhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGreenhouseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGreenhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGreenhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcegridly.go b/internal/sdk/pkg/models/operations/getsourcegridly.go
old mode 100755
new mode 100644
index 90cdb9d25..146396c80
--- a/internal/sdk/pkg/models/operations/getsourcegridly.go
+++ b/internal/sdk/pkg/models/operations/getsourcegridly.go
@@ -11,10 +11,48 @@ type GetSourceGridlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceGridlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceGridlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceGridlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceGridlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceGridlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceGridlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceharvest.go b/internal/sdk/pkg/models/operations/getsourceharvest.go
old mode 100755
new mode 100644
index a3cc286bd..fdbac8e76
--- a/internal/sdk/pkg/models/operations/getsourceharvest.go
+++ b/internal/sdk/pkg/models/operations/getsourceharvest.go
@@ -11,10 +11,48 @@ type GetSourceHarvestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceHarvestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceHarvestResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceHarvestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceHarvestResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceHarvestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceHarvestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcehubplanner.go b/internal/sdk/pkg/models/operations/getsourcehubplanner.go
old mode 100755
new mode 100644
index e09b9dfca..86b2bfc2c
--- a/internal/sdk/pkg/models/operations/getsourcehubplanner.go
+++ b/internal/sdk/pkg/models/operations/getsourcehubplanner.go
@@ -11,10 +11,48 @@ type GetSourceHubplannerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceHubplannerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceHubplannerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceHubplannerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceHubplannerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceHubplannerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceHubplannerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcehubspot.go b/internal/sdk/pkg/models/operations/getsourcehubspot.go
old mode 100755
new mode 100644
index e072ad702..e2713c959
--- a/internal/sdk/pkg/models/operations/getsourcehubspot.go
+++ b/internal/sdk/pkg/models/operations/getsourcehubspot.go
@@ -11,10 +11,48 @@ type GetSourceHubspotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceHubspotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceHubspotResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceHubspotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceHubspotResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceHubspotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceHubspotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceinsightly.go b/internal/sdk/pkg/models/operations/getsourceinsightly.go
old mode 100755
new mode 100644
index 0aea61c07..b9c410bb7
--- a/internal/sdk/pkg/models/operations/getsourceinsightly.go
+++ b/internal/sdk/pkg/models/operations/getsourceinsightly.go
@@ -11,10 +11,48 @@ type GetSourceInsightlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceInsightlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceInsightlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceInsightlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceInsightlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceInsightlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceInsightlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceinstagram.go b/internal/sdk/pkg/models/operations/getsourceinstagram.go
old mode 100755
new mode 100644
index a3dc14646..226686423
--- a/internal/sdk/pkg/models/operations/getsourceinstagram.go
+++ b/internal/sdk/pkg/models/operations/getsourceinstagram.go
@@ -11,10 +11,48 @@ type GetSourceInstagramRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceInstagramRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceInstagramResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceInstagramResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceInstagramResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceInstagramResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceInstagramResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceinstatus.go b/internal/sdk/pkg/models/operations/getsourceinstatus.go
old mode 100755
new mode 100644
index d20f607b0..9074bcc1b
--- a/internal/sdk/pkg/models/operations/getsourceinstatus.go
+++ b/internal/sdk/pkg/models/operations/getsourceinstatus.go
@@ -11,10 +11,48 @@ type GetSourceInstatusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceInstatusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceInstatusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceInstatusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceInstatusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceInstatusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceInstatusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceintercom.go b/internal/sdk/pkg/models/operations/getsourceintercom.go
old mode 100755
new mode 100644
index 90b662265..24aa486d7
--- a/internal/sdk/pkg/models/operations/getsourceintercom.go
+++ b/internal/sdk/pkg/models/operations/getsourceintercom.go
@@ -11,10 +11,48 @@ type GetSourceIntercomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceIntercomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceIntercomResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceIntercomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceIntercomResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceIntercomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceIntercomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceip2whois.go b/internal/sdk/pkg/models/operations/getsourceip2whois.go
old mode 100755
new mode 100644
index 875284a20..e80f5d163
--- a/internal/sdk/pkg/models/operations/getsourceip2whois.go
+++ b/internal/sdk/pkg/models/operations/getsourceip2whois.go
@@ -11,10 +11,48 @@ type GetSourceIp2whoisRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceIp2whoisRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceIp2whoisResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceIp2whoisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceIp2whoisResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceIp2whoisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceIp2whoisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceiterable.go b/internal/sdk/pkg/models/operations/getsourceiterable.go
old mode 100755
new mode 100644
index b98204878..f2d342c64
--- a/internal/sdk/pkg/models/operations/getsourceiterable.go
+++ b/internal/sdk/pkg/models/operations/getsourceiterable.go
@@ -11,10 +11,48 @@ type GetSourceIterableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceIterableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceIterableResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceIterableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceIterableResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceIterableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceIterableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcejira.go b/internal/sdk/pkg/models/operations/getsourcejira.go
old mode 100755
new mode 100644
index 81ab85ceb..4dd0fb14b
--- a/internal/sdk/pkg/models/operations/getsourcejira.go
+++ b/internal/sdk/pkg/models/operations/getsourcejira.go
@@ -11,10 +11,48 @@ type GetSourceJiraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceJiraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceJiraResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceJiraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceJiraResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceJiraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceJiraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcek6cloud.go b/internal/sdk/pkg/models/operations/getsourcek6cloud.go
old mode 100755
new mode 100644
index 5ab1a2761..6b3d17051
--- a/internal/sdk/pkg/models/operations/getsourcek6cloud.go
+++ b/internal/sdk/pkg/models/operations/getsourcek6cloud.go
@@ -11,10 +11,48 @@ type GetSourceK6CloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceK6CloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceK6CloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceK6CloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceK6CloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceK6CloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceK6CloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceklarna.go b/internal/sdk/pkg/models/operations/getsourceklarna.go
old mode 100755
new mode 100644
index 5744d6c39..4c535b3de
--- a/internal/sdk/pkg/models/operations/getsourceklarna.go
+++ b/internal/sdk/pkg/models/operations/getsourceklarna.go
@@ -11,10 +11,48 @@ type GetSourceKlarnaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceKlarnaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceKlarnaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceKlarnaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceKlarnaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceKlarnaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceKlarnaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceklaviyo.go b/internal/sdk/pkg/models/operations/getsourceklaviyo.go
old mode 100755
new mode 100644
index c3a7d42ea..1856b5a97
--- a/internal/sdk/pkg/models/operations/getsourceklaviyo.go
+++ b/internal/sdk/pkg/models/operations/getsourceklaviyo.go
@@ -11,10 +11,48 @@ type GetSourceKlaviyoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceKlaviyoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceKlaviyoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceKlaviyoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceKlaviyoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceKlaviyoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceKlaviyoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcekustomersinger.go b/internal/sdk/pkg/models/operations/getsourcekustomersinger.go
old mode 100755
new mode 100644
index 3b077c5dd..beffb5121
--- a/internal/sdk/pkg/models/operations/getsourcekustomersinger.go
+++ b/internal/sdk/pkg/models/operations/getsourcekustomersinger.go
@@ -11,10 +11,48 @@ type GetSourceKustomerSingerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceKustomerSingerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceKustomerSingerResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceKustomerSingerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceKustomerSingerResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceKustomerSingerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceKustomerSingerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcekyve.go b/internal/sdk/pkg/models/operations/getsourcekyve.go
old mode 100755
new mode 100644
index 6018c69c1..ab49dc923
--- a/internal/sdk/pkg/models/operations/getsourcekyve.go
+++ b/internal/sdk/pkg/models/operations/getsourcekyve.go
@@ -11,10 +11,48 @@ type GetSourceKyveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceKyveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceKyveResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceKyveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceKyveResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceKyveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceKyveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelaunchdarkly.go b/internal/sdk/pkg/models/operations/getsourcelaunchdarkly.go
old mode 100755
new mode 100644
index 0ee44631d..82282ca6a
--- a/internal/sdk/pkg/models/operations/getsourcelaunchdarkly.go
+++ b/internal/sdk/pkg/models/operations/getsourcelaunchdarkly.go
@@ -11,10 +11,48 @@ type GetSourceLaunchdarklyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLaunchdarklyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLaunchdarklyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLaunchdarklyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLaunchdarklyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLaunchdarklyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLaunchdarklyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelemlist.go b/internal/sdk/pkg/models/operations/getsourcelemlist.go
old mode 100755
new mode 100644
index ca8f6af9d..422b60d32
--- a/internal/sdk/pkg/models/operations/getsourcelemlist.go
+++ b/internal/sdk/pkg/models/operations/getsourcelemlist.go
@@ -11,10 +11,48 @@ type GetSourceLemlistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLemlistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLemlistResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLemlistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLemlistResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLemlistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLemlistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceleverhiring.go b/internal/sdk/pkg/models/operations/getsourceleverhiring.go
old mode 100755
new mode 100644
index 2cb58cc35..3fbf0522a
--- a/internal/sdk/pkg/models/operations/getsourceleverhiring.go
+++ b/internal/sdk/pkg/models/operations/getsourceleverhiring.go
@@ -11,10 +11,48 @@ type GetSourceLeverHiringRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLeverHiringRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLeverHiringResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLeverHiringResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLeverHiringResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLeverHiringResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLeverHiringResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelinkedinads.go b/internal/sdk/pkg/models/operations/getsourcelinkedinads.go
old mode 100755
new mode 100644
index bbfdc65a4..509550365
--- a/internal/sdk/pkg/models/operations/getsourcelinkedinads.go
+++ b/internal/sdk/pkg/models/operations/getsourcelinkedinads.go
@@ -11,10 +11,48 @@ type GetSourceLinkedinAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLinkedinAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLinkedinAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLinkedinAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLinkedinAdsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLinkedinAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLinkedinAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelinkedinpages.go b/internal/sdk/pkg/models/operations/getsourcelinkedinpages.go
old mode 100755
new mode 100644
index 504e7b12a..3b4b1566f
--- a/internal/sdk/pkg/models/operations/getsourcelinkedinpages.go
+++ b/internal/sdk/pkg/models/operations/getsourcelinkedinpages.go
@@ -11,10 +11,48 @@ type GetSourceLinkedinPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLinkedinPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLinkedinPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLinkedinPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLinkedinPagesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLinkedinPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLinkedinPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelinnworks.go b/internal/sdk/pkg/models/operations/getsourcelinnworks.go
old mode 100755
new mode 100644
index 85ce66021..00a11d2d6
--- a/internal/sdk/pkg/models/operations/getsourcelinnworks.go
+++ b/internal/sdk/pkg/models/operations/getsourcelinnworks.go
@@ -11,10 +11,48 @@ type GetSourceLinnworksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLinnworksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLinnworksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLinnworksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLinnworksResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLinnworksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLinnworksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcelokalise.go b/internal/sdk/pkg/models/operations/getsourcelokalise.go
old mode 100755
new mode 100644
index 9ea6be406..535df7056
--- a/internal/sdk/pkg/models/operations/getsourcelokalise.go
+++ b/internal/sdk/pkg/models/operations/getsourcelokalise.go
@@ -11,10 +11,48 @@ type GetSourceLokaliseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceLokaliseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceLokaliseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceLokaliseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceLokaliseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceLokaliseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceLokaliseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemailchimp.go b/internal/sdk/pkg/models/operations/getsourcemailchimp.go
old mode 100755
new mode 100644
index 3c91ccd25..38402c536
--- a/internal/sdk/pkg/models/operations/getsourcemailchimp.go
+++ b/internal/sdk/pkg/models/operations/getsourcemailchimp.go
@@ -11,10 +11,48 @@ type GetSourceMailchimpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMailchimpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMailchimpResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMailchimpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMailchimpResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMailchimpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMailchimpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemailgun.go b/internal/sdk/pkg/models/operations/getsourcemailgun.go
old mode 100755
new mode 100644
index 517016f67..2c098fd4b
--- a/internal/sdk/pkg/models/operations/getsourcemailgun.go
+++ b/internal/sdk/pkg/models/operations/getsourcemailgun.go
@@ -11,10 +11,48 @@ type GetSourceMailgunRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMailgunRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMailgunResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMailgunResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMailgunResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMailgunResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMailgunResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemailjetsms.go b/internal/sdk/pkg/models/operations/getsourcemailjetsms.go
old mode 100755
new mode 100644
index 0d7d9fad4..066b4e7fd
--- a/internal/sdk/pkg/models/operations/getsourcemailjetsms.go
+++ b/internal/sdk/pkg/models/operations/getsourcemailjetsms.go
@@ -11,10 +11,48 @@ type GetSourceMailjetSmsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMailjetSmsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMailjetSmsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMailjetSmsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMailjetSmsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMailjetSmsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMailjetSmsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemarketo.go b/internal/sdk/pkg/models/operations/getsourcemarketo.go
old mode 100755
new mode 100644
index e2ac87652..cbc629a85
--- a/internal/sdk/pkg/models/operations/getsourcemarketo.go
+++ b/internal/sdk/pkg/models/operations/getsourcemarketo.go
@@ -11,10 +11,48 @@ type GetSourceMarketoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMarketoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMarketoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMarketoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMarketoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMarketoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMarketoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemetabase.go b/internal/sdk/pkg/models/operations/getsourcemetabase.go
old mode 100755
new mode 100644
index efdf55f78..51ed9f570
--- a/internal/sdk/pkg/models/operations/getsourcemetabase.go
+++ b/internal/sdk/pkg/models/operations/getsourcemetabase.go
@@ -11,10 +11,48 @@ type GetSourceMetabaseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMetabaseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMetabaseResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMetabaseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMetabaseResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMetabaseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMetabaseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemicrosoftteams.go b/internal/sdk/pkg/models/operations/getsourcemicrosoftteams.go
old mode 100755
new mode 100644
index d21716bcd..52d0c905e
--- a/internal/sdk/pkg/models/operations/getsourcemicrosoftteams.go
+++ b/internal/sdk/pkg/models/operations/getsourcemicrosoftteams.go
@@ -11,10 +11,48 @@ type GetSourceMicrosoftTeamsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMicrosoftTeamsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMicrosoftTeamsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMicrosoftTeamsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMicrosoftTeamsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMicrosoftTeamsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMicrosoftTeamsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemixpanel.go b/internal/sdk/pkg/models/operations/getsourcemixpanel.go
old mode 100755
new mode 100644
index cc1d51bb6..4c863a2b8
--- a/internal/sdk/pkg/models/operations/getsourcemixpanel.go
+++ b/internal/sdk/pkg/models/operations/getsourcemixpanel.go
@@ -11,10 +11,48 @@ type GetSourceMixpanelRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMixpanelRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMixpanelResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMixpanelResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMixpanelResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMixpanelResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMixpanelResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemonday.go b/internal/sdk/pkg/models/operations/getsourcemonday.go
old mode 100755
new mode 100644
index af590d16a..96be2610a
--- a/internal/sdk/pkg/models/operations/getsourcemonday.go
+++ b/internal/sdk/pkg/models/operations/getsourcemonday.go
@@ -11,10 +11,48 @@ type GetSourceMondayRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMondayRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMondayResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMondayResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMondayResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMondayResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMondayResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemongodb.go b/internal/sdk/pkg/models/operations/getsourcemongodb.go
old mode 100755
new mode 100644
index a243a572e..f5f336e0e
--- a/internal/sdk/pkg/models/operations/getsourcemongodb.go
+++ b/internal/sdk/pkg/models/operations/getsourcemongodb.go
@@ -11,10 +11,48 @@ type GetSourceMongodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMongodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMongodbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemongodbinternalpoc.go b/internal/sdk/pkg/models/operations/getsourcemongodbinternalpoc.go
old mode 100755
new mode 100644
index 74b93e805..eb7bea609
--- a/internal/sdk/pkg/models/operations/getsourcemongodbinternalpoc.go
+++ b/internal/sdk/pkg/models/operations/getsourcemongodbinternalpoc.go
@@ -11,10 +11,48 @@ type GetSourceMongodbInternalPocRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMongodbInternalPocRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMongodbInternalPocResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMongodbInternalPocResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMongodbInternalPocResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMongodbInternalPocResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMongodbInternalPocResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemssql.go b/internal/sdk/pkg/models/operations/getsourcemssql.go
old mode 100755
new mode 100644
index 6f5b680c8..f898e1ee6
--- a/internal/sdk/pkg/models/operations/getsourcemssql.go
+++ b/internal/sdk/pkg/models/operations/getsourcemssql.go
@@ -11,10 +11,48 @@ type GetSourceMssqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMssqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMssqlResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemyhours.go b/internal/sdk/pkg/models/operations/getsourcemyhours.go
old mode 100755
new mode 100644
index 6ffc2e4c4..0a67a8fdd
--- a/internal/sdk/pkg/models/operations/getsourcemyhours.go
+++ b/internal/sdk/pkg/models/operations/getsourcemyhours.go
@@ -11,10 +11,48 @@ type GetSourceMyHoursRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMyHoursRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMyHoursResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMyHoursResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMyHoursResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMyHoursResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMyHoursResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcemysql.go b/internal/sdk/pkg/models/operations/getsourcemysql.go
old mode 100755
new mode 100644
index 2f93cd13b..e91a5e82a
--- a/internal/sdk/pkg/models/operations/getsourcemysql.go
+++ b/internal/sdk/pkg/models/operations/getsourcemysql.go
@@ -11,10 +11,48 @@ type GetSourceMysqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceMysqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceMysqlResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcenetsuite.go b/internal/sdk/pkg/models/operations/getsourcenetsuite.go
old mode 100755
new mode 100644
index e2d7965cb..607cd16d7
--- a/internal/sdk/pkg/models/operations/getsourcenetsuite.go
+++ b/internal/sdk/pkg/models/operations/getsourcenetsuite.go
@@ -11,10 +11,48 @@ type GetSourceNetsuiteRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceNetsuiteRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceNetsuiteResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceNetsuiteResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceNetsuiteResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceNetsuiteResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceNetsuiteResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcenotion.go b/internal/sdk/pkg/models/operations/getsourcenotion.go
old mode 100755
new mode 100644
index 1d9234a1f..3bff901e5
--- a/internal/sdk/pkg/models/operations/getsourcenotion.go
+++ b/internal/sdk/pkg/models/operations/getsourcenotion.go
@@ -11,10 +11,48 @@ type GetSourceNotionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceNotionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceNotionResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceNotionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceNotionResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceNotionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceNotionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcenytimes.go b/internal/sdk/pkg/models/operations/getsourcenytimes.go
old mode 100755
new mode 100644
index 08a4c12ba..6023a5c6a
--- a/internal/sdk/pkg/models/operations/getsourcenytimes.go
+++ b/internal/sdk/pkg/models/operations/getsourcenytimes.go
@@ -11,10 +11,48 @@ type GetSourceNytimesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceNytimesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceNytimesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceNytimesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceNytimesResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceNytimesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceNytimesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceokta.go b/internal/sdk/pkg/models/operations/getsourceokta.go
old mode 100755
new mode 100644
index 6afd90187..66526d7f9
--- a/internal/sdk/pkg/models/operations/getsourceokta.go
+++ b/internal/sdk/pkg/models/operations/getsourceokta.go
@@ -11,10 +11,48 @@ type GetSourceOktaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOktaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOktaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOktaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOktaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOktaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOktaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceomnisend.go b/internal/sdk/pkg/models/operations/getsourceomnisend.go
old mode 100755
new mode 100644
index 94b3ed9da..88c34c8ab
--- a/internal/sdk/pkg/models/operations/getsourceomnisend.go
+++ b/internal/sdk/pkg/models/operations/getsourceomnisend.go
@@ -11,10 +11,48 @@ type GetSourceOmnisendRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOmnisendRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOmnisendResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOmnisendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOmnisendResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOmnisendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOmnisendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceonesignal.go b/internal/sdk/pkg/models/operations/getsourceonesignal.go
old mode 100755
new mode 100644
index 8e107d862..c4b963594
--- a/internal/sdk/pkg/models/operations/getsourceonesignal.go
+++ b/internal/sdk/pkg/models/operations/getsourceonesignal.go
@@ -11,10 +11,48 @@ type GetSourceOnesignalRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOnesignalRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOnesignalResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOnesignalResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOnesignalResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOnesignalResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOnesignalResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceoracle.go b/internal/sdk/pkg/models/operations/getsourceoracle.go
old mode 100755
new mode 100644
index bca185705..0d48c8b1a
--- a/internal/sdk/pkg/models/operations/getsourceoracle.go
+++ b/internal/sdk/pkg/models/operations/getsourceoracle.go
@@ -11,10 +11,48 @@ type GetSourceOracleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOracleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOracleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceorb.go b/internal/sdk/pkg/models/operations/getsourceorb.go
old mode 100755
new mode 100644
index 6058da934..2cbaff853
--- a/internal/sdk/pkg/models/operations/getsourceorb.go
+++ b/internal/sdk/pkg/models/operations/getsourceorb.go
@@ -11,10 +11,48 @@ type GetSourceOrbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOrbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOrbResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOrbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOrbResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOrbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOrbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceorbit.go b/internal/sdk/pkg/models/operations/getsourceorbit.go
old mode 100755
new mode 100644
index e1c3b843f..9f0733c2b
--- a/internal/sdk/pkg/models/operations/getsourceorbit.go
+++ b/internal/sdk/pkg/models/operations/getsourceorbit.go
@@ -11,10 +11,48 @@ type GetSourceOrbitRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOrbitRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOrbitResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOrbitResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOrbitResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOrbitResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOrbitResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceoutbrainamplify.go b/internal/sdk/pkg/models/operations/getsourceoutbrainamplify.go
old mode 100755
new mode 100644
index 173ccf6ba..edc920c9d
--- a/internal/sdk/pkg/models/operations/getsourceoutbrainamplify.go
+++ b/internal/sdk/pkg/models/operations/getsourceoutbrainamplify.go
@@ -11,10 +11,48 @@ type GetSourceOutbrainAmplifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOutbrainAmplifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOutbrainAmplifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOutbrainAmplifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOutbrainAmplifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOutbrainAmplifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOutbrainAmplifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceoutreach.go b/internal/sdk/pkg/models/operations/getsourceoutreach.go
old mode 100755
new mode 100644
index 3198facbb..706d848cf
--- a/internal/sdk/pkg/models/operations/getsourceoutreach.go
+++ b/internal/sdk/pkg/models/operations/getsourceoutreach.go
@@ -11,10 +11,48 @@ type GetSourceOutreachRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceOutreachRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceOutreachResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceOutreachResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceOutreachResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceOutreachResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceOutreachResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepaypaltransaction.go b/internal/sdk/pkg/models/operations/getsourcepaypaltransaction.go
old mode 100755
new mode 100644
index c140495da..1a29060b6
--- a/internal/sdk/pkg/models/operations/getsourcepaypaltransaction.go
+++ b/internal/sdk/pkg/models/operations/getsourcepaypaltransaction.go
@@ -11,10 +11,48 @@ type GetSourcePaypalTransactionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePaypalTransactionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePaypalTransactionResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePaypalTransactionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePaypalTransactionResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePaypalTransactionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePaypalTransactionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepaystack.go b/internal/sdk/pkg/models/operations/getsourcepaystack.go
old mode 100755
new mode 100644
index 296759bda..8823dbbbf
--- a/internal/sdk/pkg/models/operations/getsourcepaystack.go
+++ b/internal/sdk/pkg/models/operations/getsourcepaystack.go
@@ -11,10 +11,48 @@ type GetSourcePaystackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePaystackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePaystackResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePaystackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePaystackResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePaystackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePaystackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcependo.go b/internal/sdk/pkg/models/operations/getsourcependo.go
old mode 100755
new mode 100644
index c723d13c2..c5645a5ef
--- a/internal/sdk/pkg/models/operations/getsourcependo.go
+++ b/internal/sdk/pkg/models/operations/getsourcependo.go
@@ -11,10 +11,48 @@ type GetSourcePendoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePendoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePendoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePendoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePendoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePendoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePendoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepersistiq.go b/internal/sdk/pkg/models/operations/getsourcepersistiq.go
old mode 100755
new mode 100644
index 9a250bb0c..1a0747d13
--- a/internal/sdk/pkg/models/operations/getsourcepersistiq.go
+++ b/internal/sdk/pkg/models/operations/getsourcepersistiq.go
@@ -11,10 +11,48 @@ type GetSourcePersistiqRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePersistiqRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePersistiqResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePersistiqResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePersistiqResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePersistiqResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePersistiqResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepexelsapi.go b/internal/sdk/pkg/models/operations/getsourcepexelsapi.go
old mode 100755
new mode 100644
index 0a2601bf1..05431ed41
--- a/internal/sdk/pkg/models/operations/getsourcepexelsapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcepexelsapi.go
@@ -11,10 +11,48 @@ type GetSourcePexelsAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePexelsAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePexelsAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePexelsAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePexelsAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePexelsAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePexelsAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepinterest.go b/internal/sdk/pkg/models/operations/getsourcepinterest.go
old mode 100755
new mode 100644
index 93bcc5756..db271c120
--- a/internal/sdk/pkg/models/operations/getsourcepinterest.go
+++ b/internal/sdk/pkg/models/operations/getsourcepinterest.go
@@ -11,10 +11,48 @@ type GetSourcePinterestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePinterestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePinterestResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePinterestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePinterestResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePinterestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePinterestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepipedrive.go b/internal/sdk/pkg/models/operations/getsourcepipedrive.go
old mode 100755
new mode 100644
index 57cf1f444..51d3f5177
--- a/internal/sdk/pkg/models/operations/getsourcepipedrive.go
+++ b/internal/sdk/pkg/models/operations/getsourcepipedrive.go
@@ -11,10 +11,48 @@ type GetSourcePipedriveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePipedriveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePipedriveResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePipedriveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePipedriveResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePipedriveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePipedriveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepocket.go b/internal/sdk/pkg/models/operations/getsourcepocket.go
old mode 100755
new mode 100644
index 03374047f..38dd712d2
--- a/internal/sdk/pkg/models/operations/getsourcepocket.go
+++ b/internal/sdk/pkg/models/operations/getsourcepocket.go
@@ -11,10 +11,48 @@ type GetSourcePocketRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePocketRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePocketResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePocketResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePocketResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePocketResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePocketResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepokeapi.go b/internal/sdk/pkg/models/operations/getsourcepokeapi.go
old mode 100755
new mode 100644
index e60afb7be..24b4f1df8
--- a/internal/sdk/pkg/models/operations/getsourcepokeapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcepokeapi.go
@@ -11,10 +11,48 @@ type GetSourcePokeapiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePokeapiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePokeapiResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePokeapiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePokeapiResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePokeapiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePokeapiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepolygonstockapi.go b/internal/sdk/pkg/models/operations/getsourcepolygonstockapi.go
old mode 100755
new mode 100644
index 245bc8ad3..3493c5790
--- a/internal/sdk/pkg/models/operations/getsourcepolygonstockapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcepolygonstockapi.go
@@ -11,10 +11,48 @@ type GetSourcePolygonStockAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePolygonStockAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePolygonStockAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePolygonStockAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePolygonStockAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePolygonStockAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePolygonStockAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepostgres.go b/internal/sdk/pkg/models/operations/getsourcepostgres.go
old mode 100755
new mode 100644
index 8a51277ca..dc52fbc15
--- a/internal/sdk/pkg/models/operations/getsourcepostgres.go
+++ b/internal/sdk/pkg/models/operations/getsourcepostgres.go
@@ -11,10 +11,48 @@ type GetSourcePostgresRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePostgresRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePostgresResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceposthog.go b/internal/sdk/pkg/models/operations/getsourceposthog.go
old mode 100755
new mode 100644
index cf36635e2..ce8b09d4a
--- a/internal/sdk/pkg/models/operations/getsourceposthog.go
+++ b/internal/sdk/pkg/models/operations/getsourceposthog.go
@@ -11,10 +11,48 @@ type GetSourcePosthogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePosthogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePosthogResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePosthogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePosthogResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePosthogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePosthogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepostmarkapp.go b/internal/sdk/pkg/models/operations/getsourcepostmarkapp.go
old mode 100755
new mode 100644
index 719fe22c2..d68d6ed44
--- a/internal/sdk/pkg/models/operations/getsourcepostmarkapp.go
+++ b/internal/sdk/pkg/models/operations/getsourcepostmarkapp.go
@@ -11,10 +11,48 @@ type GetSourcePostmarkappRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePostmarkappRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePostmarkappResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePostmarkappResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePostmarkappResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePostmarkappResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePostmarkappResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceprestashop.go b/internal/sdk/pkg/models/operations/getsourceprestashop.go
old mode 100755
new mode 100644
index d1ee46341..8fdc30978
--- a/internal/sdk/pkg/models/operations/getsourceprestashop.go
+++ b/internal/sdk/pkg/models/operations/getsourceprestashop.go
@@ -11,10 +11,48 @@ type GetSourcePrestashopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePrestashopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePrestashopResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePrestashopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePrestashopResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePrestashopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePrestashopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepunkapi.go b/internal/sdk/pkg/models/operations/getsourcepunkapi.go
old mode 100755
new mode 100644
index b3367895f..0e46fdd3e
--- a/internal/sdk/pkg/models/operations/getsourcepunkapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcepunkapi.go
@@ -11,10 +11,48 @@ type GetSourcePunkAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePunkAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePunkAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePunkAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePunkAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePunkAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePunkAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcepypi.go b/internal/sdk/pkg/models/operations/getsourcepypi.go
old mode 100755
new mode 100644
index 36f874390..c1e0cf91e
--- a/internal/sdk/pkg/models/operations/getsourcepypi.go
+++ b/internal/sdk/pkg/models/operations/getsourcepypi.go
@@ -11,10 +11,48 @@ type GetSourcePypiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourcePypiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourcePypiResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourcePypiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourcePypiResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourcePypiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourcePypiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcequalaroo.go b/internal/sdk/pkg/models/operations/getsourcequalaroo.go
old mode 100755
new mode 100644
index d8d640f66..14da74aa4
--- a/internal/sdk/pkg/models/operations/getsourcequalaroo.go
+++ b/internal/sdk/pkg/models/operations/getsourcequalaroo.go
@@ -11,10 +11,48 @@ type GetSourceQualarooRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceQualarooRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceQualarooResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceQualarooResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceQualarooResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceQualarooResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceQualarooResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcequickbooks.go b/internal/sdk/pkg/models/operations/getsourcequickbooks.go
old mode 100755
new mode 100644
index 9f53ec29f..bffa29da3
--- a/internal/sdk/pkg/models/operations/getsourcequickbooks.go
+++ b/internal/sdk/pkg/models/operations/getsourcequickbooks.go
@@ -11,10 +11,48 @@ type GetSourceQuickbooksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceQuickbooksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceQuickbooksResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceQuickbooksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceQuickbooksResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceQuickbooksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceQuickbooksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerailz.go b/internal/sdk/pkg/models/operations/getsourcerailz.go
old mode 100755
new mode 100644
index 003905e29..6652a97fe
--- a/internal/sdk/pkg/models/operations/getsourcerailz.go
+++ b/internal/sdk/pkg/models/operations/getsourcerailz.go
@@ -11,10 +11,48 @@ type GetSourceRailzRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRailzRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRailzResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRailzResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRailzResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRailzResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRailzResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerecharge.go b/internal/sdk/pkg/models/operations/getsourcerecharge.go
old mode 100755
new mode 100644
index a49b390f3..a67f3a40d
--- a/internal/sdk/pkg/models/operations/getsourcerecharge.go
+++ b/internal/sdk/pkg/models/operations/getsourcerecharge.go
@@ -11,10 +11,48 @@ type GetSourceRechargeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRechargeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRechargeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRechargeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRechargeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRechargeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRechargeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerecreation.go b/internal/sdk/pkg/models/operations/getsourcerecreation.go
old mode 100755
new mode 100644
index f19d21647..2b0ebbb85
--- a/internal/sdk/pkg/models/operations/getsourcerecreation.go
+++ b/internal/sdk/pkg/models/operations/getsourcerecreation.go
@@ -11,10 +11,48 @@ type GetSourceRecreationRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRecreationRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRecreationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRecreationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRecreationResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRecreationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRecreationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerecruitee.go b/internal/sdk/pkg/models/operations/getsourcerecruitee.go
old mode 100755
new mode 100644
index bd3c37589..1cfe35c65
--- a/internal/sdk/pkg/models/operations/getsourcerecruitee.go
+++ b/internal/sdk/pkg/models/operations/getsourcerecruitee.go
@@ -11,10 +11,48 @@ type GetSourceRecruiteeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRecruiteeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRecruiteeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRecruiteeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRecruiteeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRecruiteeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRecruiteeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerecurly.go b/internal/sdk/pkg/models/operations/getsourcerecurly.go
old mode 100755
new mode 100644
index 1943691df..ca67d5ede
--- a/internal/sdk/pkg/models/operations/getsourcerecurly.go
+++ b/internal/sdk/pkg/models/operations/getsourcerecurly.go
@@ -11,10 +11,48 @@ type GetSourceRecurlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRecurlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRecurlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRecurlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRecurlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRecurlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRecurlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceredshift.go b/internal/sdk/pkg/models/operations/getsourceredshift.go
old mode 100755
new mode 100644
index be376cfbc..bdcbdf7a7
--- a/internal/sdk/pkg/models/operations/getsourceredshift.go
+++ b/internal/sdk/pkg/models/operations/getsourceredshift.go
@@ -11,10 +11,48 @@ type GetSourceRedshiftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRedshiftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRedshiftResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceretently.go b/internal/sdk/pkg/models/operations/getsourceretently.go
old mode 100755
new mode 100644
index 82da76681..10dfcdf1e
--- a/internal/sdk/pkg/models/operations/getsourceretently.go
+++ b/internal/sdk/pkg/models/operations/getsourceretently.go
@@ -11,10 +11,48 @@ type GetSourceRetentlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRetentlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRetentlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRetentlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRetentlyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRetentlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRetentlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerkicovid.go b/internal/sdk/pkg/models/operations/getsourcerkicovid.go
old mode 100755
new mode 100644
index 5ba3f9042..388e24b18
--- a/internal/sdk/pkg/models/operations/getsourcerkicovid.go
+++ b/internal/sdk/pkg/models/operations/getsourcerkicovid.go
@@ -11,10 +11,48 @@ type GetSourceRkiCovidRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRkiCovidRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRkiCovidResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRkiCovidResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRkiCovidResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRkiCovidResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRkiCovidResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcerss.go b/internal/sdk/pkg/models/operations/getsourcerss.go
old mode 100755
new mode 100644
index e3be32a49..a931200d4
--- a/internal/sdk/pkg/models/operations/getsourcerss.go
+++ b/internal/sdk/pkg/models/operations/getsourcerss.go
@@ -11,10 +11,48 @@ type GetSourceRssRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceRssRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceRssResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceRssResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceRssResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceRssResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceRssResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsources3.go b/internal/sdk/pkg/models/operations/getsources3.go
old mode 100755
new mode 100644
index 2dc87b7f0..d4107648c
--- a/internal/sdk/pkg/models/operations/getsources3.go
+++ b/internal/sdk/pkg/models/operations/getsources3.go
@@ -11,10 +11,48 @@ type GetSourceS3Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceS3Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceS3Response struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceS3Response) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesalesforce.go b/internal/sdk/pkg/models/operations/getsourcesalesforce.go
old mode 100755
new mode 100644
index 3e5f055b2..7d0e7ce58
--- a/internal/sdk/pkg/models/operations/getsourcesalesforce.go
+++ b/internal/sdk/pkg/models/operations/getsourcesalesforce.go
@@ -11,10 +11,48 @@ type GetSourceSalesforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSalesforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSalesforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSalesforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSalesforceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSalesforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSalesforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesalesloft.go b/internal/sdk/pkg/models/operations/getsourcesalesloft.go
old mode 100755
new mode 100644
index ca01f40d7..71688aaf7
--- a/internal/sdk/pkg/models/operations/getsourcesalesloft.go
+++ b/internal/sdk/pkg/models/operations/getsourcesalesloft.go
@@ -11,10 +11,48 @@ type GetSourceSalesloftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSalesloftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSalesloftResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSalesloftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSalesloftResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSalesloftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSalesloftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesapfieldglass.go b/internal/sdk/pkg/models/operations/getsourcesapfieldglass.go
old mode 100755
new mode 100644
index 52d32bbde..e7589f8d5
--- a/internal/sdk/pkg/models/operations/getsourcesapfieldglass.go
+++ b/internal/sdk/pkg/models/operations/getsourcesapfieldglass.go
@@ -11,10 +11,48 @@ type GetSourceSapFieldglassRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSapFieldglassRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSapFieldglassResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSapFieldglassResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSapFieldglassResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSapFieldglassResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSapFieldglassResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesecoda.go b/internal/sdk/pkg/models/operations/getsourcesecoda.go
old mode 100755
new mode 100644
index 73ec15fb0..fb53d0d2c
--- a/internal/sdk/pkg/models/operations/getsourcesecoda.go
+++ b/internal/sdk/pkg/models/operations/getsourcesecoda.go
@@ -11,10 +11,48 @@ type GetSourceSecodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSecodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSecodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSecodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSecodaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSecodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSecodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesendgrid.go b/internal/sdk/pkg/models/operations/getsourcesendgrid.go
old mode 100755
new mode 100644
index 006b4686e..7b04fce35
--- a/internal/sdk/pkg/models/operations/getsourcesendgrid.go
+++ b/internal/sdk/pkg/models/operations/getsourcesendgrid.go
@@ -11,10 +11,48 @@ type GetSourceSendgridRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSendgridRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSendgridResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSendgridResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSendgridResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSendgridResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSendgridResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesendinblue.go b/internal/sdk/pkg/models/operations/getsourcesendinblue.go
old mode 100755
new mode 100644
index 091ba1e53..2ca106032
--- a/internal/sdk/pkg/models/operations/getsourcesendinblue.go
+++ b/internal/sdk/pkg/models/operations/getsourcesendinblue.go
@@ -11,10 +11,48 @@ type GetSourceSendinblueRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSendinblueRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSendinblueResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSendinblueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSendinblueResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSendinblueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSendinblueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesenseforce.go b/internal/sdk/pkg/models/operations/getsourcesenseforce.go
old mode 100755
new mode 100644
index fe6d3fd79..16ade6bc2
--- a/internal/sdk/pkg/models/operations/getsourcesenseforce.go
+++ b/internal/sdk/pkg/models/operations/getsourcesenseforce.go
@@ -11,10 +11,48 @@ type GetSourceSenseforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSenseforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSenseforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSenseforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSenseforceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSenseforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSenseforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesentry.go b/internal/sdk/pkg/models/operations/getsourcesentry.go
old mode 100755
new mode 100644
index 4e0da45e5..417894216
--- a/internal/sdk/pkg/models/operations/getsourcesentry.go
+++ b/internal/sdk/pkg/models/operations/getsourcesentry.go
@@ -11,10 +11,48 @@ type GetSourceSentryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSentryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSentryResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSentryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSentryResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSentryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSentryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesftp.go b/internal/sdk/pkg/models/operations/getsourcesftp.go
old mode 100755
new mode 100644
index 10a67086d..061d92d08
--- a/internal/sdk/pkg/models/operations/getsourcesftp.go
+++ b/internal/sdk/pkg/models/operations/getsourcesftp.go
@@ -11,10 +11,48 @@ type GetSourceSftpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSftpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSftpResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSftpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSftpResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSftpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSftpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesftpbulk.go b/internal/sdk/pkg/models/operations/getsourcesftpbulk.go
old mode 100755
new mode 100644
index 1b70983e1..efa49d880
--- a/internal/sdk/pkg/models/operations/getsourcesftpbulk.go
+++ b/internal/sdk/pkg/models/operations/getsourcesftpbulk.go
@@ -11,10 +11,48 @@ type GetSourceSftpBulkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSftpBulkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSftpBulkResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSftpBulkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSftpBulkResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSftpBulkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSftpBulkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceshopify.go b/internal/sdk/pkg/models/operations/getsourceshopify.go
old mode 100755
new mode 100644
index 904476b2c..1e6584ee6
--- a/internal/sdk/pkg/models/operations/getsourceshopify.go
+++ b/internal/sdk/pkg/models/operations/getsourceshopify.go
@@ -11,10 +11,48 @@ type GetSourceShopifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceShopifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceShopifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceShopifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceShopifyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceShopifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceShopifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceshortio.go b/internal/sdk/pkg/models/operations/getsourceshortio.go
old mode 100755
new mode 100644
index e4171c609..de6b962ce
--- a/internal/sdk/pkg/models/operations/getsourceshortio.go
+++ b/internal/sdk/pkg/models/operations/getsourceshortio.go
@@ -11,10 +11,48 @@ type GetSourceShortioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceShortioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceShortioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceShortioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceShortioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceShortioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceShortioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceslack.go b/internal/sdk/pkg/models/operations/getsourceslack.go
old mode 100755
new mode 100644
index f5f2366e6..75a37d29b
--- a/internal/sdk/pkg/models/operations/getsourceslack.go
+++ b/internal/sdk/pkg/models/operations/getsourceslack.go
@@ -11,10 +11,48 @@ type GetSourceSlackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSlackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSlackResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSlackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSlackResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSlackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSlackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesmaily.go b/internal/sdk/pkg/models/operations/getsourcesmaily.go
old mode 100755
new mode 100644
index 25dcc1de3..7b70d1986
--- a/internal/sdk/pkg/models/operations/getsourcesmaily.go
+++ b/internal/sdk/pkg/models/operations/getsourcesmaily.go
@@ -11,10 +11,48 @@ type GetSourceSmailyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSmailyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSmailyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSmailyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSmailyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSmailyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSmailyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesmartengage.go b/internal/sdk/pkg/models/operations/getsourcesmartengage.go
old mode 100755
new mode 100644
index 2862d0a17..c22325799
--- a/internal/sdk/pkg/models/operations/getsourcesmartengage.go
+++ b/internal/sdk/pkg/models/operations/getsourcesmartengage.go
@@ -11,10 +11,48 @@ type GetSourceSmartengageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSmartengageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSmartengageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSmartengageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSmartengageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSmartengageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSmartengageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesmartsheets.go b/internal/sdk/pkg/models/operations/getsourcesmartsheets.go
old mode 100755
new mode 100644
index be8167aba..d01da7298
--- a/internal/sdk/pkg/models/operations/getsourcesmartsheets.go
+++ b/internal/sdk/pkg/models/operations/getsourcesmartsheets.go
@@ -11,10 +11,48 @@ type GetSourceSmartsheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSmartsheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSmartsheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSmartsheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSmartsheetsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSmartsheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSmartsheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesnapchatmarketing.go b/internal/sdk/pkg/models/operations/getsourcesnapchatmarketing.go
old mode 100755
new mode 100644
index f9214ef0a..2a0e5fcd6
--- a/internal/sdk/pkg/models/operations/getsourcesnapchatmarketing.go
+++ b/internal/sdk/pkg/models/operations/getsourcesnapchatmarketing.go
@@ -11,10 +11,48 @@ type GetSourceSnapchatMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSnapchatMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSnapchatMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSnapchatMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSnapchatMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSnapchatMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSnapchatMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesnowflake.go b/internal/sdk/pkg/models/operations/getsourcesnowflake.go
old mode 100755
new mode 100644
index 1c1f2b03c..2d3c86322
--- a/internal/sdk/pkg/models/operations/getsourcesnowflake.go
+++ b/internal/sdk/pkg/models/operations/getsourcesnowflake.go
@@ -11,10 +11,48 @@ type GetSourceSnowflakeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSnowflakeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSnowflakeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesonarcloud.go b/internal/sdk/pkg/models/operations/getsourcesonarcloud.go
old mode 100755
new mode 100644
index ff049e256..bcfbc9fc2
--- a/internal/sdk/pkg/models/operations/getsourcesonarcloud.go
+++ b/internal/sdk/pkg/models/operations/getsourcesonarcloud.go
@@ -11,10 +11,48 @@ type GetSourceSonarCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSonarCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSonarCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSonarCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSonarCloudResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSonarCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSonarCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcespacexapi.go b/internal/sdk/pkg/models/operations/getsourcespacexapi.go
old mode 100755
new mode 100644
index 1b184ee4d..014444d61
--- a/internal/sdk/pkg/models/operations/getsourcespacexapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcespacexapi.go
@@ -11,10 +11,48 @@ type GetSourceSpacexAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSpacexAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSpacexAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSpacexAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSpacexAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSpacexAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSpacexAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesquare.go b/internal/sdk/pkg/models/operations/getsourcesquare.go
old mode 100755
new mode 100644
index 07f6c651b..bb6042552
--- a/internal/sdk/pkg/models/operations/getsourcesquare.go
+++ b/internal/sdk/pkg/models/operations/getsourcesquare.go
@@ -11,10 +11,48 @@ type GetSourceSquareRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSquareRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSquareResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSquareResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSquareResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSquareResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSquareResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcestrava.go b/internal/sdk/pkg/models/operations/getsourcestrava.go
old mode 100755
new mode 100644
index cdc072d02..2b00bceb9
--- a/internal/sdk/pkg/models/operations/getsourcestrava.go
+++ b/internal/sdk/pkg/models/operations/getsourcestrava.go
@@ -11,10 +11,48 @@ type GetSourceStravaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceStravaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceStravaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceStravaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceStravaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceStravaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceStravaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcestripe.go b/internal/sdk/pkg/models/operations/getsourcestripe.go
old mode 100755
new mode 100644
index c7c3c5c35..56a4baded
--- a/internal/sdk/pkg/models/operations/getsourcestripe.go
+++ b/internal/sdk/pkg/models/operations/getsourcestripe.go
@@ -11,10 +11,48 @@ type GetSourceStripeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceStripeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceStripeResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceStripeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceStripeResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceStripeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceStripeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesurveymonkey.go b/internal/sdk/pkg/models/operations/getsourcesurveymonkey.go
old mode 100755
new mode 100644
index cff870895..0501a661d
--- a/internal/sdk/pkg/models/operations/getsourcesurveymonkey.go
+++ b/internal/sdk/pkg/models/operations/getsourcesurveymonkey.go
@@ -11,10 +11,48 @@ type GetSourceSurveymonkeyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSurveymonkeyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSurveymonkeyResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSurveymonkeyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSurveymonkeyResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSurveymonkeyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSurveymonkeyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcesurveysparrow.go b/internal/sdk/pkg/models/operations/getsourcesurveysparrow.go
old mode 100755
new mode 100644
index 5ebd22d8e..eaf169286
--- a/internal/sdk/pkg/models/operations/getsourcesurveysparrow.go
+++ b/internal/sdk/pkg/models/operations/getsourcesurveysparrow.go
@@ -11,10 +11,48 @@ type GetSourceSurveySparrowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceSurveySparrowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceSurveySparrowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceSurveySparrowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceSurveySparrowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceSurveySparrowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceSurveySparrowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetempo.go b/internal/sdk/pkg/models/operations/getsourcetempo.go
old mode 100755
new mode 100644
index c4cabca76..58141c8b5
--- a/internal/sdk/pkg/models/operations/getsourcetempo.go
+++ b/internal/sdk/pkg/models/operations/getsourcetempo.go
@@ -11,10 +11,48 @@ type GetSourceTempoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTempoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTempoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTempoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTempoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTempoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTempoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetheguardianapi.go b/internal/sdk/pkg/models/operations/getsourcetheguardianapi.go
old mode 100755
new mode 100644
index 78e0d619b..b918fbbc6
--- a/internal/sdk/pkg/models/operations/getsourcetheguardianapi.go
+++ b/internal/sdk/pkg/models/operations/getsourcetheguardianapi.go
@@ -11,10 +11,48 @@ type GetSourceTheGuardianAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTheGuardianAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTheGuardianAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTheGuardianAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTheGuardianAPIResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTheGuardianAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTheGuardianAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetiktokmarketing.go b/internal/sdk/pkg/models/operations/getsourcetiktokmarketing.go
old mode 100755
new mode 100644
index b5523f2a1..02af418e0
--- a/internal/sdk/pkg/models/operations/getsourcetiktokmarketing.go
+++ b/internal/sdk/pkg/models/operations/getsourcetiktokmarketing.go
@@ -11,10 +11,48 @@ type GetSourceTiktokMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTiktokMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTiktokMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTiktokMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTiktokMarketingResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTiktokMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTiktokMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetodoist.go b/internal/sdk/pkg/models/operations/getsourcetodoist.go
old mode 100755
new mode 100644
index a66c86477..940c416df
--- a/internal/sdk/pkg/models/operations/getsourcetodoist.go
+++ b/internal/sdk/pkg/models/operations/getsourcetodoist.go
@@ -11,10 +11,48 @@ type GetSourceTodoistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTodoistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTodoistResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTodoistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTodoistResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTodoistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTodoistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetrello.go b/internal/sdk/pkg/models/operations/getsourcetrello.go
old mode 100755
new mode 100644
index 0ba47ecfb..c8b9eb129
--- a/internal/sdk/pkg/models/operations/getsourcetrello.go
+++ b/internal/sdk/pkg/models/operations/getsourcetrello.go
@@ -11,10 +11,48 @@ type GetSourceTrelloRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTrelloRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTrelloResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTrelloResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTrelloResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTrelloResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTrelloResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetrustpilot.go b/internal/sdk/pkg/models/operations/getsourcetrustpilot.go
old mode 100755
new mode 100644
index 11f976f08..65a5dcc14
--- a/internal/sdk/pkg/models/operations/getsourcetrustpilot.go
+++ b/internal/sdk/pkg/models/operations/getsourcetrustpilot.go
@@ -11,10 +11,48 @@ type GetSourceTrustpilotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTrustpilotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTrustpilotResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTrustpilotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTrustpilotResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTrustpilotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTrustpilotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetvmazeschedule.go b/internal/sdk/pkg/models/operations/getsourcetvmazeschedule.go
old mode 100755
new mode 100644
index 4e7fb0b29..e50aefbc6
--- a/internal/sdk/pkg/models/operations/getsourcetvmazeschedule.go
+++ b/internal/sdk/pkg/models/operations/getsourcetvmazeschedule.go
@@ -11,10 +11,48 @@ type GetSourceTvmazeScheduleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTvmazeScheduleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTvmazeScheduleResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTvmazeScheduleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTvmazeScheduleResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTvmazeScheduleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTvmazeScheduleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetwilio.go b/internal/sdk/pkg/models/operations/getsourcetwilio.go
old mode 100755
new mode 100644
index 35dc60aae..bd9688e32
--- a/internal/sdk/pkg/models/operations/getsourcetwilio.go
+++ b/internal/sdk/pkg/models/operations/getsourcetwilio.go
@@ -11,10 +11,48 @@ type GetSourceTwilioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTwilioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTwilioResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTwilioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTwilioResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTwilioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTwilioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetwiliotaskrouter.go b/internal/sdk/pkg/models/operations/getsourcetwiliotaskrouter.go
old mode 100755
new mode 100644
index 3c9d7140c..3e4a35d9b
--- a/internal/sdk/pkg/models/operations/getsourcetwiliotaskrouter.go
+++ b/internal/sdk/pkg/models/operations/getsourcetwiliotaskrouter.go
@@ -11,10 +11,48 @@ type GetSourceTwilioTaskrouterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTwilioTaskrouterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTwilioTaskrouterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTwilioTaskrouterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTwilioTaskrouterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTwilioTaskrouterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTwilioTaskrouterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetwitter.go b/internal/sdk/pkg/models/operations/getsourcetwitter.go
old mode 100755
new mode 100644
index 03357efda..91f72225d
--- a/internal/sdk/pkg/models/operations/getsourcetwitter.go
+++ b/internal/sdk/pkg/models/operations/getsourcetwitter.go
@@ -11,10 +11,48 @@ type GetSourceTwitterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTwitterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTwitterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTwitterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTwitterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTwitterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTwitterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcetypeform.go b/internal/sdk/pkg/models/operations/getsourcetypeform.go
old mode 100755
new mode 100644
index e13b0938c..a069e1364
--- a/internal/sdk/pkg/models/operations/getsourcetypeform.go
+++ b/internal/sdk/pkg/models/operations/getsourcetypeform.go
@@ -11,10 +11,48 @@ type GetSourceTypeformRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceTypeformRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceTypeformResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceTypeformResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceTypeformResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceTypeformResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceTypeformResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceuscensus.go b/internal/sdk/pkg/models/operations/getsourceuscensus.go
old mode 100755
new mode 100644
index b95797dcc..c85d49c0d
--- a/internal/sdk/pkg/models/operations/getsourceuscensus.go
+++ b/internal/sdk/pkg/models/operations/getsourceuscensus.go
@@ -11,10 +11,48 @@ type GetSourceUsCensusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceUsCensusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceUsCensusResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceUsCensusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceUsCensusResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceUsCensusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceUsCensusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcevantage.go b/internal/sdk/pkg/models/operations/getsourcevantage.go
old mode 100755
new mode 100644
index a5adb0b5f..2b32fa8ba
--- a/internal/sdk/pkg/models/operations/getsourcevantage.go
+++ b/internal/sdk/pkg/models/operations/getsourcevantage.go
@@ -11,10 +11,48 @@ type GetSourceVantageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceVantageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceVantageResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceVantageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceVantageResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceVantageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceVantageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcewebflow.go b/internal/sdk/pkg/models/operations/getsourcewebflow.go
old mode 100755
new mode 100644
index d3f944580..9b9387374
--- a/internal/sdk/pkg/models/operations/getsourcewebflow.go
+++ b/internal/sdk/pkg/models/operations/getsourcewebflow.go
@@ -11,10 +11,48 @@ type GetSourceWebflowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceWebflowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceWebflowResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceWebflowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceWebflowResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceWebflowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceWebflowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcewhiskyhunter.go b/internal/sdk/pkg/models/operations/getsourcewhiskyhunter.go
old mode 100755
new mode 100644
index 32a7dd3f0..e46aa993c
--- a/internal/sdk/pkg/models/operations/getsourcewhiskyhunter.go
+++ b/internal/sdk/pkg/models/operations/getsourcewhiskyhunter.go
@@ -11,10 +11,48 @@ type GetSourceWhiskyHunterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceWhiskyHunterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceWhiskyHunterResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceWhiskyHunterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceWhiskyHunterResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceWhiskyHunterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceWhiskyHunterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcewikipediapageviews.go b/internal/sdk/pkg/models/operations/getsourcewikipediapageviews.go
old mode 100755
new mode 100644
index f0f9d70f2..38b90dcf0
--- a/internal/sdk/pkg/models/operations/getsourcewikipediapageviews.go
+++ b/internal/sdk/pkg/models/operations/getsourcewikipediapageviews.go
@@ -11,10 +11,48 @@ type GetSourceWikipediaPageviewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceWikipediaPageviewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceWikipediaPageviewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceWikipediaPageviewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceWikipediaPageviewsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceWikipediaPageviewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceWikipediaPageviewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcewoocommerce.go b/internal/sdk/pkg/models/operations/getsourcewoocommerce.go
old mode 100755
new mode 100644
index 4477d9ae8..7604c68e4
--- a/internal/sdk/pkg/models/operations/getsourcewoocommerce.go
+++ b/internal/sdk/pkg/models/operations/getsourcewoocommerce.go
@@ -11,10 +11,48 @@ type GetSourceWoocommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceWoocommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceWoocommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceWoocommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceWoocommerceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceWoocommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceWoocommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcexero.go b/internal/sdk/pkg/models/operations/getsourcexero.go
old mode 100755
new mode 100644
index 2a941e3c6..80ee1efb0
--- a/internal/sdk/pkg/models/operations/getsourcexero.go
+++ b/internal/sdk/pkg/models/operations/getsourcexero.go
@@ -11,10 +11,48 @@ type GetSourceXeroRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceXeroRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceXeroResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceXeroResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceXeroResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceXeroResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceXeroResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcexkcd.go b/internal/sdk/pkg/models/operations/getsourcexkcd.go
old mode 100755
new mode 100644
index 7a0c4a5f5..b828bf99c
--- a/internal/sdk/pkg/models/operations/getsourcexkcd.go
+++ b/internal/sdk/pkg/models/operations/getsourcexkcd.go
@@ -11,10 +11,48 @@ type GetSourceXkcdRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceXkcdRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceXkcdResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceXkcdResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceXkcdResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceXkcdResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceXkcdResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceyandexmetrica.go b/internal/sdk/pkg/models/operations/getsourceyandexmetrica.go
old mode 100755
new mode 100644
index 6638ec78d..f4dcefad9
--- a/internal/sdk/pkg/models/operations/getsourceyandexmetrica.go
+++ b/internal/sdk/pkg/models/operations/getsourceyandexmetrica.go
@@ -11,10 +11,48 @@ type GetSourceYandexMetricaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceYandexMetricaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceYandexMetricaResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceYandexMetricaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceYandexMetricaResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceYandexMetricaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceYandexMetricaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceyotpo.go b/internal/sdk/pkg/models/operations/getsourceyotpo.go
old mode 100755
new mode 100644
index 418ca00b7..7433a50d9
--- a/internal/sdk/pkg/models/operations/getsourceyotpo.go
+++ b/internal/sdk/pkg/models/operations/getsourceyotpo.go
@@ -11,10 +11,48 @@ type GetSourceYotpoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceYotpoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceYotpoResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceYotpoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceYotpoResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceYotpoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceYotpoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceyounium.go b/internal/sdk/pkg/models/operations/getsourceyounium.go
old mode 100755
new mode 100644
index 0f58cbd29..8133e6a7e
--- a/internal/sdk/pkg/models/operations/getsourceyounium.go
+++ b/internal/sdk/pkg/models/operations/getsourceyounium.go
@@ -11,10 +11,48 @@ type GetSourceYouniumRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceYouniumRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceYouniumResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceYouniumResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceYouniumResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceYouniumResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceYouniumResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourceyoutubeanalytics.go b/internal/sdk/pkg/models/operations/getsourceyoutubeanalytics.go
old mode 100755
new mode 100644
index adb0d9d06..36032d5b4
--- a/internal/sdk/pkg/models/operations/getsourceyoutubeanalytics.go
+++ b/internal/sdk/pkg/models/operations/getsourceyoutubeanalytics.go
@@ -11,10 +11,48 @@ type GetSourceYoutubeAnalyticsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceYoutubeAnalyticsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceYoutubeAnalyticsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceYoutubeAnalyticsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceYoutubeAnalyticsResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceYoutubeAnalyticsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceYoutubeAnalyticsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezendeskchat.go b/internal/sdk/pkg/models/operations/getsourcezendeskchat.go
old mode 100755
new mode 100644
index 903ab750a..3ce90906b
--- a/internal/sdk/pkg/models/operations/getsourcezendeskchat.go
+++ b/internal/sdk/pkg/models/operations/getsourcezendeskchat.go
@@ -11,10 +11,48 @@ type GetSourceZendeskChatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZendeskChatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZendeskChatResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZendeskChatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZendeskChatResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZendeskChatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZendeskChatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezendesksunshine.go b/internal/sdk/pkg/models/operations/getsourcezendesksunshine.go
old mode 100755
new mode 100644
index aced7ce83..fa48bff71
--- a/internal/sdk/pkg/models/operations/getsourcezendesksunshine.go
+++ b/internal/sdk/pkg/models/operations/getsourcezendesksunshine.go
@@ -11,10 +11,48 @@ type GetSourceZendeskSunshineRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZendeskSunshineRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZendeskSunshineResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZendeskSunshineResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZendeskSunshineResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZendeskSunshineResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZendeskSunshineResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezendesksupport.go b/internal/sdk/pkg/models/operations/getsourcezendesksupport.go
old mode 100755
new mode 100644
index b0f27edff..4f1e1ffce
--- a/internal/sdk/pkg/models/operations/getsourcezendesksupport.go
+++ b/internal/sdk/pkg/models/operations/getsourcezendesksupport.go
@@ -11,10 +11,48 @@ type GetSourceZendeskSupportRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZendeskSupportRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZendeskSupportResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZendeskSupportResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZendeskSupportResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZendeskSupportResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZendeskSupportResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezendesktalk.go b/internal/sdk/pkg/models/operations/getsourcezendesktalk.go
old mode 100755
new mode 100644
index ea8fcf33d..ff4c64f5b
--- a/internal/sdk/pkg/models/operations/getsourcezendesktalk.go
+++ b/internal/sdk/pkg/models/operations/getsourcezendesktalk.go
@@ -11,10 +11,48 @@ type GetSourceZendeskTalkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZendeskTalkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZendeskTalkResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZendeskTalkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZendeskTalkResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZendeskTalkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZendeskTalkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezenloop.go b/internal/sdk/pkg/models/operations/getsourcezenloop.go
old mode 100755
new mode 100644
index 775ecb723..c6cec4e9a
--- a/internal/sdk/pkg/models/operations/getsourcezenloop.go
+++ b/internal/sdk/pkg/models/operations/getsourcezenloop.go
@@ -11,10 +11,48 @@ type GetSourceZenloopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZenloopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZenloopResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZenloopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZenloopResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZenloopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZenloopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezohocrm.go b/internal/sdk/pkg/models/operations/getsourcezohocrm.go
old mode 100755
new mode 100644
index 7959a4631..b03f5c27f
--- a/internal/sdk/pkg/models/operations/getsourcezohocrm.go
+++ b/internal/sdk/pkg/models/operations/getsourcezohocrm.go
@@ -11,10 +11,48 @@ type GetSourceZohoCrmRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZohoCrmRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZohoCrmResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZohoCrmResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZohoCrmResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZohoCrmResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZohoCrmResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezoom.go b/internal/sdk/pkg/models/operations/getsourcezoom.go
old mode 100755
new mode 100644
index 0349c9a42..9b8dff2cf
--- a/internal/sdk/pkg/models/operations/getsourcezoom.go
+++ b/internal/sdk/pkg/models/operations/getsourcezoom.go
@@ -11,10 +11,48 @@ type GetSourceZoomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZoomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZoomResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZoomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZoomResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZoomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZoomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getsourcezuora.go b/internal/sdk/pkg/models/operations/getsourcezuora.go
old mode 100755
new mode 100644
index 8a25639a7..052d50608
--- a/internal/sdk/pkg/models/operations/getsourcezuora.go
+++ b/internal/sdk/pkg/models/operations/getsourcezuora.go
@@ -11,10 +11,48 @@ type GetSourceZuoraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *GetSourceZuoraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetSourceZuoraResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Get a Source by the id in the path.
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *GetSourceZuoraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetSourceZuoraResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *GetSourceZuoraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetSourceZuoraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/getstreamproperties.go b/internal/sdk/pkg/models/operations/getstreamproperties.go
old mode 100755
new mode 100644
index ad2b304c3..bb5f563be
--- a/internal/sdk/pkg/models/operations/getstreamproperties.go
+++ b/internal/sdk/pkg/models/operations/getstreamproperties.go
@@ -4,6 +4,7 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
)
@@ -11,15 +12,78 @@ type GetStreamPropertiesRequest struct {
// ID of the destination
DestinationID string `queryParam:"style=form,explode=true,name=destinationId"`
// If true pull the latest schema from the source, else pull from cache (default false)
- IgnoreCache *bool `queryParam:"style=form,explode=true,name=ignoreCache"`
+ IgnoreCache *bool `default:"false" queryParam:"style=form,explode=true,name=ignoreCache"`
// ID of the source
SourceID string `queryParam:"style=form,explode=true,name=sourceId"`
}
+func (g GetStreamPropertiesRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(g, "", false)
+}
+
+func (g *GetStreamPropertiesRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *GetStreamPropertiesRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
+func (o *GetStreamPropertiesRequest) GetIgnoreCache() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IgnoreCache
+}
+
+func (o *GetStreamPropertiesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type GetStreamPropertiesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// Get the available streams properties for a source/destination pair.
StreamPropertiesResponse *shared.StreamPropertiesResponse
}
+
+func (o *GetStreamPropertiesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetStreamPropertiesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetStreamPropertiesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
+
+func (o *GetStreamPropertiesResponse) GetStreamPropertiesResponse() *shared.StreamPropertiesResponse {
+ if o == nil {
+ return nil
+ }
+ return o.StreamPropertiesResponse
+}
diff --git a/internal/sdk/pkg/models/operations/getworkspace.go b/internal/sdk/pkg/models/operations/getworkspace.go
old mode 100755
new mode 100644
index 37b1fdf69..f63931ec8
--- a/internal/sdk/pkg/models/operations/getworkspace.go
+++ b/internal/sdk/pkg/models/operations/getworkspace.go
@@ -11,10 +11,48 @@ type GetWorkspaceRequest struct {
WorkspaceID string `pathParam:"style=simple,explode=false,name=workspaceId"`
}
+func (o *GetWorkspaceRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
+
type GetWorkspaceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// Get a Workspace by the id in the path.
WorkspaceResponse *shared.WorkspaceResponse
}
+
+func (o *GetWorkspaceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *GetWorkspaceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *GetWorkspaceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
+
+func (o *GetWorkspaceResponse) GetWorkspaceResponse() *shared.WorkspaceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceResponse
+}
diff --git a/internal/sdk/pkg/models/operations/initiateoauth.go b/internal/sdk/pkg/models/operations/initiateoauth.go
old mode 100755
new mode 100644
index c08ceca5a..b4a9bc1ab
--- a/internal/sdk/pkg/models/operations/initiateoauth.go
+++ b/internal/sdk/pkg/models/operations/initiateoauth.go
@@ -7,7 +7,31 @@ import (
)
type InitiateOAuthResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *InitiateOAuthResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *InitiateOAuthResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *InitiateOAuthResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/listconnections.go b/internal/sdk/pkg/models/operations/listconnections.go
old mode 100755
new mode 100644
index 6978ab5a2..0c8bc42ab
--- a/internal/sdk/pkg/models/operations/listconnections.go
+++ b/internal/sdk/pkg/models/operations/listconnections.go
@@ -4,24 +4,95 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
)
type ListConnectionsRequest struct {
// Include deleted connections in the returned results.
- IncludeDeleted *bool `queryParam:"style=form,explode=true,name=includeDeleted"`
+ IncludeDeleted *bool `default:"false" queryParam:"style=form,explode=true,name=includeDeleted"`
// Set the limit on the number of Connections returned. The default is 20.
- Limit *int `queryParam:"style=form,explode=true,name=limit"`
+ Limit *int `default:"20" queryParam:"style=form,explode=true,name=limit"`
// Set the offset to start at when returning Connections. The default is 0
- Offset *int `queryParam:"style=form,explode=true,name=offset"`
+ Offset *int `default:"0" queryParam:"style=form,explode=true,name=offset"`
// The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces.
WorkspaceIds []string `queryParam:"style=form,explode=true,name=workspaceIds"`
}
+func (l ListConnectionsRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(l, "", false)
+}
+
+func (l *ListConnectionsRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ListConnectionsRequest) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *ListConnectionsRequest) GetLimit() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *ListConnectionsRequest) GetOffset() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Offset
+}
+
+func (o *ListConnectionsRequest) GetWorkspaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceIds
+}
+
type ListConnectionsResponse struct {
// Successful operation
ConnectionsResponse *shared.ConnectionsResponse
- ContentType string
- StatusCode int
- RawResponse *http.Response
+ // HTTP response content type for this operation
+ ContentType string
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *ListConnectionsResponse) GetConnectionsResponse() *shared.ConnectionsResponse {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionsResponse
+}
+
+func (o *ListConnectionsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *ListConnectionsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *ListConnectionsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/listdestinations.go b/internal/sdk/pkg/models/operations/listdestinations.go
old mode 100755
new mode 100644
index af0a543d0..88d080aeb
--- a/internal/sdk/pkg/models/operations/listdestinations.go
+++ b/internal/sdk/pkg/models/operations/listdestinations.go
@@ -4,24 +4,95 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
)
type ListDestinationsRequest struct {
// Include deleted destinations in the returned results.
- IncludeDeleted *bool `queryParam:"style=form,explode=true,name=includeDeleted"`
+ IncludeDeleted *bool `default:"false" queryParam:"style=form,explode=true,name=includeDeleted"`
// Set the limit on the number of destinations returned. The default is 20.
- Limit *int `queryParam:"style=form,explode=true,name=limit"`
+ Limit *int `default:"20" queryParam:"style=form,explode=true,name=limit"`
// Set the offset to start at when returning destinations. The default is 0
- Offset *int `queryParam:"style=form,explode=true,name=offset"`
+ Offset *int `default:"0" queryParam:"style=form,explode=true,name=offset"`
// The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces.
WorkspaceIds []string `queryParam:"style=form,explode=true,name=workspaceIds"`
}
+func (l ListDestinationsRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(l, "", false)
+}
+
+func (l *ListDestinationsRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ListDestinationsRequest) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *ListDestinationsRequest) GetLimit() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *ListDestinationsRequest) GetOffset() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Offset
+}
+
+func (o *ListDestinationsRequest) GetWorkspaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceIds
+}
+
type ListDestinationsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
DestinationsResponse *shared.DestinationsResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *ListDestinationsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *ListDestinationsResponse) GetDestinationsResponse() *shared.DestinationsResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationsResponse
+}
+
+func (o *ListDestinationsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *ListDestinationsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/listjobs.go b/internal/sdk/pkg/models/operations/listjobs.go
old mode 100755
new mode 100644
index 739314789..336ed2d88
--- a/internal/sdk/pkg/models/operations/listjobs.go
+++ b/internal/sdk/pkg/models/operations/listjobs.go
@@ -4,6 +4,7 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
"time"
)
@@ -18,9 +19,9 @@ type ListJobsRequest struct {
// Filter the Jobs by jobType.
JobType *shared.JobTypeEnum `queryParam:"style=form,explode=true,name=jobType"`
// Set the limit on the number of Jobs returned. The default is 20 Jobs.
- Limit *int `queryParam:"style=form,explode=true,name=limit"`
+ Limit *int `default:"20" queryParam:"style=form,explode=true,name=limit"`
// Set the offset to start at when returning Jobs. The default is 0.
- Offset *int `queryParam:"style=form,explode=true,name=offset"`
+ Offset *int `default:"0" queryParam:"style=form,explode=true,name=offset"`
// The field and method to use for ordering. Currently allowed are createdAt and updatedAt.
OrderBy *string `queryParam:"style=form,explode=true,name=orderBy"`
// The Job status you want to filter by
@@ -33,10 +34,129 @@ type ListJobsRequest struct {
WorkspaceIds []string `queryParam:"style=form,explode=true,name=workspaceIds"`
}
+func (l ListJobsRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(l, "", false)
+}
+
+func (l *ListJobsRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ListJobsRequest) GetConnectionID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionID
+}
+
+func (o *ListJobsRequest) GetCreatedAtEnd() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.CreatedAtEnd
+}
+
+func (o *ListJobsRequest) GetCreatedAtStart() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.CreatedAtStart
+}
+
+func (o *ListJobsRequest) GetJobType() *shared.JobTypeEnum {
+ if o == nil {
+ return nil
+ }
+ return o.JobType
+}
+
+func (o *ListJobsRequest) GetLimit() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *ListJobsRequest) GetOffset() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Offset
+}
+
+func (o *ListJobsRequest) GetOrderBy() *string {
+ if o == nil {
+ return nil
+ }
+ return o.OrderBy
+}
+
+func (o *ListJobsRequest) GetStatus() *shared.JobStatusEnum {
+ if o == nil {
+ return nil
+ }
+ return o.Status
+}
+
+func (o *ListJobsRequest) GetUpdatedAtEnd() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.UpdatedAtEnd
+}
+
+func (o *ListJobsRequest) GetUpdatedAtStart() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.UpdatedAtStart
+}
+
+func (o *ListJobsRequest) GetWorkspaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceIds
+}
+
type ListJobsResponse struct {
+ // HTTP response content type for this operation
ContentType string
// List all the Jobs by connectionId.
JobsResponse *shared.JobsResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *ListJobsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *ListJobsResponse) GetJobsResponse() *shared.JobsResponse {
+ if o == nil {
+ return nil
+ }
+ return o.JobsResponse
+}
+
+func (o *ListJobsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *ListJobsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/listsources.go b/internal/sdk/pkg/models/operations/listsources.go
old mode 100755
new mode 100644
index 5d18b4e8c..b464f2829
--- a/internal/sdk/pkg/models/operations/listsources.go
+++ b/internal/sdk/pkg/models/operations/listsources.go
@@ -4,24 +4,95 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
)
type ListSourcesRequest struct {
// Include deleted sources in the returned results.
- IncludeDeleted *bool `queryParam:"style=form,explode=true,name=includeDeleted"`
+ IncludeDeleted *bool `default:"false" queryParam:"style=form,explode=true,name=includeDeleted"`
// Set the limit on the number of sources returned. The default is 20.
- Limit *int `queryParam:"style=form,explode=true,name=limit"`
+ Limit *int `default:"20" queryParam:"style=form,explode=true,name=limit"`
// Set the offset to start at when returning sources. The default is 0
- Offset *int `queryParam:"style=form,explode=true,name=offset"`
+ Offset *int `default:"0" queryParam:"style=form,explode=true,name=offset"`
// The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces.
WorkspaceIds []string `queryParam:"style=form,explode=true,name=workspaceIds"`
}
+func (l ListSourcesRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(l, "", false)
+}
+
+func (l *ListSourcesRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ListSourcesRequest) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *ListSourcesRequest) GetLimit() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *ListSourcesRequest) GetOffset() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Offset
+}
+
+func (o *ListSourcesRequest) GetWorkspaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceIds
+}
+
type ListSourcesResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Successful operation
SourcesResponse *shared.SourcesResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *ListSourcesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *ListSourcesResponse) GetSourcesResponse() *shared.SourcesResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourcesResponse
+}
+
+func (o *ListSourcesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *ListSourcesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/listworkspaces.go b/internal/sdk/pkg/models/operations/listworkspaces.go
old mode 100755
new mode 100644
index fe810db87..7ecca9a26
--- a/internal/sdk/pkg/models/operations/listworkspaces.go
+++ b/internal/sdk/pkg/models/operations/listworkspaces.go
@@ -4,24 +4,95 @@ package operations
import (
"airbyte/internal/sdk/pkg/models/shared"
+ "airbyte/internal/sdk/pkg/utils"
"net/http"
)
type ListWorkspacesRequest struct {
// Include deleted workspaces in the returned results.
- IncludeDeleted *bool `queryParam:"style=form,explode=true,name=includeDeleted"`
+ IncludeDeleted *bool `default:"false" queryParam:"style=form,explode=true,name=includeDeleted"`
// Set the limit on the number of workspaces returned. The default is 20.
- Limit *int `queryParam:"style=form,explode=true,name=limit"`
+ Limit *int `default:"20" queryParam:"style=form,explode=true,name=limit"`
// Set the offset to start at when returning workspaces. The default is 0
- Offset *int `queryParam:"style=form,explode=true,name=offset"`
+ Offset *int `default:"0" queryParam:"style=form,explode=true,name=offset"`
// The UUIDs of the workspaces you wish to fetch. Empty list will retrieve all allowed workspaces.
WorkspaceIds []string `queryParam:"style=form,explode=true,name=workspaceIds"`
}
+func (l ListWorkspacesRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(l, "", false)
+}
+
+func (l *ListWorkspacesRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ListWorkspacesRequest) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *ListWorkspacesRequest) GetLimit() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *ListWorkspacesRequest) GetOffset() *int {
+ if o == nil {
+ return nil
+ }
+ return o.Offset
+}
+
+func (o *ListWorkspacesRequest) GetWorkspaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceIds
+}
+
type ListWorkspacesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// Successful operation
WorkspacesResponse *shared.WorkspacesResponse
}
+
+func (o *ListWorkspacesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *ListWorkspacesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *ListWorkspacesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
+
+func (o *ListWorkspacesResponse) GetWorkspacesResponse() *shared.WorkspacesResponse {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspacesResponse
+}
diff --git a/internal/sdk/pkg/models/operations/patchconnection.go b/internal/sdk/pkg/models/operations/patchconnection.go
old mode 100755
new mode 100644
index 61b6c23ba..e5d31099c
--- a/internal/sdk/pkg/models/operations/patchconnection.go
+++ b/internal/sdk/pkg/models/operations/patchconnection.go
@@ -12,10 +12,55 @@ type PatchConnectionRequest struct {
ConnectionID string `pathParam:"style=simple,explode=false,name=connectionId"`
}
+func (o *PatchConnectionRequest) GetConnectionPatchRequest() shared.ConnectionPatchRequest {
+ if o == nil {
+ return shared.ConnectionPatchRequest{}
+ }
+ return o.ConnectionPatchRequest
+}
+
+func (o *PatchConnectionRequest) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
type PatchConnectionResponse struct {
// Update a Connection by the id in the path.
ConnectionResponse *shared.ConnectionResponse
- ContentType string
- StatusCode int
- RawResponse *http.Response
+ // HTTP response content type for this operation
+ ContentType string
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *PatchConnectionResponse) GetConnectionResponse() *shared.ConnectionResponse {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionResponse
+}
+
+func (o *PatchConnectionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PatchConnectionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PatchConnectionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/patchdestination.go b/internal/sdk/pkg/models/operations/patchdestination.go
old mode 100755
new mode 100644
index ea8d97db4..3caea039e
--- a/internal/sdk/pkg/models/operations/patchdestination.go
+++ b/internal/sdk/pkg/models/operations/patchdestination.go
@@ -12,10 +12,55 @@ type PatchDestinationRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PatchDestinationRequest) GetDestinationPatchRequest() *shared.DestinationPatchRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationPatchRequest
+}
+
+func (o *PatchDestinationRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PatchDestinationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Update a Destination
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *PatchDestinationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PatchDestinationResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *PatchDestinationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PatchDestinationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/patchsource.go b/internal/sdk/pkg/models/operations/patchsource.go
old mode 100755
new mode 100644
index eef8a3f9e..d830b8e52
--- a/internal/sdk/pkg/models/operations/patchsource.go
+++ b/internal/sdk/pkg/models/operations/patchsource.go
@@ -12,10 +12,55 @@ type PatchSourceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PatchSourceRequest) GetSourcePatchRequest() *shared.SourcePatchRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePatchRequest
+}
+
+func (o *PatchSourceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PatchSourceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Update a Source
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *PatchSourceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PatchSourceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *PatchSourceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PatchSourceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/putdestination.go b/internal/sdk/pkg/models/operations/putdestination.go
old mode 100755
new mode 100644
index 87e174876..d170316fc
--- a/internal/sdk/pkg/models/operations/putdestination.go
+++ b/internal/sdk/pkg/models/operations/putdestination.go
@@ -12,10 +12,55 @@ type PutDestinationRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationRequest) GetDestinationPutRequest() *shared.DestinationPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationPutRequest
+}
+
+func (o *PutDestinationRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Update a Destination and fully overwrite it
DestinationResponse *shared.DestinationResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *PutDestinationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationResponse) GetDestinationResponse() *shared.DestinationResponse {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationResponse
+}
+
+func (o *PutDestinationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/putdestinationawsdatalake.go b/internal/sdk/pkg/models/operations/putdestinationawsdatalake.go
old mode 100755
new mode 100644
index cabafc41b..b51c702cb
--- a/internal/sdk/pkg/models/operations/putdestinationawsdatalake.go
+++ b/internal/sdk/pkg/models/operations/putdestinationawsdatalake.go
@@ -12,8 +12,46 @@ type PutDestinationAwsDatalakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationAwsDatalakeRequest) GetDestinationAwsDatalakePutRequest() *shared.DestinationAwsDatalakePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationAwsDatalakePutRequest
+}
+
+func (o *PutDestinationAwsDatalakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationAwsDatalakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationAwsDatalakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationAwsDatalakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationAwsDatalakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationazureblobstorage.go b/internal/sdk/pkg/models/operations/putdestinationazureblobstorage.go
old mode 100755
new mode 100644
index 38d8f40b0..e1587de51
--- a/internal/sdk/pkg/models/operations/putdestinationazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/putdestinationazureblobstorage.go
@@ -12,8 +12,46 @@ type PutDestinationAzureBlobStorageRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationAzureBlobStorageRequest) GetDestinationAzureBlobStoragePutRequest() *shared.DestinationAzureBlobStoragePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationAzureBlobStoragePutRequest
+}
+
+func (o *PutDestinationAzureBlobStorageRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationbigquery.go b/internal/sdk/pkg/models/operations/putdestinationbigquery.go
old mode 100755
new mode 100644
index 4ed79c7cb..758fb135f
--- a/internal/sdk/pkg/models/operations/putdestinationbigquery.go
+++ b/internal/sdk/pkg/models/operations/putdestinationbigquery.go
@@ -12,8 +12,46 @@ type PutDestinationBigqueryRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationBigqueryRequest) GetDestinationBigqueryPutRequest() *shared.DestinationBigqueryPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationBigqueryPutRequest
+}
+
+func (o *PutDestinationBigqueryRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationbigquerydenormalized.go b/internal/sdk/pkg/models/operations/putdestinationbigquerydenormalized.go
old mode 100755
new mode 100644
index e82023039..f86d45c3e
--- a/internal/sdk/pkg/models/operations/putdestinationbigquerydenormalized.go
+++ b/internal/sdk/pkg/models/operations/putdestinationbigquerydenormalized.go
@@ -12,8 +12,46 @@ type PutDestinationBigqueryDenormalizedRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationBigqueryDenormalizedRequest) GetDestinationBigqueryDenormalizedPutRequest() *shared.DestinationBigqueryDenormalizedPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationBigqueryDenormalizedPutRequest
+}
+
+func (o *PutDestinationBigqueryDenormalizedRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationBigqueryDenormalizedResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationBigqueryDenormalizedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationBigqueryDenormalizedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationBigqueryDenormalizedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationclickhouse.go b/internal/sdk/pkg/models/operations/putdestinationclickhouse.go
old mode 100755
new mode 100644
index 967e0d11b..23be55379
--- a/internal/sdk/pkg/models/operations/putdestinationclickhouse.go
+++ b/internal/sdk/pkg/models/operations/putdestinationclickhouse.go
@@ -12,8 +12,46 @@ type PutDestinationClickhouseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationClickhouseRequest) GetDestinationClickhousePutRequest() *shared.DestinationClickhousePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationClickhousePutRequest
+}
+
+func (o *PutDestinationClickhouseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationconvex.go b/internal/sdk/pkg/models/operations/putdestinationconvex.go
old mode 100755
new mode 100644
index 0eefd9124..f59192260
--- a/internal/sdk/pkg/models/operations/putdestinationconvex.go
+++ b/internal/sdk/pkg/models/operations/putdestinationconvex.go
@@ -12,8 +12,46 @@ type PutDestinationConvexRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationConvexRequest) GetDestinationConvexPutRequest() *shared.DestinationConvexPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationConvexPutRequest
+}
+
+func (o *PutDestinationConvexRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationcumulio.go b/internal/sdk/pkg/models/operations/putdestinationcumulio.go
old mode 100755
new mode 100644
index 2d6348fe7..568b95282
--- a/internal/sdk/pkg/models/operations/putdestinationcumulio.go
+++ b/internal/sdk/pkg/models/operations/putdestinationcumulio.go
@@ -12,8 +12,46 @@ type PutDestinationCumulioRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationCumulioRequest) GetDestinationCumulioPutRequest() *shared.DestinationCumulioPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationCumulioPutRequest
+}
+
+func (o *PutDestinationCumulioRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationCumulioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationCumulioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationCumulioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationCumulioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationdatabend.go b/internal/sdk/pkg/models/operations/putdestinationdatabend.go
old mode 100755
new mode 100644
index 9890e625b..4f850c555
--- a/internal/sdk/pkg/models/operations/putdestinationdatabend.go
+++ b/internal/sdk/pkg/models/operations/putdestinationdatabend.go
@@ -12,8 +12,46 @@ type PutDestinationDatabendRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationDatabendRequest) GetDestinationDatabendPutRequest() *shared.DestinationDatabendPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationDatabendPutRequest
+}
+
+func (o *PutDestinationDatabendRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationDatabendResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationDatabendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationDatabendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationDatabendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationdatabricks.go b/internal/sdk/pkg/models/operations/putdestinationdatabricks.go
old mode 100755
new mode 100644
index 5a1c3a3e3..2606ca0ff
--- a/internal/sdk/pkg/models/operations/putdestinationdatabricks.go
+++ b/internal/sdk/pkg/models/operations/putdestinationdatabricks.go
@@ -12,8 +12,46 @@ type PutDestinationDatabricksRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationDatabricksRequest) GetDestinationDatabricksPutRequest() *shared.DestinationDatabricksPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationDatabricksPutRequest
+}
+
+func (o *PutDestinationDatabricksRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationDatabricksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationDatabricksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationDatabricksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationDatabricksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationdevnull.go b/internal/sdk/pkg/models/operations/putdestinationdevnull.go
old mode 100755
new mode 100644
index 8959a40ee..815dd98d1
--- a/internal/sdk/pkg/models/operations/putdestinationdevnull.go
+++ b/internal/sdk/pkg/models/operations/putdestinationdevnull.go
@@ -12,8 +12,46 @@ type PutDestinationDevNullRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationDevNullRequest) GetDestinationDevNullPutRequest() *shared.DestinationDevNullPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationDevNullPutRequest
+}
+
+func (o *PutDestinationDevNullRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationDevNullResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationDevNullResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationDevNullResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationDevNullResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationdynamodb.go b/internal/sdk/pkg/models/operations/putdestinationdynamodb.go
old mode 100755
new mode 100644
index e436900de..5f7b6abf1
--- a/internal/sdk/pkg/models/operations/putdestinationdynamodb.go
+++ b/internal/sdk/pkg/models/operations/putdestinationdynamodb.go
@@ -12,8 +12,46 @@ type PutDestinationDynamodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationDynamodbRequest) GetDestinationDynamodbPutRequest() *shared.DestinationDynamodbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationDynamodbPutRequest
+}
+
+func (o *PutDestinationDynamodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationelasticsearch.go b/internal/sdk/pkg/models/operations/putdestinationelasticsearch.go
old mode 100755
new mode 100644
index 6a0f535df..1124c2638
--- a/internal/sdk/pkg/models/operations/putdestinationelasticsearch.go
+++ b/internal/sdk/pkg/models/operations/putdestinationelasticsearch.go
@@ -12,8 +12,46 @@ type PutDestinationElasticsearchRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationElasticsearchRequest) GetDestinationElasticsearchPutRequest() *shared.DestinationElasticsearchPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationElasticsearchPutRequest
+}
+
+func (o *PutDestinationElasticsearchRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationElasticsearchResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationElasticsearchResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationElasticsearchResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationElasticsearchResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationfirebolt.go b/internal/sdk/pkg/models/operations/putdestinationfirebolt.go
old mode 100755
new mode 100644
index b2b48cd0c..0d1efccee
--- a/internal/sdk/pkg/models/operations/putdestinationfirebolt.go
+++ b/internal/sdk/pkg/models/operations/putdestinationfirebolt.go
@@ -12,8 +12,46 @@ type PutDestinationFireboltRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationFireboltRequest) GetDestinationFireboltPutRequest() *shared.DestinationFireboltPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationFireboltPutRequest
+}
+
+func (o *PutDestinationFireboltRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationfirestore.go b/internal/sdk/pkg/models/operations/putdestinationfirestore.go
old mode 100755
new mode 100644
index 52bda5a4c..703f5a40f
--- a/internal/sdk/pkg/models/operations/putdestinationfirestore.go
+++ b/internal/sdk/pkg/models/operations/putdestinationfirestore.go
@@ -12,8 +12,46 @@ type PutDestinationFirestoreRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationFirestoreRequest) GetDestinationFirestorePutRequest() *shared.DestinationFirestorePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationFirestorePutRequest
+}
+
+func (o *PutDestinationFirestoreRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationFirestoreResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationFirestoreResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationFirestoreResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationFirestoreResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationgcs.go b/internal/sdk/pkg/models/operations/putdestinationgcs.go
old mode 100755
new mode 100644
index f2b01e8d4..c0cd74629
--- a/internal/sdk/pkg/models/operations/putdestinationgcs.go
+++ b/internal/sdk/pkg/models/operations/putdestinationgcs.go
@@ -12,8 +12,46 @@ type PutDestinationGcsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationGcsRequest) GetDestinationGcsPutRequest() *shared.DestinationGcsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationGcsPutRequest
+}
+
+func (o *PutDestinationGcsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationgooglesheets.go b/internal/sdk/pkg/models/operations/putdestinationgooglesheets.go
old mode 100755
new mode 100644
index 9899faa30..dd32b1d66
--- a/internal/sdk/pkg/models/operations/putdestinationgooglesheets.go
+++ b/internal/sdk/pkg/models/operations/putdestinationgooglesheets.go
@@ -12,8 +12,46 @@ type PutDestinationGoogleSheetsRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationGoogleSheetsRequest) GetDestinationGoogleSheetsPutRequest() *shared.DestinationGoogleSheetsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationGoogleSheetsPutRequest
+}
+
+func (o *PutDestinationGoogleSheetsRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationkeen.go b/internal/sdk/pkg/models/operations/putdestinationkeen.go
old mode 100755
new mode 100644
index 811aab291..df40ca67e
--- a/internal/sdk/pkg/models/operations/putdestinationkeen.go
+++ b/internal/sdk/pkg/models/operations/putdestinationkeen.go
@@ -12,8 +12,46 @@ type PutDestinationKeenRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationKeenRequest) GetDestinationKeenPutRequest() *shared.DestinationKeenPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationKeenPutRequest
+}
+
+func (o *PutDestinationKeenRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationKeenResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationKeenResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationKeenResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationKeenResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationkinesis.go b/internal/sdk/pkg/models/operations/putdestinationkinesis.go
old mode 100755
new mode 100644
index acf8846a8..3575439d7
--- a/internal/sdk/pkg/models/operations/putdestinationkinesis.go
+++ b/internal/sdk/pkg/models/operations/putdestinationkinesis.go
@@ -12,8 +12,46 @@ type PutDestinationKinesisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationKinesisRequest) GetDestinationKinesisPutRequest() *shared.DestinationKinesisPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationKinesisPutRequest
+}
+
+func (o *PutDestinationKinesisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationKinesisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationKinesisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationKinesisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationKinesisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationlangchain.go b/internal/sdk/pkg/models/operations/putdestinationlangchain.go
old mode 100755
new mode 100644
index d69314196..a6906e7d0
--- a/internal/sdk/pkg/models/operations/putdestinationlangchain.go
+++ b/internal/sdk/pkg/models/operations/putdestinationlangchain.go
@@ -12,8 +12,46 @@ type PutDestinationLangchainRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationLangchainRequest) GetDestinationLangchainPutRequest() *shared.DestinationLangchainPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationLangchainPutRequest
+}
+
+func (o *PutDestinationLangchainRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationLangchainResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationLangchainResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationLangchainResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationLangchainResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationmilvus.go b/internal/sdk/pkg/models/operations/putdestinationmilvus.go
old mode 100755
new mode 100644
index 7c29dde1e..f71a7d020
--- a/internal/sdk/pkg/models/operations/putdestinationmilvus.go
+++ b/internal/sdk/pkg/models/operations/putdestinationmilvus.go
@@ -12,8 +12,46 @@ type PutDestinationMilvusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationMilvusRequest) GetDestinationMilvusPutRequest() *shared.DestinationMilvusPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationMilvusPutRequest
+}
+
+func (o *PutDestinationMilvusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationMilvusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationMilvusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationMilvusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationMilvusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationmongodb.go b/internal/sdk/pkg/models/operations/putdestinationmongodb.go
old mode 100755
new mode 100644
index cd5f919ac..760dbcd45
--- a/internal/sdk/pkg/models/operations/putdestinationmongodb.go
+++ b/internal/sdk/pkg/models/operations/putdestinationmongodb.go
@@ -12,8 +12,46 @@ type PutDestinationMongodbRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationMongodbRequest) GetDestinationMongodbPutRequest() *shared.DestinationMongodbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationMongodbPutRequest
+}
+
+func (o *PutDestinationMongodbRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationmssql.go b/internal/sdk/pkg/models/operations/putdestinationmssql.go
old mode 100755
new mode 100644
index df12a877d..ba1320746
--- a/internal/sdk/pkg/models/operations/putdestinationmssql.go
+++ b/internal/sdk/pkg/models/operations/putdestinationmssql.go
@@ -12,8 +12,46 @@ type PutDestinationMssqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationMssqlRequest) GetDestinationMssqlPutRequest() *shared.DestinationMssqlPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationMssqlPutRequest
+}
+
+func (o *PutDestinationMssqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationmysql.go b/internal/sdk/pkg/models/operations/putdestinationmysql.go
old mode 100755
new mode 100644
index eb030a2df..1a69022d9
--- a/internal/sdk/pkg/models/operations/putdestinationmysql.go
+++ b/internal/sdk/pkg/models/operations/putdestinationmysql.go
@@ -12,8 +12,46 @@ type PutDestinationMysqlRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationMysqlRequest) GetDestinationMysqlPutRequest() *shared.DestinationMysqlPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationMysqlPutRequest
+}
+
+func (o *PutDestinationMysqlRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationoracle.go b/internal/sdk/pkg/models/operations/putdestinationoracle.go
old mode 100755
new mode 100644
index f370bf717..0b2bbe1f2
--- a/internal/sdk/pkg/models/operations/putdestinationoracle.go
+++ b/internal/sdk/pkg/models/operations/putdestinationoracle.go
@@ -12,8 +12,46 @@ type PutDestinationOracleRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationOracleRequest) GetDestinationOraclePutRequest() *shared.DestinationOraclePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationOraclePutRequest
+}
+
+func (o *PutDestinationOracleRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationpinecone.go b/internal/sdk/pkg/models/operations/putdestinationpinecone.go
old mode 100755
new mode 100644
index 0af975ad6..89a9632f5
--- a/internal/sdk/pkg/models/operations/putdestinationpinecone.go
+++ b/internal/sdk/pkg/models/operations/putdestinationpinecone.go
@@ -12,8 +12,46 @@ type PutDestinationPineconeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationPineconeRequest) GetDestinationPineconePutRequest() *shared.DestinationPineconePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationPineconePutRequest
+}
+
+func (o *PutDestinationPineconeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationPineconeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationPineconeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationPineconeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationPineconeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationpostgres.go b/internal/sdk/pkg/models/operations/putdestinationpostgres.go
old mode 100755
new mode 100644
index 98ea3906d..ffc7cbe38
--- a/internal/sdk/pkg/models/operations/putdestinationpostgres.go
+++ b/internal/sdk/pkg/models/operations/putdestinationpostgres.go
@@ -12,8 +12,46 @@ type PutDestinationPostgresRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationPostgresRequest) GetDestinationPostgresPutRequest() *shared.DestinationPostgresPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationPostgresPutRequest
+}
+
+func (o *PutDestinationPostgresRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationPostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationPostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationPostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationPostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationpubsub.go b/internal/sdk/pkg/models/operations/putdestinationpubsub.go
old mode 100755
new mode 100644
index 19a8ac9ff..e3aa358f8
--- a/internal/sdk/pkg/models/operations/putdestinationpubsub.go
+++ b/internal/sdk/pkg/models/operations/putdestinationpubsub.go
@@ -12,8 +12,46 @@ type PutDestinationPubsubRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationPubsubRequest) GetDestinationPubsubPutRequest() *shared.DestinationPubsubPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationPubsubPutRequest
+}
+
+func (o *PutDestinationPubsubRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationPubsubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationPubsubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationPubsubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationPubsubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationredis.go b/internal/sdk/pkg/models/operations/putdestinationredis.go
old mode 100755
new mode 100644
index df9e7014e..fbbf7d072
--- a/internal/sdk/pkg/models/operations/putdestinationredis.go
+++ b/internal/sdk/pkg/models/operations/putdestinationredis.go
@@ -12,8 +12,46 @@ type PutDestinationRedisRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationRedisRequest) GetDestinationRedisPutRequest() *shared.DestinationRedisPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationRedisPutRequest
+}
+
+func (o *PutDestinationRedisRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationRedisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationRedisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationRedisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationRedisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationredshift.go b/internal/sdk/pkg/models/operations/putdestinationredshift.go
old mode 100755
new mode 100644
index 6627e71b7..7851ccc1b
--- a/internal/sdk/pkg/models/operations/putdestinationredshift.go
+++ b/internal/sdk/pkg/models/operations/putdestinationredshift.go
@@ -12,8 +12,46 @@ type PutDestinationRedshiftRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationRedshiftRequest) GetDestinationRedshiftPutRequest() *shared.DestinationRedshiftPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationRedshiftPutRequest
+}
+
+func (o *PutDestinationRedshiftRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinations3.go b/internal/sdk/pkg/models/operations/putdestinations3.go
old mode 100755
new mode 100644
index b5f3b5b0c..20171b352
--- a/internal/sdk/pkg/models/operations/putdestinations3.go
+++ b/internal/sdk/pkg/models/operations/putdestinations3.go
@@ -12,8 +12,46 @@ type PutDestinationS3Request struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationS3Request) GetDestinationS3PutRequest() *shared.DestinationS3PutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationS3PutRequest
+}
+
+func (o *PutDestinationS3Request) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationS3Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinations3glue.go b/internal/sdk/pkg/models/operations/putdestinations3glue.go
old mode 100755
new mode 100644
index b07f71a38..9cbd1fbeb
--- a/internal/sdk/pkg/models/operations/putdestinations3glue.go
+++ b/internal/sdk/pkg/models/operations/putdestinations3glue.go
@@ -12,8 +12,46 @@ type PutDestinationS3GlueRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationS3GlueRequest) GetDestinationS3GluePutRequest() *shared.DestinationS3GluePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationS3GluePutRequest
+}
+
+func (o *PutDestinationS3GlueRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationS3GlueResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationS3GlueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationS3GlueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationS3GlueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationsftpjson.go b/internal/sdk/pkg/models/operations/putdestinationsftpjson.go
old mode 100755
new mode 100644
index 0bc9c9319..55c4e57b7
--- a/internal/sdk/pkg/models/operations/putdestinationsftpjson.go
+++ b/internal/sdk/pkg/models/operations/putdestinationsftpjson.go
@@ -12,8 +12,46 @@ type PutDestinationSftpJSONRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationSftpJSONRequest) GetDestinationSftpJSONPutRequest() *shared.DestinationSftpJSONPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationSftpJSONPutRequest
+}
+
+func (o *PutDestinationSftpJSONRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationSftpJSONResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationSftpJSONResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationSftpJSONResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationSftpJSONResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationsnowflake.go b/internal/sdk/pkg/models/operations/putdestinationsnowflake.go
old mode 100755
new mode 100644
index ae3b3f0d9..1f3b96f49
--- a/internal/sdk/pkg/models/operations/putdestinationsnowflake.go
+++ b/internal/sdk/pkg/models/operations/putdestinationsnowflake.go
@@ -12,8 +12,46 @@ type PutDestinationSnowflakeRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationSnowflakeRequest) GetDestinationSnowflakePutRequest() *shared.DestinationSnowflakePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationSnowflakePutRequest
+}
+
+func (o *PutDestinationSnowflakeRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationtimeplus.go b/internal/sdk/pkg/models/operations/putdestinationtimeplus.go
old mode 100755
new mode 100644
index 0fd203eef..45dd88e9b
--- a/internal/sdk/pkg/models/operations/putdestinationtimeplus.go
+++ b/internal/sdk/pkg/models/operations/putdestinationtimeplus.go
@@ -12,8 +12,46 @@ type PutDestinationTimeplusRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationTimeplusRequest) GetDestinationTimeplusPutRequest() *shared.DestinationTimeplusPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationTimeplusPutRequest
+}
+
+func (o *PutDestinationTimeplusRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationTimeplusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationTimeplusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationTimeplusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationTimeplusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationtypesense.go b/internal/sdk/pkg/models/operations/putdestinationtypesense.go
old mode 100755
new mode 100644
index 8c728f6c7..234d2d72b
--- a/internal/sdk/pkg/models/operations/putdestinationtypesense.go
+++ b/internal/sdk/pkg/models/operations/putdestinationtypesense.go
@@ -12,8 +12,46 @@ type PutDestinationTypesenseRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationTypesenseRequest) GetDestinationTypesensePutRequest() *shared.DestinationTypesensePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationTypesensePutRequest
+}
+
+func (o *PutDestinationTypesenseRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationTypesenseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationTypesenseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationTypesenseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationTypesenseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationvertica.go b/internal/sdk/pkg/models/operations/putdestinationvertica.go
old mode 100755
new mode 100644
index b437c86f9..9cafcf11e
--- a/internal/sdk/pkg/models/operations/putdestinationvertica.go
+++ b/internal/sdk/pkg/models/operations/putdestinationvertica.go
@@ -12,8 +12,46 @@ type PutDestinationVerticaRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationVerticaRequest) GetDestinationVerticaPutRequest() *shared.DestinationVerticaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationVerticaPutRequest
+}
+
+func (o *PutDestinationVerticaRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationVerticaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationVerticaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationVerticaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationVerticaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putdestinationxata.go b/internal/sdk/pkg/models/operations/putdestinationxata.go
old mode 100755
new mode 100644
index f45e6ae02..ef8a6e5df
--- a/internal/sdk/pkg/models/operations/putdestinationxata.go
+++ b/internal/sdk/pkg/models/operations/putdestinationxata.go
@@ -12,8 +12,46 @@ type PutDestinationXataRequest struct {
DestinationID string `pathParam:"style=simple,explode=false,name=destinationId"`
}
+func (o *PutDestinationXataRequest) GetDestinationXataPutRequest() *shared.DestinationXataPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.DestinationXataPutRequest
+}
+
+func (o *PutDestinationXataRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
type PutDestinationXataResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutDestinationXataResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutDestinationXataResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutDestinationXataResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsource.go b/internal/sdk/pkg/models/operations/putsource.go
old mode 100755
new mode 100644
index c80ad92f5..8b56dcabe
--- a/internal/sdk/pkg/models/operations/putsource.go
+++ b/internal/sdk/pkg/models/operations/putsource.go
@@ -12,10 +12,55 @@ type PutSourceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRequest) GetSourcePutRequest() *shared.SourcePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePutRequest
+}
+
+func (o *PutSourceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceResponse struct {
+ // HTTP response content type for this operation
ContentType string
// Update a source and fully overwrite it
SourceResponse *shared.SourceResponse
- StatusCode int
- RawResponse *http.Response
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
+ RawResponse *http.Response
+}
+
+func (o *PutSourceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceResponse) GetSourceResponse() *shared.SourceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.SourceResponse
+}
+
+func (o *PutSourceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
}
diff --git a/internal/sdk/pkg/models/operations/putsourceaha.go b/internal/sdk/pkg/models/operations/putsourceaha.go
old mode 100755
new mode 100644
index d3a213e39..355894e40
--- a/internal/sdk/pkg/models/operations/putsourceaha.go
+++ b/internal/sdk/pkg/models/operations/putsourceaha.go
@@ -12,8 +12,46 @@ type PutSourceAhaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAhaRequest) GetSourceAhaPutRequest() *shared.SourceAhaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAhaPutRequest
+}
+
+func (o *PutSourceAhaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAhaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAhaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAhaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAhaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceaircall.go b/internal/sdk/pkg/models/operations/putsourceaircall.go
old mode 100755
new mode 100644
index 4915edba6..afd0c3f60
--- a/internal/sdk/pkg/models/operations/putsourceaircall.go
+++ b/internal/sdk/pkg/models/operations/putsourceaircall.go
@@ -12,8 +12,46 @@ type PutSourceAircallRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAircallRequest) GetSourceAircallPutRequest() *shared.SourceAircallPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAircallPutRequest
+}
+
+func (o *PutSourceAircallRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAircallResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAircallResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAircallResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAircallResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceairtable.go b/internal/sdk/pkg/models/operations/putsourceairtable.go
old mode 100755
new mode 100644
index db714716a..ea8b0ddf7
--- a/internal/sdk/pkg/models/operations/putsourceairtable.go
+++ b/internal/sdk/pkg/models/operations/putsourceairtable.go
@@ -12,8 +12,46 @@ type PutSourceAirtableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAirtableRequest) GetSourceAirtablePutRequest() *shared.SourceAirtablePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAirtablePutRequest
+}
+
+func (o *PutSourceAirtableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAirtableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAirtableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAirtableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAirtableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcealloydb.go b/internal/sdk/pkg/models/operations/putsourcealloydb.go
old mode 100755
new mode 100644
index 5f7cbbb7a..5bffef4e9
--- a/internal/sdk/pkg/models/operations/putsourcealloydb.go
+++ b/internal/sdk/pkg/models/operations/putsourcealloydb.go
@@ -12,8 +12,46 @@ type PutSourceAlloydbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAlloydbRequest) GetSourceAlloydbPutRequest() *shared.SourceAlloydbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAlloydbPutRequest
+}
+
+func (o *PutSourceAlloydbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAlloydbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAlloydbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAlloydbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAlloydbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceamazonads.go b/internal/sdk/pkg/models/operations/putsourceamazonads.go
old mode 100755
new mode 100644
index 688ae6ed6..a8774b93e
--- a/internal/sdk/pkg/models/operations/putsourceamazonads.go
+++ b/internal/sdk/pkg/models/operations/putsourceamazonads.go
@@ -12,8 +12,46 @@ type PutSourceAmazonAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAmazonAdsRequest) GetSourceAmazonAdsPutRequest() *shared.SourceAmazonAdsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAmazonAdsPutRequest
+}
+
+func (o *PutSourceAmazonAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAmazonAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAmazonAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAmazonAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAmazonAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceamazonsellerpartner.go b/internal/sdk/pkg/models/operations/putsourceamazonsellerpartner.go
old mode 100755
new mode 100644
index a7ba24293..8babb5e8a
--- a/internal/sdk/pkg/models/operations/putsourceamazonsellerpartner.go
+++ b/internal/sdk/pkg/models/operations/putsourceamazonsellerpartner.go
@@ -12,8 +12,46 @@ type PutSourceAmazonSellerPartnerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAmazonSellerPartnerRequest) GetSourceAmazonSellerPartnerPutRequest() *shared.SourceAmazonSellerPartnerPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAmazonSellerPartnerPutRequest
+}
+
+func (o *PutSourceAmazonSellerPartnerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAmazonSellerPartnerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAmazonSellerPartnerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAmazonSellerPartnerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAmazonSellerPartnerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceamazonsqs.go b/internal/sdk/pkg/models/operations/putsourceamazonsqs.go
old mode 100755
new mode 100644
index 224c2d2c5..1be3485fd
--- a/internal/sdk/pkg/models/operations/putsourceamazonsqs.go
+++ b/internal/sdk/pkg/models/operations/putsourceamazonsqs.go
@@ -12,8 +12,46 @@ type PutSourceAmazonSqsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAmazonSqsRequest) GetSourceAmazonSqsPutRequest() *shared.SourceAmazonSqsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAmazonSqsPutRequest
+}
+
+func (o *PutSourceAmazonSqsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAmazonSqsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAmazonSqsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAmazonSqsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAmazonSqsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceamplitude.go b/internal/sdk/pkg/models/operations/putsourceamplitude.go
old mode 100755
new mode 100644
index 30e48a52e..f5afdd406
--- a/internal/sdk/pkg/models/operations/putsourceamplitude.go
+++ b/internal/sdk/pkg/models/operations/putsourceamplitude.go
@@ -12,8 +12,46 @@ type PutSourceAmplitudeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAmplitudeRequest) GetSourceAmplitudePutRequest() *shared.SourceAmplitudePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAmplitudePutRequest
+}
+
+func (o *PutSourceAmplitudeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAmplitudeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAmplitudeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAmplitudeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAmplitudeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceapifydataset.go b/internal/sdk/pkg/models/operations/putsourceapifydataset.go
old mode 100755
new mode 100644
index 3a3a3f2c7..6e9a7fae5
--- a/internal/sdk/pkg/models/operations/putsourceapifydataset.go
+++ b/internal/sdk/pkg/models/operations/putsourceapifydataset.go
@@ -12,8 +12,46 @@ type PutSourceApifyDatasetRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceApifyDatasetRequest) GetSourceApifyDatasetPutRequest() *shared.SourceApifyDatasetPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceApifyDatasetPutRequest
+}
+
+func (o *PutSourceApifyDatasetRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceApifyDatasetResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceApifyDatasetResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceApifyDatasetResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceApifyDatasetResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceappfollow.go b/internal/sdk/pkg/models/operations/putsourceappfollow.go
old mode 100755
new mode 100644
index 8013972ed..6c7299914
--- a/internal/sdk/pkg/models/operations/putsourceappfollow.go
+++ b/internal/sdk/pkg/models/operations/putsourceappfollow.go
@@ -12,8 +12,46 @@ type PutSourceAppfollowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAppfollowRequest) GetSourceAppfollowPutRequest() *shared.SourceAppfollowPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAppfollowPutRequest
+}
+
+func (o *PutSourceAppfollowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAppfollowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAppfollowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAppfollowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAppfollowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceasana.go b/internal/sdk/pkg/models/operations/putsourceasana.go
old mode 100755
new mode 100644
index aef888f7e..156a8ee2e
--- a/internal/sdk/pkg/models/operations/putsourceasana.go
+++ b/internal/sdk/pkg/models/operations/putsourceasana.go
@@ -12,8 +12,46 @@ type PutSourceAsanaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAsanaRequest) GetSourceAsanaPutRequest() *shared.SourceAsanaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAsanaPutRequest
+}
+
+func (o *PutSourceAsanaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAsanaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAsanaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAsanaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAsanaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceauth0.go b/internal/sdk/pkg/models/operations/putsourceauth0.go
old mode 100755
new mode 100644
index 89a8c715f..1dc0c4c23
--- a/internal/sdk/pkg/models/operations/putsourceauth0.go
+++ b/internal/sdk/pkg/models/operations/putsourceauth0.go
@@ -12,8 +12,46 @@ type PutSourceAuth0Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAuth0Request) GetSourceAuth0PutRequest() *shared.SourceAuth0PutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAuth0PutRequest
+}
+
+func (o *PutSourceAuth0Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAuth0Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAuth0Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAuth0Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAuth0Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceawscloudtrail.go b/internal/sdk/pkg/models/operations/putsourceawscloudtrail.go
old mode 100755
new mode 100644
index 55dc9457b..eb2a87849
--- a/internal/sdk/pkg/models/operations/putsourceawscloudtrail.go
+++ b/internal/sdk/pkg/models/operations/putsourceawscloudtrail.go
@@ -12,8 +12,46 @@ type PutSourceAwsCloudtrailRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAwsCloudtrailRequest) GetSourceAwsCloudtrailPutRequest() *shared.SourceAwsCloudtrailPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAwsCloudtrailPutRequest
+}
+
+func (o *PutSourceAwsCloudtrailRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAwsCloudtrailResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAwsCloudtrailResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAwsCloudtrailResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAwsCloudtrailResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceazureblobstorage.go b/internal/sdk/pkg/models/operations/putsourceazureblobstorage.go
old mode 100755
new mode 100644
index 77ce00d6e..0d0232f8a
--- a/internal/sdk/pkg/models/operations/putsourceazureblobstorage.go
+++ b/internal/sdk/pkg/models/operations/putsourceazureblobstorage.go
@@ -12,8 +12,46 @@ type PutSourceAzureBlobStorageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAzureBlobStorageRequest) GetSourceAzureBlobStoragePutRequest() *shared.SourceAzureBlobStoragePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAzureBlobStoragePutRequest
+}
+
+func (o *PutSourceAzureBlobStorageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAzureBlobStorageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAzureBlobStorageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAzureBlobStorageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAzureBlobStorageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceazuretable.go b/internal/sdk/pkg/models/operations/putsourceazuretable.go
old mode 100755
new mode 100644
index 277ed3712..e94b99510
--- a/internal/sdk/pkg/models/operations/putsourceazuretable.go
+++ b/internal/sdk/pkg/models/operations/putsourceazuretable.go
@@ -12,8 +12,46 @@ type PutSourceAzureTableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceAzureTableRequest) GetSourceAzureTablePutRequest() *shared.SourceAzureTablePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceAzureTablePutRequest
+}
+
+func (o *PutSourceAzureTableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceAzureTableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceAzureTableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceAzureTableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceAzureTableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebamboohr.go b/internal/sdk/pkg/models/operations/putsourcebamboohr.go
old mode 100755
new mode 100644
index a10b6a3d5..60a96fc71
--- a/internal/sdk/pkg/models/operations/putsourcebamboohr.go
+++ b/internal/sdk/pkg/models/operations/putsourcebamboohr.go
@@ -12,8 +12,46 @@ type PutSourceBambooHrRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBambooHrRequest) GetSourceBambooHrPutRequest() *shared.SourceBambooHrPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBambooHrPutRequest
+}
+
+func (o *PutSourceBambooHrRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBambooHrResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBambooHrResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBambooHrResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBambooHrResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebigcommerce.go b/internal/sdk/pkg/models/operations/putsourcebigcommerce.go
old mode 100755
new mode 100644
index 66868e74c..4ad73ebff
--- a/internal/sdk/pkg/models/operations/putsourcebigcommerce.go
+++ b/internal/sdk/pkg/models/operations/putsourcebigcommerce.go
@@ -12,8 +12,46 @@ type PutSourceBigcommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBigcommerceRequest) GetSourceBigcommercePutRequest() *shared.SourceBigcommercePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBigcommercePutRequest
+}
+
+func (o *PutSourceBigcommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBigcommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBigcommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBigcommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBigcommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebigquery.go b/internal/sdk/pkg/models/operations/putsourcebigquery.go
old mode 100755
new mode 100644
index 262022a15..d610f230f
--- a/internal/sdk/pkg/models/operations/putsourcebigquery.go
+++ b/internal/sdk/pkg/models/operations/putsourcebigquery.go
@@ -12,8 +12,46 @@ type PutSourceBigqueryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBigqueryRequest) GetSourceBigqueryPutRequest() *shared.SourceBigqueryPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBigqueryPutRequest
+}
+
+func (o *PutSourceBigqueryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBigqueryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBigqueryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBigqueryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBigqueryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebingads.go b/internal/sdk/pkg/models/operations/putsourcebingads.go
old mode 100755
new mode 100644
index 518abe6a9..cbfb9d3e0
--- a/internal/sdk/pkg/models/operations/putsourcebingads.go
+++ b/internal/sdk/pkg/models/operations/putsourcebingads.go
@@ -12,8 +12,46 @@ type PutSourceBingAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBingAdsRequest) GetSourceBingAdsPutRequest() *shared.SourceBingAdsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBingAdsPutRequest
+}
+
+func (o *PutSourceBingAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBingAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBingAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBingAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBingAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebraintree.go b/internal/sdk/pkg/models/operations/putsourcebraintree.go
old mode 100755
new mode 100644
index 7dd86ab79..d1861ecbd
--- a/internal/sdk/pkg/models/operations/putsourcebraintree.go
+++ b/internal/sdk/pkg/models/operations/putsourcebraintree.go
@@ -12,8 +12,46 @@ type PutSourceBraintreeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBraintreeRequest) GetSourceBraintreePutRequest() *shared.SourceBraintreePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBraintreePutRequest
+}
+
+func (o *PutSourceBraintreeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBraintreeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBraintreeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBraintreeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBraintreeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcebraze.go b/internal/sdk/pkg/models/operations/putsourcebraze.go
old mode 100755
new mode 100644
index 5f4e7c55a..f0f139853
--- a/internal/sdk/pkg/models/operations/putsourcebraze.go
+++ b/internal/sdk/pkg/models/operations/putsourcebraze.go
@@ -12,8 +12,46 @@ type PutSourceBrazeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceBrazeRequest) GetSourceBrazePutRequest() *shared.SourceBrazePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceBrazePutRequest
+}
+
+func (o *PutSourceBrazeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceBrazeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceBrazeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceBrazeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceBrazeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcechargebee.go b/internal/sdk/pkg/models/operations/putsourcechargebee.go
old mode 100755
new mode 100644
index a803798ea..302899ff6
--- a/internal/sdk/pkg/models/operations/putsourcechargebee.go
+++ b/internal/sdk/pkg/models/operations/putsourcechargebee.go
@@ -12,8 +12,46 @@ type PutSourceChargebeeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceChargebeeRequest) GetSourceChargebeePutRequest() *shared.SourceChargebeePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceChargebeePutRequest
+}
+
+func (o *PutSourceChargebeeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceChargebeeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceChargebeeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceChargebeeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceChargebeeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcechartmogul.go b/internal/sdk/pkg/models/operations/putsourcechartmogul.go
old mode 100755
new mode 100644
index 9184735ed..32af1370e
--- a/internal/sdk/pkg/models/operations/putsourcechartmogul.go
+++ b/internal/sdk/pkg/models/operations/putsourcechartmogul.go
@@ -12,8 +12,46 @@ type PutSourceChartmogulRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceChartmogulRequest) GetSourceChartmogulPutRequest() *shared.SourceChartmogulPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceChartmogulPutRequest
+}
+
+func (o *PutSourceChartmogulRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceChartmogulResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceChartmogulResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceChartmogulResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceChartmogulResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceclickhouse.go b/internal/sdk/pkg/models/operations/putsourceclickhouse.go
old mode 100755
new mode 100644
index 3c38746e8..3b3b7be26
--- a/internal/sdk/pkg/models/operations/putsourceclickhouse.go
+++ b/internal/sdk/pkg/models/operations/putsourceclickhouse.go
@@ -12,8 +12,46 @@ type PutSourceClickhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceClickhouseRequest) GetSourceClickhousePutRequest() *shared.SourceClickhousePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceClickhousePutRequest
+}
+
+func (o *PutSourceClickhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceClickhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceClickhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceClickhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceClickhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceclickupapi.go b/internal/sdk/pkg/models/operations/putsourceclickupapi.go
old mode 100755
new mode 100644
index 9ae4abbf9..21ed6f11b
--- a/internal/sdk/pkg/models/operations/putsourceclickupapi.go
+++ b/internal/sdk/pkg/models/operations/putsourceclickupapi.go
@@ -12,8 +12,46 @@ type PutSourceClickupAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceClickupAPIRequest) GetSourceClickupAPIPutRequest() *shared.SourceClickupAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceClickupAPIPutRequest
+}
+
+func (o *PutSourceClickupAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceClickupAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceClickupAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceClickupAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceClickupAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceclockify.go b/internal/sdk/pkg/models/operations/putsourceclockify.go
old mode 100755
new mode 100644
index 8e69a1055..9c23c0e52
--- a/internal/sdk/pkg/models/operations/putsourceclockify.go
+++ b/internal/sdk/pkg/models/operations/putsourceclockify.go
@@ -12,8 +12,46 @@ type PutSourceClockifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceClockifyRequest) GetSourceClockifyPutRequest() *shared.SourceClockifyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceClockifyPutRequest
+}
+
+func (o *PutSourceClockifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceClockifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceClockifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceClockifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceClockifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceclosecom.go b/internal/sdk/pkg/models/operations/putsourceclosecom.go
old mode 100755
new mode 100644
index 7630482ea..796fc0b47
--- a/internal/sdk/pkg/models/operations/putsourceclosecom.go
+++ b/internal/sdk/pkg/models/operations/putsourceclosecom.go
@@ -12,8 +12,46 @@ type PutSourceCloseComRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceCloseComRequest) GetSourceCloseComPutRequest() *shared.SourceCloseComPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceCloseComPutRequest
+}
+
+func (o *PutSourceCloseComRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceCloseComResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceCloseComResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceCloseComResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceCloseComResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcecoda.go b/internal/sdk/pkg/models/operations/putsourcecoda.go
old mode 100755
new mode 100644
index 101877875..4debd35b6
--- a/internal/sdk/pkg/models/operations/putsourcecoda.go
+++ b/internal/sdk/pkg/models/operations/putsourcecoda.go
@@ -12,8 +12,46 @@ type PutSourceCodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceCodaRequest) GetSourceCodaPutRequest() *shared.SourceCodaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceCodaPutRequest
+}
+
+func (o *PutSourceCodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceCodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceCodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceCodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceCodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcecoinapi.go b/internal/sdk/pkg/models/operations/putsourcecoinapi.go
old mode 100755
new mode 100644
index 31dba3d83..9a134fe0c
--- a/internal/sdk/pkg/models/operations/putsourcecoinapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcecoinapi.go
@@ -12,8 +12,46 @@ type PutSourceCoinAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceCoinAPIRequest) GetSourceCoinAPIPutRequest() *shared.SourceCoinAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceCoinAPIPutRequest
+}
+
+func (o *PutSourceCoinAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceCoinAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceCoinAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceCoinAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceCoinAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcecoinmarketcap.go b/internal/sdk/pkg/models/operations/putsourcecoinmarketcap.go
old mode 100755
new mode 100644
index 80b175065..4ea3bcdec
--- a/internal/sdk/pkg/models/operations/putsourcecoinmarketcap.go
+++ b/internal/sdk/pkg/models/operations/putsourcecoinmarketcap.go
@@ -12,8 +12,46 @@ type PutSourceCoinmarketcapRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceCoinmarketcapRequest) GetSourceCoinmarketcapPutRequest() *shared.SourceCoinmarketcapPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceCoinmarketcapPutRequest
+}
+
+func (o *PutSourceCoinmarketcapRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceCoinmarketcapResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceCoinmarketcapResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceCoinmarketcapResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceCoinmarketcapResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceconfigcat.go b/internal/sdk/pkg/models/operations/putsourceconfigcat.go
old mode 100755
new mode 100644
index b8fe2ed2e..3dfdafc0c
--- a/internal/sdk/pkg/models/operations/putsourceconfigcat.go
+++ b/internal/sdk/pkg/models/operations/putsourceconfigcat.go
@@ -12,8 +12,46 @@ type PutSourceConfigcatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceConfigcatRequest) GetSourceConfigcatPutRequest() *shared.SourceConfigcatPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceConfigcatPutRequest
+}
+
+func (o *PutSourceConfigcatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceConfigcatResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceConfigcatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceConfigcatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceConfigcatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceconfluence.go b/internal/sdk/pkg/models/operations/putsourceconfluence.go
old mode 100755
new mode 100644
index 2be6143e7..57420689b
--- a/internal/sdk/pkg/models/operations/putsourceconfluence.go
+++ b/internal/sdk/pkg/models/operations/putsourceconfluence.go
@@ -12,8 +12,46 @@ type PutSourceConfluenceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceConfluenceRequest) GetSourceConfluencePutRequest() *shared.SourceConfluencePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceConfluencePutRequest
+}
+
+func (o *PutSourceConfluenceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceConfluenceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceConfluenceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceConfluenceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceConfluenceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceconvex.go b/internal/sdk/pkg/models/operations/putsourceconvex.go
old mode 100755
new mode 100644
index bcf1721ee..f96251a51
--- a/internal/sdk/pkg/models/operations/putsourceconvex.go
+++ b/internal/sdk/pkg/models/operations/putsourceconvex.go
@@ -12,8 +12,46 @@ type PutSourceConvexRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceConvexRequest) GetSourceConvexPutRequest() *shared.SourceConvexPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceConvexPutRequest
+}
+
+func (o *PutSourceConvexRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceConvexResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceConvexResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceConvexResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceConvexResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedatascope.go b/internal/sdk/pkg/models/operations/putsourcedatascope.go
old mode 100755
new mode 100644
index 091cddfae..ae8c9ac03
--- a/internal/sdk/pkg/models/operations/putsourcedatascope.go
+++ b/internal/sdk/pkg/models/operations/putsourcedatascope.go
@@ -12,8 +12,46 @@ type PutSourceDatascopeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDatascopeRequest) GetSourceDatascopePutRequest() *shared.SourceDatascopePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDatascopePutRequest
+}
+
+func (o *PutSourceDatascopeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDatascopeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDatascopeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDatascopeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDatascopeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedelighted.go b/internal/sdk/pkg/models/operations/putsourcedelighted.go
old mode 100755
new mode 100644
index 591ba6f3e..7e91097cb
--- a/internal/sdk/pkg/models/operations/putsourcedelighted.go
+++ b/internal/sdk/pkg/models/operations/putsourcedelighted.go
@@ -12,8 +12,46 @@ type PutSourceDelightedRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDelightedRequest) GetSourceDelightedPutRequest() *shared.SourceDelightedPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDelightedPutRequest
+}
+
+func (o *PutSourceDelightedRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDelightedResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDelightedResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDelightedResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDelightedResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedixa.go b/internal/sdk/pkg/models/operations/putsourcedixa.go
old mode 100755
new mode 100644
index 9405c3d20..4498d8882
--- a/internal/sdk/pkg/models/operations/putsourcedixa.go
+++ b/internal/sdk/pkg/models/operations/putsourcedixa.go
@@ -12,8 +12,46 @@ type PutSourceDixaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDixaRequest) GetSourceDixaPutRequest() *shared.SourceDixaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDixaPutRequest
+}
+
+func (o *PutSourceDixaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDixaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDixaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDixaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDixaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedockerhub.go b/internal/sdk/pkg/models/operations/putsourcedockerhub.go
old mode 100755
new mode 100644
index 6b59b34be..5e62dd869
--- a/internal/sdk/pkg/models/operations/putsourcedockerhub.go
+++ b/internal/sdk/pkg/models/operations/putsourcedockerhub.go
@@ -12,8 +12,46 @@ type PutSourceDockerhubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDockerhubRequest) GetSourceDockerhubPutRequest() *shared.SourceDockerhubPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDockerhubPutRequest
+}
+
+func (o *PutSourceDockerhubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDockerhubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDockerhubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDockerhubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDockerhubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedremio.go b/internal/sdk/pkg/models/operations/putsourcedremio.go
old mode 100755
new mode 100644
index 453f35598..9bd3fac52
--- a/internal/sdk/pkg/models/operations/putsourcedremio.go
+++ b/internal/sdk/pkg/models/operations/putsourcedremio.go
@@ -12,8 +12,46 @@ type PutSourceDremioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDremioRequest) GetSourceDremioPutRequest() *shared.SourceDremioPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDremioPutRequest
+}
+
+func (o *PutSourceDremioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDremioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDremioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDremioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDremioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcedynamodb.go b/internal/sdk/pkg/models/operations/putsourcedynamodb.go
old mode 100755
new mode 100644
index bbfbf7803..78977f893
--- a/internal/sdk/pkg/models/operations/putsourcedynamodb.go
+++ b/internal/sdk/pkg/models/operations/putsourcedynamodb.go
@@ -12,8 +12,46 @@ type PutSourceDynamodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceDynamodbRequest) GetSourceDynamodbPutRequest() *shared.SourceDynamodbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDynamodbPutRequest
+}
+
+func (o *PutSourceDynamodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceDynamodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceDynamodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceDynamodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceDynamodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcee2etestcloud.go b/internal/sdk/pkg/models/operations/putsourcee2etestcloud.go
old mode 100755
new mode 100644
index a49001581..ca18ae550
--- a/internal/sdk/pkg/models/operations/putsourcee2etestcloud.go
+++ b/internal/sdk/pkg/models/operations/putsourcee2etestcloud.go
@@ -12,8 +12,46 @@ type PutSourceE2eTestCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceE2eTestCloudRequest) GetSourceE2eTestCloudPutRequest() *shared.SourceE2eTestCloudPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceE2eTestCloudPutRequest
+}
+
+func (o *PutSourceE2eTestCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceE2eTestCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceE2eTestCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceE2eTestCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceE2eTestCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceemailoctopus.go b/internal/sdk/pkg/models/operations/putsourceemailoctopus.go
old mode 100755
new mode 100644
index ab9858a30..fc9ac0fcc
--- a/internal/sdk/pkg/models/operations/putsourceemailoctopus.go
+++ b/internal/sdk/pkg/models/operations/putsourceemailoctopus.go
@@ -12,8 +12,46 @@ type PutSourceEmailoctopusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceEmailoctopusRequest) GetSourceEmailoctopusPutRequest() *shared.SourceEmailoctopusPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceEmailoctopusPutRequest
+}
+
+func (o *PutSourceEmailoctopusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceEmailoctopusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceEmailoctopusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceEmailoctopusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceEmailoctopusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceexchangerates.go b/internal/sdk/pkg/models/operations/putsourceexchangerates.go
old mode 100755
new mode 100644
index 79ea9b8f5..b64b9be4e
--- a/internal/sdk/pkg/models/operations/putsourceexchangerates.go
+++ b/internal/sdk/pkg/models/operations/putsourceexchangerates.go
@@ -12,8 +12,46 @@ type PutSourceExchangeRatesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceExchangeRatesRequest) GetSourceExchangeRatesPutRequest() *shared.SourceExchangeRatesPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceExchangeRatesPutRequest
+}
+
+func (o *PutSourceExchangeRatesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceExchangeRatesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceExchangeRatesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceExchangeRatesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceExchangeRatesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefacebookmarketing.go b/internal/sdk/pkg/models/operations/putsourcefacebookmarketing.go
old mode 100755
new mode 100644
index a82e1d86b..dea255a7c
--- a/internal/sdk/pkg/models/operations/putsourcefacebookmarketing.go
+++ b/internal/sdk/pkg/models/operations/putsourcefacebookmarketing.go
@@ -12,8 +12,46 @@ type PutSourceFacebookMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFacebookMarketingRequest) GetSourceFacebookMarketingPutRequest() *shared.SourceFacebookMarketingPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFacebookMarketingPutRequest
+}
+
+func (o *PutSourceFacebookMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFacebookMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFacebookMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFacebookMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFacebookMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefacebookpages.go b/internal/sdk/pkg/models/operations/putsourcefacebookpages.go
old mode 100755
new mode 100644
index 43456b3d1..cf9b62a8b
--- a/internal/sdk/pkg/models/operations/putsourcefacebookpages.go
+++ b/internal/sdk/pkg/models/operations/putsourcefacebookpages.go
@@ -12,8 +12,46 @@ type PutSourceFacebookPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFacebookPagesRequest) GetSourceFacebookPagesPutRequest() *shared.SourceFacebookPagesPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFacebookPagesPutRequest
+}
+
+func (o *PutSourceFacebookPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFacebookPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFacebookPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFacebookPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFacebookPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefaker.go b/internal/sdk/pkg/models/operations/putsourcefaker.go
old mode 100755
new mode 100644
index a03882761..ea35b67b3
--- a/internal/sdk/pkg/models/operations/putsourcefaker.go
+++ b/internal/sdk/pkg/models/operations/putsourcefaker.go
@@ -12,8 +12,46 @@ type PutSourceFakerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFakerRequest) GetSourceFakerPutRequest() *shared.SourceFakerPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFakerPutRequest
+}
+
+func (o *PutSourceFakerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFakerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFakerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFakerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFakerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefauna.go b/internal/sdk/pkg/models/operations/putsourcefauna.go
old mode 100755
new mode 100644
index e367e76a9..78a59b7a1
--- a/internal/sdk/pkg/models/operations/putsourcefauna.go
+++ b/internal/sdk/pkg/models/operations/putsourcefauna.go
@@ -12,8 +12,46 @@ type PutSourceFaunaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFaunaRequest) GetSourceFaunaPutRequest() *shared.SourceFaunaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFaunaPutRequest
+}
+
+func (o *PutSourceFaunaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFaunaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFaunaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFaunaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFaunaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefilesecure.go b/internal/sdk/pkg/models/operations/putsourcefilesecure.go
old mode 100755
new mode 100644
index caaeb2698..9f9df6bcd
--- a/internal/sdk/pkg/models/operations/putsourcefilesecure.go
+++ b/internal/sdk/pkg/models/operations/putsourcefilesecure.go
@@ -12,8 +12,46 @@ type PutSourceFileSecureRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFileSecureRequest) GetSourceFileSecurePutRequest() *shared.SourceFileSecurePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFileSecurePutRequest
+}
+
+func (o *PutSourceFileSecureRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFileSecureResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFileSecureResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFileSecureResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFileSecureResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefirebolt.go b/internal/sdk/pkg/models/operations/putsourcefirebolt.go
old mode 100755
new mode 100644
index 6391f3fe1..fbf5c8736
--- a/internal/sdk/pkg/models/operations/putsourcefirebolt.go
+++ b/internal/sdk/pkg/models/operations/putsourcefirebolt.go
@@ -12,8 +12,46 @@ type PutSourceFireboltRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFireboltRequest) GetSourceFireboltPutRequest() *shared.SourceFireboltPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFireboltPutRequest
+}
+
+func (o *PutSourceFireboltRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFireboltResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFireboltResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFireboltResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFireboltResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefreshcaller.go b/internal/sdk/pkg/models/operations/putsourcefreshcaller.go
old mode 100755
new mode 100644
index 7e62539e2..0a300bb5d
--- a/internal/sdk/pkg/models/operations/putsourcefreshcaller.go
+++ b/internal/sdk/pkg/models/operations/putsourcefreshcaller.go
@@ -12,8 +12,46 @@ type PutSourceFreshcallerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFreshcallerRequest) GetSourceFreshcallerPutRequest() *shared.SourceFreshcallerPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFreshcallerPutRequest
+}
+
+func (o *PutSourceFreshcallerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFreshcallerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFreshcallerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFreshcallerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFreshcallerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefreshdesk.go b/internal/sdk/pkg/models/operations/putsourcefreshdesk.go
old mode 100755
new mode 100644
index 9bf7ed170..9c61c0c8c
--- a/internal/sdk/pkg/models/operations/putsourcefreshdesk.go
+++ b/internal/sdk/pkg/models/operations/putsourcefreshdesk.go
@@ -12,8 +12,46 @@ type PutSourceFreshdeskRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFreshdeskRequest) GetSourceFreshdeskPutRequest() *shared.SourceFreshdeskPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFreshdeskPutRequest
+}
+
+func (o *PutSourceFreshdeskRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFreshdeskResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFreshdeskResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFreshdeskResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFreshdeskResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcefreshsales.go b/internal/sdk/pkg/models/operations/putsourcefreshsales.go
old mode 100755
new mode 100644
index 1df8daaac..742969671
--- a/internal/sdk/pkg/models/operations/putsourcefreshsales.go
+++ b/internal/sdk/pkg/models/operations/putsourcefreshsales.go
@@ -12,8 +12,46 @@ type PutSourceFreshsalesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceFreshsalesRequest) GetSourceFreshsalesPutRequest() *shared.SourceFreshsalesPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceFreshsalesPutRequest
+}
+
+func (o *PutSourceFreshsalesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceFreshsalesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceFreshsalesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceFreshsalesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceFreshsalesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegainsightpx.go b/internal/sdk/pkg/models/operations/putsourcegainsightpx.go
old mode 100755
new mode 100644
index 2a9fbd3ae..f4ab2bb51
--- a/internal/sdk/pkg/models/operations/putsourcegainsightpx.go
+++ b/internal/sdk/pkg/models/operations/putsourcegainsightpx.go
@@ -12,8 +12,46 @@ type PutSourceGainsightPxRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGainsightPxRequest) GetSourceGainsightPxPutRequest() *shared.SourceGainsightPxPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGainsightPxPutRequest
+}
+
+func (o *PutSourceGainsightPxRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGainsightPxResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGainsightPxResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGainsightPxResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGainsightPxResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegcs.go b/internal/sdk/pkg/models/operations/putsourcegcs.go
old mode 100755
new mode 100644
index 06ff4ac84..48ba640b5
--- a/internal/sdk/pkg/models/operations/putsourcegcs.go
+++ b/internal/sdk/pkg/models/operations/putsourcegcs.go
@@ -12,8 +12,46 @@ type PutSourceGcsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGcsRequest) GetSourceGcsPutRequest() *shared.SourceGcsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGcsPutRequest
+}
+
+func (o *PutSourceGcsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGcsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGcsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGcsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGcsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegetlago.go b/internal/sdk/pkg/models/operations/putsourcegetlago.go
old mode 100755
new mode 100644
index 334462cdc..5270fb7fa
--- a/internal/sdk/pkg/models/operations/putsourcegetlago.go
+++ b/internal/sdk/pkg/models/operations/putsourcegetlago.go
@@ -12,8 +12,46 @@ type PutSourceGetlagoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGetlagoRequest) GetSourceGetlagoPutRequest() *shared.SourceGetlagoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGetlagoPutRequest
+}
+
+func (o *PutSourceGetlagoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGetlagoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGetlagoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGetlagoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGetlagoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegithub.go b/internal/sdk/pkg/models/operations/putsourcegithub.go
old mode 100755
new mode 100644
index 8f7b109f8..be807a003
--- a/internal/sdk/pkg/models/operations/putsourcegithub.go
+++ b/internal/sdk/pkg/models/operations/putsourcegithub.go
@@ -12,8 +12,46 @@ type PutSourceGithubRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGithubRequest) GetSourceGithubPutRequest() *shared.SourceGithubPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGithubPutRequest
+}
+
+func (o *PutSourceGithubRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGithubResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGithubResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGithubResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGithubResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegitlab.go b/internal/sdk/pkg/models/operations/putsourcegitlab.go
old mode 100755
new mode 100644
index e69c0c1cf..59c364713
--- a/internal/sdk/pkg/models/operations/putsourcegitlab.go
+++ b/internal/sdk/pkg/models/operations/putsourcegitlab.go
@@ -12,8 +12,46 @@ type PutSourceGitlabRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGitlabRequest) GetSourceGitlabPutRequest() *shared.SourceGitlabPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGitlabPutRequest
+}
+
+func (o *PutSourceGitlabRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGitlabResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGitlabResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGitlabResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGitlabResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceglassfrog.go b/internal/sdk/pkg/models/operations/putsourceglassfrog.go
old mode 100755
new mode 100644
index aa2772941..f0534a0fe
--- a/internal/sdk/pkg/models/operations/putsourceglassfrog.go
+++ b/internal/sdk/pkg/models/operations/putsourceglassfrog.go
@@ -12,8 +12,46 @@ type PutSourceGlassfrogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGlassfrogRequest) GetSourceGlassfrogPutRequest() *shared.SourceGlassfrogPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGlassfrogPutRequest
+}
+
+func (o *PutSourceGlassfrogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGlassfrogResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGlassfrogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGlassfrogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGlassfrogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegnews.go b/internal/sdk/pkg/models/operations/putsourcegnews.go
old mode 100755
new mode 100644
index be5657683..9f90a1542
--- a/internal/sdk/pkg/models/operations/putsourcegnews.go
+++ b/internal/sdk/pkg/models/operations/putsourcegnews.go
@@ -12,8 +12,46 @@ type PutSourceGnewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGnewsRequest) GetSourceGnewsPutRequest() *shared.SourceGnewsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGnewsPutRequest
+}
+
+func (o *PutSourceGnewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGnewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGnewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGnewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGnewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegoogleads.go b/internal/sdk/pkg/models/operations/putsourcegoogleads.go
old mode 100755
new mode 100644
index 4af2b2dd6..794248f7a
--- a/internal/sdk/pkg/models/operations/putsourcegoogleads.go
+++ b/internal/sdk/pkg/models/operations/putsourcegoogleads.go
@@ -12,8 +12,46 @@ type PutSourceGoogleAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleAdsRequest) GetSourceGoogleAdsPutRequest() *shared.SourceGoogleAdsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleAdsPutRequest
+}
+
+func (o *PutSourceGoogleAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsdataapi.go
old mode 100755
new mode 100644
index 2f05d198a..b808674f3
--- a/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsdataapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsdataapi.go
@@ -12,8 +12,46 @@ type PutSourceGoogleAnalyticsDataAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleAnalyticsDataAPIRequest) GetSourceGoogleAnalyticsDataAPIPutRequest() *shared.SourceGoogleAnalyticsDataAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleAnalyticsDataAPIPutRequest
+}
+
+func (o *PutSourceGoogleAnalyticsDataAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleAnalyticsDataAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleAnalyticsDataAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleAnalyticsDataAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleAnalyticsDataAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsv4.go
old mode 100755
new mode 100644
index c70bff38f..18fdf0be4
--- a/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsv4.go
+++ b/internal/sdk/pkg/models/operations/putsourcegoogleanalyticsv4.go
@@ -12,8 +12,46 @@ type PutSourceGoogleAnalyticsV4Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleAnalyticsV4Request) GetSourceGoogleAnalyticsV4PutRequest() *shared.SourceGoogleAnalyticsV4PutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleAnalyticsV4PutRequest
+}
+
+func (o *PutSourceGoogleAnalyticsV4Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleAnalyticsV4Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleAnalyticsV4Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleAnalyticsV4Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleAnalyticsV4Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegoogledirectory.go b/internal/sdk/pkg/models/operations/putsourcegoogledirectory.go
old mode 100755
new mode 100644
index 13488123d..8873e714b
--- a/internal/sdk/pkg/models/operations/putsourcegoogledirectory.go
+++ b/internal/sdk/pkg/models/operations/putsourcegoogledirectory.go
@@ -12,8 +12,46 @@ type PutSourceGoogleDirectoryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleDirectoryRequest) GetSourceGoogleDirectoryPutRequest() *shared.SourceGoogleDirectoryPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleDirectoryPutRequest
+}
+
+func (o *PutSourceGoogleDirectoryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleDirectoryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleDirectoryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleDirectoryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleDirectoryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegooglepagespeedinsights.go b/internal/sdk/pkg/models/operations/putsourcegooglepagespeedinsights.go
old mode 100755
new mode 100644
index 7516d3709..6d2c14366
--- a/internal/sdk/pkg/models/operations/putsourcegooglepagespeedinsights.go
+++ b/internal/sdk/pkg/models/operations/putsourcegooglepagespeedinsights.go
@@ -12,8 +12,46 @@ type PutSourceGooglePagespeedInsightsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGooglePagespeedInsightsRequest) GetSourceGooglePagespeedInsightsPutRequest() *shared.SourceGooglePagespeedInsightsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGooglePagespeedInsightsPutRequest
+}
+
+func (o *PutSourceGooglePagespeedInsightsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGooglePagespeedInsightsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGooglePagespeedInsightsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGooglePagespeedInsightsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGooglePagespeedInsightsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegooglesearchconsole.go b/internal/sdk/pkg/models/operations/putsourcegooglesearchconsole.go
old mode 100755
new mode 100644
index 06585dd83..c8e75d7ec
--- a/internal/sdk/pkg/models/operations/putsourcegooglesearchconsole.go
+++ b/internal/sdk/pkg/models/operations/putsourcegooglesearchconsole.go
@@ -12,8 +12,46 @@ type PutSourceGoogleSearchConsoleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleSearchConsoleRequest) GetSourceGoogleSearchConsolePutRequest() *shared.SourceGoogleSearchConsolePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleSearchConsolePutRequest
+}
+
+func (o *PutSourceGoogleSearchConsoleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleSearchConsoleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleSearchConsoleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleSearchConsoleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleSearchConsoleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegooglesheets.go b/internal/sdk/pkg/models/operations/putsourcegooglesheets.go
old mode 100755
new mode 100644
index 97a0d6c0d..a80c0b050
--- a/internal/sdk/pkg/models/operations/putsourcegooglesheets.go
+++ b/internal/sdk/pkg/models/operations/putsourcegooglesheets.go
@@ -12,8 +12,46 @@ type PutSourceGoogleSheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleSheetsRequest) GetSourceGoogleSheetsPutRequest() *shared.SourceGoogleSheetsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleSheetsPutRequest
+}
+
+func (o *PutSourceGoogleSheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleSheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleSheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleSheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleSheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegooglewebfonts.go b/internal/sdk/pkg/models/operations/putsourcegooglewebfonts.go
old mode 100755
new mode 100644
index d595c6a62..461f5133f
--- a/internal/sdk/pkg/models/operations/putsourcegooglewebfonts.go
+++ b/internal/sdk/pkg/models/operations/putsourcegooglewebfonts.go
@@ -12,8 +12,46 @@ type PutSourceGoogleWebfontsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleWebfontsRequest) GetSourceGoogleWebfontsPutRequest() *shared.SourceGoogleWebfontsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleWebfontsPutRequest
+}
+
+func (o *PutSourceGoogleWebfontsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleWebfontsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleWebfontsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleWebfontsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleWebfontsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegoogleworkspaceadminreports.go b/internal/sdk/pkg/models/operations/putsourcegoogleworkspaceadminreports.go
old mode 100755
new mode 100644
index 91f795557..4abcd649c
--- a/internal/sdk/pkg/models/operations/putsourcegoogleworkspaceadminreports.go
+++ b/internal/sdk/pkg/models/operations/putsourcegoogleworkspaceadminreports.go
@@ -12,8 +12,46 @@ type PutSourceGoogleWorkspaceAdminReportsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGoogleWorkspaceAdminReportsRequest) GetSourceGoogleWorkspaceAdminReportsPutRequest() *shared.SourceGoogleWorkspaceAdminReportsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGoogleWorkspaceAdminReportsPutRequest
+}
+
+func (o *PutSourceGoogleWorkspaceAdminReportsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGoogleWorkspaceAdminReportsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGoogleWorkspaceAdminReportsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGoogleWorkspaceAdminReportsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGoogleWorkspaceAdminReportsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegreenhouse.go b/internal/sdk/pkg/models/operations/putsourcegreenhouse.go
old mode 100755
new mode 100644
index 31dcbf8ae..f3cd17982
--- a/internal/sdk/pkg/models/operations/putsourcegreenhouse.go
+++ b/internal/sdk/pkg/models/operations/putsourcegreenhouse.go
@@ -12,8 +12,46 @@ type PutSourceGreenhouseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGreenhouseRequest) GetSourceGreenhousePutRequest() *shared.SourceGreenhousePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGreenhousePutRequest
+}
+
+func (o *PutSourceGreenhouseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGreenhouseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGreenhouseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGreenhouseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGreenhouseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcegridly.go b/internal/sdk/pkg/models/operations/putsourcegridly.go
old mode 100755
new mode 100644
index 564fb9f55..438c7ffc0
--- a/internal/sdk/pkg/models/operations/putsourcegridly.go
+++ b/internal/sdk/pkg/models/operations/putsourcegridly.go
@@ -12,8 +12,46 @@ type PutSourceGridlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceGridlyRequest) GetSourceGridlyPutRequest() *shared.SourceGridlyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceGridlyPutRequest
+}
+
+func (o *PutSourceGridlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceGridlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceGridlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceGridlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceGridlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceharvest.go b/internal/sdk/pkg/models/operations/putsourceharvest.go
old mode 100755
new mode 100644
index 6207a4278..d668273cb
--- a/internal/sdk/pkg/models/operations/putsourceharvest.go
+++ b/internal/sdk/pkg/models/operations/putsourceharvest.go
@@ -12,8 +12,46 @@ type PutSourceHarvestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceHarvestRequest) GetSourceHarvestPutRequest() *shared.SourceHarvestPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceHarvestPutRequest
+}
+
+func (o *PutSourceHarvestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceHarvestResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceHarvestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceHarvestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceHarvestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcehubplanner.go b/internal/sdk/pkg/models/operations/putsourcehubplanner.go
old mode 100755
new mode 100644
index 7050006db..bf6cf7fa7
--- a/internal/sdk/pkg/models/operations/putsourcehubplanner.go
+++ b/internal/sdk/pkg/models/operations/putsourcehubplanner.go
@@ -12,8 +12,46 @@ type PutSourceHubplannerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceHubplannerRequest) GetSourceHubplannerPutRequest() *shared.SourceHubplannerPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceHubplannerPutRequest
+}
+
+func (o *PutSourceHubplannerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceHubplannerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceHubplannerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceHubplannerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceHubplannerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcehubspot.go b/internal/sdk/pkg/models/operations/putsourcehubspot.go
old mode 100755
new mode 100644
index 8870f9f47..6bc64b8bc
--- a/internal/sdk/pkg/models/operations/putsourcehubspot.go
+++ b/internal/sdk/pkg/models/operations/putsourcehubspot.go
@@ -12,8 +12,46 @@ type PutSourceHubspotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceHubspotRequest) GetSourceHubspotPutRequest() *shared.SourceHubspotPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceHubspotPutRequest
+}
+
+func (o *PutSourceHubspotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceHubspotResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceHubspotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceHubspotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceHubspotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceinsightly.go b/internal/sdk/pkg/models/operations/putsourceinsightly.go
old mode 100755
new mode 100644
index 6b1470472..d08862985
--- a/internal/sdk/pkg/models/operations/putsourceinsightly.go
+++ b/internal/sdk/pkg/models/operations/putsourceinsightly.go
@@ -12,8 +12,46 @@ type PutSourceInsightlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceInsightlyRequest) GetSourceInsightlyPutRequest() *shared.SourceInsightlyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceInsightlyPutRequest
+}
+
+func (o *PutSourceInsightlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceInsightlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceInsightlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceInsightlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceInsightlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceinstagram.go b/internal/sdk/pkg/models/operations/putsourceinstagram.go
old mode 100755
new mode 100644
index f0da785ec..427651c9d
--- a/internal/sdk/pkg/models/operations/putsourceinstagram.go
+++ b/internal/sdk/pkg/models/operations/putsourceinstagram.go
@@ -12,8 +12,46 @@ type PutSourceInstagramRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceInstagramRequest) GetSourceInstagramPutRequest() *shared.SourceInstagramPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceInstagramPutRequest
+}
+
+func (o *PutSourceInstagramRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceInstagramResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceInstagramResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceInstagramResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceInstagramResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceinstatus.go b/internal/sdk/pkg/models/operations/putsourceinstatus.go
old mode 100755
new mode 100644
index 362c1cc9d..b7227fe20
--- a/internal/sdk/pkg/models/operations/putsourceinstatus.go
+++ b/internal/sdk/pkg/models/operations/putsourceinstatus.go
@@ -12,8 +12,46 @@ type PutSourceInstatusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceInstatusRequest) GetSourceInstatusPutRequest() *shared.SourceInstatusPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceInstatusPutRequest
+}
+
+func (o *PutSourceInstatusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceInstatusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceInstatusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceInstatusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceInstatusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceintercom.go b/internal/sdk/pkg/models/operations/putsourceintercom.go
old mode 100755
new mode 100644
index 9ae3192b1..3f857f6da
--- a/internal/sdk/pkg/models/operations/putsourceintercom.go
+++ b/internal/sdk/pkg/models/operations/putsourceintercom.go
@@ -12,8 +12,46 @@ type PutSourceIntercomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceIntercomRequest) GetSourceIntercomPutRequest() *shared.SourceIntercomPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceIntercomPutRequest
+}
+
+func (o *PutSourceIntercomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceIntercomResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceIntercomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceIntercomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceIntercomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceip2whois.go b/internal/sdk/pkg/models/operations/putsourceip2whois.go
old mode 100755
new mode 100644
index d7108a94f..c5fad73b4
--- a/internal/sdk/pkg/models/operations/putsourceip2whois.go
+++ b/internal/sdk/pkg/models/operations/putsourceip2whois.go
@@ -12,8 +12,46 @@ type PutSourceIp2whoisRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceIp2whoisRequest) GetSourceIp2whoisPutRequest() *shared.SourceIp2whoisPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceIp2whoisPutRequest
+}
+
+func (o *PutSourceIp2whoisRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceIp2whoisResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceIp2whoisResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceIp2whoisResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceIp2whoisResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceiterable.go b/internal/sdk/pkg/models/operations/putsourceiterable.go
old mode 100755
new mode 100644
index 795eb16ec..f88e42646
--- a/internal/sdk/pkg/models/operations/putsourceiterable.go
+++ b/internal/sdk/pkg/models/operations/putsourceiterable.go
@@ -12,8 +12,46 @@ type PutSourceIterableRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceIterableRequest) GetSourceIterablePutRequest() *shared.SourceIterablePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceIterablePutRequest
+}
+
+func (o *PutSourceIterableRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceIterableResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceIterableResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceIterableResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceIterableResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcejira.go b/internal/sdk/pkg/models/operations/putsourcejira.go
old mode 100755
new mode 100644
index 0c88402a9..5f32bb79b
--- a/internal/sdk/pkg/models/operations/putsourcejira.go
+++ b/internal/sdk/pkg/models/operations/putsourcejira.go
@@ -12,8 +12,46 @@ type PutSourceJiraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceJiraRequest) GetSourceJiraPutRequest() *shared.SourceJiraPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceJiraPutRequest
+}
+
+func (o *PutSourceJiraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceJiraResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceJiraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceJiraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceJiraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcek6cloud.go b/internal/sdk/pkg/models/operations/putsourcek6cloud.go
old mode 100755
new mode 100644
index 8a4ebb87d..fb246863d
--- a/internal/sdk/pkg/models/operations/putsourcek6cloud.go
+++ b/internal/sdk/pkg/models/operations/putsourcek6cloud.go
@@ -12,8 +12,46 @@ type PutSourceK6CloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceK6CloudRequest) GetSourceK6CloudPutRequest() *shared.SourceK6CloudPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceK6CloudPutRequest
+}
+
+func (o *PutSourceK6CloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceK6CloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceK6CloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceK6CloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceK6CloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceklarna.go b/internal/sdk/pkg/models/operations/putsourceklarna.go
old mode 100755
new mode 100644
index 802c8b356..0cd5ee56f
--- a/internal/sdk/pkg/models/operations/putsourceklarna.go
+++ b/internal/sdk/pkg/models/operations/putsourceklarna.go
@@ -12,8 +12,46 @@ type PutSourceKlarnaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceKlarnaRequest) GetSourceKlarnaPutRequest() *shared.SourceKlarnaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceKlarnaPutRequest
+}
+
+func (o *PutSourceKlarnaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceKlarnaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceKlarnaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceKlarnaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceKlarnaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceklaviyo.go b/internal/sdk/pkg/models/operations/putsourceklaviyo.go
old mode 100755
new mode 100644
index 16da081c8..70183d065
--- a/internal/sdk/pkg/models/operations/putsourceklaviyo.go
+++ b/internal/sdk/pkg/models/operations/putsourceklaviyo.go
@@ -12,8 +12,46 @@ type PutSourceKlaviyoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceKlaviyoRequest) GetSourceKlaviyoPutRequest() *shared.SourceKlaviyoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceKlaviyoPutRequest
+}
+
+func (o *PutSourceKlaviyoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceKlaviyoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceKlaviyoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceKlaviyoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceKlaviyoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcekustomersinger.go b/internal/sdk/pkg/models/operations/putsourcekustomersinger.go
old mode 100755
new mode 100644
index c6e158ac0..a25b4b0ce
--- a/internal/sdk/pkg/models/operations/putsourcekustomersinger.go
+++ b/internal/sdk/pkg/models/operations/putsourcekustomersinger.go
@@ -12,8 +12,46 @@ type PutSourceKustomerSingerRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceKustomerSingerRequest) GetSourceKustomerSingerPutRequest() *shared.SourceKustomerSingerPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceKustomerSingerPutRequest
+}
+
+func (o *PutSourceKustomerSingerRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceKustomerSingerResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceKustomerSingerResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceKustomerSingerResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceKustomerSingerResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcekyve.go b/internal/sdk/pkg/models/operations/putsourcekyve.go
old mode 100755
new mode 100644
index 5403acb4e..bb65ae2d2
--- a/internal/sdk/pkg/models/operations/putsourcekyve.go
+++ b/internal/sdk/pkg/models/operations/putsourcekyve.go
@@ -12,8 +12,46 @@ type PutSourceKyveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceKyveRequest) GetSourceKyvePutRequest() *shared.SourceKyvePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceKyvePutRequest
+}
+
+func (o *PutSourceKyveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceKyveResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceKyveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceKyveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceKyveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelaunchdarkly.go b/internal/sdk/pkg/models/operations/putsourcelaunchdarkly.go
old mode 100755
new mode 100644
index 625bd652d..7c068c255
--- a/internal/sdk/pkg/models/operations/putsourcelaunchdarkly.go
+++ b/internal/sdk/pkg/models/operations/putsourcelaunchdarkly.go
@@ -12,8 +12,46 @@ type PutSourceLaunchdarklyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLaunchdarklyRequest) GetSourceLaunchdarklyPutRequest() *shared.SourceLaunchdarklyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLaunchdarklyPutRequest
+}
+
+func (o *PutSourceLaunchdarklyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLaunchdarklyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLaunchdarklyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLaunchdarklyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLaunchdarklyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelemlist.go b/internal/sdk/pkg/models/operations/putsourcelemlist.go
old mode 100755
new mode 100644
index df02e4ea3..6de13c99b
--- a/internal/sdk/pkg/models/operations/putsourcelemlist.go
+++ b/internal/sdk/pkg/models/operations/putsourcelemlist.go
@@ -12,8 +12,46 @@ type PutSourceLemlistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLemlistRequest) GetSourceLemlistPutRequest() *shared.SourceLemlistPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLemlistPutRequest
+}
+
+func (o *PutSourceLemlistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLemlistResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLemlistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLemlistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLemlistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceleverhiring.go b/internal/sdk/pkg/models/operations/putsourceleverhiring.go
old mode 100755
new mode 100644
index d25e996ce..e333ecae3
--- a/internal/sdk/pkg/models/operations/putsourceleverhiring.go
+++ b/internal/sdk/pkg/models/operations/putsourceleverhiring.go
@@ -12,8 +12,46 @@ type PutSourceLeverHiringRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLeverHiringRequest) GetSourceLeverHiringPutRequest() *shared.SourceLeverHiringPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLeverHiringPutRequest
+}
+
+func (o *PutSourceLeverHiringRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLeverHiringResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLeverHiringResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLeverHiringResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLeverHiringResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelinkedinads.go b/internal/sdk/pkg/models/operations/putsourcelinkedinads.go
old mode 100755
new mode 100644
index 35a309494..3a6340a84
--- a/internal/sdk/pkg/models/operations/putsourcelinkedinads.go
+++ b/internal/sdk/pkg/models/operations/putsourcelinkedinads.go
@@ -12,8 +12,46 @@ type PutSourceLinkedinAdsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLinkedinAdsRequest) GetSourceLinkedinAdsPutRequest() *shared.SourceLinkedinAdsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLinkedinAdsPutRequest
+}
+
+func (o *PutSourceLinkedinAdsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLinkedinAdsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLinkedinAdsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLinkedinAdsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLinkedinAdsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelinkedinpages.go b/internal/sdk/pkg/models/operations/putsourcelinkedinpages.go
old mode 100755
new mode 100644
index 6300f4882..2e41e9c29
--- a/internal/sdk/pkg/models/operations/putsourcelinkedinpages.go
+++ b/internal/sdk/pkg/models/operations/putsourcelinkedinpages.go
@@ -12,8 +12,46 @@ type PutSourceLinkedinPagesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLinkedinPagesRequest) GetSourceLinkedinPagesPutRequest() *shared.SourceLinkedinPagesPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLinkedinPagesPutRequest
+}
+
+func (o *PutSourceLinkedinPagesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLinkedinPagesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLinkedinPagesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLinkedinPagesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLinkedinPagesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelinnworks.go b/internal/sdk/pkg/models/operations/putsourcelinnworks.go
old mode 100755
new mode 100644
index f48b41fb4..8d99cb8cb
--- a/internal/sdk/pkg/models/operations/putsourcelinnworks.go
+++ b/internal/sdk/pkg/models/operations/putsourcelinnworks.go
@@ -12,8 +12,46 @@ type PutSourceLinnworksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLinnworksRequest) GetSourceLinnworksPutRequest() *shared.SourceLinnworksPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLinnworksPutRequest
+}
+
+func (o *PutSourceLinnworksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLinnworksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLinnworksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLinnworksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLinnworksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcelokalise.go b/internal/sdk/pkg/models/operations/putsourcelokalise.go
old mode 100755
new mode 100644
index a0e736903..6fb911498
--- a/internal/sdk/pkg/models/operations/putsourcelokalise.go
+++ b/internal/sdk/pkg/models/operations/putsourcelokalise.go
@@ -12,8 +12,46 @@ type PutSourceLokaliseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceLokaliseRequest) GetSourceLokalisePutRequest() *shared.SourceLokalisePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceLokalisePutRequest
+}
+
+func (o *PutSourceLokaliseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceLokaliseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceLokaliseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceLokaliseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceLokaliseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemailchimp.go b/internal/sdk/pkg/models/operations/putsourcemailchimp.go
old mode 100755
new mode 100644
index e87383f8f..a935005fc
--- a/internal/sdk/pkg/models/operations/putsourcemailchimp.go
+++ b/internal/sdk/pkg/models/operations/putsourcemailchimp.go
@@ -12,8 +12,46 @@ type PutSourceMailchimpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMailchimpRequest) GetSourceMailchimpPutRequest() *shared.SourceMailchimpPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMailchimpPutRequest
+}
+
+func (o *PutSourceMailchimpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMailchimpResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMailchimpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMailchimpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMailchimpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemailgun.go b/internal/sdk/pkg/models/operations/putsourcemailgun.go
old mode 100755
new mode 100644
index 0dfc5cd1a..c77681b13
--- a/internal/sdk/pkg/models/operations/putsourcemailgun.go
+++ b/internal/sdk/pkg/models/operations/putsourcemailgun.go
@@ -12,8 +12,46 @@ type PutSourceMailgunRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMailgunRequest) GetSourceMailgunPutRequest() *shared.SourceMailgunPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMailgunPutRequest
+}
+
+func (o *PutSourceMailgunRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMailgunResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMailgunResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMailgunResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMailgunResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemailjetsms.go b/internal/sdk/pkg/models/operations/putsourcemailjetsms.go
old mode 100755
new mode 100644
index 99cccbb74..402895154
--- a/internal/sdk/pkg/models/operations/putsourcemailjetsms.go
+++ b/internal/sdk/pkg/models/operations/putsourcemailjetsms.go
@@ -12,8 +12,46 @@ type PutSourceMailjetSmsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMailjetSmsRequest) GetSourceMailjetSmsPutRequest() *shared.SourceMailjetSmsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMailjetSmsPutRequest
+}
+
+func (o *PutSourceMailjetSmsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMailjetSmsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMailjetSmsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMailjetSmsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMailjetSmsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemarketo.go b/internal/sdk/pkg/models/operations/putsourcemarketo.go
old mode 100755
new mode 100644
index d6d8ec51f..620e9774b
--- a/internal/sdk/pkg/models/operations/putsourcemarketo.go
+++ b/internal/sdk/pkg/models/operations/putsourcemarketo.go
@@ -12,8 +12,46 @@ type PutSourceMarketoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMarketoRequest) GetSourceMarketoPutRequest() *shared.SourceMarketoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMarketoPutRequest
+}
+
+func (o *PutSourceMarketoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMarketoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMarketoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMarketoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMarketoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemetabase.go b/internal/sdk/pkg/models/operations/putsourcemetabase.go
old mode 100755
new mode 100644
index a055dc94b..1883aa441
--- a/internal/sdk/pkg/models/operations/putsourcemetabase.go
+++ b/internal/sdk/pkg/models/operations/putsourcemetabase.go
@@ -12,8 +12,46 @@ type PutSourceMetabaseRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMetabaseRequest) GetSourceMetabasePutRequest() *shared.SourceMetabasePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMetabasePutRequest
+}
+
+func (o *PutSourceMetabaseRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMetabaseResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMetabaseResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMetabaseResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMetabaseResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemicrosoftteams.go b/internal/sdk/pkg/models/operations/putsourcemicrosoftteams.go
old mode 100755
new mode 100644
index 716301786..7824d546c
--- a/internal/sdk/pkg/models/operations/putsourcemicrosoftteams.go
+++ b/internal/sdk/pkg/models/operations/putsourcemicrosoftteams.go
@@ -12,8 +12,46 @@ type PutSourceMicrosoftTeamsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMicrosoftTeamsRequest) GetSourceMicrosoftTeamsPutRequest() *shared.SourceMicrosoftTeamsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMicrosoftTeamsPutRequest
+}
+
+func (o *PutSourceMicrosoftTeamsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMicrosoftTeamsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMicrosoftTeamsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMicrosoftTeamsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMicrosoftTeamsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemixpanel.go b/internal/sdk/pkg/models/operations/putsourcemixpanel.go
old mode 100755
new mode 100644
index d9c6d33d0..2c30c5a26
--- a/internal/sdk/pkg/models/operations/putsourcemixpanel.go
+++ b/internal/sdk/pkg/models/operations/putsourcemixpanel.go
@@ -12,8 +12,46 @@ type PutSourceMixpanelRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMixpanelRequest) GetSourceMixpanelPutRequest() *shared.SourceMixpanelPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMixpanelPutRequest
+}
+
+func (o *PutSourceMixpanelRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMixpanelResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMixpanelResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMixpanelResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMixpanelResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemonday.go b/internal/sdk/pkg/models/operations/putsourcemonday.go
old mode 100755
new mode 100644
index 18fb6e355..c65b88ef3
--- a/internal/sdk/pkg/models/operations/putsourcemonday.go
+++ b/internal/sdk/pkg/models/operations/putsourcemonday.go
@@ -12,8 +12,46 @@ type PutSourceMondayRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMondayRequest) GetSourceMondayPutRequest() *shared.SourceMondayPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMondayPutRequest
+}
+
+func (o *PutSourceMondayRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMondayResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMondayResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMondayResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMondayResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemongodb.go b/internal/sdk/pkg/models/operations/putsourcemongodb.go
old mode 100755
new mode 100644
index b96fbb9ff..f80af90d6
--- a/internal/sdk/pkg/models/operations/putsourcemongodb.go
+++ b/internal/sdk/pkg/models/operations/putsourcemongodb.go
@@ -12,8 +12,46 @@ type PutSourceMongodbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMongodbRequest) GetSourceMongodbPutRequest() *shared.SourceMongodbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMongodbPutRequest
+}
+
+func (o *PutSourceMongodbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMongodbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMongodbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMongodbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMongodbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemongodbinternalpoc.go b/internal/sdk/pkg/models/operations/putsourcemongodbinternalpoc.go
old mode 100755
new mode 100644
index cef1f8751..702aaf34d
--- a/internal/sdk/pkg/models/operations/putsourcemongodbinternalpoc.go
+++ b/internal/sdk/pkg/models/operations/putsourcemongodbinternalpoc.go
@@ -12,8 +12,46 @@ type PutSourceMongodbInternalPocRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMongodbInternalPocRequest) GetSourceMongodbInternalPocPutRequest() *shared.SourceMongodbInternalPocPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMongodbInternalPocPutRequest
+}
+
+func (o *PutSourceMongodbInternalPocRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMongodbInternalPocResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMongodbInternalPocResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMongodbInternalPocResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMongodbInternalPocResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemssql.go b/internal/sdk/pkg/models/operations/putsourcemssql.go
old mode 100755
new mode 100644
index b0cd5fa33..fb074f010
--- a/internal/sdk/pkg/models/operations/putsourcemssql.go
+++ b/internal/sdk/pkg/models/operations/putsourcemssql.go
@@ -12,8 +12,46 @@ type PutSourceMssqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMssqlRequest) GetSourceMssqlPutRequest() *shared.SourceMssqlPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMssqlPutRequest
+}
+
+func (o *PutSourceMssqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMssqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMssqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMssqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMssqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemyhours.go b/internal/sdk/pkg/models/operations/putsourcemyhours.go
old mode 100755
new mode 100644
index e3bf85883..372df8069
--- a/internal/sdk/pkg/models/operations/putsourcemyhours.go
+++ b/internal/sdk/pkg/models/operations/putsourcemyhours.go
@@ -12,8 +12,46 @@ type PutSourceMyHoursRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMyHoursRequest) GetSourceMyHoursPutRequest() *shared.SourceMyHoursPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMyHoursPutRequest
+}
+
+func (o *PutSourceMyHoursRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMyHoursResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMyHoursResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMyHoursResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMyHoursResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcemysql.go b/internal/sdk/pkg/models/operations/putsourcemysql.go
old mode 100755
new mode 100644
index abb7bd8d6..f7cbc9cdf
--- a/internal/sdk/pkg/models/operations/putsourcemysql.go
+++ b/internal/sdk/pkg/models/operations/putsourcemysql.go
@@ -12,8 +12,46 @@ type PutSourceMysqlRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceMysqlRequest) GetSourceMysqlPutRequest() *shared.SourceMysqlPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceMysqlPutRequest
+}
+
+func (o *PutSourceMysqlRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceMysqlResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceMysqlResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceMysqlResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceMysqlResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcenetsuite.go b/internal/sdk/pkg/models/operations/putsourcenetsuite.go
old mode 100755
new mode 100644
index 21b52913c..1d8ebea54
--- a/internal/sdk/pkg/models/operations/putsourcenetsuite.go
+++ b/internal/sdk/pkg/models/operations/putsourcenetsuite.go
@@ -12,8 +12,46 @@ type PutSourceNetsuiteRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceNetsuiteRequest) GetSourceNetsuitePutRequest() *shared.SourceNetsuitePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceNetsuitePutRequest
+}
+
+func (o *PutSourceNetsuiteRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceNetsuiteResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceNetsuiteResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceNetsuiteResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceNetsuiteResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcenotion.go b/internal/sdk/pkg/models/operations/putsourcenotion.go
old mode 100755
new mode 100644
index 36ef47ff9..f30548d9c
--- a/internal/sdk/pkg/models/operations/putsourcenotion.go
+++ b/internal/sdk/pkg/models/operations/putsourcenotion.go
@@ -12,8 +12,46 @@ type PutSourceNotionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceNotionRequest) GetSourceNotionPutRequest() *shared.SourceNotionPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceNotionPutRequest
+}
+
+func (o *PutSourceNotionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceNotionResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceNotionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceNotionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceNotionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcenytimes.go b/internal/sdk/pkg/models/operations/putsourcenytimes.go
old mode 100755
new mode 100644
index 1fccb87d8..360254868
--- a/internal/sdk/pkg/models/operations/putsourcenytimes.go
+++ b/internal/sdk/pkg/models/operations/putsourcenytimes.go
@@ -12,8 +12,46 @@ type PutSourceNytimesRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceNytimesRequest) GetSourceNytimesPutRequest() *shared.SourceNytimesPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceNytimesPutRequest
+}
+
+func (o *PutSourceNytimesRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceNytimesResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceNytimesResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceNytimesResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceNytimesResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceokta.go b/internal/sdk/pkg/models/operations/putsourceokta.go
old mode 100755
new mode 100644
index a89fc86da..b58899cb8
--- a/internal/sdk/pkg/models/operations/putsourceokta.go
+++ b/internal/sdk/pkg/models/operations/putsourceokta.go
@@ -12,8 +12,46 @@ type PutSourceOktaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOktaRequest) GetSourceOktaPutRequest() *shared.SourceOktaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOktaPutRequest
+}
+
+func (o *PutSourceOktaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOktaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOktaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOktaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOktaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceomnisend.go b/internal/sdk/pkg/models/operations/putsourceomnisend.go
old mode 100755
new mode 100644
index ed714a3c2..2ea483363
--- a/internal/sdk/pkg/models/operations/putsourceomnisend.go
+++ b/internal/sdk/pkg/models/operations/putsourceomnisend.go
@@ -12,8 +12,46 @@ type PutSourceOmnisendRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOmnisendRequest) GetSourceOmnisendPutRequest() *shared.SourceOmnisendPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOmnisendPutRequest
+}
+
+func (o *PutSourceOmnisendRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOmnisendResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOmnisendResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOmnisendResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOmnisendResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceonesignal.go b/internal/sdk/pkg/models/operations/putsourceonesignal.go
old mode 100755
new mode 100644
index d99b65e44..f60d97a08
--- a/internal/sdk/pkg/models/operations/putsourceonesignal.go
+++ b/internal/sdk/pkg/models/operations/putsourceonesignal.go
@@ -12,8 +12,46 @@ type PutSourceOnesignalRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOnesignalRequest) GetSourceOnesignalPutRequest() *shared.SourceOnesignalPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOnesignalPutRequest
+}
+
+func (o *PutSourceOnesignalRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOnesignalResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOnesignalResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOnesignalResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOnesignalResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceoracle.go b/internal/sdk/pkg/models/operations/putsourceoracle.go
old mode 100755
new mode 100644
index 18522254a..395a74c68
--- a/internal/sdk/pkg/models/operations/putsourceoracle.go
+++ b/internal/sdk/pkg/models/operations/putsourceoracle.go
@@ -12,8 +12,46 @@ type PutSourceOracleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOracleRequest) GetSourceOraclePutRequest() *shared.SourceOraclePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOraclePutRequest
+}
+
+func (o *PutSourceOracleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOracleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOracleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOracleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOracleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceorb.go b/internal/sdk/pkg/models/operations/putsourceorb.go
old mode 100755
new mode 100644
index 4caf99021..119f399ce
--- a/internal/sdk/pkg/models/operations/putsourceorb.go
+++ b/internal/sdk/pkg/models/operations/putsourceorb.go
@@ -12,8 +12,46 @@ type PutSourceOrbRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOrbRequest) GetSourceOrbPutRequest() *shared.SourceOrbPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOrbPutRequest
+}
+
+func (o *PutSourceOrbRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOrbResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOrbResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOrbResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOrbResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceorbit.go b/internal/sdk/pkg/models/operations/putsourceorbit.go
old mode 100755
new mode 100644
index 66507b641..788d5a387
--- a/internal/sdk/pkg/models/operations/putsourceorbit.go
+++ b/internal/sdk/pkg/models/operations/putsourceorbit.go
@@ -12,8 +12,46 @@ type PutSourceOrbitRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOrbitRequest) GetSourceOrbitPutRequest() *shared.SourceOrbitPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOrbitPutRequest
+}
+
+func (o *PutSourceOrbitRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOrbitResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOrbitResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOrbitResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOrbitResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceoutbrainamplify.go b/internal/sdk/pkg/models/operations/putsourceoutbrainamplify.go
old mode 100755
new mode 100644
index ce9b70764..68f4756c0
--- a/internal/sdk/pkg/models/operations/putsourceoutbrainamplify.go
+++ b/internal/sdk/pkg/models/operations/putsourceoutbrainamplify.go
@@ -12,8 +12,46 @@ type PutSourceOutbrainAmplifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOutbrainAmplifyRequest) GetSourceOutbrainAmplifyPutRequest() *shared.SourceOutbrainAmplifyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOutbrainAmplifyPutRequest
+}
+
+func (o *PutSourceOutbrainAmplifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOutbrainAmplifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOutbrainAmplifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOutbrainAmplifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOutbrainAmplifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceoutreach.go b/internal/sdk/pkg/models/operations/putsourceoutreach.go
old mode 100755
new mode 100644
index 05a0e8dd6..abd5f3006
--- a/internal/sdk/pkg/models/operations/putsourceoutreach.go
+++ b/internal/sdk/pkg/models/operations/putsourceoutreach.go
@@ -12,8 +12,46 @@ type PutSourceOutreachRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceOutreachRequest) GetSourceOutreachPutRequest() *shared.SourceOutreachPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceOutreachPutRequest
+}
+
+func (o *PutSourceOutreachRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceOutreachResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceOutreachResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceOutreachResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceOutreachResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepaypaltransaction.go b/internal/sdk/pkg/models/operations/putsourcepaypaltransaction.go
old mode 100755
new mode 100644
index 56bf1e602..9fefdca0c
--- a/internal/sdk/pkg/models/operations/putsourcepaypaltransaction.go
+++ b/internal/sdk/pkg/models/operations/putsourcepaypaltransaction.go
@@ -12,8 +12,46 @@ type PutSourcePaypalTransactionRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePaypalTransactionRequest) GetSourcePaypalTransactionPutRequest() *shared.SourcePaypalTransactionPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePaypalTransactionPutRequest
+}
+
+func (o *PutSourcePaypalTransactionRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePaypalTransactionResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePaypalTransactionResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePaypalTransactionResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePaypalTransactionResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepaystack.go b/internal/sdk/pkg/models/operations/putsourcepaystack.go
old mode 100755
new mode 100644
index 98fe02e22..5beaa2ce2
--- a/internal/sdk/pkg/models/operations/putsourcepaystack.go
+++ b/internal/sdk/pkg/models/operations/putsourcepaystack.go
@@ -12,8 +12,46 @@ type PutSourcePaystackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePaystackRequest) GetSourcePaystackPutRequest() *shared.SourcePaystackPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePaystackPutRequest
+}
+
+func (o *PutSourcePaystackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePaystackResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePaystackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePaystackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePaystackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcependo.go b/internal/sdk/pkg/models/operations/putsourcependo.go
old mode 100755
new mode 100644
index dc7b5aea3..531e74bc1
--- a/internal/sdk/pkg/models/operations/putsourcependo.go
+++ b/internal/sdk/pkg/models/operations/putsourcependo.go
@@ -12,8 +12,46 @@ type PutSourcePendoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePendoRequest) GetSourcePendoPutRequest() *shared.SourcePendoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePendoPutRequest
+}
+
+func (o *PutSourcePendoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePendoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePendoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePendoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePendoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepersistiq.go b/internal/sdk/pkg/models/operations/putsourcepersistiq.go
old mode 100755
new mode 100644
index d9d47f8ca..6ef4b2360
--- a/internal/sdk/pkg/models/operations/putsourcepersistiq.go
+++ b/internal/sdk/pkg/models/operations/putsourcepersistiq.go
@@ -12,8 +12,46 @@ type PutSourcePersistiqRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePersistiqRequest) GetSourcePersistiqPutRequest() *shared.SourcePersistiqPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePersistiqPutRequest
+}
+
+func (o *PutSourcePersistiqRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePersistiqResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePersistiqResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePersistiqResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePersistiqResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepexelsapi.go b/internal/sdk/pkg/models/operations/putsourcepexelsapi.go
old mode 100755
new mode 100644
index 79e0449a2..cff9bee39
--- a/internal/sdk/pkg/models/operations/putsourcepexelsapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcepexelsapi.go
@@ -12,8 +12,46 @@ type PutSourcePexelsAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePexelsAPIRequest) GetSourcePexelsAPIPutRequest() *shared.SourcePexelsAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePexelsAPIPutRequest
+}
+
+func (o *PutSourcePexelsAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePexelsAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePexelsAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePexelsAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePexelsAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepinterest.go b/internal/sdk/pkg/models/operations/putsourcepinterest.go
old mode 100755
new mode 100644
index 21f9153f6..39458c15d
--- a/internal/sdk/pkg/models/operations/putsourcepinterest.go
+++ b/internal/sdk/pkg/models/operations/putsourcepinterest.go
@@ -12,8 +12,46 @@ type PutSourcePinterestRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePinterestRequest) GetSourcePinterestPutRequest() *shared.SourcePinterestPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePinterestPutRequest
+}
+
+func (o *PutSourcePinterestRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePinterestResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePinterestResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePinterestResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePinterestResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepipedrive.go b/internal/sdk/pkg/models/operations/putsourcepipedrive.go
old mode 100755
new mode 100644
index 38bc7d844..dff9f4208
--- a/internal/sdk/pkg/models/operations/putsourcepipedrive.go
+++ b/internal/sdk/pkg/models/operations/putsourcepipedrive.go
@@ -12,8 +12,46 @@ type PutSourcePipedriveRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePipedriveRequest) GetSourcePipedrivePutRequest() *shared.SourcePipedrivePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePipedrivePutRequest
+}
+
+func (o *PutSourcePipedriveRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePipedriveResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePipedriveResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePipedriveResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePipedriveResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepocket.go b/internal/sdk/pkg/models/operations/putsourcepocket.go
old mode 100755
new mode 100644
index d59991d12..2c0151261
--- a/internal/sdk/pkg/models/operations/putsourcepocket.go
+++ b/internal/sdk/pkg/models/operations/putsourcepocket.go
@@ -12,8 +12,46 @@ type PutSourcePocketRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePocketRequest) GetSourcePocketPutRequest() *shared.SourcePocketPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePocketPutRequest
+}
+
+func (o *PutSourcePocketRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePocketResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePocketResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePocketResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePocketResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepokeapi.go b/internal/sdk/pkg/models/operations/putsourcepokeapi.go
old mode 100755
new mode 100644
index 185898eb9..1e7d66021
--- a/internal/sdk/pkg/models/operations/putsourcepokeapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcepokeapi.go
@@ -12,8 +12,46 @@ type PutSourcePokeapiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePokeapiRequest) GetSourcePokeapiPutRequest() *shared.SourcePokeapiPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePokeapiPutRequest
+}
+
+func (o *PutSourcePokeapiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePokeapiResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePokeapiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePokeapiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePokeapiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepolygonstockapi.go b/internal/sdk/pkg/models/operations/putsourcepolygonstockapi.go
old mode 100755
new mode 100644
index 34e8b8695..73f19b836
--- a/internal/sdk/pkg/models/operations/putsourcepolygonstockapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcepolygonstockapi.go
@@ -12,8 +12,46 @@ type PutSourcePolygonStockAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePolygonStockAPIRequest) GetSourcePolygonStockAPIPutRequest() *shared.SourcePolygonStockAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePolygonStockAPIPutRequest
+}
+
+func (o *PutSourcePolygonStockAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePolygonStockAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePolygonStockAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePolygonStockAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePolygonStockAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepostgres.go b/internal/sdk/pkg/models/operations/putsourcepostgres.go
old mode 100755
new mode 100644
index 087f95b58..a00916bfc
--- a/internal/sdk/pkg/models/operations/putsourcepostgres.go
+++ b/internal/sdk/pkg/models/operations/putsourcepostgres.go
@@ -12,8 +12,46 @@ type PutSourcePostgresRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePostgresRequest) GetSourcePostgresPutRequest() *shared.SourcePostgresPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePostgresPutRequest
+}
+
+func (o *PutSourcePostgresRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePostgresResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePostgresResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePostgresResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePostgresResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceposthog.go b/internal/sdk/pkg/models/operations/putsourceposthog.go
old mode 100755
new mode 100644
index 70f1ae004..c8d9a8ad6
--- a/internal/sdk/pkg/models/operations/putsourceposthog.go
+++ b/internal/sdk/pkg/models/operations/putsourceposthog.go
@@ -12,8 +12,46 @@ type PutSourcePosthogRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePosthogRequest) GetSourcePosthogPutRequest() *shared.SourcePosthogPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePosthogPutRequest
+}
+
+func (o *PutSourcePosthogRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePosthogResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePosthogResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePosthogResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePosthogResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepostmarkapp.go b/internal/sdk/pkg/models/operations/putsourcepostmarkapp.go
old mode 100755
new mode 100644
index 9231c275e..d27d4f397
--- a/internal/sdk/pkg/models/operations/putsourcepostmarkapp.go
+++ b/internal/sdk/pkg/models/operations/putsourcepostmarkapp.go
@@ -12,8 +12,46 @@ type PutSourcePostmarkappRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePostmarkappRequest) GetSourcePostmarkappPutRequest() *shared.SourcePostmarkappPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePostmarkappPutRequest
+}
+
+func (o *PutSourcePostmarkappRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePostmarkappResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePostmarkappResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePostmarkappResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePostmarkappResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceprestashop.go b/internal/sdk/pkg/models/operations/putsourceprestashop.go
old mode 100755
new mode 100644
index 7b4528eee..e3d997398
--- a/internal/sdk/pkg/models/operations/putsourceprestashop.go
+++ b/internal/sdk/pkg/models/operations/putsourceprestashop.go
@@ -12,8 +12,46 @@ type PutSourcePrestashopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePrestashopRequest) GetSourcePrestashopPutRequest() *shared.SourcePrestashopPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePrestashopPutRequest
+}
+
+func (o *PutSourcePrestashopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePrestashopResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePrestashopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePrestashopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePrestashopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepunkapi.go b/internal/sdk/pkg/models/operations/putsourcepunkapi.go
old mode 100755
new mode 100644
index a5e1ec93c..ff485980c
--- a/internal/sdk/pkg/models/operations/putsourcepunkapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcepunkapi.go
@@ -12,8 +12,46 @@ type PutSourcePunkAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePunkAPIRequest) GetSourcePunkAPIPutRequest() *shared.SourcePunkAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePunkAPIPutRequest
+}
+
+func (o *PutSourcePunkAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePunkAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePunkAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePunkAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePunkAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcepypi.go b/internal/sdk/pkg/models/operations/putsourcepypi.go
old mode 100755
new mode 100644
index e1f23ce47..760e28ad9
--- a/internal/sdk/pkg/models/operations/putsourcepypi.go
+++ b/internal/sdk/pkg/models/operations/putsourcepypi.go
@@ -12,8 +12,46 @@ type PutSourcePypiRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourcePypiRequest) GetSourcePypiPutRequest() *shared.SourcePypiPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourcePypiPutRequest
+}
+
+func (o *PutSourcePypiRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourcePypiResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourcePypiResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourcePypiResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourcePypiResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcequalaroo.go b/internal/sdk/pkg/models/operations/putsourcequalaroo.go
old mode 100755
new mode 100644
index ed96b0fb8..700997e79
--- a/internal/sdk/pkg/models/operations/putsourcequalaroo.go
+++ b/internal/sdk/pkg/models/operations/putsourcequalaroo.go
@@ -12,8 +12,46 @@ type PutSourceQualarooRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceQualarooRequest) GetSourceQualarooPutRequest() *shared.SourceQualarooPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceQualarooPutRequest
+}
+
+func (o *PutSourceQualarooRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceQualarooResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceQualarooResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceQualarooResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceQualarooResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcequickbooks.go b/internal/sdk/pkg/models/operations/putsourcequickbooks.go
old mode 100755
new mode 100644
index be5e0ede8..cef3ad1ac
--- a/internal/sdk/pkg/models/operations/putsourcequickbooks.go
+++ b/internal/sdk/pkg/models/operations/putsourcequickbooks.go
@@ -12,8 +12,46 @@ type PutSourceQuickbooksRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceQuickbooksRequest) GetSourceQuickbooksPutRequest() *shared.SourceQuickbooksPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceQuickbooksPutRequest
+}
+
+func (o *PutSourceQuickbooksRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceQuickbooksResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceQuickbooksResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceQuickbooksResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceQuickbooksResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerailz.go b/internal/sdk/pkg/models/operations/putsourcerailz.go
old mode 100755
new mode 100644
index f885f6d34..3bd075509
--- a/internal/sdk/pkg/models/operations/putsourcerailz.go
+++ b/internal/sdk/pkg/models/operations/putsourcerailz.go
@@ -12,8 +12,46 @@ type PutSourceRailzRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRailzRequest) GetSourceRailzPutRequest() *shared.SourceRailzPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRailzPutRequest
+}
+
+func (o *PutSourceRailzRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRailzResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRailzResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRailzResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRailzResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerecharge.go b/internal/sdk/pkg/models/operations/putsourcerecharge.go
old mode 100755
new mode 100644
index 729241379..681286eeb
--- a/internal/sdk/pkg/models/operations/putsourcerecharge.go
+++ b/internal/sdk/pkg/models/operations/putsourcerecharge.go
@@ -12,8 +12,46 @@ type PutSourceRechargeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRechargeRequest) GetSourceRechargePutRequest() *shared.SourceRechargePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRechargePutRequest
+}
+
+func (o *PutSourceRechargeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRechargeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRechargeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRechargeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRechargeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerecreation.go b/internal/sdk/pkg/models/operations/putsourcerecreation.go
old mode 100755
new mode 100644
index 6410312de..ae7d9ae59
--- a/internal/sdk/pkg/models/operations/putsourcerecreation.go
+++ b/internal/sdk/pkg/models/operations/putsourcerecreation.go
@@ -12,8 +12,46 @@ type PutSourceRecreationRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRecreationRequest) GetSourceRecreationPutRequest() *shared.SourceRecreationPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRecreationPutRequest
+}
+
+func (o *PutSourceRecreationRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRecreationResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRecreationResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRecreationResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRecreationResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerecruitee.go b/internal/sdk/pkg/models/operations/putsourcerecruitee.go
old mode 100755
new mode 100644
index 0ceef43de..06eaa48d7
--- a/internal/sdk/pkg/models/operations/putsourcerecruitee.go
+++ b/internal/sdk/pkg/models/operations/putsourcerecruitee.go
@@ -12,8 +12,46 @@ type PutSourceRecruiteeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRecruiteeRequest) GetSourceRecruiteePutRequest() *shared.SourceRecruiteePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRecruiteePutRequest
+}
+
+func (o *PutSourceRecruiteeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRecruiteeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRecruiteeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRecruiteeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRecruiteeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerecurly.go b/internal/sdk/pkg/models/operations/putsourcerecurly.go
old mode 100755
new mode 100644
index 88436f1cd..ec6d6bfcd
--- a/internal/sdk/pkg/models/operations/putsourcerecurly.go
+++ b/internal/sdk/pkg/models/operations/putsourcerecurly.go
@@ -12,8 +12,46 @@ type PutSourceRecurlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRecurlyRequest) GetSourceRecurlyPutRequest() *shared.SourceRecurlyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRecurlyPutRequest
+}
+
+func (o *PutSourceRecurlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRecurlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRecurlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRecurlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRecurlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceredshift.go b/internal/sdk/pkg/models/operations/putsourceredshift.go
old mode 100755
new mode 100644
index 07ccded5e..c2ac8b518
--- a/internal/sdk/pkg/models/operations/putsourceredshift.go
+++ b/internal/sdk/pkg/models/operations/putsourceredshift.go
@@ -12,8 +12,46 @@ type PutSourceRedshiftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRedshiftRequest) GetSourceRedshiftPutRequest() *shared.SourceRedshiftPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRedshiftPutRequest
+}
+
+func (o *PutSourceRedshiftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRedshiftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRedshiftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRedshiftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRedshiftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceretently.go b/internal/sdk/pkg/models/operations/putsourceretently.go
old mode 100755
new mode 100644
index ef3ac0f57..17f1198e7
--- a/internal/sdk/pkg/models/operations/putsourceretently.go
+++ b/internal/sdk/pkg/models/operations/putsourceretently.go
@@ -12,8 +12,46 @@ type PutSourceRetentlyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRetentlyRequest) GetSourceRetentlyPutRequest() *shared.SourceRetentlyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRetentlyPutRequest
+}
+
+func (o *PutSourceRetentlyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRetentlyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRetentlyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRetentlyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRetentlyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerkicovid.go b/internal/sdk/pkg/models/operations/putsourcerkicovid.go
old mode 100755
new mode 100644
index 98106a8ca..584ecc5f5
--- a/internal/sdk/pkg/models/operations/putsourcerkicovid.go
+++ b/internal/sdk/pkg/models/operations/putsourcerkicovid.go
@@ -12,8 +12,46 @@ type PutSourceRkiCovidRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRkiCovidRequest) GetSourceRkiCovidPutRequest() *shared.SourceRkiCovidPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRkiCovidPutRequest
+}
+
+func (o *PutSourceRkiCovidRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRkiCovidResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRkiCovidResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRkiCovidResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRkiCovidResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcerss.go b/internal/sdk/pkg/models/operations/putsourcerss.go
old mode 100755
new mode 100644
index d072cd726..f7ba89866
--- a/internal/sdk/pkg/models/operations/putsourcerss.go
+++ b/internal/sdk/pkg/models/operations/putsourcerss.go
@@ -12,8 +12,46 @@ type PutSourceRssRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceRssRequest) GetSourceRssPutRequest() *shared.SourceRssPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceRssPutRequest
+}
+
+func (o *PutSourceRssRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceRssResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceRssResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceRssResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceRssResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsources3.go b/internal/sdk/pkg/models/operations/putsources3.go
old mode 100755
new mode 100644
index cece454c5..a77826d78
--- a/internal/sdk/pkg/models/operations/putsources3.go
+++ b/internal/sdk/pkg/models/operations/putsources3.go
@@ -12,8 +12,46 @@ type PutSourceS3Request struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceS3Request) GetSourceS3PutRequest() *shared.SourceS3PutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceS3PutRequest
+}
+
+func (o *PutSourceS3Request) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceS3Response struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceS3Response) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceS3Response) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceS3Response) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesalesforce.go b/internal/sdk/pkg/models/operations/putsourcesalesforce.go
old mode 100755
new mode 100644
index 047314162..3af09cf5a
--- a/internal/sdk/pkg/models/operations/putsourcesalesforce.go
+++ b/internal/sdk/pkg/models/operations/putsourcesalesforce.go
@@ -12,8 +12,46 @@ type PutSourceSalesforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSalesforceRequest) GetSourceSalesforcePutRequest() *shared.SourceSalesforcePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSalesforcePutRequest
+}
+
+func (o *PutSourceSalesforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSalesforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSalesforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSalesforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSalesforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesalesloft.go b/internal/sdk/pkg/models/operations/putsourcesalesloft.go
old mode 100755
new mode 100644
index 87d305c97..5360a15db
--- a/internal/sdk/pkg/models/operations/putsourcesalesloft.go
+++ b/internal/sdk/pkg/models/operations/putsourcesalesloft.go
@@ -12,8 +12,46 @@ type PutSourceSalesloftRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSalesloftRequest) GetSourceSalesloftPutRequest() *shared.SourceSalesloftPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSalesloftPutRequest
+}
+
+func (o *PutSourceSalesloftRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSalesloftResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSalesloftResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSalesloftResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSalesloftResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesapfieldglass.go b/internal/sdk/pkg/models/operations/putsourcesapfieldglass.go
old mode 100755
new mode 100644
index ce1606bdf..8499aba6e
--- a/internal/sdk/pkg/models/operations/putsourcesapfieldglass.go
+++ b/internal/sdk/pkg/models/operations/putsourcesapfieldglass.go
@@ -12,8 +12,46 @@ type PutSourceSapFieldglassRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSapFieldglassRequest) GetSourceSapFieldglassPutRequest() *shared.SourceSapFieldglassPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSapFieldglassPutRequest
+}
+
+func (o *PutSourceSapFieldglassRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSapFieldglassResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSapFieldglassResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSapFieldglassResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSapFieldglassResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesecoda.go b/internal/sdk/pkg/models/operations/putsourcesecoda.go
old mode 100755
new mode 100644
index 37b7b0547..9807cd8c3
--- a/internal/sdk/pkg/models/operations/putsourcesecoda.go
+++ b/internal/sdk/pkg/models/operations/putsourcesecoda.go
@@ -12,8 +12,46 @@ type PutSourceSecodaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSecodaRequest) GetSourceSecodaPutRequest() *shared.SourceSecodaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSecodaPutRequest
+}
+
+func (o *PutSourceSecodaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSecodaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSecodaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSecodaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSecodaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesendgrid.go b/internal/sdk/pkg/models/operations/putsourcesendgrid.go
old mode 100755
new mode 100644
index af3571be8..689ca7a9f
--- a/internal/sdk/pkg/models/operations/putsourcesendgrid.go
+++ b/internal/sdk/pkg/models/operations/putsourcesendgrid.go
@@ -12,8 +12,46 @@ type PutSourceSendgridRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSendgridRequest) GetSourceSendgridPutRequest() *shared.SourceSendgridPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSendgridPutRequest
+}
+
+func (o *PutSourceSendgridRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSendgridResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSendgridResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSendgridResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSendgridResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesendinblue.go b/internal/sdk/pkg/models/operations/putsourcesendinblue.go
old mode 100755
new mode 100644
index 74963f352..f86d129ee
--- a/internal/sdk/pkg/models/operations/putsourcesendinblue.go
+++ b/internal/sdk/pkg/models/operations/putsourcesendinblue.go
@@ -12,8 +12,46 @@ type PutSourceSendinblueRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSendinblueRequest) GetSourceSendinbluePutRequest() *shared.SourceSendinbluePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSendinbluePutRequest
+}
+
+func (o *PutSourceSendinblueRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSendinblueResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSendinblueResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSendinblueResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSendinblueResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesenseforce.go b/internal/sdk/pkg/models/operations/putsourcesenseforce.go
old mode 100755
new mode 100644
index 20c05ec1f..a422222e6
--- a/internal/sdk/pkg/models/operations/putsourcesenseforce.go
+++ b/internal/sdk/pkg/models/operations/putsourcesenseforce.go
@@ -12,8 +12,46 @@ type PutSourceSenseforceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSenseforceRequest) GetSourceSenseforcePutRequest() *shared.SourceSenseforcePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSenseforcePutRequest
+}
+
+func (o *PutSourceSenseforceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSenseforceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSenseforceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSenseforceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSenseforceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesentry.go b/internal/sdk/pkg/models/operations/putsourcesentry.go
old mode 100755
new mode 100644
index ebe57e962..6b7b07948
--- a/internal/sdk/pkg/models/operations/putsourcesentry.go
+++ b/internal/sdk/pkg/models/operations/putsourcesentry.go
@@ -12,8 +12,46 @@ type PutSourceSentryRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSentryRequest) GetSourceSentryPutRequest() *shared.SourceSentryPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSentryPutRequest
+}
+
+func (o *PutSourceSentryRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSentryResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSentryResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSentryResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSentryResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesftp.go b/internal/sdk/pkg/models/operations/putsourcesftp.go
old mode 100755
new mode 100644
index 7f4af3837..6dcaae83a
--- a/internal/sdk/pkg/models/operations/putsourcesftp.go
+++ b/internal/sdk/pkg/models/operations/putsourcesftp.go
@@ -12,8 +12,46 @@ type PutSourceSftpRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSftpRequest) GetSourceSftpPutRequest() *shared.SourceSftpPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSftpPutRequest
+}
+
+func (o *PutSourceSftpRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSftpResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSftpResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSftpResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSftpResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesftpbulk.go b/internal/sdk/pkg/models/operations/putsourcesftpbulk.go
old mode 100755
new mode 100644
index e8eac5608..be27442d3
--- a/internal/sdk/pkg/models/operations/putsourcesftpbulk.go
+++ b/internal/sdk/pkg/models/operations/putsourcesftpbulk.go
@@ -12,8 +12,46 @@ type PutSourceSftpBulkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSftpBulkRequest) GetSourceSftpBulkPutRequest() *shared.SourceSftpBulkPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSftpBulkPutRequest
+}
+
+func (o *PutSourceSftpBulkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSftpBulkResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSftpBulkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSftpBulkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSftpBulkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceshopify.go b/internal/sdk/pkg/models/operations/putsourceshopify.go
old mode 100755
new mode 100644
index e0911192f..ed299ba0e
--- a/internal/sdk/pkg/models/operations/putsourceshopify.go
+++ b/internal/sdk/pkg/models/operations/putsourceshopify.go
@@ -12,8 +12,46 @@ type PutSourceShopifyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceShopifyRequest) GetSourceShopifyPutRequest() *shared.SourceShopifyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceShopifyPutRequest
+}
+
+func (o *PutSourceShopifyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceShopifyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceShopifyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceShopifyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceShopifyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceshortio.go b/internal/sdk/pkg/models/operations/putsourceshortio.go
old mode 100755
new mode 100644
index 2e7b54860..bbf339113
--- a/internal/sdk/pkg/models/operations/putsourceshortio.go
+++ b/internal/sdk/pkg/models/operations/putsourceshortio.go
@@ -12,8 +12,46 @@ type PutSourceShortioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceShortioRequest) GetSourceShortioPutRequest() *shared.SourceShortioPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceShortioPutRequest
+}
+
+func (o *PutSourceShortioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceShortioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceShortioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceShortioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceShortioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceslack.go b/internal/sdk/pkg/models/operations/putsourceslack.go
old mode 100755
new mode 100644
index 0b01e6468..33067435d
--- a/internal/sdk/pkg/models/operations/putsourceslack.go
+++ b/internal/sdk/pkg/models/operations/putsourceslack.go
@@ -12,8 +12,46 @@ type PutSourceSlackRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSlackRequest) GetSourceSlackPutRequest() *shared.SourceSlackPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSlackPutRequest
+}
+
+func (o *PutSourceSlackRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSlackResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSlackResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSlackResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSlackResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesmaily.go b/internal/sdk/pkg/models/operations/putsourcesmaily.go
old mode 100755
new mode 100644
index 116907f12..930b1563c
--- a/internal/sdk/pkg/models/operations/putsourcesmaily.go
+++ b/internal/sdk/pkg/models/operations/putsourcesmaily.go
@@ -12,8 +12,46 @@ type PutSourceSmailyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSmailyRequest) GetSourceSmailyPutRequest() *shared.SourceSmailyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSmailyPutRequest
+}
+
+func (o *PutSourceSmailyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSmailyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSmailyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSmailyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSmailyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesmartengage.go b/internal/sdk/pkg/models/operations/putsourcesmartengage.go
old mode 100755
new mode 100644
index 8cb744fd8..585d8106b
--- a/internal/sdk/pkg/models/operations/putsourcesmartengage.go
+++ b/internal/sdk/pkg/models/operations/putsourcesmartengage.go
@@ -12,8 +12,46 @@ type PutSourceSmartengageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSmartengageRequest) GetSourceSmartengagePutRequest() *shared.SourceSmartengagePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSmartengagePutRequest
+}
+
+func (o *PutSourceSmartengageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSmartengageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSmartengageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSmartengageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSmartengageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesmartsheets.go b/internal/sdk/pkg/models/operations/putsourcesmartsheets.go
old mode 100755
new mode 100644
index 93cf5adbb..3c4ffdaf1
--- a/internal/sdk/pkg/models/operations/putsourcesmartsheets.go
+++ b/internal/sdk/pkg/models/operations/putsourcesmartsheets.go
@@ -12,8 +12,46 @@ type PutSourceSmartsheetsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSmartsheetsRequest) GetSourceSmartsheetsPutRequest() *shared.SourceSmartsheetsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSmartsheetsPutRequest
+}
+
+func (o *PutSourceSmartsheetsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSmartsheetsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSmartsheetsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSmartsheetsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSmartsheetsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesnapchatmarketing.go b/internal/sdk/pkg/models/operations/putsourcesnapchatmarketing.go
old mode 100755
new mode 100644
index 236fa63a0..244702f51
--- a/internal/sdk/pkg/models/operations/putsourcesnapchatmarketing.go
+++ b/internal/sdk/pkg/models/operations/putsourcesnapchatmarketing.go
@@ -12,8 +12,46 @@ type PutSourceSnapchatMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSnapchatMarketingRequest) GetSourceSnapchatMarketingPutRequest() *shared.SourceSnapchatMarketingPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSnapchatMarketingPutRequest
+}
+
+func (o *PutSourceSnapchatMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSnapchatMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSnapchatMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSnapchatMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSnapchatMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesnowflake.go b/internal/sdk/pkg/models/operations/putsourcesnowflake.go
old mode 100755
new mode 100644
index ed2e46e56..dea873a54
--- a/internal/sdk/pkg/models/operations/putsourcesnowflake.go
+++ b/internal/sdk/pkg/models/operations/putsourcesnowflake.go
@@ -12,8 +12,46 @@ type PutSourceSnowflakeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSnowflakeRequest) GetSourceSnowflakePutRequest() *shared.SourceSnowflakePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSnowflakePutRequest
+}
+
+func (o *PutSourceSnowflakeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSnowflakeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSnowflakeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSnowflakeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSnowflakeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesonarcloud.go b/internal/sdk/pkg/models/operations/putsourcesonarcloud.go
old mode 100755
new mode 100644
index 0109056d9..686a9a586
--- a/internal/sdk/pkg/models/operations/putsourcesonarcloud.go
+++ b/internal/sdk/pkg/models/operations/putsourcesonarcloud.go
@@ -12,8 +12,46 @@ type PutSourceSonarCloudRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSonarCloudRequest) GetSourceSonarCloudPutRequest() *shared.SourceSonarCloudPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSonarCloudPutRequest
+}
+
+func (o *PutSourceSonarCloudRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSonarCloudResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSonarCloudResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSonarCloudResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSonarCloudResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcespacexapi.go b/internal/sdk/pkg/models/operations/putsourcespacexapi.go
old mode 100755
new mode 100644
index 7b89083a4..df21f1e32
--- a/internal/sdk/pkg/models/operations/putsourcespacexapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcespacexapi.go
@@ -12,8 +12,46 @@ type PutSourceSpacexAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSpacexAPIRequest) GetSourceSpacexAPIPutRequest() *shared.SourceSpacexAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSpacexAPIPutRequest
+}
+
+func (o *PutSourceSpacexAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSpacexAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSpacexAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSpacexAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSpacexAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesquare.go b/internal/sdk/pkg/models/operations/putsourcesquare.go
old mode 100755
new mode 100644
index 492135231..7b9339723
--- a/internal/sdk/pkg/models/operations/putsourcesquare.go
+++ b/internal/sdk/pkg/models/operations/putsourcesquare.go
@@ -12,8 +12,46 @@ type PutSourceSquareRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSquareRequest) GetSourceSquarePutRequest() *shared.SourceSquarePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSquarePutRequest
+}
+
+func (o *PutSourceSquareRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSquareResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSquareResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSquareResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSquareResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcestrava.go b/internal/sdk/pkg/models/operations/putsourcestrava.go
old mode 100755
new mode 100644
index 50f05fbe7..05f0529da
--- a/internal/sdk/pkg/models/operations/putsourcestrava.go
+++ b/internal/sdk/pkg/models/operations/putsourcestrava.go
@@ -12,8 +12,46 @@ type PutSourceStravaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceStravaRequest) GetSourceStravaPutRequest() *shared.SourceStravaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceStravaPutRequest
+}
+
+func (o *PutSourceStravaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceStravaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceStravaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceStravaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceStravaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcestripe.go b/internal/sdk/pkg/models/operations/putsourcestripe.go
old mode 100755
new mode 100644
index 746e1b753..a8561ee6a
--- a/internal/sdk/pkg/models/operations/putsourcestripe.go
+++ b/internal/sdk/pkg/models/operations/putsourcestripe.go
@@ -12,8 +12,46 @@ type PutSourceStripeRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceStripeRequest) GetSourceStripePutRequest() *shared.SourceStripePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceStripePutRequest
+}
+
+func (o *PutSourceStripeRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceStripeResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceStripeResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceStripeResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceStripeResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesurveymonkey.go b/internal/sdk/pkg/models/operations/putsourcesurveymonkey.go
old mode 100755
new mode 100644
index 949eef39d..0206d5ee9
--- a/internal/sdk/pkg/models/operations/putsourcesurveymonkey.go
+++ b/internal/sdk/pkg/models/operations/putsourcesurveymonkey.go
@@ -12,8 +12,46 @@ type PutSourceSurveymonkeyRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSurveymonkeyRequest) GetSourceSurveymonkeyPutRequest() *shared.SourceSurveymonkeyPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSurveymonkeyPutRequest
+}
+
+func (o *PutSourceSurveymonkeyRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSurveymonkeyResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSurveymonkeyResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSurveymonkeyResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSurveymonkeyResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcesurveysparrow.go b/internal/sdk/pkg/models/operations/putsourcesurveysparrow.go
old mode 100755
new mode 100644
index ef6c070c9..7116690c2
--- a/internal/sdk/pkg/models/operations/putsourcesurveysparrow.go
+++ b/internal/sdk/pkg/models/operations/putsourcesurveysparrow.go
@@ -12,8 +12,46 @@ type PutSourceSurveySparrowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceSurveySparrowRequest) GetSourceSurveySparrowPutRequest() *shared.SourceSurveySparrowPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceSurveySparrowPutRequest
+}
+
+func (o *PutSourceSurveySparrowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceSurveySparrowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceSurveySparrowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceSurveySparrowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceSurveySparrowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetempo.go b/internal/sdk/pkg/models/operations/putsourcetempo.go
old mode 100755
new mode 100644
index e86ba8cd6..10733e4a8
--- a/internal/sdk/pkg/models/operations/putsourcetempo.go
+++ b/internal/sdk/pkg/models/operations/putsourcetempo.go
@@ -12,8 +12,46 @@ type PutSourceTempoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTempoRequest) GetSourceTempoPutRequest() *shared.SourceTempoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTempoPutRequest
+}
+
+func (o *PutSourceTempoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTempoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTempoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTempoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTempoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetheguardianapi.go b/internal/sdk/pkg/models/operations/putsourcetheguardianapi.go
old mode 100755
new mode 100644
index b3f16e40e..1d1f57d4b
--- a/internal/sdk/pkg/models/operations/putsourcetheguardianapi.go
+++ b/internal/sdk/pkg/models/operations/putsourcetheguardianapi.go
@@ -12,8 +12,46 @@ type PutSourceTheGuardianAPIRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTheGuardianAPIRequest) GetSourceTheGuardianAPIPutRequest() *shared.SourceTheGuardianAPIPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTheGuardianAPIPutRequest
+}
+
+func (o *PutSourceTheGuardianAPIRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTheGuardianAPIResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTheGuardianAPIResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTheGuardianAPIResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTheGuardianAPIResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetiktokmarketing.go b/internal/sdk/pkg/models/operations/putsourcetiktokmarketing.go
old mode 100755
new mode 100644
index 38eab168b..426fbe47d
--- a/internal/sdk/pkg/models/operations/putsourcetiktokmarketing.go
+++ b/internal/sdk/pkg/models/operations/putsourcetiktokmarketing.go
@@ -12,8 +12,46 @@ type PutSourceTiktokMarketingRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTiktokMarketingRequest) GetSourceTiktokMarketingPutRequest() *shared.SourceTiktokMarketingPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTiktokMarketingPutRequest
+}
+
+func (o *PutSourceTiktokMarketingRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTiktokMarketingResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTiktokMarketingResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTiktokMarketingResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTiktokMarketingResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetodoist.go b/internal/sdk/pkg/models/operations/putsourcetodoist.go
old mode 100755
new mode 100644
index 6d52a889c..c86e83b81
--- a/internal/sdk/pkg/models/operations/putsourcetodoist.go
+++ b/internal/sdk/pkg/models/operations/putsourcetodoist.go
@@ -12,8 +12,46 @@ type PutSourceTodoistRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTodoistRequest) GetSourceTodoistPutRequest() *shared.SourceTodoistPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTodoistPutRequest
+}
+
+func (o *PutSourceTodoistRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTodoistResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTodoistResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTodoistResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTodoistResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetrello.go b/internal/sdk/pkg/models/operations/putsourcetrello.go
old mode 100755
new mode 100644
index e2ecf5245..ffbe587aa
--- a/internal/sdk/pkg/models/operations/putsourcetrello.go
+++ b/internal/sdk/pkg/models/operations/putsourcetrello.go
@@ -12,8 +12,46 @@ type PutSourceTrelloRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTrelloRequest) GetSourceTrelloPutRequest() *shared.SourceTrelloPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTrelloPutRequest
+}
+
+func (o *PutSourceTrelloRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTrelloResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTrelloResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTrelloResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTrelloResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetrustpilot.go b/internal/sdk/pkg/models/operations/putsourcetrustpilot.go
old mode 100755
new mode 100644
index 5e4ab2f86..03970afd4
--- a/internal/sdk/pkg/models/operations/putsourcetrustpilot.go
+++ b/internal/sdk/pkg/models/operations/putsourcetrustpilot.go
@@ -12,8 +12,46 @@ type PutSourceTrustpilotRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTrustpilotRequest) GetSourceTrustpilotPutRequest() *shared.SourceTrustpilotPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTrustpilotPutRequest
+}
+
+func (o *PutSourceTrustpilotRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTrustpilotResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTrustpilotResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTrustpilotResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTrustpilotResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetvmazeschedule.go b/internal/sdk/pkg/models/operations/putsourcetvmazeschedule.go
old mode 100755
new mode 100644
index 609e4b4ea..d55514ae9
--- a/internal/sdk/pkg/models/operations/putsourcetvmazeschedule.go
+++ b/internal/sdk/pkg/models/operations/putsourcetvmazeschedule.go
@@ -12,8 +12,46 @@ type PutSourceTvmazeScheduleRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTvmazeScheduleRequest) GetSourceTvmazeSchedulePutRequest() *shared.SourceTvmazeSchedulePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTvmazeSchedulePutRequest
+}
+
+func (o *PutSourceTvmazeScheduleRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTvmazeScheduleResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTvmazeScheduleResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTvmazeScheduleResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTvmazeScheduleResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetwilio.go b/internal/sdk/pkg/models/operations/putsourcetwilio.go
old mode 100755
new mode 100644
index f00b2345d..b8be28ec5
--- a/internal/sdk/pkg/models/operations/putsourcetwilio.go
+++ b/internal/sdk/pkg/models/operations/putsourcetwilio.go
@@ -12,8 +12,46 @@ type PutSourceTwilioRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTwilioRequest) GetSourceTwilioPutRequest() *shared.SourceTwilioPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTwilioPutRequest
+}
+
+func (o *PutSourceTwilioRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTwilioResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTwilioResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTwilioResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTwilioResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetwiliotaskrouter.go b/internal/sdk/pkg/models/operations/putsourcetwiliotaskrouter.go
old mode 100755
new mode 100644
index e0bd7d102..d7168fd7e
--- a/internal/sdk/pkg/models/operations/putsourcetwiliotaskrouter.go
+++ b/internal/sdk/pkg/models/operations/putsourcetwiliotaskrouter.go
@@ -12,8 +12,46 @@ type PutSourceTwilioTaskrouterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTwilioTaskrouterRequest) GetSourceTwilioTaskrouterPutRequest() *shared.SourceTwilioTaskrouterPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTwilioTaskrouterPutRequest
+}
+
+func (o *PutSourceTwilioTaskrouterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTwilioTaskrouterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTwilioTaskrouterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTwilioTaskrouterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTwilioTaskrouterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetwitter.go b/internal/sdk/pkg/models/operations/putsourcetwitter.go
old mode 100755
new mode 100644
index e936ba3d0..518161b45
--- a/internal/sdk/pkg/models/operations/putsourcetwitter.go
+++ b/internal/sdk/pkg/models/operations/putsourcetwitter.go
@@ -12,8 +12,46 @@ type PutSourceTwitterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTwitterRequest) GetSourceTwitterPutRequest() *shared.SourceTwitterPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTwitterPutRequest
+}
+
+func (o *PutSourceTwitterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTwitterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTwitterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTwitterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTwitterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcetypeform.go b/internal/sdk/pkg/models/operations/putsourcetypeform.go
old mode 100755
new mode 100644
index f4b82f142..cc5aab1a4
--- a/internal/sdk/pkg/models/operations/putsourcetypeform.go
+++ b/internal/sdk/pkg/models/operations/putsourcetypeform.go
@@ -12,8 +12,46 @@ type PutSourceTypeformRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceTypeformRequest) GetSourceTypeformPutRequest() *shared.SourceTypeformPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceTypeformPutRequest
+}
+
+func (o *PutSourceTypeformRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceTypeformResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceTypeformResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceTypeformResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceTypeformResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceuscensus.go b/internal/sdk/pkg/models/operations/putsourceuscensus.go
old mode 100755
new mode 100644
index 9847a0232..d81ab4d82
--- a/internal/sdk/pkg/models/operations/putsourceuscensus.go
+++ b/internal/sdk/pkg/models/operations/putsourceuscensus.go
@@ -12,8 +12,46 @@ type PutSourceUsCensusRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceUsCensusRequest) GetSourceUsCensusPutRequest() *shared.SourceUsCensusPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceUsCensusPutRequest
+}
+
+func (o *PutSourceUsCensusRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceUsCensusResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceUsCensusResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceUsCensusResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceUsCensusResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcevantage.go b/internal/sdk/pkg/models/operations/putsourcevantage.go
old mode 100755
new mode 100644
index 8353ad337..26bc7f870
--- a/internal/sdk/pkg/models/operations/putsourcevantage.go
+++ b/internal/sdk/pkg/models/operations/putsourcevantage.go
@@ -12,8 +12,46 @@ type PutSourceVantageRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceVantageRequest) GetSourceVantagePutRequest() *shared.SourceVantagePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceVantagePutRequest
+}
+
+func (o *PutSourceVantageRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceVantageResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceVantageResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceVantageResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceVantageResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcewebflow.go b/internal/sdk/pkg/models/operations/putsourcewebflow.go
old mode 100755
new mode 100644
index ccebcf385..aa7a5a3dc
--- a/internal/sdk/pkg/models/operations/putsourcewebflow.go
+++ b/internal/sdk/pkg/models/operations/putsourcewebflow.go
@@ -12,8 +12,46 @@ type PutSourceWebflowRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceWebflowRequest) GetSourceWebflowPutRequest() *shared.SourceWebflowPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceWebflowPutRequest
+}
+
+func (o *PutSourceWebflowRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceWebflowResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceWebflowResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceWebflowResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceWebflowResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcewhiskyhunter.go b/internal/sdk/pkg/models/operations/putsourcewhiskyhunter.go
old mode 100755
new mode 100644
index 74257d007..339ff91f2
--- a/internal/sdk/pkg/models/operations/putsourcewhiskyhunter.go
+++ b/internal/sdk/pkg/models/operations/putsourcewhiskyhunter.go
@@ -12,8 +12,46 @@ type PutSourceWhiskyHunterRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceWhiskyHunterRequest) GetSourceWhiskyHunterPutRequest() *shared.SourceWhiskyHunterPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceWhiskyHunterPutRequest
+}
+
+func (o *PutSourceWhiskyHunterRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceWhiskyHunterResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceWhiskyHunterResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceWhiskyHunterResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceWhiskyHunterResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcewikipediapageviews.go b/internal/sdk/pkg/models/operations/putsourcewikipediapageviews.go
old mode 100755
new mode 100644
index 98da11650..7747ca853
--- a/internal/sdk/pkg/models/operations/putsourcewikipediapageviews.go
+++ b/internal/sdk/pkg/models/operations/putsourcewikipediapageviews.go
@@ -12,8 +12,46 @@ type PutSourceWikipediaPageviewsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceWikipediaPageviewsRequest) GetSourceWikipediaPageviewsPutRequest() *shared.SourceWikipediaPageviewsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceWikipediaPageviewsPutRequest
+}
+
+func (o *PutSourceWikipediaPageviewsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceWikipediaPageviewsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceWikipediaPageviewsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceWikipediaPageviewsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceWikipediaPageviewsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcewoocommerce.go b/internal/sdk/pkg/models/operations/putsourcewoocommerce.go
old mode 100755
new mode 100644
index 4464a24c0..db0ccfa6d
--- a/internal/sdk/pkg/models/operations/putsourcewoocommerce.go
+++ b/internal/sdk/pkg/models/operations/putsourcewoocommerce.go
@@ -12,8 +12,46 @@ type PutSourceWoocommerceRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceWoocommerceRequest) GetSourceWoocommercePutRequest() *shared.SourceWoocommercePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceWoocommercePutRequest
+}
+
+func (o *PutSourceWoocommerceRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceWoocommerceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceWoocommerceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceWoocommerceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceWoocommerceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcexero.go b/internal/sdk/pkg/models/operations/putsourcexero.go
old mode 100755
new mode 100644
index dd8fda6f3..9b2a2278e
--- a/internal/sdk/pkg/models/operations/putsourcexero.go
+++ b/internal/sdk/pkg/models/operations/putsourcexero.go
@@ -12,8 +12,46 @@ type PutSourceXeroRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceXeroRequest) GetSourceXeroPutRequest() *shared.SourceXeroPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceXeroPutRequest
+}
+
+func (o *PutSourceXeroRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceXeroResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceXeroResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceXeroResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceXeroResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcexkcd.go b/internal/sdk/pkg/models/operations/putsourcexkcd.go
old mode 100755
new mode 100644
index 70f250114..4db28073b
--- a/internal/sdk/pkg/models/operations/putsourcexkcd.go
+++ b/internal/sdk/pkg/models/operations/putsourcexkcd.go
@@ -12,8 +12,46 @@ type PutSourceXkcdRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceXkcdRequest) GetSourceXkcdPutRequest() *shared.SourceXkcdPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceXkcdPutRequest
+}
+
+func (o *PutSourceXkcdRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceXkcdResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceXkcdResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceXkcdResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceXkcdResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceyandexmetrica.go b/internal/sdk/pkg/models/operations/putsourceyandexmetrica.go
old mode 100755
new mode 100644
index 9d24f3e8b..3d7d15142
--- a/internal/sdk/pkg/models/operations/putsourceyandexmetrica.go
+++ b/internal/sdk/pkg/models/operations/putsourceyandexmetrica.go
@@ -12,8 +12,46 @@ type PutSourceYandexMetricaRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceYandexMetricaRequest) GetSourceYandexMetricaPutRequest() *shared.SourceYandexMetricaPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceYandexMetricaPutRequest
+}
+
+func (o *PutSourceYandexMetricaRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceYandexMetricaResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceYandexMetricaResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceYandexMetricaResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceYandexMetricaResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceyotpo.go b/internal/sdk/pkg/models/operations/putsourceyotpo.go
old mode 100755
new mode 100644
index 092cde685..9a2ca3333
--- a/internal/sdk/pkg/models/operations/putsourceyotpo.go
+++ b/internal/sdk/pkg/models/operations/putsourceyotpo.go
@@ -12,8 +12,46 @@ type PutSourceYotpoRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceYotpoRequest) GetSourceYotpoPutRequest() *shared.SourceYotpoPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceYotpoPutRequest
+}
+
+func (o *PutSourceYotpoRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceYotpoResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceYotpoResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceYotpoResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceYotpoResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceyounium.go b/internal/sdk/pkg/models/operations/putsourceyounium.go
old mode 100755
new mode 100644
index cc8dff2f7..99653c91d
--- a/internal/sdk/pkg/models/operations/putsourceyounium.go
+++ b/internal/sdk/pkg/models/operations/putsourceyounium.go
@@ -12,8 +12,46 @@ type PutSourceYouniumRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceYouniumRequest) GetSourceYouniumPutRequest() *shared.SourceYouniumPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceYouniumPutRequest
+}
+
+func (o *PutSourceYouniumRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceYouniumResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceYouniumResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceYouniumResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceYouniumResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourceyoutubeanalytics.go b/internal/sdk/pkg/models/operations/putsourceyoutubeanalytics.go
old mode 100755
new mode 100644
index fd5078ad1..e7513c4bf
--- a/internal/sdk/pkg/models/operations/putsourceyoutubeanalytics.go
+++ b/internal/sdk/pkg/models/operations/putsourceyoutubeanalytics.go
@@ -12,8 +12,46 @@ type PutSourceYoutubeAnalyticsRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceYoutubeAnalyticsRequest) GetSourceYoutubeAnalyticsPutRequest() *shared.SourceYoutubeAnalyticsPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceYoutubeAnalyticsPutRequest
+}
+
+func (o *PutSourceYoutubeAnalyticsRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceYoutubeAnalyticsResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceYoutubeAnalyticsResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceYoutubeAnalyticsResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceYoutubeAnalyticsResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezendeskchat.go b/internal/sdk/pkg/models/operations/putsourcezendeskchat.go
old mode 100755
new mode 100644
index 3f8c1dde1..c51c43521
--- a/internal/sdk/pkg/models/operations/putsourcezendeskchat.go
+++ b/internal/sdk/pkg/models/operations/putsourcezendeskchat.go
@@ -12,8 +12,46 @@ type PutSourceZendeskChatRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZendeskChatRequest) GetSourceZendeskChatPutRequest() *shared.SourceZendeskChatPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZendeskChatPutRequest
+}
+
+func (o *PutSourceZendeskChatRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZendeskChatResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZendeskChatResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZendeskChatResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZendeskChatResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezendesksunshine.go b/internal/sdk/pkg/models/operations/putsourcezendesksunshine.go
old mode 100755
new mode 100644
index adc1f6d60..11ca6708e
--- a/internal/sdk/pkg/models/operations/putsourcezendesksunshine.go
+++ b/internal/sdk/pkg/models/operations/putsourcezendesksunshine.go
@@ -12,8 +12,46 @@ type PutSourceZendeskSunshineRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZendeskSunshineRequest) GetSourceZendeskSunshinePutRequest() *shared.SourceZendeskSunshinePutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZendeskSunshinePutRequest
+}
+
+func (o *PutSourceZendeskSunshineRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZendeskSunshineResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZendeskSunshineResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZendeskSunshineResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZendeskSunshineResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezendesksupport.go b/internal/sdk/pkg/models/operations/putsourcezendesksupport.go
old mode 100755
new mode 100644
index d14d2c207..7173bbf05
--- a/internal/sdk/pkg/models/operations/putsourcezendesksupport.go
+++ b/internal/sdk/pkg/models/operations/putsourcezendesksupport.go
@@ -12,8 +12,46 @@ type PutSourceZendeskSupportRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZendeskSupportRequest) GetSourceZendeskSupportPutRequest() *shared.SourceZendeskSupportPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZendeskSupportPutRequest
+}
+
+func (o *PutSourceZendeskSupportRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZendeskSupportResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZendeskSupportResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZendeskSupportResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZendeskSupportResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezendesktalk.go b/internal/sdk/pkg/models/operations/putsourcezendesktalk.go
old mode 100755
new mode 100644
index 592e949cf..17f306e8a
--- a/internal/sdk/pkg/models/operations/putsourcezendesktalk.go
+++ b/internal/sdk/pkg/models/operations/putsourcezendesktalk.go
@@ -12,8 +12,46 @@ type PutSourceZendeskTalkRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZendeskTalkRequest) GetSourceZendeskTalkPutRequest() *shared.SourceZendeskTalkPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZendeskTalkPutRequest
+}
+
+func (o *PutSourceZendeskTalkRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZendeskTalkResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZendeskTalkResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZendeskTalkResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZendeskTalkResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezenloop.go b/internal/sdk/pkg/models/operations/putsourcezenloop.go
old mode 100755
new mode 100644
index 10c4cab0c..d724d88fb
--- a/internal/sdk/pkg/models/operations/putsourcezenloop.go
+++ b/internal/sdk/pkg/models/operations/putsourcezenloop.go
@@ -12,8 +12,46 @@ type PutSourceZenloopRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZenloopRequest) GetSourceZenloopPutRequest() *shared.SourceZenloopPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZenloopPutRequest
+}
+
+func (o *PutSourceZenloopRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZenloopResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZenloopResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZenloopResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZenloopResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezohocrm.go b/internal/sdk/pkg/models/operations/putsourcezohocrm.go
old mode 100755
new mode 100644
index 95f73325d..4b0cbc424
--- a/internal/sdk/pkg/models/operations/putsourcezohocrm.go
+++ b/internal/sdk/pkg/models/operations/putsourcezohocrm.go
@@ -12,8 +12,46 @@ type PutSourceZohoCrmRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZohoCrmRequest) GetSourceZohoCrmPutRequest() *shared.SourceZohoCrmPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZohoCrmPutRequest
+}
+
+func (o *PutSourceZohoCrmRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZohoCrmResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZohoCrmResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZohoCrmResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZohoCrmResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezoom.go b/internal/sdk/pkg/models/operations/putsourcezoom.go
old mode 100755
new mode 100644
index 1b33ba320..67980c57f
--- a/internal/sdk/pkg/models/operations/putsourcezoom.go
+++ b/internal/sdk/pkg/models/operations/putsourcezoom.go
@@ -12,8 +12,46 @@ type PutSourceZoomRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZoomRequest) GetSourceZoomPutRequest() *shared.SourceZoomPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZoomPutRequest
+}
+
+func (o *PutSourceZoomRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZoomResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZoomResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZoomResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZoomResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/putsourcezuora.go b/internal/sdk/pkg/models/operations/putsourcezuora.go
old mode 100755
new mode 100644
index f5bf8355d..2cdd191a9
--- a/internal/sdk/pkg/models/operations/putsourcezuora.go
+++ b/internal/sdk/pkg/models/operations/putsourcezuora.go
@@ -12,8 +12,46 @@ type PutSourceZuoraRequest struct {
SourceID string `pathParam:"style=simple,explode=false,name=sourceId"`
}
+func (o *PutSourceZuoraRequest) GetSourceZuoraPutRequest() *shared.SourceZuoraPutRequest {
+ if o == nil {
+ return nil
+ }
+ return o.SourceZuoraPutRequest
+}
+
+func (o *PutSourceZuoraRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
type PutSourceZuoraResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
+
+func (o *PutSourceZuoraResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *PutSourceZuoraResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *PutSourceZuoraResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
diff --git a/internal/sdk/pkg/models/operations/updateworkspace.go b/internal/sdk/pkg/models/operations/updateworkspace.go
old mode 100755
new mode 100644
index 363692dc4..4067769f4
--- a/internal/sdk/pkg/models/operations/updateworkspace.go
+++ b/internal/sdk/pkg/models/operations/updateworkspace.go
@@ -12,10 +12,55 @@ type UpdateWorkspaceRequest struct {
WorkspaceID string `pathParam:"style=simple,explode=false,name=workspaceId"`
}
+func (o *UpdateWorkspaceRequest) GetWorkspaceUpdateRequest() shared.WorkspaceUpdateRequest {
+ if o == nil {
+ return shared.WorkspaceUpdateRequest{}
+ }
+ return o.WorkspaceUpdateRequest
+}
+
+func (o *UpdateWorkspaceRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
+
type UpdateWorkspaceResponse struct {
+ // HTTP response content type for this operation
ContentType string
- StatusCode int
+ // HTTP response status code for this operation
+ StatusCode int
+ // Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// Successful operation
WorkspaceResponse *shared.WorkspaceResponse
}
+
+func (o *UpdateWorkspaceResponse) GetContentType() string {
+ if o == nil {
+ return ""
+ }
+ return o.ContentType
+}
+
+func (o *UpdateWorkspaceResponse) GetStatusCode() int {
+ if o == nil {
+ return 0
+ }
+ return o.StatusCode
+}
+
+func (o *UpdateWorkspaceResponse) GetRawResponse() *http.Response {
+ if o == nil {
+ return nil
+ }
+ return o.RawResponse
+}
+
+func (o *UpdateWorkspaceResponse) GetWorkspaceResponse() *shared.WorkspaceResponse {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceResponse
+}
diff --git a/internal/sdk/pkg/models/sdkerrors/sdkerror.go b/internal/sdk/pkg/models/sdkerrors/sdkerror.go
new file mode 100644
index 000000000..5c1affd31
--- /dev/null
+++ b/internal/sdk/pkg/models/sdkerrors/sdkerror.go
@@ -0,0 +1,35 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package sdkerrors
+
+import (
+ "fmt"
+ "net/http"
+)
+
+type SDKError struct {
+ Message string
+ StatusCode int
+ Body string
+ RawResponse *http.Response
+}
+
+var _ error = &SDKError{}
+
+func NewSDKError(message string, statusCode int, body string, httpRes *http.Response) *SDKError {
+ return &SDKError{
+ Message: message,
+ StatusCode: statusCode,
+ Body: body,
+ RawResponse: httpRes,
+ }
+}
+
+func (e *SDKError) Error() string {
+ body := ""
+ if len(e.Body) > 0 {
+ body = fmt.Sprintf("\n%s", e.Body)
+ }
+
+ return fmt.Sprintf("%s: Status %d%s", e.Message, e.StatusCode, body)
+}
diff --git a/internal/sdk/pkg/models/shared/actortypeenum.go b/internal/sdk/pkg/models/shared/actortypeenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/connectioncreaterequest.go b/internal/sdk/pkg/models/shared/connectioncreaterequest.go
old mode 100755
new mode 100644
index f537dca7c..bcfac97dd
--- a/internal/sdk/pkg/models/shared/connectioncreaterequest.go
+++ b/internal/sdk/pkg/models/shared/connectioncreaterequest.go
@@ -2,19 +2,23 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type ConnectionCreateRequest struct {
// A list of configured stream options for a connection.
Configurations *StreamConfigurations `json:"configurations,omitempty"`
- DataResidency *GeographyEnum `json:"dataResidency,omitempty"`
+ DataResidency *GeographyEnum `default:"auto" json:"dataResidency"`
DestinationID string `json:"destinationId"`
// Optional name of the connection
Name *string `json:"name,omitempty"`
// Define the location where the data will be stored in the destination
- NamespaceDefinition *NamespaceDefinitionEnum `json:"namespaceDefinition,omitempty"`
+ NamespaceDefinition *NamespaceDefinitionEnum `default:"destination" json:"namespaceDefinition"`
// Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'.
- NamespaceFormat *string `json:"namespaceFormat,omitempty"`
+ NamespaceFormat *string `default:"null" json:"namespaceFormat"`
// Set how Airbyte handles syncs when it detects a non-breaking schema change in the source
- NonBreakingSchemaUpdatesBehavior *NonBreakingSchemaUpdatesBehaviorEnum `json:"nonBreakingSchemaUpdatesBehavior,omitempty"`
+ NonBreakingSchemaUpdatesBehavior *NonBreakingSchemaUpdatesBehaviorEnum `default:"ignore" json:"nonBreakingSchemaUpdatesBehavior"`
// Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”).
Prefix *string `json:"prefix,omitempty"`
// schedule for when the the connection should run, per the schedule type
@@ -22,3 +26,91 @@ type ConnectionCreateRequest struct {
SourceID string `json:"sourceId"`
Status *ConnectionStatusEnum `json:"status,omitempty"`
}
+
+func (c ConnectionCreateRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(c, "", false)
+}
+
+func (c *ConnectionCreateRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ConnectionCreateRequest) GetConfigurations() *StreamConfigurations {
+ if o == nil {
+ return nil
+ }
+ return o.Configurations
+}
+
+func (o *ConnectionCreateRequest) GetDataResidency() *GeographyEnum {
+ if o == nil {
+ return nil
+ }
+ return o.DataResidency
+}
+
+func (o *ConnectionCreateRequest) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
+func (o *ConnectionCreateRequest) GetName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Name
+}
+
+func (o *ConnectionCreateRequest) GetNamespaceDefinition() *NamespaceDefinitionEnum {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceDefinition
+}
+
+func (o *ConnectionCreateRequest) GetNamespaceFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceFormat
+}
+
+func (o *ConnectionCreateRequest) GetNonBreakingSchemaUpdatesBehavior() *NonBreakingSchemaUpdatesBehaviorEnum {
+ if o == nil {
+ return nil
+ }
+ return o.NonBreakingSchemaUpdatesBehavior
+}
+
+func (o *ConnectionCreateRequest) GetPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Prefix
+}
+
+func (o *ConnectionCreateRequest) GetSchedule() *ConnectionSchedule {
+ if o == nil {
+ return nil
+ }
+ return o.Schedule
+}
+
+func (o *ConnectionCreateRequest) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
+func (o *ConnectionCreateRequest) GetStatus() *ConnectionStatusEnum {
+ if o == nil {
+ return nil
+ }
+ return o.Status
+}
diff --git a/internal/sdk/pkg/models/shared/connectionpatchrequest.go b/internal/sdk/pkg/models/shared/connectionpatchrequest.go
old mode 100755
new mode 100644
index bc188e13c..bbd638c6b
--- a/internal/sdk/pkg/models/shared/connectionpatchrequest.go
+++ b/internal/sdk/pkg/models/shared/connectionpatchrequest.go
@@ -2,6 +2,10 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type ConnectionPatchRequest struct {
// A list of configured stream options for a connection.
Configurations *StreamConfigurations `json:"configurations,omitempty"`
@@ -11,7 +15,7 @@ type ConnectionPatchRequest struct {
// Define the location where the data will be stored in the destination
NamespaceDefinition *NamespaceDefinitionEnumNoDefault `json:"namespaceDefinition,omitempty"`
// Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'.
- NamespaceFormat *string `json:"namespaceFormat,omitempty"`
+ NamespaceFormat *string `default:"null" json:"namespaceFormat"`
// Set how Airbyte handles syncs when it detects a non-breaking schema change in the source
NonBreakingSchemaUpdatesBehavior *NonBreakingSchemaUpdatesBehaviorEnumNoDefault `json:"nonBreakingSchemaUpdatesBehavior,omitempty"`
// Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”).
@@ -20,3 +24,77 @@ type ConnectionPatchRequest struct {
Schedule *ConnectionSchedule `json:"schedule,omitempty"`
Status *ConnectionStatusEnum `json:"status,omitempty"`
}
+
+func (c ConnectionPatchRequest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(c, "", false)
+}
+
+func (c *ConnectionPatchRequest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ConnectionPatchRequest) GetConfigurations() *StreamConfigurations {
+ if o == nil {
+ return nil
+ }
+ return o.Configurations
+}
+
+func (o *ConnectionPatchRequest) GetDataResidency() *GeographyEnumNoDefault {
+ if o == nil {
+ return nil
+ }
+ return o.DataResidency
+}
+
+func (o *ConnectionPatchRequest) GetName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Name
+}
+
+func (o *ConnectionPatchRequest) GetNamespaceDefinition() *NamespaceDefinitionEnumNoDefault {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceDefinition
+}
+
+func (o *ConnectionPatchRequest) GetNamespaceFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceFormat
+}
+
+func (o *ConnectionPatchRequest) GetNonBreakingSchemaUpdatesBehavior() *NonBreakingSchemaUpdatesBehaviorEnumNoDefault {
+ if o == nil {
+ return nil
+ }
+ return o.NonBreakingSchemaUpdatesBehavior
+}
+
+func (o *ConnectionPatchRequest) GetPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Prefix
+}
+
+func (o *ConnectionPatchRequest) GetSchedule() *ConnectionSchedule {
+ if o == nil {
+ return nil
+ }
+ return o.Schedule
+}
+
+func (o *ConnectionPatchRequest) GetStatus() *ConnectionStatusEnum {
+ if o == nil {
+ return nil
+ }
+ return o.Status
+}
diff --git a/internal/sdk/pkg/models/shared/connectionresponse.go b/internal/sdk/pkg/models/shared/connectionresponse.go
old mode 100755
new mode 100644
index 7de532ae1..83d13969d
--- a/internal/sdk/pkg/models/shared/connectionresponse.go
+++ b/internal/sdk/pkg/models/shared/connectionresponse.go
@@ -2,19 +2,23 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
// ConnectionResponse - Provides details of a single connection.
type ConnectionResponse struct {
// A list of configured stream options for a connection.
Configurations StreamConfigurations `json:"configurations"`
ConnectionID string `json:"connectionId"`
- DataResidency GeographyEnum `json:"dataResidency"`
+ DataResidency *GeographyEnum `default:"auto" json:"dataResidency"`
DestinationID string `json:"destinationId"`
Name string `json:"name"`
// Define the location where the data will be stored in the destination
- NamespaceDefinition *NamespaceDefinitionEnum `json:"namespaceDefinition,omitempty"`
+ NamespaceDefinition *NamespaceDefinitionEnum `default:"destination" json:"namespaceDefinition"`
NamespaceFormat *string `json:"namespaceFormat,omitempty"`
// Set how Airbyte handles syncs when it detects a non-breaking schema change in the source
- NonBreakingSchemaUpdatesBehavior *NonBreakingSchemaUpdatesBehaviorEnum `json:"nonBreakingSchemaUpdatesBehavior,omitempty"`
+ NonBreakingSchemaUpdatesBehavior *NonBreakingSchemaUpdatesBehaviorEnum `default:"ignore" json:"nonBreakingSchemaUpdatesBehavior"`
Prefix *string `json:"prefix,omitempty"`
// schedule for when the the connection should run, per the schedule type
Schedule ConnectionScheduleResponse `json:"schedule"`
@@ -22,3 +26,105 @@ type ConnectionResponse struct {
Status ConnectionStatusEnum `json:"status"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (c ConnectionResponse) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(c, "", false)
+}
+
+func (c *ConnectionResponse) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *ConnectionResponse) GetConfigurations() StreamConfigurations {
+ if o == nil {
+ return StreamConfigurations{}
+ }
+ return o.Configurations
+}
+
+func (o *ConnectionResponse) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
+func (o *ConnectionResponse) GetDataResidency() *GeographyEnum {
+ if o == nil {
+ return nil
+ }
+ return o.DataResidency
+}
+
+func (o *ConnectionResponse) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
+func (o *ConnectionResponse) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *ConnectionResponse) GetNamespaceDefinition() *NamespaceDefinitionEnum {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceDefinition
+}
+
+func (o *ConnectionResponse) GetNamespaceFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.NamespaceFormat
+}
+
+func (o *ConnectionResponse) GetNonBreakingSchemaUpdatesBehavior() *NonBreakingSchemaUpdatesBehaviorEnum {
+ if o == nil {
+ return nil
+ }
+ return o.NonBreakingSchemaUpdatesBehavior
+}
+
+func (o *ConnectionResponse) GetPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Prefix
+}
+
+func (o *ConnectionResponse) GetSchedule() ConnectionScheduleResponse {
+ if o == nil {
+ return ConnectionScheduleResponse{}
+ }
+ return o.Schedule
+}
+
+func (o *ConnectionResponse) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
+func (o *ConnectionResponse) GetStatus() ConnectionStatusEnum {
+ if o == nil {
+ return ConnectionStatusEnum("")
+ }
+ return o.Status
+}
+
+func (o *ConnectionResponse) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/connectionschedule.go b/internal/sdk/pkg/models/shared/connectionschedule.go
old mode 100755
new mode 100644
index 947c9c29c..3fd85bf70
--- a/internal/sdk/pkg/models/shared/connectionschedule.go
+++ b/internal/sdk/pkg/models/shared/connectionschedule.go
@@ -7,3 +7,17 @@ type ConnectionSchedule struct {
CronExpression *string `json:"cronExpression,omitempty"`
ScheduleType ScheduleTypeEnum `json:"scheduleType"`
}
+
+func (o *ConnectionSchedule) GetCronExpression() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CronExpression
+}
+
+func (o *ConnectionSchedule) GetScheduleType() ScheduleTypeEnum {
+ if o == nil {
+ return ScheduleTypeEnum("")
+ }
+ return o.ScheduleType
+}
diff --git a/internal/sdk/pkg/models/shared/connectionscheduleresponse.go b/internal/sdk/pkg/models/shared/connectionscheduleresponse.go
old mode 100755
new mode 100644
index 5481d5813..837507960
--- a/internal/sdk/pkg/models/shared/connectionscheduleresponse.go
+++ b/internal/sdk/pkg/models/shared/connectionscheduleresponse.go
@@ -8,3 +8,24 @@ type ConnectionScheduleResponse struct {
CronExpression *string `json:"cronExpression,omitempty"`
ScheduleType ScheduleTypeWithBasicEnum `json:"scheduleType"`
}
+
+func (o *ConnectionScheduleResponse) GetBasicTiming() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BasicTiming
+}
+
+func (o *ConnectionScheduleResponse) GetCronExpression() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CronExpression
+}
+
+func (o *ConnectionScheduleResponse) GetScheduleType() ScheduleTypeWithBasicEnum {
+ if o == nil {
+ return ScheduleTypeWithBasicEnum("")
+ }
+ return o.ScheduleType
+}
diff --git a/internal/sdk/pkg/models/shared/connectionsresponse.go b/internal/sdk/pkg/models/shared/connectionsresponse.go
old mode 100755
new mode 100644
index b5fe04eec..718a0b2fe
--- a/internal/sdk/pkg/models/shared/connectionsresponse.go
+++ b/internal/sdk/pkg/models/shared/connectionsresponse.go
@@ -7,3 +7,24 @@ type ConnectionsResponse struct {
Next *string `json:"next,omitempty"`
Previous *string `json:"previous,omitempty"`
}
+
+func (o *ConnectionsResponse) GetData() []ConnectionResponse {
+ if o == nil {
+ return []ConnectionResponse{}
+ }
+ return o.Data
+}
+
+func (o *ConnectionsResponse) GetNext() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Next
+}
+
+func (o *ConnectionsResponse) GetPrevious() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Previous
+}
diff --git a/internal/sdk/pkg/models/shared/connectionstatusenum.go b/internal/sdk/pkg/models/shared/connectionstatusenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/connectionsyncmodeenum.go b/internal/sdk/pkg/models/shared/connectionsyncmodeenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalake.go b/internal/sdk/pkg/models/shared/destinationawsdatalake.go
old mode 100755
new mode 100644
index c2769fc33..e098082af
--- a/internal/sdk/pkg/models/shared/destinationawsdatalake.go
+++ b/internal/sdk/pkg/models/shared/destinationawsdatalake.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -41,7 +41,36 @@ type DestinationAwsDatalakeAuthenticationModeIAMUser struct {
// Secret Access Key
AwsSecretAccessKey string `json:"aws_secret_access_key"`
// Name of the credentials
- CredentialsTitle DestinationAwsDatalakeAuthenticationModeIAMUserCredentialsTitle `json:"credentials_title"`
+ credentialsTitle *DestinationAwsDatalakeAuthenticationModeIAMUserCredentialsTitle `const:"IAM User" json:"credentials_title"`
+}
+
+func (d DestinationAwsDatalakeAuthenticationModeIAMUser) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeAuthenticationModeIAMUser) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeAuthenticationModeIAMUser) GetAwsAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *DestinationAwsDatalakeAuthenticationModeIAMUser) GetAwsSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *DestinationAwsDatalakeAuthenticationModeIAMUser) GetCredentialsTitle() *DestinationAwsDatalakeAuthenticationModeIAMUserCredentialsTitle {
+ return DestinationAwsDatalakeAuthenticationModeIAMUserCredentialsTitleIamUser.ToPointer()
}
// DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle - Name of the credentials
@@ -72,11 +101,33 @@ func (e *DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle) Unmars
// DestinationAwsDatalakeAuthenticationModeIAMRole - Choose How to Authenticate to AWS.
type DestinationAwsDatalakeAuthenticationModeIAMRole struct {
// Name of the credentials
- CredentialsTitle DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle `json:"credentials_title"`
+ credentialsTitle *DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle `const:"IAM Role" json:"credentials_title"`
// Will assume this role to write data to s3
RoleArn string `json:"role_arn"`
}
+func (d DestinationAwsDatalakeAuthenticationModeIAMRole) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeAuthenticationModeIAMRole) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeAuthenticationModeIAMRole) GetCredentialsTitle() *DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitle {
+ return DestinationAwsDatalakeAuthenticationModeIAMRoleCredentialsTitleIamRole.ToPointer()
+}
+
+func (o *DestinationAwsDatalakeAuthenticationModeIAMRole) GetRoleArn() string {
+ if o == nil {
+ return ""
+ }
+ return o.RoleArn
+}
+
type DestinationAwsDatalakeAuthenticationModeType string
const (
@@ -110,21 +161,16 @@ func CreateDestinationAwsDatalakeAuthenticationModeDestinationAwsDatalakeAuthent
}
func (u *DestinationAwsDatalakeAuthenticationMode) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAwsDatalakeAuthenticationModeIAMRole := new(DestinationAwsDatalakeAuthenticationModeIAMRole)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeAuthenticationModeIAMRole); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeAuthenticationModeIAMRole, "", true, true); err == nil {
u.DestinationAwsDatalakeAuthenticationModeIAMRole = destinationAwsDatalakeAuthenticationModeIAMRole
u.Type = DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeAuthenticationModeIAMRole
return nil
}
destinationAwsDatalakeAuthenticationModeIAMUser := new(DestinationAwsDatalakeAuthenticationModeIAMUser)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeAuthenticationModeIAMUser); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeAuthenticationModeIAMUser, "", true, true); err == nil {
u.DestinationAwsDatalakeAuthenticationModeIAMUser = destinationAwsDatalakeAuthenticationModeIAMUser
u.Type = DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeAuthenticationModeIAMUser
return nil
@@ -135,14 +181,14 @@ func (u *DestinationAwsDatalakeAuthenticationMode) UnmarshalJSON(data []byte) er
func (u DestinationAwsDatalakeAuthenticationMode) MarshalJSON() ([]byte, error) {
if u.DestinationAwsDatalakeAuthenticationModeIAMRole != nil {
- return json.Marshal(u.DestinationAwsDatalakeAuthenticationModeIAMRole)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeAuthenticationModeIAMRole, "", true)
}
if u.DestinationAwsDatalakeAuthenticationModeIAMUser != nil {
- return json.Marshal(u.DestinationAwsDatalakeAuthenticationModeIAMUser)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeAuthenticationModeIAMUser, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationAwsDatalakeAwsDatalake string
@@ -230,8 +276,33 @@ func (e *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatT
// DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage - Format of the data output.
type DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage struct {
// The compression algorithm used to compress data.
- CompressionCodec *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional `json:"compression_codec,omitempty"`
- FormatType DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard `json:"format_type"`
+ CompressionCodec *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional `default:"SNAPPY" json:"compression_codec"`
+ FormatType *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard `default:"Parquet" json:"format_type"`
+}
+
+func (d DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage) GetCompressionCodec() *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage) GetFormatType() *DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
// DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional - The compression algorithm used to compress data.
@@ -289,8 +360,33 @@ func (e *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON
// DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON - Format of the data output.
type DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON struct {
// The compression algorithm used to compress data.
- CompressionCodec *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional `json:"compression_codec,omitempty"`
- FormatType DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard `json:"format_type"`
+ CompressionCodec *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional `default:"UNCOMPRESSED" json:"compression_codec"`
+ FormatType *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON) GetCompressionCodec() *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationAwsDatalakeOutputFormatWildcardType string
@@ -326,21 +422,16 @@ func CreateDestinationAwsDatalakeOutputFormatWildcardDestinationAwsDatalakeOutpu
}
func (u *DestinationAwsDatalakeOutputFormatWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON := new(DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON = destinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON
u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON
return nil
}
destinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage := new(DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage, "", true, true); err == nil {
u.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage = destinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage
u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage
return nil
@@ -351,14 +442,14 @@ func (u *DestinationAwsDatalakeOutputFormatWildcard) UnmarshalJSON(data []byte)
func (u DestinationAwsDatalakeOutputFormatWildcard) MarshalJSON() ([]byte, error) {
if u.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationAwsDatalakeChooseHowToPartitionData - Partition data by cursor fields when a cursor field is a date
@@ -513,11 +604,11 @@ type DestinationAwsDatalake struct {
BucketPrefix *string `json:"bucket_prefix,omitempty"`
// Choose How to Authenticate to AWS.
Credentials DestinationAwsDatalakeAuthenticationMode `json:"credentials"`
- DestinationType DestinationAwsDatalakeAwsDatalake `json:"destinationType"`
+ destinationType DestinationAwsDatalakeAwsDatalake `const:"aws-datalake" json:"destinationType"`
// Format of the data output.
Format *DestinationAwsDatalakeOutputFormatWildcard `json:"format,omitempty"`
// Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source.
- GlueCatalogFloatAsDecimal *bool `json:"glue_catalog_float_as_decimal,omitempty"`
+ GlueCatalogFloatAsDecimal *bool `default:"false" json:"glue_catalog_float_as_decimal"`
// Add a default tag key to databases created by this destination
LakeformationDatabaseDefaultTagKey *string `json:"lakeformation_database_default_tag_key,omitempty"`
// Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values.
@@ -525,9 +616,108 @@ type DestinationAwsDatalake struct {
// The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace.
LakeformationDatabaseName string `json:"lakeformation_database_name"`
// Whether to create tables as LF governed tables.
- LakeformationGovernedTables *bool `json:"lakeformation_governed_tables,omitempty"`
+ LakeformationGovernedTables *bool `default:"false" json:"lakeformation_governed_tables"`
// Partition data by cursor fields when a cursor field is a date
- Partitioning *DestinationAwsDatalakeChooseHowToPartitionData `json:"partitioning,omitempty"`
+ Partitioning *DestinationAwsDatalakeChooseHowToPartitionData `default:"NO PARTITIONING" json:"partitioning"`
// The region of the S3 bucket. See here for all region codes.
- Region DestinationAwsDatalakeS3BucketRegion `json:"region"`
+ Region *DestinationAwsDatalakeS3BucketRegion `default:"" json:"region"`
+}
+
+func (d DestinationAwsDatalake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalake) GetAwsAccountID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccountID
+}
+
+func (o *DestinationAwsDatalake) GetBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.BucketName
+}
+
+func (o *DestinationAwsDatalake) GetBucketPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BucketPrefix
+}
+
+func (o *DestinationAwsDatalake) GetCredentials() DestinationAwsDatalakeAuthenticationMode {
+ if o == nil {
+ return DestinationAwsDatalakeAuthenticationMode{}
+ }
+ return o.Credentials
+}
+
+func (o *DestinationAwsDatalake) GetDestinationType() DestinationAwsDatalakeAwsDatalake {
+ return DestinationAwsDatalakeAwsDatalakeAwsDatalake
+}
+
+func (o *DestinationAwsDatalake) GetFormat() *DestinationAwsDatalakeOutputFormatWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *DestinationAwsDatalake) GetGlueCatalogFloatAsDecimal() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.GlueCatalogFloatAsDecimal
+}
+
+func (o *DestinationAwsDatalake) GetLakeformationDatabaseDefaultTagKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationDatabaseDefaultTagKey
+}
+
+func (o *DestinationAwsDatalake) GetLakeformationDatabaseDefaultTagValues() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationDatabaseDefaultTagValues
+}
+
+func (o *DestinationAwsDatalake) GetLakeformationDatabaseName() string {
+ if o == nil {
+ return ""
+ }
+ return o.LakeformationDatabaseName
+}
+
+func (o *DestinationAwsDatalake) GetLakeformationGovernedTables() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationGovernedTables
+}
+
+func (o *DestinationAwsDatalake) GetPartitioning() *DestinationAwsDatalakeChooseHowToPartitionData {
+ if o == nil {
+ return nil
+ }
+ return o.Partitioning
+}
+
+func (o *DestinationAwsDatalake) GetRegion() *DestinationAwsDatalakeS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
}
diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalakecreaterequest.go b/internal/sdk/pkg/models/shared/destinationawsdatalakecreaterequest.go
old mode 100755
new mode 100644
index 8706a1fd3..1e434e6a9
--- a/internal/sdk/pkg/models/shared/destinationawsdatalakecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationawsdatalakecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationAwsDatalakeCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationAwsDatalakeCreateRequest) GetConfiguration() DestinationAwsDatalake {
+ if o == nil {
+ return DestinationAwsDatalake{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationAwsDatalakeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationAwsDatalakeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalakeputrequest.go b/internal/sdk/pkg/models/shared/destinationawsdatalakeputrequest.go
old mode 100755
new mode 100644
index b30d48b34..f85a07f80
--- a/internal/sdk/pkg/models/shared/destinationawsdatalakeputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationawsdatalakeputrequest.go
@@ -7,3 +7,24 @@ type DestinationAwsDatalakePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationAwsDatalakePutRequest) GetConfiguration() DestinationAwsDatalakeUpdate {
+ if o == nil {
+ return DestinationAwsDatalakeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationAwsDatalakePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationAwsDatalakePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go b/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go
old mode 100755
new mode 100644
index d0ad381b7..055b6ad09
--- a/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -41,7 +41,36 @@ type DestinationAwsDatalakeUpdateAuthenticationModeIAMUser struct {
// Secret Access Key
AwsSecretAccessKey string `json:"aws_secret_access_key"`
// Name of the credentials
- CredentialsTitle DestinationAwsDatalakeUpdateAuthenticationModeIAMUserCredentialsTitle `json:"credentials_title"`
+ credentialsTitle *DestinationAwsDatalakeUpdateAuthenticationModeIAMUserCredentialsTitle `const:"IAM User" json:"credentials_title"`
+}
+
+func (d DestinationAwsDatalakeUpdateAuthenticationModeIAMUser) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeUpdateAuthenticationModeIAMUser) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeUpdateAuthenticationModeIAMUser) GetAwsAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *DestinationAwsDatalakeUpdateAuthenticationModeIAMUser) GetAwsSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *DestinationAwsDatalakeUpdateAuthenticationModeIAMUser) GetCredentialsTitle() *DestinationAwsDatalakeUpdateAuthenticationModeIAMUserCredentialsTitle {
+ return DestinationAwsDatalakeUpdateAuthenticationModeIAMUserCredentialsTitleIamUser.ToPointer()
}
// DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle - Name of the credentials
@@ -72,11 +101,33 @@ func (e *DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle)
// DestinationAwsDatalakeUpdateAuthenticationModeIAMRole - Choose How to Authenticate to AWS.
type DestinationAwsDatalakeUpdateAuthenticationModeIAMRole struct {
// Name of the credentials
- CredentialsTitle DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle `json:"credentials_title"`
+ credentialsTitle *DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle `const:"IAM Role" json:"credentials_title"`
// Will assume this role to write data to s3
RoleArn string `json:"role_arn"`
}
+func (d DestinationAwsDatalakeUpdateAuthenticationModeIAMRole) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeUpdateAuthenticationModeIAMRole) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeUpdateAuthenticationModeIAMRole) GetCredentialsTitle() *DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitle {
+ return DestinationAwsDatalakeUpdateAuthenticationModeIAMRoleCredentialsTitleIamRole.ToPointer()
+}
+
+func (o *DestinationAwsDatalakeUpdateAuthenticationModeIAMRole) GetRoleArn() string {
+ if o == nil {
+ return ""
+ }
+ return o.RoleArn
+}
+
type DestinationAwsDatalakeUpdateAuthenticationModeType string
const (
@@ -110,21 +161,16 @@ func CreateDestinationAwsDatalakeUpdateAuthenticationModeDestinationAwsDatalakeU
}
func (u *DestinationAwsDatalakeUpdateAuthenticationMode) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAwsDatalakeUpdateAuthenticationModeIAMRole := new(DestinationAwsDatalakeUpdateAuthenticationModeIAMRole)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeUpdateAuthenticationModeIAMRole); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeUpdateAuthenticationModeIAMRole, "", true, true); err == nil {
u.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole = destinationAwsDatalakeUpdateAuthenticationModeIAMRole
u.Type = DestinationAwsDatalakeUpdateAuthenticationModeTypeDestinationAwsDatalakeUpdateAuthenticationModeIAMRole
return nil
}
destinationAwsDatalakeUpdateAuthenticationModeIAMUser := new(DestinationAwsDatalakeUpdateAuthenticationModeIAMUser)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeUpdateAuthenticationModeIAMUser); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeUpdateAuthenticationModeIAMUser, "", true, true); err == nil {
u.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser = destinationAwsDatalakeUpdateAuthenticationModeIAMUser
u.Type = DestinationAwsDatalakeUpdateAuthenticationModeTypeDestinationAwsDatalakeUpdateAuthenticationModeIAMUser
return nil
@@ -135,14 +181,14 @@ func (u *DestinationAwsDatalakeUpdateAuthenticationMode) UnmarshalJSON(data []by
func (u DestinationAwsDatalakeUpdateAuthenticationMode) MarshalJSON() ([]byte, error) {
if u.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole != nil {
- return json.Marshal(u.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeUpdateAuthenticationModeIAMRole, "", true)
}
if u.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser != nil {
- return json.Marshal(u.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeUpdateAuthenticationModeIAMUser, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional - The compression algorithm used to compress data.
@@ -206,8 +252,33 @@ func (e *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageF
// DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage - Format of the data output.
type DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage struct {
// The compression algorithm used to compress data.
- CompressionCodec *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional `json:"compression_codec,omitempty"`
- FormatType DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard `json:"format_type"`
+ CompressionCodec *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional `default:"SNAPPY" json:"compression_codec"`
+ FormatType *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard `default:"Parquet" json:"format_type"`
+}
+
+func (d DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage) GetCompressionCodec() *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageCompressionCodecOptional {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage) GetFormatType() *DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorageFormatTypeWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
// DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional - The compression algorithm used to compress data.
@@ -265,8 +336,33 @@ func (e *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimit
// DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON - Format of the data output.
type DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON struct {
// The compression algorithm used to compress data.
- CompressionCodec *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional `json:"compression_codec,omitempty"`
- FormatType DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard `json:"format_type"`
+ CompressionCodec *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional `default:"UNCOMPRESSED" json:"compression_codec"`
+ FormatType *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON) GetCompressionCodec() *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONCompressionCodecOptional {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSONFormatTypeWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationAwsDatalakeUpdateOutputFormatWildcardType string
@@ -302,21 +398,16 @@ func CreateDestinationAwsDatalakeUpdateOutputFormatWildcardDestinationAwsDatalak
}
func (u *DestinationAwsDatalakeUpdateOutputFormatWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON := new(DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON = destinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON
u.Type = DestinationAwsDatalakeUpdateOutputFormatWildcardTypeDestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON
return nil
}
destinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage := new(DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage, "", true, true); err == nil {
u.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage = destinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage
u.Type = DestinationAwsDatalakeUpdateOutputFormatWildcardTypeDestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage
return nil
@@ -327,14 +418,14 @@ func (u *DestinationAwsDatalakeUpdateOutputFormatWildcard) UnmarshalJSON(data []
func (u DestinationAwsDatalakeUpdateOutputFormatWildcard) MarshalJSON() ([]byte, error) {
if u.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeUpdateOutputFormatWildcardJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationAwsDatalakeUpdateOutputFormatWildcardParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationAwsDatalakeUpdateChooseHowToPartitionData - Partition data by cursor fields when a cursor field is a date
@@ -492,7 +583,7 @@ type DestinationAwsDatalakeUpdate struct {
// Format of the data output.
Format *DestinationAwsDatalakeUpdateOutputFormatWildcard `json:"format,omitempty"`
// Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source.
- GlueCatalogFloatAsDecimal *bool `json:"glue_catalog_float_as_decimal,omitempty"`
+ GlueCatalogFloatAsDecimal *bool `default:"false" json:"glue_catalog_float_as_decimal"`
// Add a default tag key to databases created by this destination
LakeformationDatabaseDefaultTagKey *string `json:"lakeformation_database_default_tag_key,omitempty"`
// Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values.
@@ -500,9 +591,104 @@ type DestinationAwsDatalakeUpdate struct {
// The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace.
LakeformationDatabaseName string `json:"lakeformation_database_name"`
// Whether to create tables as LF governed tables.
- LakeformationGovernedTables *bool `json:"lakeformation_governed_tables,omitempty"`
+ LakeformationGovernedTables *bool `default:"false" json:"lakeformation_governed_tables"`
// Partition data by cursor fields when a cursor field is a date
- Partitioning *DestinationAwsDatalakeUpdateChooseHowToPartitionData `json:"partitioning,omitempty"`
+ Partitioning *DestinationAwsDatalakeUpdateChooseHowToPartitionData `default:"NO PARTITIONING" json:"partitioning"`
// The region of the S3 bucket. See here for all region codes.
- Region DestinationAwsDatalakeUpdateS3BucketRegion `json:"region"`
+ Region *DestinationAwsDatalakeUpdateS3BucketRegion `default:"" json:"region"`
+}
+
+func (d DestinationAwsDatalakeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAwsDatalakeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetAwsAccountID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccountID
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.BucketName
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetBucketPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BucketPrefix
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetCredentials() DestinationAwsDatalakeUpdateAuthenticationMode {
+ if o == nil {
+ return DestinationAwsDatalakeUpdateAuthenticationMode{}
+ }
+ return o.Credentials
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetFormat() *DestinationAwsDatalakeUpdateOutputFormatWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetGlueCatalogFloatAsDecimal() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.GlueCatalogFloatAsDecimal
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetLakeformationDatabaseDefaultTagKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationDatabaseDefaultTagKey
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetLakeformationDatabaseDefaultTagValues() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationDatabaseDefaultTagValues
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetLakeformationDatabaseName() string {
+ if o == nil {
+ return ""
+ }
+ return o.LakeformationDatabaseName
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetLakeformationGovernedTables() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.LakeformationGovernedTables
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetPartitioning() *DestinationAwsDatalakeUpdateChooseHowToPartitionData {
+ if o == nil {
+ return nil
+ }
+ return o.Partitioning
+}
+
+func (o *DestinationAwsDatalakeUpdate) GetRegion() *DestinationAwsDatalakeUpdateS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
}
diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstorage.go b/internal/sdk/pkg/models/shared/destinationazureblobstorage.go
old mode 100755
new mode 100644
index 6411e49df..198ee9d88
--- a/internal/sdk/pkg/models/shared/destinationazureblobstorage.go
+++ b/internal/sdk/pkg/models/shared/destinationazureblobstorage.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -59,7 +59,22 @@ func (e *DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFor
// DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON - Output data format
type DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ formatType DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFormatType `const:"JSONL" json:"format_type"`
+}
+
+func (d DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ return DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSONFormatTypeJsonl
}
// DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -117,8 +132,30 @@ func (e *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatTyp
// DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues - Output data format
type DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues struct {
// Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening `json:"flattening"`
- FormatType DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening `default:"No flattening" json:"flattening"`
+ formatType DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatType `const:"CSV" json:"format_type"`
+}
+
+func (d DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesNormalizationFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues) GetFormatType() DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatType {
+ return DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValuesFormatTypeCsv
}
type DestinationAzureBlobStorageOutputFormatType string
@@ -154,21 +191,16 @@ func CreateDestinationAzureBlobStorageOutputFormatDestinationAzureBlobStorageOut
}
func (u *DestinationAzureBlobStorageOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON = destinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues := new(DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues = destinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues
u.Type = DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues
return nil
@@ -178,15 +210,15 @@ func (u *DestinationAzureBlobStorageOutputFormat) UnmarshalJSON(data []byte) err
}
func (u DestinationAzureBlobStorageOutputFormat) MarshalJSON() ([]byte, error) {
- if u.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON)
+ if u.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues != nil {
+ return utils.MarshalJSON(u.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues, "", true)
}
- if u.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues)
+ if u.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON != nil {
+ return utils.MarshalJSON(u.DestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationAzureBlobStorage struct {
@@ -197,12 +229,76 @@ type DestinationAzureBlobStorage struct {
// The name of the Azure blob storage container. If not exists - will be created automatically. May be empty, then will be created automatically airbytecontainer+timestamp
AzureBlobStorageContainerName *string `json:"azure_blob_storage_container_name,omitempty"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpointDomainName *string `json:"azure_blob_storage_endpoint_domain_name,omitempty"`
+ AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"`
// The amount of megabytes to buffer for the output stream to Azure. This will impact memory footprint on workers, but may need adjustment for performance and appropriate block size in Azure.
- AzureBlobStorageOutputBufferSize *int64 `json:"azure_blob_storage_output_buffer_size,omitempty"`
+ AzureBlobStorageOutputBufferSize *int64 `default:"5" json:"azure_blob_storage_output_buffer_size"`
// The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable
- AzureBlobStorageSpillSize *int64 `json:"azure_blob_storage_spill_size,omitempty"`
- DestinationType DestinationAzureBlobStorageAzureBlobStorage `json:"destinationType"`
+ AzureBlobStorageSpillSize *int64 `default:"500" json:"azure_blob_storage_spill_size"`
+ destinationType DestinationAzureBlobStorageAzureBlobStorage `const:"azure-blob-storage" json:"destinationType"`
// Output data format
Format DestinationAzureBlobStorageOutputFormat `json:"format"`
}
+
+func (d DestinationAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageAccountKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountKey
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageContainerName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageEndpointDomainName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpointDomainName
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageOutputBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageOutputBufferSize
+}
+
+func (o *DestinationAzureBlobStorage) GetAzureBlobStorageSpillSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageSpillSize
+}
+
+func (o *DestinationAzureBlobStorage) GetDestinationType() DestinationAzureBlobStorageAzureBlobStorage {
+ return DestinationAzureBlobStorageAzureBlobStorageAzureBlobStorage
+}
+
+func (o *DestinationAzureBlobStorage) GetFormat() DestinationAzureBlobStorageOutputFormat {
+ if o == nil {
+ return DestinationAzureBlobStorageOutputFormat{}
+ }
+ return o.Format
+}
diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstoragecreaterequest.go b/internal/sdk/pkg/models/shared/destinationazureblobstoragecreaterequest.go
old mode 100755
new mode 100644
index bd39e8ff3..a025dd8f4
--- a/internal/sdk/pkg/models/shared/destinationazureblobstoragecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationazureblobstoragecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationAzureBlobStorageCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationAzureBlobStorageCreateRequest) GetConfiguration() DestinationAzureBlobStorage {
+ if o == nil {
+ return DestinationAzureBlobStorage{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationAzureBlobStorageCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationAzureBlobStorageCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstorageputrequest.go b/internal/sdk/pkg/models/shared/destinationazureblobstorageputrequest.go
old mode 100755
new mode 100644
index 2e90a963e..92bbd2ee4
--- a/internal/sdk/pkg/models/shared/destinationazureblobstorageputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationazureblobstorageputrequest.go
@@ -7,3 +7,24 @@ type DestinationAzureBlobStoragePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationAzureBlobStoragePutRequest) GetConfiguration() DestinationAzureBlobStorageUpdate {
+ if o == nil {
+ return DestinationAzureBlobStorageUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationAzureBlobStoragePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationAzureBlobStoragePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go b/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go
old mode 100755
new mode 100644
index 8a55073c0..8a4ab9bea
--- a/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJ
// DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON - Output data format
type DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ formatType DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `const:"JSONL" json:"format_type"`
+}
+
+func (d DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ return DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatTypeJsonl
}
// DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -93,8 +108,30 @@ func (e *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFor
// DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues - Output data format
type DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues struct {
// Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening `json:"flattening"`
- FormatType DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening `default:"No flattening" json:"flattening"`
+ formatType DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFormatType `const:"CSV" json:"format_type"`
+}
+
+func (d DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesNormalizationFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues) GetFormatType() DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFormatType {
+ return DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValuesFormatTypeCsv
}
type DestinationAzureBlobStorageUpdateOutputFormatType string
@@ -130,21 +167,16 @@ func CreateDestinationAzureBlobStorageUpdateOutputFormatDestinationAzureBlobStor
}
func (u *DestinationAzureBlobStorageUpdateOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON = destinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationAzureBlobStorageUpdateOutputFormatTypeDestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues := new(DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues = destinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues
u.Type = DestinationAzureBlobStorageUpdateOutputFormatTypeDestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues
return nil
@@ -154,15 +186,15 @@ func (u *DestinationAzureBlobStorageUpdateOutputFormat) UnmarshalJSON(data []byt
}
func (u DestinationAzureBlobStorageUpdateOutputFormat) MarshalJSON() ([]byte, error) {
- if u.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
+ if u.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues != nil {
+ return utils.MarshalJSON(u.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues, "", true)
}
- if u.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationAzureBlobStorageUpdateOutputFormatCSVCommaSeparatedValues)
+ if u.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
+ return utils.MarshalJSON(u.DestinationAzureBlobStorageUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationAzureBlobStorageUpdate struct {
@@ -173,11 +205,71 @@ type DestinationAzureBlobStorageUpdate struct {
// The name of the Azure blob storage container. If not exists - will be created automatically. May be empty, then will be created automatically airbytecontainer+timestamp
AzureBlobStorageContainerName *string `json:"azure_blob_storage_container_name,omitempty"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpointDomainName *string `json:"azure_blob_storage_endpoint_domain_name,omitempty"`
+ AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"`
// The amount of megabytes to buffer for the output stream to Azure. This will impact memory footprint on workers, but may need adjustment for performance and appropriate block size in Azure.
- AzureBlobStorageOutputBufferSize *int64 `json:"azure_blob_storage_output_buffer_size,omitempty"`
+ AzureBlobStorageOutputBufferSize *int64 `default:"5" json:"azure_blob_storage_output_buffer_size"`
// The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable
- AzureBlobStorageSpillSize *int64 `json:"azure_blob_storage_spill_size,omitempty"`
+ AzureBlobStorageSpillSize *int64 `default:"500" json:"azure_blob_storage_spill_size"`
// Output data format
Format DestinationAzureBlobStorageUpdateOutputFormat `json:"format"`
}
+
+func (d DestinationAzureBlobStorageUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationAzureBlobStorageUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageAccountKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountKey
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageContainerName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageEndpointDomainName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpointDomainName
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageOutputBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageOutputBufferSize
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetAzureBlobStorageSpillSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageSpillSize
+}
+
+func (o *DestinationAzureBlobStorageUpdate) GetFormat() DestinationAzureBlobStorageUpdateOutputFormat {
+ if o == nil {
+ return DestinationAzureBlobStorageUpdateOutputFormat{}
+ }
+ return o.Format
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquery.go b/internal/sdk/pkg/models/shared/destinationbigquery.go
old mode 100755
new mode 100644
index 06e2bf662..7486bc938
--- a/internal/sdk/pkg/models/shared/destinationbigquery.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquery.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -201,13 +201,42 @@ func (e *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialTy
// DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey struct {
- CredentialType DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialType `json:"credential_type"`
+ credentialType DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialType `const:"HMAC_KEY" json:"credential_type"`
// HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey) GetCredentialType() DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialType {
+ return DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKeyCredentialTypeHmacKey
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationBigqueryLoadingMethodGCSStagingCredentialType string
const (
@@ -230,12 +259,9 @@ func CreateDestinationBigqueryLoadingMethodGCSStagingCredentialDestinationBigque
}
func (u *DestinationBigqueryLoadingMethodGCSStagingCredential) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey := new(DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey, "", true, true); err == nil {
u.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey = destinationBigqueryLoadingMethodGCSStagingCredentialHMACKey
u.Type = DestinationBigqueryLoadingMethodGCSStagingCredentialTypeDestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey
return nil
@@ -246,10 +272,10 @@ func (u *DestinationBigqueryLoadingMethodGCSStagingCredential) UnmarshalJSON(dat
func (u DestinationBigqueryLoadingMethodGCSStagingCredential) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey != nil {
- return json.Marshal(u.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey)
+ return utils.MarshalJSON(u.DestinationBigqueryLoadingMethodGCSStagingCredentialHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing - This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
@@ -309,14 +335,64 @@ type DestinationBigqueryLoadingMethodGCSStaging struct {
// An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
Credential DestinationBigqueryLoadingMethodGCSStagingCredential `json:"credential"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The name of the GCS bucket. Read more here.
GcsBucketName string `json:"gcs_bucket_name"`
// Directory under the GCS bucket where data will be written.
GcsBucketPath string `json:"gcs_bucket_path"`
// This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
- KeepFilesInGcsBucket *DestinationBigqueryLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `json:"keep_files_in_gcs-bucket,omitempty"`
- Method DestinationBigqueryLoadingMethodGCSStagingMethod `json:"method"`
+ KeepFilesInGcsBucket *DestinationBigqueryLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"`
+ method DestinationBigqueryLoadingMethodGCSStagingMethod `const:"GCS Staging" json:"method"`
+}
+
+func (d DestinationBigqueryLoadingMethodGCSStaging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryLoadingMethodGCSStaging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetCredential() DestinationBigqueryLoadingMethodGCSStagingCredential {
+ if o == nil {
+ return DestinationBigqueryLoadingMethodGCSStagingCredential{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetKeepFilesInGcsBucket() *DestinationBigqueryLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing {
+ if o == nil {
+ return nil
+ }
+ return o.KeepFilesInGcsBucket
+}
+
+func (o *DestinationBigqueryLoadingMethodGCSStaging) GetMethod() DestinationBigqueryLoadingMethodGCSStagingMethod {
+ return DestinationBigqueryLoadingMethodGCSStagingMethodGcsStaging
}
type DestinationBigqueryLoadingMethodStandardInsertsMethod string
@@ -345,7 +421,22 @@ func (e *DestinationBigqueryLoadingMethodStandardInsertsMethod) UnmarshalJSON(da
// DestinationBigqueryLoadingMethodStandardInserts - Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
type DestinationBigqueryLoadingMethodStandardInserts struct {
- Method DestinationBigqueryLoadingMethodStandardInsertsMethod `json:"method"`
+ method DestinationBigqueryLoadingMethodStandardInsertsMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationBigqueryLoadingMethodStandardInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryLoadingMethodStandardInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryLoadingMethodStandardInserts) GetMethod() DestinationBigqueryLoadingMethodStandardInsertsMethod {
+ return DestinationBigqueryLoadingMethodStandardInsertsMethodStandard
}
type DestinationBigqueryLoadingMethodType string
@@ -381,21 +472,16 @@ func CreateDestinationBigqueryLoadingMethodDestinationBigqueryLoadingMethodGCSSt
}
func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryLoadingMethodStandardInserts := new(DestinationBigqueryLoadingMethodStandardInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryLoadingMethodStandardInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryLoadingMethodStandardInserts, "", true, true); err == nil {
u.DestinationBigqueryLoadingMethodStandardInserts = destinationBigqueryLoadingMethodStandardInserts
u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryLoadingMethodStandardInserts
return nil
}
destinationBigqueryLoadingMethodGCSStaging := new(DestinationBigqueryLoadingMethodGCSStaging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryLoadingMethodGCSStaging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryLoadingMethodGCSStaging, "", true, true); err == nil {
u.DestinationBigqueryLoadingMethodGCSStaging = destinationBigqueryLoadingMethodGCSStaging
u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryLoadingMethodGCSStaging
return nil
@@ -406,14 +492,14 @@ func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error {
func (u DestinationBigqueryLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryLoadingMethodStandardInserts != nil {
- return json.Marshal(u.DestinationBigqueryLoadingMethodStandardInserts)
+ return utils.MarshalJSON(u.DestinationBigqueryLoadingMethodStandardInserts, "", true)
}
if u.DestinationBigqueryLoadingMethodGCSStaging != nil {
- return json.Marshal(u.DestinationBigqueryLoadingMethodGCSStaging)
+ return utils.MarshalJSON(u.DestinationBigqueryLoadingMethodGCSStaging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryTransformationQueryRunType - Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly.
@@ -446,14 +532,14 @@ func (e *DestinationBigqueryTransformationQueryRunType) UnmarshalJSON(data []byt
type DestinationBigquery struct {
// Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here.
- BigQueryClientBufferSizeMb *int64 `json:"big_query_client_buffer_size_mb,omitempty"`
+ BigQueryClientBufferSizeMb *int64 `default:"15" json:"big_query_client_buffer_size_mb"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
CredentialsJSON *string `json:"credentials_json,omitempty"`
// The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
DatasetID string `json:"dataset_id"`
// The location of the dataset. Warning: Changes made after creation will not be applied. Read more here.
DatasetLocation DestinationBigqueryDatasetLocation `json:"dataset_location"`
- DestinationType DestinationBigqueryBigquery `json:"destinationType"`
+ destinationType DestinationBigqueryBigquery `const:"bigquery" json:"destinationType"`
// Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
LoadingMethod *DestinationBigqueryLoadingMethod `json:"loading_method,omitempty"`
// The GCP project ID for the project containing the target BigQuery dataset. Read more here.
@@ -461,5 +547,76 @@ type DestinationBigquery struct {
// The dataset to write raw tables into
RawDataDataset *string `json:"raw_data_dataset,omitempty"`
// Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly.
- TransformationPriority *DestinationBigqueryTransformationQueryRunType `json:"transformation_priority,omitempty"`
+ TransformationPriority *DestinationBigqueryTransformationQueryRunType `default:"interactive" json:"transformation_priority"`
+}
+
+func (d DestinationBigquery) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigquery) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigquery) GetBigQueryClientBufferSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BigQueryClientBufferSizeMb
+}
+
+func (o *DestinationBigquery) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationBigquery) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *DestinationBigquery) GetDatasetLocation() DestinationBigqueryDatasetLocation {
+ if o == nil {
+ return DestinationBigqueryDatasetLocation("")
+ }
+ return o.DatasetLocation
+}
+
+func (o *DestinationBigquery) GetDestinationType() DestinationBigqueryBigquery {
+ return DestinationBigqueryBigqueryBigquery
+}
+
+func (o *DestinationBigquery) GetLoadingMethod() *DestinationBigqueryLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationBigquery) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *DestinationBigquery) GetRawDataDataset() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RawDataDataset
+}
+
+func (o *DestinationBigquery) GetTransformationPriority() *DestinationBigqueryTransformationQueryRunType {
+ if o == nil {
+ return nil
+ }
+ return o.TransformationPriority
}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquerycreaterequest.go b/internal/sdk/pkg/models/shared/destinationbigquerycreaterequest.go
old mode 100755
new mode 100644
index 7f605018d..a9f36860b
--- a/internal/sdk/pkg/models/shared/destinationbigquerycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquerycreaterequest.go
@@ -7,3 +7,24 @@ type DestinationBigqueryCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationBigqueryCreateRequest) GetConfiguration() DestinationBigquery {
+ if o == nil {
+ return DestinationBigquery{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationBigqueryCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationBigqueryCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go
old mode 100755
new mode 100644
index 79a9af335..9b7ce6512
--- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -201,13 +201,42 @@ func (e *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey
// DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey struct {
- CredentialType DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKeyCredentialType `json:"credential_type"`
+ credentialType DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKeyCredentialType `const:"HMAC_KEY" json:"credential_type"`
// HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey) GetCredentialType() DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKeyCredentialType {
+ return DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKeyCredentialTypeHmacKey
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialType string
const (
@@ -230,12 +259,9 @@ func CreateDestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialDesti
}
func (u *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey := new(DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey = destinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey
u.Type = DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialTypeDestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey
return nil
@@ -246,10 +272,10 @@ func (u *DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential) Unmar
func (u DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredentialHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryDenormalizedLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing - This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
@@ -309,14 +335,64 @@ type DestinationBigqueryDenormalizedLoadingMethodGCSStaging struct {
// An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
Credential DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential `json:"credential"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The name of the GCS bucket. Read more here.
GcsBucketName string `json:"gcs_bucket_name"`
// Directory under the GCS bucket where data will be written. Read more here.
GcsBucketPath string `json:"gcs_bucket_path"`
// This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
- KeepFilesInGcsBucket *DestinationBigqueryDenormalizedLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `json:"keep_files_in_gcs-bucket,omitempty"`
- Method DestinationBigqueryDenormalizedLoadingMethodGCSStagingMethod `json:"method"`
+ KeepFilesInGcsBucket *DestinationBigqueryDenormalizedLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"`
+ method DestinationBigqueryDenormalizedLoadingMethodGCSStagingMethod `const:"GCS Staging" json:"method"`
+}
+
+func (d DestinationBigqueryDenormalizedLoadingMethodGCSStaging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetCredential() DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential {
+ if o == nil {
+ return DestinationBigqueryDenormalizedLoadingMethodGCSStagingCredential{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetKeepFilesInGcsBucket() *DestinationBigqueryDenormalizedLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing {
+ if o == nil {
+ return nil
+ }
+ return o.KeepFilesInGcsBucket
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodGCSStaging) GetMethod() DestinationBigqueryDenormalizedLoadingMethodGCSStagingMethod {
+ return DestinationBigqueryDenormalizedLoadingMethodGCSStagingMethodGcsStaging
}
type DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod string
@@ -345,7 +421,22 @@ func (e *DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod) Unma
// DestinationBigqueryDenormalizedLoadingMethodStandardInserts - Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
type DestinationBigqueryDenormalizedLoadingMethodStandardInserts struct {
- Method DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod `json:"method"`
+ method DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationBigqueryDenormalizedLoadingMethodStandardInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedLoadingMethodStandardInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedLoadingMethodStandardInserts) GetMethod() DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethod {
+ return DestinationBigqueryDenormalizedLoadingMethodStandardInsertsMethodStandard
}
type DestinationBigqueryDenormalizedLoadingMethodType string
@@ -381,21 +472,16 @@ func CreateDestinationBigqueryDenormalizedLoadingMethodDestinationBigqueryDenorm
}
func (u *DestinationBigqueryDenormalizedLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryDenormalizedLoadingMethodStandardInserts := new(DestinationBigqueryDenormalizedLoadingMethodStandardInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedLoadingMethodStandardInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedLoadingMethodStandardInserts, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedLoadingMethodStandardInserts = destinationBigqueryDenormalizedLoadingMethodStandardInserts
u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedLoadingMethodStandardInserts
return nil
}
destinationBigqueryDenormalizedLoadingMethodGCSStaging := new(DestinationBigqueryDenormalizedLoadingMethodGCSStaging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedLoadingMethodGCSStaging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedLoadingMethodGCSStaging, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedLoadingMethodGCSStaging = destinationBigqueryDenormalizedLoadingMethodGCSStaging
u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedLoadingMethodGCSStaging
return nil
@@ -406,28 +492,85 @@ func (u *DestinationBigqueryDenormalizedLoadingMethod) UnmarshalJSON(data []byte
func (u DestinationBigqueryDenormalizedLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryDenormalizedLoadingMethodStandardInserts != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedLoadingMethodStandardInserts)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedLoadingMethodStandardInserts, "", true)
}
if u.DestinationBigqueryDenormalizedLoadingMethodGCSStaging != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedLoadingMethodGCSStaging)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedLoadingMethodGCSStaging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationBigqueryDenormalized struct {
// Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here.
- BigQueryClientBufferSizeMb *int64 `json:"big_query_client_buffer_size_mb,omitempty"`
+ BigQueryClientBufferSizeMb *int64 `default:"15" json:"big_query_client_buffer_size_mb"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
CredentialsJSON *string `json:"credentials_json,omitempty"`
// The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
DatasetID string `json:"dataset_id"`
// The location of the dataset. Warning: Changes made after creation will not be applied. The default "US" value is used if not set explicitly. Read more here.
- DatasetLocation *DestinationBigqueryDenormalizedDatasetLocation `json:"dataset_location,omitempty"`
- DestinationType DestinationBigqueryDenormalizedBigqueryDenormalized `json:"destinationType"`
+ DatasetLocation *DestinationBigqueryDenormalizedDatasetLocation `default:"US" json:"dataset_location"`
+ destinationType DestinationBigqueryDenormalizedBigqueryDenormalized `const:"bigquery-denormalized" json:"destinationType"`
// Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
LoadingMethod *DestinationBigqueryDenormalizedLoadingMethod `json:"loading_method,omitempty"`
// The GCP project ID for the project containing the target BigQuery dataset. Read more here.
ProjectID string `json:"project_id"`
}
+
+func (d DestinationBigqueryDenormalized) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalized) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalized) GetBigQueryClientBufferSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BigQueryClientBufferSizeMb
+}
+
+func (o *DestinationBigqueryDenormalized) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationBigqueryDenormalized) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *DestinationBigqueryDenormalized) GetDatasetLocation() *DestinationBigqueryDenormalizedDatasetLocation {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetLocation
+}
+
+func (o *DestinationBigqueryDenormalized) GetDestinationType() DestinationBigqueryDenormalizedBigqueryDenormalized {
+ return DestinationBigqueryDenormalizedBigqueryDenormalizedBigqueryDenormalized
+}
+
+func (o *DestinationBigqueryDenormalized) GetLoadingMethod() *DestinationBigqueryDenormalizedLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationBigqueryDenormalized) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedcreaterequest.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedcreaterequest.go
old mode 100755
new mode 100644
index dce40c9d3..acc9a2dfc
--- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationBigqueryDenormalizedCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationBigqueryDenormalizedCreateRequest) GetConfiguration() DestinationBigqueryDenormalized {
+ if o == nil {
+ return DestinationBigqueryDenormalized{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationBigqueryDenormalizedCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationBigqueryDenormalizedCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedputrequest.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedputrequest.go
old mode 100755
new mode 100644
index c6598ecab..e12313e42
--- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedputrequest.go
@@ -7,3 +7,24 @@ type DestinationBigqueryDenormalizedPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationBigqueryDenormalizedPutRequest) GetConfiguration() DestinationBigqueryDenormalizedUpdate {
+ if o == nil {
+ return DestinationBigqueryDenormalizedUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationBigqueryDenormalizedPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationBigqueryDenormalizedPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go
old mode 100755
new mode 100644
index 64b214e77..f8ab3694e
--- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -177,13 +177,42 @@ func (e *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialH
// DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey struct {
- CredentialType DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType `json:"credential_type"`
+ credentialType DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType `const:"HMAC_KEY" json:"credential_type"`
// HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey) GetCredentialType() DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType {
+ return DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialTypeHmacKey
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialType string
const (
@@ -206,12 +235,9 @@ func CreateDestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentia
}
func (u *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey := new(DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey = destinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey
u.Type = DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialTypeDestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey
return nil
@@ -222,10 +248,10 @@ func (u *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential)
func (u DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredentialHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing - This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
@@ -285,14 +311,64 @@ type DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging struct {
// An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
Credential DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential `json:"credential"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The name of the GCS bucket. Read more here.
GcsBucketName string `json:"gcs_bucket_name"`
// Directory under the GCS bucket where data will be written. Read more here.
GcsBucketPath string `json:"gcs_bucket_path"`
// This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
- KeepFilesInGcsBucket *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `json:"keep_files_in_gcs-bucket,omitempty"`
- Method DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingMethod `json:"method"`
+ KeepFilesInGcsBucket *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"`
+ method DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingMethod `const:"GCS Staging" json:"method"`
+}
+
+func (d DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetCredential() DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential {
+ if o == nil {
+ return DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingCredential{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetKeepFilesInGcsBucket() *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing {
+ if o == nil {
+ return nil
+ }
+ return o.KeepFilesInGcsBucket
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging) GetMethod() DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingMethod {
+ return DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStagingMethodGcsStaging
}
type DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod string
@@ -321,7 +397,22 @@ func (e *DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod
// DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts - Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
type DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts struct {
- Method DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod `json:"method"`
+ method DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts) GetMethod() DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethod {
+ return DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInsertsMethodStandard
}
type DestinationBigqueryDenormalizedUpdateLoadingMethodType string
@@ -357,21 +448,16 @@ func CreateDestinationBigqueryDenormalizedUpdateLoadingMethodDestinationBigquery
}
func (u *DestinationBigqueryDenormalizedUpdateLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts := new(DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts = destinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts
u.Type = DestinationBigqueryDenormalizedUpdateLoadingMethodTypeDestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts
return nil
}
destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging := new(DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging, "", true, true); err == nil {
u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging = destinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging
u.Type = DestinationBigqueryDenormalizedUpdateLoadingMethodTypeDestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging
return nil
@@ -382,27 +468,80 @@ func (u *DestinationBigqueryDenormalizedUpdateLoadingMethod) UnmarshalJSON(data
func (u DestinationBigqueryDenormalizedUpdateLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedUpdateLoadingMethodStandardInserts, "", true)
}
if u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging != nil {
- return json.Marshal(u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging)
+ return utils.MarshalJSON(u.DestinationBigqueryDenormalizedUpdateLoadingMethodGCSStaging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationBigqueryDenormalizedUpdate struct {
// Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here.
- BigQueryClientBufferSizeMb *int64 `json:"big_query_client_buffer_size_mb,omitempty"`
+ BigQueryClientBufferSizeMb *int64 `default:"15" json:"big_query_client_buffer_size_mb"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
CredentialsJSON *string `json:"credentials_json,omitempty"`
// The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
DatasetID string `json:"dataset_id"`
// The location of the dataset. Warning: Changes made after creation will not be applied. The default "US" value is used if not set explicitly. Read more here.
- DatasetLocation *DestinationBigqueryDenormalizedUpdateDatasetLocation `json:"dataset_location,omitempty"`
+ DatasetLocation *DestinationBigqueryDenormalizedUpdateDatasetLocation `default:"US" json:"dataset_location"`
// Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
LoadingMethod *DestinationBigqueryDenormalizedUpdateLoadingMethod `json:"loading_method,omitempty"`
// The GCP project ID for the project containing the target BigQuery dataset. Read more here.
ProjectID string `json:"project_id"`
}
+
+func (d DestinationBigqueryDenormalizedUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryDenormalizedUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetBigQueryClientBufferSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BigQueryClientBufferSizeMb
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetDatasetLocation() *DestinationBigqueryDenormalizedUpdateDatasetLocation {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetLocation
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetLoadingMethod() *DestinationBigqueryDenormalizedUpdateLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationBigqueryDenormalizedUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigqueryputrequest.go b/internal/sdk/pkg/models/shared/destinationbigqueryputrequest.go
old mode 100755
new mode 100644
index 759966aa5..ee58ebdb9
--- a/internal/sdk/pkg/models/shared/destinationbigqueryputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationbigqueryputrequest.go
@@ -7,3 +7,24 @@ type DestinationBigqueryPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationBigqueryPutRequest) GetConfiguration() DestinationBigqueryUpdate {
+ if o == nil {
+ return DestinationBigqueryUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationBigqueryPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationBigqueryPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go b/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go
old mode 100755
new mode 100644
index ab98a64be..d422de30f
--- a/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -177,13 +177,42 @@ func (e *DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCreden
// DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey struct {
- CredentialType DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType `json:"credential_type"`
+ credentialType DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType `const:"HMAC_KEY" json:"credential_type"`
// HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey) GetCredentialType() DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialType {
+ return DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKeyCredentialTypeHmacKey
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialType string
const (
@@ -206,12 +235,9 @@ func CreateDestinationBigqueryUpdateLoadingMethodGCSStagingCredentialDestination
}
func (u *DestinationBigqueryUpdateLoadingMethodGCSStagingCredential) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey := new(DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey, "", true, true); err == nil {
u.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey = destinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey
u.Type = DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialTypeDestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey
return nil
@@ -222,10 +248,10 @@ func (u *DestinationBigqueryUpdateLoadingMethodGCSStagingCredential) UnmarshalJS
func (u DestinationBigqueryUpdateLoadingMethodGCSStagingCredential) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey != nil {
- return json.Marshal(u.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey)
+ return utils.MarshalJSON(u.DestinationBigqueryUpdateLoadingMethodGCSStagingCredentialHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing - This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
@@ -285,14 +311,64 @@ type DestinationBigqueryUpdateLoadingMethodGCSStaging struct {
// An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
Credential DestinationBigqueryUpdateLoadingMethodGCSStagingCredential `json:"credential"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The name of the GCS bucket. Read more here.
GcsBucketName string `json:"gcs_bucket_name"`
// Directory under the GCS bucket where data will be written.
GcsBucketPath string `json:"gcs_bucket_path"`
// This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly.
- KeepFilesInGcsBucket *DestinationBigqueryUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `json:"keep_files_in_gcs-bucket,omitempty"`
- Method DestinationBigqueryUpdateLoadingMethodGCSStagingMethod `json:"method"`
+ KeepFilesInGcsBucket *DestinationBigqueryUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing `default:"Delete all tmp files from GCS" json:"keep_files_in_gcs-bucket"`
+ method DestinationBigqueryUpdateLoadingMethodGCSStagingMethod `const:"GCS Staging" json:"method"`
+}
+
+func (d DestinationBigqueryUpdateLoadingMethodGCSStaging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryUpdateLoadingMethodGCSStaging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetCredential() DestinationBigqueryUpdateLoadingMethodGCSStagingCredential {
+ if o == nil {
+ return DestinationBigqueryUpdateLoadingMethodGCSStagingCredential{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetKeepFilesInGcsBucket() *DestinationBigqueryUpdateLoadingMethodGCSStagingGCSTmpFilesAfterwardProcessing {
+ if o == nil {
+ return nil
+ }
+ return o.KeepFilesInGcsBucket
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodGCSStaging) GetMethod() DestinationBigqueryUpdateLoadingMethodGCSStagingMethod {
+ return DestinationBigqueryUpdateLoadingMethodGCSStagingMethodGcsStaging
}
type DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod string
@@ -321,7 +397,22 @@ func (e *DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod) UnmarshalJ
// DestinationBigqueryUpdateLoadingMethodStandardInserts - Loading method used to send select the way data will be uploaded to BigQuery.
Standard Inserts - Direct uploading using SQL INSERT statements. This method is extremely inefficient and provided only for quick testing. In almost all cases, you should use staging.
GCS Staging - Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO table to upload the file. Recommended for most workloads for better speed and scalability. Read more about GCS Staging here.
type DestinationBigqueryUpdateLoadingMethodStandardInserts struct {
- Method DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod `json:"method"`
+ method DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationBigqueryUpdateLoadingMethodStandardInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryUpdateLoadingMethodStandardInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryUpdateLoadingMethodStandardInserts) GetMethod() DestinationBigqueryUpdateLoadingMethodStandardInsertsMethod {
+ return DestinationBigqueryUpdateLoadingMethodStandardInsertsMethodStandard
}
type DestinationBigqueryUpdateLoadingMethodType string
@@ -357,21 +448,16 @@ func CreateDestinationBigqueryUpdateLoadingMethodDestinationBigqueryUpdateLoadin
}
func (u *DestinationBigqueryUpdateLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationBigqueryUpdateLoadingMethodStandardInserts := new(DestinationBigqueryUpdateLoadingMethodStandardInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryUpdateLoadingMethodStandardInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateLoadingMethodStandardInserts, "", true, true); err == nil {
u.DestinationBigqueryUpdateLoadingMethodStandardInserts = destinationBigqueryUpdateLoadingMethodStandardInserts
u.Type = DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateLoadingMethodStandardInserts
return nil
}
destinationBigqueryUpdateLoadingMethodGCSStaging := new(DestinationBigqueryUpdateLoadingMethodGCSStaging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationBigqueryUpdateLoadingMethodGCSStaging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateLoadingMethodGCSStaging, "", true, true); err == nil {
u.DestinationBigqueryUpdateLoadingMethodGCSStaging = destinationBigqueryUpdateLoadingMethodGCSStaging
u.Type = DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateLoadingMethodGCSStaging
return nil
@@ -382,14 +468,14 @@ func (u *DestinationBigqueryUpdateLoadingMethod) UnmarshalJSON(data []byte) erro
func (u DestinationBigqueryUpdateLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationBigqueryUpdateLoadingMethodStandardInserts != nil {
- return json.Marshal(u.DestinationBigqueryUpdateLoadingMethodStandardInserts)
+ return utils.MarshalJSON(u.DestinationBigqueryUpdateLoadingMethodStandardInserts, "", true)
}
if u.DestinationBigqueryUpdateLoadingMethodGCSStaging != nil {
- return json.Marshal(u.DestinationBigqueryUpdateLoadingMethodGCSStaging)
+ return utils.MarshalJSON(u.DestinationBigqueryUpdateLoadingMethodGCSStaging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationBigqueryUpdateTransformationQueryRunType - Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly.
@@ -422,7 +508,7 @@ func (e *DestinationBigqueryUpdateTransformationQueryRunType) UnmarshalJSON(data
type DestinationBigqueryUpdate struct {
// Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here.
- BigQueryClientBufferSizeMb *int64 `json:"big_query_client_buffer_size_mb,omitempty"`
+ BigQueryClientBufferSizeMb *int64 `default:"15" json:"big_query_client_buffer_size_mb"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
CredentialsJSON *string `json:"credentials_json,omitempty"`
// The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here.
@@ -436,5 +522,72 @@ type DestinationBigqueryUpdate struct {
// The dataset to write raw tables into
RawDataDataset *string `json:"raw_data_dataset,omitempty"`
// Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly.
- TransformationPriority *DestinationBigqueryUpdateTransformationQueryRunType `json:"transformation_priority,omitempty"`
+ TransformationPriority *DestinationBigqueryUpdateTransformationQueryRunType `default:"interactive" json:"transformation_priority"`
+}
+
+func (d DestinationBigqueryUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationBigqueryUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationBigqueryUpdate) GetBigQueryClientBufferSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BigQueryClientBufferSizeMb
+}
+
+func (o *DestinationBigqueryUpdate) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationBigqueryUpdate) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *DestinationBigqueryUpdate) GetDatasetLocation() DestinationBigqueryUpdateDatasetLocation {
+ if o == nil {
+ return DestinationBigqueryUpdateDatasetLocation("")
+ }
+ return o.DatasetLocation
+}
+
+func (o *DestinationBigqueryUpdate) GetLoadingMethod() *DestinationBigqueryUpdateLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationBigqueryUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *DestinationBigqueryUpdate) GetRawDataDataset() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RawDataDataset
+}
+
+func (o *DestinationBigqueryUpdate) GetTransformationPriority() *DestinationBigqueryUpdateTransformationQueryRunType {
+ if o == nil {
+ return nil
+ }
+ return o.TransformationPriority
}
diff --git a/internal/sdk/pkg/models/shared/destinationclickhouse.go b/internal/sdk/pkg/models/shared/destinationclickhouse.go
old mode 100755
new mode 100644
index 7ed90086b..44edc8f22
--- a/internal/sdk/pkg/models/shared/destinationclickhouse.go
+++ b/internal/sdk/pkg/models/shared/destinationclickhouse.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type DestinationClickhouseSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationClickhouseSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON
// DestinationClickhouseSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationClickhouseSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationClickhouseSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationClickhouseSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationClickhouseSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateDestinationClickhouseSSHTunnelMethodDestinationClickhouseSSHTunnelMet
}
func (u *DestinationClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationClickhouseSSHTunnelMethodNoTunnel := new(DestinationClickhouseSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationClickhouseSSHTunnelMethodNoTunnel = destinationClickhouseSSHTunnelMethodNoTunnel
u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHTunnelMethodNoTunnel
return nil
}
destinationClickhouseSSHTunnelMethodSSHKeyAuthentication := new(DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication = destinationClickhouseSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationClickhouseSSHTunnelMethodPasswordAuthentication := new(DestinationClickhouseSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationClickhouseSSHTunnelMethodPasswordAuthentication = destinationClickhouseSSHTunnelMethodPasswordAuthentication
u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,24 +314,24 @@ func (u *DestinationClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error
func (u DestinationClickhouseSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationClickhouseSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationClickhouseSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationClickhouseSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationClickhouseSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationClickhouseSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationClickhouseSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationClickhouseSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationClickhouse struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationClickhouseClickhouse `json:"destinationType"`
+ destinationType DestinationClickhouseClickhouse `const:"clickhouse" json:"destinationType"`
// Hostname of the database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -245,9 +339,73 @@ type DestinationClickhouse struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// HTTP port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"8123" json:"port"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationClickhouseSSHTunnelMethod `json:"tunnel_method,omitempty"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationClickhouse) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouse) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouse) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationClickhouse) GetDestinationType() DestinationClickhouseClickhouse {
+ return DestinationClickhouseClickhouseClickhouse
+}
+
+func (o *DestinationClickhouse) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationClickhouse) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationClickhouse) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationClickhouse) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationClickhouse) GetTunnelMethod() *DestinationClickhouseSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationClickhouse) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationclickhousecreaterequest.go b/internal/sdk/pkg/models/shared/destinationclickhousecreaterequest.go
old mode 100755
new mode 100644
index 06f5a0b37..99aa4144e
--- a/internal/sdk/pkg/models/shared/destinationclickhousecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationclickhousecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationClickhouseCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationClickhouseCreateRequest) GetConfiguration() DestinationClickhouse {
+ if o == nil {
+ return DestinationClickhouse{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationClickhouseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationClickhouseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationclickhouseputrequest.go b/internal/sdk/pkg/models/shared/destinationclickhouseputrequest.go
old mode 100755
new mode 100644
index 8ff88edae..9e71b412c
--- a/internal/sdk/pkg/models/shared/destinationclickhouseputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationclickhouseputrequest.go
@@ -7,3 +7,24 @@ type DestinationClickhousePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationClickhousePutRequest) GetConfiguration() DestinationClickhouseUpdate {
+ if o == nil {
+ return DestinationClickhouseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationClickhousePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationClickhousePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go b/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go
old mode 100755
new mode 100644
index bf0c2aa18..44d9fee50
--- a/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod) Unmarsh
// DestinationClickhouseUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationClickhouseUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationClickhouseUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationClickhouseUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateDestinationClickhouseUpdateSSHTunnelMethodDestinationClickhouseUpdate
}
func (u *DestinationClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationClickhouseUpdateSSHTunnelMethodNoTunnel := new(DestinationClickhouseUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel = destinationClickhouseUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationClickhouseUpdateSSHTunnelMethodTypeDestinationClickhouseUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication = destinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationClickhouseUpdateSSHTunnelMethodTypeDestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication = destinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationClickhouseUpdateSSHTunnelMethodTypeDestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *DestinationClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte)
func (u DestinationClickhouseUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationClickhouseUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationClickhouseUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationClickhouseUpdate struct {
@@ -220,9 +314,69 @@ type DestinationClickhouseUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// HTTP port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"8123" json:"port"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationClickhouseUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationClickhouseUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationClickhouseUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationClickhouseUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationClickhouseUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationClickhouseUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationClickhouseUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationClickhouseUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationClickhouseUpdate) GetTunnelMethod() *DestinationClickhouseUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationClickhouseUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationconvex.go b/internal/sdk/pkg/models/shared/destinationconvex.go
old mode 100755
new mode 100644
index e6d28de91..945f940b3
--- a/internal/sdk/pkg/models/shared/destinationconvex.go
+++ b/internal/sdk/pkg/models/shared/destinationconvex.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type DestinationConvex struct {
AccessKey string `json:"access_key"`
// URL of the Convex deployment that is the destination
DeploymentURL string `json:"deployment_url"`
- DestinationType DestinationConvexConvex `json:"destinationType"`
+ destinationType DestinationConvexConvex `const:"convex" json:"destinationType"`
+}
+
+func (d DestinationConvex) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationConvex) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationConvex) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *DestinationConvex) GetDeploymentURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeploymentURL
+}
+
+func (o *DestinationConvex) GetDestinationType() DestinationConvexConvex {
+ return DestinationConvexConvexConvex
}
diff --git a/internal/sdk/pkg/models/shared/destinationconvexcreaterequest.go b/internal/sdk/pkg/models/shared/destinationconvexcreaterequest.go
old mode 100755
new mode 100644
index b56f6f6fa..943d8673e
--- a/internal/sdk/pkg/models/shared/destinationconvexcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationconvexcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationConvexCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationConvexCreateRequest) GetConfiguration() DestinationConvex {
+ if o == nil {
+ return DestinationConvex{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationConvexCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationConvexCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationconvexputrequest.go b/internal/sdk/pkg/models/shared/destinationconvexputrequest.go
old mode 100755
new mode 100644
index 1747d93ed..af9d6351f
--- a/internal/sdk/pkg/models/shared/destinationconvexputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationconvexputrequest.go
@@ -7,3 +7,24 @@ type DestinationConvexPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationConvexPutRequest) GetConfiguration() DestinationConvexUpdate {
+ if o == nil {
+ return DestinationConvexUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationConvexPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationConvexPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationconvexupdate.go b/internal/sdk/pkg/models/shared/destinationconvexupdate.go
old mode 100755
new mode 100644
index 77cba8f74..4a6bce0ff
--- a/internal/sdk/pkg/models/shared/destinationconvexupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationconvexupdate.go
@@ -8,3 +8,17 @@ type DestinationConvexUpdate struct {
// URL of the Convex deployment that is the destination
DeploymentURL string `json:"deployment_url"`
}
+
+func (o *DestinationConvexUpdate) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *DestinationConvexUpdate) GetDeploymentURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeploymentURL
+}
diff --git a/internal/sdk/pkg/models/shared/destinationcreaterequest.go b/internal/sdk/pkg/models/shared/destinationcreaterequest.go
old mode 100755
new mode 100644
index f640eff9c..88a0b0833
--- a/internal/sdk/pkg/models/shared/destinationcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationcreaterequest.go
@@ -8,3 +8,24 @@ type DestinationCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationCreateRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *DestinationCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationcumulio.go b/internal/sdk/pkg/models/shared/destinationcumulio.go
old mode 100755
new mode 100644
index f86eb1982..9d0110ed4
--- a/internal/sdk/pkg/models/shared/destinationcumulio.go
+++ b/internal/sdk/pkg/models/shared/destinationcumulio.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,10 +34,46 @@ func (e *DestinationCumulioCumulio) UnmarshalJSON(data []byte) error {
type DestinationCumulio struct {
// URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
- APIHost string `json:"api_host"`
+ APIHost *string `default:"https://api.cumul.io" json:"api_host"`
// An API key generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIKey string `json:"api_key"`
// The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIToken string `json:"api_token"`
- DestinationType DestinationCumulioCumulio `json:"destinationType"`
+ destinationType DestinationCumulioCumulio `const:"cumulio" json:"destinationType"`
+}
+
+func (d DestinationCumulio) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationCumulio) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationCumulio) GetAPIHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIHost
+}
+
+func (o *DestinationCumulio) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationCumulio) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *DestinationCumulio) GetDestinationType() DestinationCumulioCumulio {
+ return DestinationCumulioCumulioCumulio
}
diff --git a/internal/sdk/pkg/models/shared/destinationcumuliocreaterequest.go b/internal/sdk/pkg/models/shared/destinationcumuliocreaterequest.go
old mode 100755
new mode 100644
index c76a89da5..f09a02f23
--- a/internal/sdk/pkg/models/shared/destinationcumuliocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationcumuliocreaterequest.go
@@ -7,3 +7,24 @@ type DestinationCumulioCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationCumulioCreateRequest) GetConfiguration() DestinationCumulio {
+ if o == nil {
+ return DestinationCumulio{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationCumulioCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationCumulioCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationcumulioputrequest.go b/internal/sdk/pkg/models/shared/destinationcumulioputrequest.go
old mode 100755
new mode 100644
index e230f904f..d74d87ef9
--- a/internal/sdk/pkg/models/shared/destinationcumulioputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationcumulioputrequest.go
@@ -7,3 +7,24 @@ type DestinationCumulioPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationCumulioPutRequest) GetConfiguration() DestinationCumulioUpdate {
+ if o == nil {
+ return DestinationCumulioUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationCumulioPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationCumulioPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationcumulioupdate.go b/internal/sdk/pkg/models/shared/destinationcumulioupdate.go
old mode 100755
new mode 100644
index 7c29ba187..bbbe3b9a7
--- a/internal/sdk/pkg/models/shared/destinationcumulioupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationcumulioupdate.go
@@ -2,11 +2,47 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationCumulioUpdate struct {
// URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
- APIHost string `json:"api_host"`
+ APIHost *string `default:"https://api.cumul.io" json:"api_host"`
// An API key generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIKey string `json:"api_key"`
// The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIToken string `json:"api_token"`
}
+
+func (d DestinationCumulioUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationCumulioUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationCumulioUpdate) GetAPIHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIHost
+}
+
+func (o *DestinationCumulioUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationCumulioUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabend.go b/internal/sdk/pkg/models/shared/destinationdatabend.go
old mode 100755
new mode 100644
index 65a02f578..8477dac41
--- a/internal/sdk/pkg/models/shared/destinationdatabend.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabend.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,15 +35,72 @@ func (e *DestinationDatabendDatabend) UnmarshalJSON(data []byte) error {
type DestinationDatabend struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationDatabendDatabend `json:"destinationType"`
+ destinationType DestinationDatabendDatabend `const:"databend" json:"destinationType"`
// Hostname of the database.
Host string `json:"host"`
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port *int64 `json:"port,omitempty"`
+ Port *int64 `default:"443" json:"port"`
// The default table was written to.
- Table *string `json:"table,omitempty"`
+ Table *string `default:"default" json:"table"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationDatabend) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabend) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabend) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationDatabend) GetDestinationType() DestinationDatabendDatabend {
+ return DestinationDatabendDatabendDatabend
+}
+
+func (o *DestinationDatabend) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationDatabend) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationDatabend) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationDatabend) GetTable() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Table
+}
+
+func (o *DestinationDatabend) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabendcreaterequest.go b/internal/sdk/pkg/models/shared/destinationdatabendcreaterequest.go
old mode 100755
new mode 100644
index d94d2ab4c..4fc55a940
--- a/internal/sdk/pkg/models/shared/destinationdatabendcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabendcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationDatabendCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDatabendCreateRequest) GetConfiguration() DestinationDatabend {
+ if o == nil {
+ return DestinationDatabend{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDatabendCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDatabendCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabendputrequest.go b/internal/sdk/pkg/models/shared/destinationdatabendputrequest.go
old mode 100755
new mode 100644
index 1540b5848..8c954dcf3
--- a/internal/sdk/pkg/models/shared/destinationdatabendputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabendputrequest.go
@@ -7,3 +7,24 @@ type DestinationDatabendPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDatabendPutRequest) GetConfiguration() DestinationDatabendUpdate {
+ if o == nil {
+ return DestinationDatabendUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDatabendPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDatabendPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabendupdate.go b/internal/sdk/pkg/models/shared/destinationdatabendupdate.go
old mode 100755
new mode 100644
index 67ea5a86a..381db5662
--- a/internal/sdk/pkg/models/shared/destinationdatabendupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabendupdate.go
@@ -2,6 +2,10 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationDatabendUpdate struct {
// Name of the database.
Database string `json:"database"`
@@ -10,9 +14,62 @@ type DestinationDatabendUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port *int64 `json:"port,omitempty"`
+ Port *int64 `default:"443" json:"port"`
// The default table was written to.
- Table *string `json:"table,omitempty"`
+ Table *string `default:"default" json:"table"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationDatabendUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabendUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabendUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationDatabendUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationDatabendUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationDatabendUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationDatabendUpdate) GetTable() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Table
+}
+
+func (o *DestinationDatabendUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabricks.go b/internal/sdk/pkg/models/shared/destinationdatabricks.go
old mode 100755
new mode 100644
index e8ae885a8..6b7d900ea
--- a/internal/sdk/pkg/models/shared/destinationdatabricks.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabricks.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,10 +40,53 @@ type DestinationDatabricksDataSourceAzureBlobStorage struct {
// The name of the Azure blob storage container.
AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpointDomainName *string `json:"azure_blob_storage_endpoint_domain_name,omitempty"`
+ AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"`
// Shared access signature (SAS) token to grant limited access to objects in your storage account.
AzureBlobStorageSasToken string `json:"azure_blob_storage_sas_token"`
- DataSourceType DestinationDatabricksDataSourceAzureBlobStorageDataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksDataSourceAzureBlobStorageDataSourceType `const:"AZURE_BLOB_STORAGE" json:"data_source_type"`
+}
+
+func (d DestinationDatabricksDataSourceAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksDataSourceAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksDataSourceAzureBlobStorage) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *DestinationDatabricksDataSourceAzureBlobStorage) GetAzureBlobStorageContainerName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *DestinationDatabricksDataSourceAzureBlobStorage) GetAzureBlobStorageEndpointDomainName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpointDomainName
+}
+
+func (o *DestinationDatabricksDataSourceAzureBlobStorage) GetAzureBlobStorageSasToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageSasToken
+}
+
+func (o *DestinationDatabricksDataSourceAzureBlobStorage) GetDataSourceType() DestinationDatabricksDataSourceAzureBlobStorageDataSourceType {
+ return DestinationDatabricksDataSourceAzureBlobStorageDataSourceTypeAzureBlobStorage
}
type DestinationDatabricksDataSourceAmazonS3DataSourceType string
@@ -172,7 +215,7 @@ func (e *DestinationDatabricksDataSourceAmazonS3S3BucketRegion) UnmarshalJSON(da
// DestinationDatabricksDataSourceAmazonS3 - Storage on which the delta lake is built.
type DestinationDatabricksDataSourceAmazonS3 struct {
- DataSourceType DestinationDatabricksDataSourceAmazonS3DataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksDataSourceAmazonS3DataSourceType `const:"S3_STORAGE" json:"data_source_type"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
// The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
@@ -182,11 +225,68 @@ type DestinationDatabricksDataSourceAmazonS3 struct {
// The directory under the S3 bucket where data will be written.
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 staging bucket to use if utilising a copy strategy.
- S3BucketRegion DestinationDatabricksDataSourceAmazonS3S3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationDatabricksDataSourceAmazonS3S3BucketRegion `default:"" json:"s3_bucket_region"`
// The corresponding secret to the above access key id.
S3SecretAccessKey string `json:"s3_secret_access_key"`
}
+func (d DestinationDatabricksDataSourceAmazonS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksDataSourceAmazonS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetDataSourceType() DestinationDatabricksDataSourceAmazonS3DataSourceType {
+ return DestinationDatabricksDataSourceAmazonS3DataSourceTypeS3Storage
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetS3AccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3AccessKeyID
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetS3BucketRegion() *DestinationDatabricksDataSourceAmazonS3S3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationDatabricksDataSourceAmazonS3) GetS3SecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3SecretAccessKey
+}
+
type DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType string
const (
@@ -213,7 +313,22 @@ func (e *DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType)
// DestinationDatabricksDataSourceRecommendedManagedTables - Storage on which the delta lake is built.
type DestinationDatabricksDataSourceRecommendedManagedTables struct {
- DataSourceType DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType `const:"MANAGED_TABLES_STORAGE" json:"data_source_type"`
+}
+
+func (d DestinationDatabricksDataSourceRecommendedManagedTables) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksDataSourceRecommendedManagedTables) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksDataSourceRecommendedManagedTables) GetDataSourceType() DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType {
+ return DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceTypeManagedTablesStorage
}
type DestinationDatabricksDataSourceType string
@@ -260,30 +375,23 @@ func CreateDestinationDatabricksDataSourceDestinationDatabricksDataSourceAzureBl
}
func (u *DestinationDatabricksDataSource) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationDatabricksDataSourceRecommendedManagedTables := new(DestinationDatabricksDataSourceRecommendedManagedTables)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksDataSourceRecommendedManagedTables); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksDataSourceRecommendedManagedTables, "", true, true); err == nil {
u.DestinationDatabricksDataSourceRecommendedManagedTables = destinationDatabricksDataSourceRecommendedManagedTables
u.Type = DestinationDatabricksDataSourceTypeDestinationDatabricksDataSourceRecommendedManagedTables
return nil
}
destinationDatabricksDataSourceAzureBlobStorage := new(DestinationDatabricksDataSourceAzureBlobStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksDataSourceAzureBlobStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksDataSourceAzureBlobStorage, "", true, true); err == nil {
u.DestinationDatabricksDataSourceAzureBlobStorage = destinationDatabricksDataSourceAzureBlobStorage
u.Type = DestinationDatabricksDataSourceTypeDestinationDatabricksDataSourceAzureBlobStorage
return nil
}
destinationDatabricksDataSourceAmazonS3 := new(DestinationDatabricksDataSourceAmazonS3)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksDataSourceAmazonS3); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksDataSourceAmazonS3, "", true, true); err == nil {
u.DestinationDatabricksDataSourceAmazonS3 = destinationDatabricksDataSourceAmazonS3
u.Type = DestinationDatabricksDataSourceTypeDestinationDatabricksDataSourceAmazonS3
return nil
@@ -294,18 +402,18 @@ func (u *DestinationDatabricksDataSource) UnmarshalJSON(data []byte) error {
func (u DestinationDatabricksDataSource) MarshalJSON() ([]byte, error) {
if u.DestinationDatabricksDataSourceRecommendedManagedTables != nil {
- return json.Marshal(u.DestinationDatabricksDataSourceRecommendedManagedTables)
+ return utils.MarshalJSON(u.DestinationDatabricksDataSourceRecommendedManagedTables, "", true)
}
- if u.DestinationDatabricksDataSourceAzureBlobStorage != nil {
- return json.Marshal(u.DestinationDatabricksDataSourceAzureBlobStorage)
+ if u.DestinationDatabricksDataSourceAmazonS3 != nil {
+ return utils.MarshalJSON(u.DestinationDatabricksDataSourceAmazonS3, "", true)
}
- if u.DestinationDatabricksDataSourceAmazonS3 != nil {
- return json.Marshal(u.DestinationDatabricksDataSourceAmazonS3)
+ if u.DestinationDatabricksDataSourceAzureBlobStorage != nil {
+ return utils.MarshalJSON(u.DestinationDatabricksDataSourceAzureBlobStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationDatabricksDatabricks string
@@ -334,7 +442,7 @@ func (e *DestinationDatabricksDatabricks) UnmarshalJSON(data []byte) error {
type DestinationDatabricks struct {
// You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector.
- AcceptTerms bool `json:"accept_terms"`
+ AcceptTerms *bool `default:"false" json:"accept_terms"`
// Storage on which the delta lake is built.
DataSource DestinationDatabricksDataSource `json:"data_source"`
// The name of the catalog. If not specified otherwise, the "hive_metastore" will be used.
@@ -344,14 +452,99 @@ type DestinationDatabricks struct {
// Databricks Personal Access Token for making authenticated requests.
DatabricksPersonalAccessToken string `json:"databricks_personal_access_token"`
// Databricks Cluster Port.
- DatabricksPort *string `json:"databricks_port,omitempty"`
+ DatabricksPort *string `default:"443" json:"databricks_port"`
// Databricks Cluster Server Hostname.
DatabricksServerHostname string `json:"databricks_server_hostname"`
- DestinationType DestinationDatabricksDatabricks `json:"destinationType"`
+ destinationType DestinationDatabricksDatabricks `const:"databricks" json:"destinationType"`
// Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.
- EnableSchemaEvolution *bool `json:"enable_schema_evolution,omitempty"`
+ EnableSchemaEvolution *bool `default:"false" json:"enable_schema_evolution"`
// Default to 'true'. Switch it to 'false' for debugging purpose.
- PurgeStagingData *bool `json:"purge_staging_data,omitempty"`
+ PurgeStagingData *bool `default:"true" json:"purge_staging_data"`
// The default schema tables are written. If not specified otherwise, the "default" will be used.
- Schema *string `json:"schema,omitempty"`
+ Schema *string `default:"default" json:"schema"`
+}
+
+func (d DestinationDatabricks) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricks) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricks) GetAcceptTerms() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.AcceptTerms
+}
+
+func (o *DestinationDatabricks) GetDataSource() DestinationDatabricksDataSource {
+ if o == nil {
+ return DestinationDatabricksDataSource{}
+ }
+ return o.DataSource
+}
+
+func (o *DestinationDatabricks) GetDatabase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Database
+}
+
+func (o *DestinationDatabricks) GetDatabricksHTTPPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksHTTPPath
+}
+
+func (o *DestinationDatabricks) GetDatabricksPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksPersonalAccessToken
+}
+
+func (o *DestinationDatabricks) GetDatabricksPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatabricksPort
+}
+
+func (o *DestinationDatabricks) GetDatabricksServerHostname() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksServerHostname
+}
+
+func (o *DestinationDatabricks) GetDestinationType() DestinationDatabricksDatabricks {
+ return DestinationDatabricksDatabricksDatabricks
+}
+
+func (o *DestinationDatabricks) GetEnableSchemaEvolution() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.EnableSchemaEvolution
+}
+
+func (o *DestinationDatabricks) GetPurgeStagingData() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.PurgeStagingData
+}
+
+func (o *DestinationDatabricks) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabrickscreaterequest.go b/internal/sdk/pkg/models/shared/destinationdatabrickscreaterequest.go
old mode 100755
new mode 100644
index 2a81a6b06..a30789808
--- a/internal/sdk/pkg/models/shared/destinationdatabrickscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabrickscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationDatabricksCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDatabricksCreateRequest) GetConfiguration() DestinationDatabricks {
+ if o == nil {
+ return DestinationDatabricks{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDatabricksCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDatabricksCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabricksputrequest.go b/internal/sdk/pkg/models/shared/destinationdatabricksputrequest.go
old mode 100755
new mode 100644
index 33adaa9ae..ff87c8578
--- a/internal/sdk/pkg/models/shared/destinationdatabricksputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabricksputrequest.go
@@ -7,3 +7,24 @@ type DestinationDatabricksPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDatabricksPutRequest) GetConfiguration() DestinationDatabricksUpdate {
+ if o == nil {
+ return DestinationDatabricksUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDatabricksPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDatabricksPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go b/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go
old mode 100755
new mode 100644
index f791c2b54..87702d5f2
--- a/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,10 +40,53 @@ type DestinationDatabricksUpdateDataSourceAzureBlobStorage struct {
// The name of the Azure blob storage container.
AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpointDomainName *string `json:"azure_blob_storage_endpoint_domain_name,omitempty"`
+ AzureBlobStorageEndpointDomainName *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint_domain_name"`
// Shared access signature (SAS) token to grant limited access to objects in your storage account.
AzureBlobStorageSasToken string `json:"azure_blob_storage_sas_token"`
- DataSourceType DestinationDatabricksUpdateDataSourceAzureBlobStorageDataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksUpdateDataSourceAzureBlobStorageDataSourceType `const:"AZURE_BLOB_STORAGE" json:"data_source_type"`
+}
+
+func (d DestinationDatabricksUpdateDataSourceAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksUpdateDataSourceAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAzureBlobStorage) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAzureBlobStorage) GetAzureBlobStorageContainerName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAzureBlobStorage) GetAzureBlobStorageEndpointDomainName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpointDomainName
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAzureBlobStorage) GetAzureBlobStorageSasToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageSasToken
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAzureBlobStorage) GetDataSourceType() DestinationDatabricksUpdateDataSourceAzureBlobStorageDataSourceType {
+ return DestinationDatabricksUpdateDataSourceAzureBlobStorageDataSourceTypeAzureBlobStorage
}
type DestinationDatabricksUpdateDataSourceAmazonS3DataSourceType string
@@ -172,7 +215,7 @@ func (e *DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion) UnmarshalJ
// DestinationDatabricksUpdateDataSourceAmazonS3 - Storage on which the delta lake is built.
type DestinationDatabricksUpdateDataSourceAmazonS3 struct {
- DataSourceType DestinationDatabricksUpdateDataSourceAmazonS3DataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksUpdateDataSourceAmazonS3DataSourceType `const:"S3_STORAGE" json:"data_source_type"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
// The Access Key Id granting allow one to access the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket.
@@ -182,11 +225,68 @@ type DestinationDatabricksUpdateDataSourceAmazonS3 struct {
// The directory under the S3 bucket where data will be written.
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 staging bucket to use if utilising a copy strategy.
- S3BucketRegion DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion `default:"" json:"s3_bucket_region"`
// The corresponding secret to the above access key id.
S3SecretAccessKey string `json:"s3_secret_access_key"`
}
+func (d DestinationDatabricksUpdateDataSourceAmazonS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksUpdateDataSourceAmazonS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetDataSourceType() DestinationDatabricksUpdateDataSourceAmazonS3DataSourceType {
+ return DestinationDatabricksUpdateDataSourceAmazonS3DataSourceTypeS3Storage
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetS3AccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3AccessKeyID
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetS3BucketRegion() *DestinationDatabricksUpdateDataSourceAmazonS3S3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationDatabricksUpdateDataSourceAmazonS3) GetS3SecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3SecretAccessKey
+}
+
type DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceType string
const (
@@ -213,7 +313,22 @@ func (e *DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSource
// DestinationDatabricksUpdateDataSourceRecommendedManagedTables - Storage on which the delta lake is built.
type DestinationDatabricksUpdateDataSourceRecommendedManagedTables struct {
- DataSourceType DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceType `json:"data_source_type"`
+ dataSourceType DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceType `const:"MANAGED_TABLES_STORAGE" json:"data_source_type"`
+}
+
+func (d DestinationDatabricksUpdateDataSourceRecommendedManagedTables) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksUpdateDataSourceRecommendedManagedTables) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksUpdateDataSourceRecommendedManagedTables) GetDataSourceType() DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceType {
+ return DestinationDatabricksUpdateDataSourceRecommendedManagedTablesDataSourceTypeManagedTablesStorage
}
type DestinationDatabricksUpdateDataSourceType string
@@ -260,30 +375,23 @@ func CreateDestinationDatabricksUpdateDataSourceDestinationDatabricksUpdateDataS
}
func (u *DestinationDatabricksUpdateDataSource) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationDatabricksUpdateDataSourceRecommendedManagedTables := new(DestinationDatabricksUpdateDataSourceRecommendedManagedTables)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksUpdateDataSourceRecommendedManagedTables); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksUpdateDataSourceRecommendedManagedTables, "", true, true); err == nil {
u.DestinationDatabricksUpdateDataSourceRecommendedManagedTables = destinationDatabricksUpdateDataSourceRecommendedManagedTables
u.Type = DestinationDatabricksUpdateDataSourceTypeDestinationDatabricksUpdateDataSourceRecommendedManagedTables
return nil
}
destinationDatabricksUpdateDataSourceAzureBlobStorage := new(DestinationDatabricksUpdateDataSourceAzureBlobStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksUpdateDataSourceAzureBlobStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksUpdateDataSourceAzureBlobStorage, "", true, true); err == nil {
u.DestinationDatabricksUpdateDataSourceAzureBlobStorage = destinationDatabricksUpdateDataSourceAzureBlobStorage
u.Type = DestinationDatabricksUpdateDataSourceTypeDestinationDatabricksUpdateDataSourceAzureBlobStorage
return nil
}
destinationDatabricksUpdateDataSourceAmazonS3 := new(DestinationDatabricksUpdateDataSourceAmazonS3)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDatabricksUpdateDataSourceAmazonS3); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDatabricksUpdateDataSourceAmazonS3, "", true, true); err == nil {
u.DestinationDatabricksUpdateDataSourceAmazonS3 = destinationDatabricksUpdateDataSourceAmazonS3
u.Type = DestinationDatabricksUpdateDataSourceTypeDestinationDatabricksUpdateDataSourceAmazonS3
return nil
@@ -294,23 +402,23 @@ func (u *DestinationDatabricksUpdateDataSource) UnmarshalJSON(data []byte) error
func (u DestinationDatabricksUpdateDataSource) MarshalJSON() ([]byte, error) {
if u.DestinationDatabricksUpdateDataSourceRecommendedManagedTables != nil {
- return json.Marshal(u.DestinationDatabricksUpdateDataSourceRecommendedManagedTables)
+ return utils.MarshalJSON(u.DestinationDatabricksUpdateDataSourceRecommendedManagedTables, "", true)
}
- if u.DestinationDatabricksUpdateDataSourceAzureBlobStorage != nil {
- return json.Marshal(u.DestinationDatabricksUpdateDataSourceAzureBlobStorage)
+ if u.DestinationDatabricksUpdateDataSourceAmazonS3 != nil {
+ return utils.MarshalJSON(u.DestinationDatabricksUpdateDataSourceAmazonS3, "", true)
}
- if u.DestinationDatabricksUpdateDataSourceAmazonS3 != nil {
- return json.Marshal(u.DestinationDatabricksUpdateDataSourceAmazonS3)
+ if u.DestinationDatabricksUpdateDataSourceAzureBlobStorage != nil {
+ return utils.MarshalJSON(u.DestinationDatabricksUpdateDataSourceAzureBlobStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationDatabricksUpdate struct {
// You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector.
- AcceptTerms bool `json:"accept_terms"`
+ AcceptTerms *bool `default:"false" json:"accept_terms"`
// Storage on which the delta lake is built.
DataSource DestinationDatabricksUpdateDataSource `json:"data_source"`
// The name of the catalog. If not specified otherwise, the "hive_metastore" will be used.
@@ -320,13 +428,94 @@ type DestinationDatabricksUpdate struct {
// Databricks Personal Access Token for making authenticated requests.
DatabricksPersonalAccessToken string `json:"databricks_personal_access_token"`
// Databricks Cluster Port.
- DatabricksPort *string `json:"databricks_port,omitempty"`
+ DatabricksPort *string `default:"443" json:"databricks_port"`
// Databricks Cluster Server Hostname.
DatabricksServerHostname string `json:"databricks_server_hostname"`
// Support schema evolution for all streams. If "false", the connector might fail when a stream's schema changes.
- EnableSchemaEvolution *bool `json:"enable_schema_evolution,omitempty"`
+ EnableSchemaEvolution *bool `default:"false" json:"enable_schema_evolution"`
// Default to 'true'. Switch it to 'false' for debugging purpose.
- PurgeStagingData *bool `json:"purge_staging_data,omitempty"`
+ PurgeStagingData *bool `default:"true" json:"purge_staging_data"`
// The default schema tables are written. If not specified otherwise, the "default" will be used.
- Schema *string `json:"schema,omitempty"`
+ Schema *string `default:"default" json:"schema"`
+}
+
+func (d DestinationDatabricksUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDatabricksUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDatabricksUpdate) GetAcceptTerms() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.AcceptTerms
+}
+
+func (o *DestinationDatabricksUpdate) GetDataSource() DestinationDatabricksUpdateDataSource {
+ if o == nil {
+ return DestinationDatabricksUpdateDataSource{}
+ }
+ return o.DataSource
+}
+
+func (o *DestinationDatabricksUpdate) GetDatabase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Database
+}
+
+func (o *DestinationDatabricksUpdate) GetDatabricksHTTPPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksHTTPPath
+}
+
+func (o *DestinationDatabricksUpdate) GetDatabricksPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksPersonalAccessToken
+}
+
+func (o *DestinationDatabricksUpdate) GetDatabricksPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatabricksPort
+}
+
+func (o *DestinationDatabricksUpdate) GetDatabricksServerHostname() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatabricksServerHostname
+}
+
+func (o *DestinationDatabricksUpdate) GetEnableSchemaEvolution() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.EnableSchemaEvolution
+}
+
+func (o *DestinationDatabricksUpdate) GetPurgeStagingData() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.PurgeStagingData
+}
+
+func (o *DestinationDatabricksUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
}
diff --git a/internal/sdk/pkg/models/shared/destinationdevnull.go b/internal/sdk/pkg/models/shared/destinationdevnull.go
old mode 100755
new mode 100644
index f7bf53c34..c988b35d6
--- a/internal/sdk/pkg/models/shared/destinationdevnull.go
+++ b/internal/sdk/pkg/models/shared/destinationdevnull.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -59,7 +59,22 @@ func (e *DestinationDevNullTestDestinationSilentTestDestinationType) UnmarshalJS
// DestinationDevNullTestDestinationSilent - The type of destination to be used
type DestinationDevNullTestDestinationSilent struct {
- TestDestinationType DestinationDevNullTestDestinationSilentTestDestinationType `json:"test_destination_type"`
+ testDestinationType *DestinationDevNullTestDestinationSilentTestDestinationType `const:"SILENT" json:"test_destination_type"`
+}
+
+func (d DestinationDevNullTestDestinationSilent) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDevNullTestDestinationSilent) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDevNullTestDestinationSilent) GetTestDestinationType() *DestinationDevNullTestDestinationSilentTestDestinationType {
+ return DestinationDevNullTestDestinationSilentTestDestinationTypeSilent.ToPointer()
}
type DestinationDevNullTestDestinationType string
@@ -84,12 +99,9 @@ func CreateDestinationDevNullTestDestinationDestinationDevNullTestDestinationSil
}
func (u *DestinationDevNullTestDestination) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationDevNullTestDestinationSilent := new(DestinationDevNullTestDestinationSilent)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDevNullTestDestinationSilent); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDevNullTestDestinationSilent, "", true, true); err == nil {
u.DestinationDevNullTestDestinationSilent = destinationDevNullTestDestinationSilent
u.Type = DestinationDevNullTestDestinationTypeDestinationDevNullTestDestinationSilent
return nil
@@ -100,14 +112,36 @@ func (u *DestinationDevNullTestDestination) UnmarshalJSON(data []byte) error {
func (u DestinationDevNullTestDestination) MarshalJSON() ([]byte, error) {
if u.DestinationDevNullTestDestinationSilent != nil {
- return json.Marshal(u.DestinationDevNullTestDestinationSilent)
+ return utils.MarshalJSON(u.DestinationDevNullTestDestinationSilent, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationDevNull struct {
- DestinationType DestinationDevNullDevNull `json:"destinationType"`
+ destinationType DestinationDevNullDevNull `const:"dev-null" json:"destinationType"`
// The type of destination to be used
TestDestination DestinationDevNullTestDestination `json:"test_destination"`
}
+
+func (d DestinationDevNull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDevNull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDevNull) GetDestinationType() DestinationDevNullDevNull {
+ return DestinationDevNullDevNullDevNull
+}
+
+func (o *DestinationDevNull) GetTestDestination() DestinationDevNullTestDestination {
+ if o == nil {
+ return DestinationDevNullTestDestination{}
+ }
+ return o.TestDestination
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdevnullcreaterequest.go b/internal/sdk/pkg/models/shared/destinationdevnullcreaterequest.go
old mode 100755
new mode 100644
index d703d7de1..89264b0b6
--- a/internal/sdk/pkg/models/shared/destinationdevnullcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdevnullcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationDevNullCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDevNullCreateRequest) GetConfiguration() DestinationDevNull {
+ if o == nil {
+ return DestinationDevNull{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDevNullCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDevNullCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdevnullputrequest.go b/internal/sdk/pkg/models/shared/destinationdevnullputrequest.go
old mode 100755
new mode 100644
index f602b6d7c..3b4f8cb6e
--- a/internal/sdk/pkg/models/shared/destinationdevnullputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdevnullputrequest.go
@@ -7,3 +7,24 @@ type DestinationDevNullPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDevNullPutRequest) GetConfiguration() DestinationDevNullUpdate {
+ if o == nil {
+ return DestinationDevNullUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDevNullPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDevNullPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdevnullupdate.go b/internal/sdk/pkg/models/shared/destinationdevnullupdate.go
old mode 100755
new mode 100644
index 781c65821..7deacfffb
--- a/internal/sdk/pkg/models/shared/destinationdevnullupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationdevnullupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *DestinationDevNullUpdateTestDestinationSilentTestDestinationType) Unmar
// DestinationDevNullUpdateTestDestinationSilent - The type of destination to be used
type DestinationDevNullUpdateTestDestinationSilent struct {
- TestDestinationType DestinationDevNullUpdateTestDestinationSilentTestDestinationType `json:"test_destination_type"`
+ testDestinationType *DestinationDevNullUpdateTestDestinationSilentTestDestinationType `const:"SILENT" json:"test_destination_type"`
+}
+
+func (d DestinationDevNullUpdateTestDestinationSilent) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDevNullUpdateTestDestinationSilent) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDevNullUpdateTestDestinationSilent) GetTestDestinationType() *DestinationDevNullUpdateTestDestinationSilentTestDestinationType {
+ return DestinationDevNullUpdateTestDestinationSilentTestDestinationTypeSilent.ToPointer()
}
type DestinationDevNullUpdateTestDestinationType string
@@ -60,12 +75,9 @@ func CreateDestinationDevNullUpdateTestDestinationDestinationDevNullUpdateTestDe
}
func (u *DestinationDevNullUpdateTestDestination) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationDevNullUpdateTestDestinationSilent := new(DestinationDevNullUpdateTestDestinationSilent)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationDevNullUpdateTestDestinationSilent); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationDevNullUpdateTestDestinationSilent, "", true, true); err == nil {
u.DestinationDevNullUpdateTestDestinationSilent = destinationDevNullUpdateTestDestinationSilent
u.Type = DestinationDevNullUpdateTestDestinationTypeDestinationDevNullUpdateTestDestinationSilent
return nil
@@ -76,13 +88,20 @@ func (u *DestinationDevNullUpdateTestDestination) UnmarshalJSON(data []byte) err
func (u DestinationDevNullUpdateTestDestination) MarshalJSON() ([]byte, error) {
if u.DestinationDevNullUpdateTestDestinationSilent != nil {
- return json.Marshal(u.DestinationDevNullUpdateTestDestinationSilent)
+ return utils.MarshalJSON(u.DestinationDevNullUpdateTestDestinationSilent, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationDevNullUpdate struct {
// The type of destination to be used
TestDestination DestinationDevNullUpdateTestDestination `json:"test_destination"`
}
+
+func (o *DestinationDevNullUpdate) GetTestDestination() DestinationDevNullUpdateTestDestination {
+ if o == nil {
+ return DestinationDevNullUpdateTestDestination{}
+ }
+ return o.TestDestination
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdynamodb.go b/internal/sdk/pkg/models/shared/destinationdynamodb.go
old mode 100755
new mode 100644
index 9fe0ddfd9..dad0d1651
--- a/internal/sdk/pkg/models/shared/destinationdynamodb.go
+++ b/internal/sdk/pkg/models/shared/destinationdynamodb.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -134,13 +135,63 @@ func (e *DestinationDynamodbDynamoDBRegion) UnmarshalJSON(data []byte) error {
type DestinationDynamodb struct {
// The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.
AccessKeyID string `json:"access_key_id"`
- DestinationType DestinationDynamodbDynamodb `json:"destinationType"`
+ destinationType DestinationDynamodbDynamodb `const:"dynamodb" json:"destinationType"`
// This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).
- DynamodbEndpoint *string `json:"dynamodb_endpoint,omitempty"`
+ DynamodbEndpoint *string `default:"" json:"dynamodb_endpoint"`
// The region of the DynamoDB.
- DynamodbRegion DestinationDynamodbDynamoDBRegion `json:"dynamodb_region"`
+ DynamodbRegion *DestinationDynamodbDynamoDBRegion `default:"" json:"dynamodb_region"`
// The prefix to use when naming DynamoDB tables.
DynamodbTableNamePrefix string `json:"dynamodb_table_name_prefix"`
// The corresponding secret to the access key id.
SecretAccessKey string `json:"secret_access_key"`
}
+
+func (d DestinationDynamodb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDynamodb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDynamodb) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationDynamodb) GetDestinationType() DestinationDynamodbDynamodb {
+ return DestinationDynamodbDynamodbDynamodb
+}
+
+func (o *DestinationDynamodb) GetDynamodbEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DynamodbEndpoint
+}
+
+func (o *DestinationDynamodb) GetDynamodbRegion() *DestinationDynamodbDynamoDBRegion {
+ if o == nil {
+ return nil
+ }
+ return o.DynamodbRegion
+}
+
+func (o *DestinationDynamodb) GetDynamodbTableNamePrefix() string {
+ if o == nil {
+ return ""
+ }
+ return o.DynamodbTableNamePrefix
+}
+
+func (o *DestinationDynamodb) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdynamodbcreaterequest.go b/internal/sdk/pkg/models/shared/destinationdynamodbcreaterequest.go
old mode 100755
new mode 100644
index ebfec7a9a..e02c3b090
--- a/internal/sdk/pkg/models/shared/destinationdynamodbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdynamodbcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationDynamodbCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDynamodbCreateRequest) GetConfiguration() DestinationDynamodb {
+ if o == nil {
+ return DestinationDynamodb{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDynamodbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDynamodbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdynamodbputrequest.go b/internal/sdk/pkg/models/shared/destinationdynamodbputrequest.go
old mode 100755
new mode 100644
index dc01867b3..5036c500e
--- a/internal/sdk/pkg/models/shared/destinationdynamodbputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationdynamodbputrequest.go
@@ -7,3 +7,24 @@ type DestinationDynamodbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationDynamodbPutRequest) GetConfiguration() DestinationDynamodbUpdate {
+ if o == nil {
+ return DestinationDynamodbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationDynamodbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationDynamodbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationdynamodbupdate.go b/internal/sdk/pkg/models/shared/destinationdynamodbupdate.go
old mode 100755
new mode 100644
index 158f6edd4..6ac4ed672
--- a/internal/sdk/pkg/models/shared/destinationdynamodbupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationdynamodbupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -111,11 +112,57 @@ type DestinationDynamodbUpdate struct {
// The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB.
AccessKeyID string `json:"access_key_id"`
// This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty).
- DynamodbEndpoint *string `json:"dynamodb_endpoint,omitempty"`
+ DynamodbEndpoint *string `default:"" json:"dynamodb_endpoint"`
// The region of the DynamoDB.
- DynamodbRegion DestinationDynamodbUpdateDynamoDBRegion `json:"dynamodb_region"`
+ DynamodbRegion *DestinationDynamodbUpdateDynamoDBRegion `default:"" json:"dynamodb_region"`
// The prefix to use when naming DynamoDB tables.
DynamodbTableNamePrefix string `json:"dynamodb_table_name_prefix"`
// The corresponding secret to the access key id.
SecretAccessKey string `json:"secret_access_key"`
}
+
+func (d DestinationDynamodbUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationDynamodbUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationDynamodbUpdate) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationDynamodbUpdate) GetDynamodbEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DynamodbEndpoint
+}
+
+func (o *DestinationDynamodbUpdate) GetDynamodbRegion() *DestinationDynamodbUpdateDynamoDBRegion {
+ if o == nil {
+ return nil
+ }
+ return o.DynamodbRegion
+}
+
+func (o *DestinationDynamodbUpdate) GetDynamodbTableNamePrefix() string {
+ if o == nil {
+ return ""
+ }
+ return o.DynamodbTableNamePrefix
+}
+
+func (o *DestinationDynamodbUpdate) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearch.go b/internal/sdk/pkg/models/shared/destinationelasticsearch.go
old mode 100755
new mode 100644
index c023bb13b..2a59c779c
--- a/internal/sdk/pkg/models/shared/destinationelasticsearch.go
+++ b/internal/sdk/pkg/models/shared/destinationelasticsearch.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *DestinationElasticsearchAuthenticationMethodUsernamePasswordMethod) Unm
// DestinationElasticsearchAuthenticationMethodUsernamePassword - Basic auth header with a username and password
type DestinationElasticsearchAuthenticationMethodUsernamePassword struct {
- Method DestinationElasticsearchAuthenticationMethodUsernamePasswordMethod `json:"method"`
+ method DestinationElasticsearchAuthenticationMethodUsernamePasswordMethod `const:"basic" json:"method"`
// Basic auth password to access a secure Elasticsearch server
Password string `json:"password"`
// Basic auth username to access a secure Elasticsearch server
Username string `json:"username"`
}
+func (d DestinationElasticsearchAuthenticationMethodUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearchAuthenticationMethodUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodUsernamePassword) GetMethod() DestinationElasticsearchAuthenticationMethodUsernamePasswordMethod {
+ return DestinationElasticsearchAuthenticationMethodUsernamePasswordMethodBasic
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationElasticsearchAuthenticationMethodAPIKeySecretMethod string
const (
@@ -72,7 +101,36 @@ type DestinationElasticsearchAuthenticationMethodAPIKeySecret struct {
APIKeyID string `json:"apiKeyId"`
// The secret associated with the API Key ID.
APIKeySecret string `json:"apiKeySecret"`
- Method DestinationElasticsearchAuthenticationMethodAPIKeySecretMethod `json:"method"`
+ method DestinationElasticsearchAuthenticationMethodAPIKeySecretMethod `const:"secret" json:"method"`
+}
+
+func (d DestinationElasticsearchAuthenticationMethodAPIKeySecret) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearchAuthenticationMethodAPIKeySecret) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodAPIKeySecret) GetAPIKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKeyID
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodAPIKeySecret) GetAPIKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKeySecret
+}
+
+func (o *DestinationElasticsearchAuthenticationMethodAPIKeySecret) GetMethod() DestinationElasticsearchAuthenticationMethodAPIKeySecretMethod {
+ return DestinationElasticsearchAuthenticationMethodAPIKeySecretMethodSecret
}
type DestinationElasticsearchAuthenticationMethodType string
@@ -108,21 +166,16 @@ func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchA
}
func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationElasticsearchAuthenticationMethodAPIKeySecret := new(DestinationElasticsearchAuthenticationMethodAPIKeySecret)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationElasticsearchAuthenticationMethodAPIKeySecret); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationElasticsearchAuthenticationMethodAPIKeySecret, "", true, true); err == nil {
u.DestinationElasticsearchAuthenticationMethodAPIKeySecret = destinationElasticsearchAuthenticationMethodAPIKeySecret
u.Type = DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAuthenticationMethodAPIKeySecret
return nil
}
destinationElasticsearchAuthenticationMethodUsernamePassword := new(DestinationElasticsearchAuthenticationMethodUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationElasticsearchAuthenticationMethodUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationElasticsearchAuthenticationMethodUsernamePassword, "", true, true); err == nil {
u.DestinationElasticsearchAuthenticationMethodUsernamePassword = destinationElasticsearchAuthenticationMethodUsernamePassword
u.Type = DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAuthenticationMethodUsernamePassword
return nil
@@ -133,14 +186,14 @@ func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte
func (u DestinationElasticsearchAuthenticationMethod) MarshalJSON() ([]byte, error) {
if u.DestinationElasticsearchAuthenticationMethodAPIKeySecret != nil {
- return json.Marshal(u.DestinationElasticsearchAuthenticationMethodAPIKeySecret)
+ return utils.MarshalJSON(u.DestinationElasticsearchAuthenticationMethodAPIKeySecret, "", true)
}
if u.DestinationElasticsearchAuthenticationMethodUsernamePassword != nil {
- return json.Marshal(u.DestinationElasticsearchAuthenticationMethodUsernamePassword)
+ return utils.MarshalJSON(u.DestinationElasticsearchAuthenticationMethodUsernamePassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationElasticsearchElasticsearch string
@@ -172,9 +225,52 @@ type DestinationElasticsearch struct {
AuthenticationMethod *DestinationElasticsearchAuthenticationMethod `json:"authenticationMethod,omitempty"`
// CA certificate
CaCertificate *string `json:"ca_certificate,omitempty"`
- DestinationType DestinationElasticsearchElasticsearch `json:"destinationType"`
+ destinationType DestinationElasticsearchElasticsearch `const:"elasticsearch" json:"destinationType"`
// The full url of the Elasticsearch server
Endpoint string `json:"endpoint"`
// If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys.
- Upsert *bool `json:"upsert,omitempty"`
+ Upsert *bool `default:"true" json:"upsert"`
+}
+
+func (d DestinationElasticsearch) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearch) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearch) GetAuthenticationMethod() *DestinationElasticsearchAuthenticationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.AuthenticationMethod
+}
+
+func (o *DestinationElasticsearch) GetCaCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationElasticsearch) GetDestinationType() DestinationElasticsearchElasticsearch {
+ return DestinationElasticsearchElasticsearchElasticsearch
+}
+
+func (o *DestinationElasticsearch) GetEndpoint() string {
+ if o == nil {
+ return ""
+ }
+ return o.Endpoint
+}
+
+func (o *DestinationElasticsearch) GetUpsert() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Upsert
}
diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearchcreaterequest.go b/internal/sdk/pkg/models/shared/destinationelasticsearchcreaterequest.go
old mode 100755
new mode 100644
index 0da25bbe6..34d2662d2
--- a/internal/sdk/pkg/models/shared/destinationelasticsearchcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationelasticsearchcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationElasticsearchCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationElasticsearchCreateRequest) GetConfiguration() DestinationElasticsearch {
+ if o == nil {
+ return DestinationElasticsearch{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationElasticsearchCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationElasticsearchCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearchputrequest.go b/internal/sdk/pkg/models/shared/destinationelasticsearchputrequest.go
old mode 100755
new mode 100644
index 8dd3ecafa..5496c10e6
--- a/internal/sdk/pkg/models/shared/destinationelasticsearchputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationelasticsearchputrequest.go
@@ -7,3 +7,24 @@ type DestinationElasticsearchPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationElasticsearchPutRequest) GetConfiguration() DestinationElasticsearchUpdate {
+ if o == nil {
+ return DestinationElasticsearchUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationElasticsearchPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationElasticsearchPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go b/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go
old mode 100755
new mode 100644
index 4f94d1241..8a05ba2da
--- a/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMetho
// DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword - Basic auth header with a username and password
type DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword struct {
- Method DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMethod `json:"method"`
+ method DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMethod `const:"basic" json:"method"`
// Basic auth password to access a secure Elasticsearch server
Password string `json:"password"`
// Basic auth username to access a secure Elasticsearch server
Username string `json:"username"`
}
+func (d DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword) GetMethod() DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMethod {
+ return DestinationElasticsearchUpdateAuthenticationMethodUsernamePasswordMethodBasic
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethod string
const (
@@ -72,7 +101,36 @@ type DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret struct {
APIKeyID string `json:"apiKeyId"`
// The secret associated with the API Key ID.
APIKeySecret string `json:"apiKeySecret"`
- Method DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethod `json:"method"`
+ method DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethod `const:"secret" json:"method"`
+}
+
+func (d DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret) GetAPIKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKeyID
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret) GetAPIKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKeySecret
+}
+
+func (o *DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret) GetMethod() DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethod {
+ return DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecretMethodSecret
}
type DestinationElasticsearchUpdateAuthenticationMethodType string
@@ -108,21 +166,16 @@ func CreateDestinationElasticsearchUpdateAuthenticationMethodDestinationElastics
}
func (u *DestinationElasticsearchUpdateAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret := new(DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret, "", true, true); err == nil {
u.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret = destinationElasticsearchUpdateAuthenticationMethodAPIKeySecret
u.Type = DestinationElasticsearchUpdateAuthenticationMethodTypeDestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret
return nil
}
destinationElasticsearchUpdateAuthenticationMethodUsernamePassword := new(DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationElasticsearchUpdateAuthenticationMethodUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationElasticsearchUpdateAuthenticationMethodUsernamePassword, "", true, true); err == nil {
u.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword = destinationElasticsearchUpdateAuthenticationMethodUsernamePassword
u.Type = DestinationElasticsearchUpdateAuthenticationMethodTypeDestinationElasticsearchUpdateAuthenticationMethodUsernamePassword
return nil
@@ -133,14 +186,14 @@ func (u *DestinationElasticsearchUpdateAuthenticationMethod) UnmarshalJSON(data
func (u DestinationElasticsearchUpdateAuthenticationMethod) MarshalJSON() ([]byte, error) {
if u.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret != nil {
- return json.Marshal(u.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret)
+ return utils.MarshalJSON(u.DestinationElasticsearchUpdateAuthenticationMethodAPIKeySecret, "", true)
}
if u.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword != nil {
- return json.Marshal(u.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword)
+ return utils.MarshalJSON(u.DestinationElasticsearchUpdateAuthenticationMethodUsernamePassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationElasticsearchUpdate struct {
@@ -151,5 +204,44 @@ type DestinationElasticsearchUpdate struct {
// The full url of the Elasticsearch server
Endpoint string `json:"endpoint"`
// If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys.
- Upsert *bool `json:"upsert,omitempty"`
+ Upsert *bool `default:"true" json:"upsert"`
+}
+
+func (d DestinationElasticsearchUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationElasticsearchUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationElasticsearchUpdate) GetAuthenticationMethod() *DestinationElasticsearchUpdateAuthenticationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.AuthenticationMethod
+}
+
+func (o *DestinationElasticsearchUpdate) GetCaCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationElasticsearchUpdate) GetEndpoint() string {
+ if o == nil {
+ return ""
+ }
+ return o.Endpoint
+}
+
+func (o *DestinationElasticsearchUpdate) GetUpsert() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Upsert
}
diff --git a/internal/sdk/pkg/models/shared/destinationfirebolt.go b/internal/sdk/pkg/models/shared/destinationfirebolt.go
old mode 100755
new mode 100644
index 4def8ea03..016d6aa99
--- a/internal/sdk/pkg/models/shared/destinationfirebolt.go
+++ b/internal/sdk/pkg/models/shared/destinationfirebolt.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,13 +63,56 @@ type DestinationFireboltLoadingMethodExternalTableViaS3 struct {
AwsKeyID string `json:"aws_key_id"`
// Corresponding secret part of the AWS Key
AwsKeySecret string `json:"aws_key_secret"`
- Method DestinationFireboltLoadingMethodExternalTableViaS3Method `json:"method"`
+ method DestinationFireboltLoadingMethodExternalTableViaS3Method `const:"S3" json:"method"`
// The name of the S3 bucket.
S3Bucket string `json:"s3_bucket"`
// Region name of the S3 bucket.
S3Region string `json:"s3_region"`
}
+func (d DestinationFireboltLoadingMethodExternalTableViaS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFireboltLoadingMethodExternalTableViaS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFireboltLoadingMethodExternalTableViaS3) GetAwsKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeyID
+}
+
+func (o *DestinationFireboltLoadingMethodExternalTableViaS3) GetAwsKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeySecret
+}
+
+func (o *DestinationFireboltLoadingMethodExternalTableViaS3) GetMethod() DestinationFireboltLoadingMethodExternalTableViaS3Method {
+ return DestinationFireboltLoadingMethodExternalTableViaS3MethodS3
+}
+
+func (o *DestinationFireboltLoadingMethodExternalTableViaS3) GetS3Bucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3Bucket
+}
+
+func (o *DestinationFireboltLoadingMethodExternalTableViaS3) GetS3Region() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3Region
+}
+
type DestinationFireboltLoadingMethodSQLInsertsMethod string
const (
@@ -96,7 +139,22 @@ func (e *DestinationFireboltLoadingMethodSQLInsertsMethod) UnmarshalJSON(data []
// DestinationFireboltLoadingMethodSQLInserts - Loading method used to select the way data will be uploaded to Firebolt
type DestinationFireboltLoadingMethodSQLInserts struct {
- Method DestinationFireboltLoadingMethodSQLInsertsMethod `json:"method"`
+ method DestinationFireboltLoadingMethodSQLInsertsMethod `const:"SQL" json:"method"`
+}
+
+func (d DestinationFireboltLoadingMethodSQLInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFireboltLoadingMethodSQLInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFireboltLoadingMethodSQLInserts) GetMethod() DestinationFireboltLoadingMethodSQLInsertsMethod {
+ return DestinationFireboltLoadingMethodSQLInsertsMethodSQL
}
type DestinationFireboltLoadingMethodType string
@@ -132,21 +190,16 @@ func CreateDestinationFireboltLoadingMethodDestinationFireboltLoadingMethodExter
}
func (u *DestinationFireboltLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationFireboltLoadingMethodSQLInserts := new(DestinationFireboltLoadingMethodSQLInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationFireboltLoadingMethodSQLInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationFireboltLoadingMethodSQLInserts, "", true, true); err == nil {
u.DestinationFireboltLoadingMethodSQLInserts = destinationFireboltLoadingMethodSQLInserts
u.Type = DestinationFireboltLoadingMethodTypeDestinationFireboltLoadingMethodSQLInserts
return nil
}
destinationFireboltLoadingMethodExternalTableViaS3 := new(DestinationFireboltLoadingMethodExternalTableViaS3)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationFireboltLoadingMethodExternalTableViaS3); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationFireboltLoadingMethodExternalTableViaS3, "", true, true); err == nil {
u.DestinationFireboltLoadingMethodExternalTableViaS3 = destinationFireboltLoadingMethodExternalTableViaS3
u.Type = DestinationFireboltLoadingMethodTypeDestinationFireboltLoadingMethodExternalTableViaS3
return nil
@@ -157,14 +210,14 @@ func (u *DestinationFireboltLoadingMethod) UnmarshalJSON(data []byte) error {
func (u DestinationFireboltLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationFireboltLoadingMethodSQLInserts != nil {
- return json.Marshal(u.DestinationFireboltLoadingMethodSQLInserts)
+ return utils.MarshalJSON(u.DestinationFireboltLoadingMethodSQLInserts, "", true)
}
if u.DestinationFireboltLoadingMethodExternalTableViaS3 != nil {
- return json.Marshal(u.DestinationFireboltLoadingMethodExternalTableViaS3)
+ return utils.MarshalJSON(u.DestinationFireboltLoadingMethodExternalTableViaS3, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationFirebolt struct {
@@ -172,7 +225,7 @@ type DestinationFirebolt struct {
Account *string `json:"account,omitempty"`
// The database to connect to.
Database string `json:"database"`
- DestinationType DestinationFireboltFirebolt `json:"destinationType"`
+ destinationType DestinationFireboltFirebolt `const:"firebolt" json:"destinationType"`
// Engine name or url to connect to.
Engine *string `json:"engine,omitempty"`
// The host name of your Firebolt database.
@@ -184,3 +237,67 @@ type DestinationFirebolt struct {
// Firebolt email address you use to login.
Username string `json:"username"`
}
+
+func (d DestinationFirebolt) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFirebolt) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFirebolt) GetAccount() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Account
+}
+
+func (o *DestinationFirebolt) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationFirebolt) GetDestinationType() DestinationFireboltFirebolt {
+ return DestinationFireboltFireboltFirebolt
+}
+
+func (o *DestinationFirebolt) GetEngine() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Engine
+}
+
+func (o *DestinationFirebolt) GetHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Host
+}
+
+func (o *DestinationFirebolt) GetLoadingMethod() *DestinationFireboltLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationFirebolt) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationFirebolt) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfireboltcreaterequest.go b/internal/sdk/pkg/models/shared/destinationfireboltcreaterequest.go
old mode 100755
new mode 100644
index 26128b9fa..849a0ad75
--- a/internal/sdk/pkg/models/shared/destinationfireboltcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationfireboltcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationFireboltCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationFireboltCreateRequest) GetConfiguration() DestinationFirebolt {
+ if o == nil {
+ return DestinationFirebolt{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationFireboltCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationFireboltCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfireboltputrequest.go b/internal/sdk/pkg/models/shared/destinationfireboltputrequest.go
old mode 100755
new mode 100644
index cb0c96eea..f25213750
--- a/internal/sdk/pkg/models/shared/destinationfireboltputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationfireboltputrequest.go
@@ -7,3 +7,24 @@ type DestinationFireboltPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationFireboltPutRequest) GetConfiguration() DestinationFireboltUpdate {
+ if o == nil {
+ return DestinationFireboltUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationFireboltPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationFireboltPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfireboltupdate.go b/internal/sdk/pkg/models/shared/destinationfireboltupdate.go
old mode 100755
new mode 100644
index cf7624505..a6315da91
--- a/internal/sdk/pkg/models/shared/destinationfireboltupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationfireboltupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,13 +39,56 @@ type DestinationFireboltUpdateLoadingMethodExternalTableViaS3 struct {
AwsKeyID string `json:"aws_key_id"`
// Corresponding secret part of the AWS Key
AwsKeySecret string `json:"aws_key_secret"`
- Method DestinationFireboltUpdateLoadingMethodExternalTableViaS3Method `json:"method"`
+ method DestinationFireboltUpdateLoadingMethodExternalTableViaS3Method `const:"S3" json:"method"`
// The name of the S3 bucket.
S3Bucket string `json:"s3_bucket"`
// Region name of the S3 bucket.
S3Region string `json:"s3_region"`
}
+func (d DestinationFireboltUpdateLoadingMethodExternalTableViaS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) GetAwsKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeyID
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) GetAwsKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeySecret
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) GetMethod() DestinationFireboltUpdateLoadingMethodExternalTableViaS3Method {
+ return DestinationFireboltUpdateLoadingMethodExternalTableViaS3MethodS3
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) GetS3Bucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3Bucket
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodExternalTableViaS3) GetS3Region() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3Region
+}
+
type DestinationFireboltUpdateLoadingMethodSQLInsertsMethod string
const (
@@ -72,7 +115,22 @@ func (e *DestinationFireboltUpdateLoadingMethodSQLInsertsMethod) UnmarshalJSON(d
// DestinationFireboltUpdateLoadingMethodSQLInserts - Loading method used to select the way data will be uploaded to Firebolt
type DestinationFireboltUpdateLoadingMethodSQLInserts struct {
- Method DestinationFireboltUpdateLoadingMethodSQLInsertsMethod `json:"method"`
+ method DestinationFireboltUpdateLoadingMethodSQLInsertsMethod `const:"SQL" json:"method"`
+}
+
+func (d DestinationFireboltUpdateLoadingMethodSQLInserts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFireboltUpdateLoadingMethodSQLInserts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFireboltUpdateLoadingMethodSQLInserts) GetMethod() DestinationFireboltUpdateLoadingMethodSQLInsertsMethod {
+ return DestinationFireboltUpdateLoadingMethodSQLInsertsMethodSQL
}
type DestinationFireboltUpdateLoadingMethodType string
@@ -108,21 +166,16 @@ func CreateDestinationFireboltUpdateLoadingMethodDestinationFireboltUpdateLoadin
}
func (u *DestinationFireboltUpdateLoadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationFireboltUpdateLoadingMethodSQLInserts := new(DestinationFireboltUpdateLoadingMethodSQLInserts)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationFireboltUpdateLoadingMethodSQLInserts); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationFireboltUpdateLoadingMethodSQLInserts, "", true, true); err == nil {
u.DestinationFireboltUpdateLoadingMethodSQLInserts = destinationFireboltUpdateLoadingMethodSQLInserts
u.Type = DestinationFireboltUpdateLoadingMethodTypeDestinationFireboltUpdateLoadingMethodSQLInserts
return nil
}
destinationFireboltUpdateLoadingMethodExternalTableViaS3 := new(DestinationFireboltUpdateLoadingMethodExternalTableViaS3)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationFireboltUpdateLoadingMethodExternalTableViaS3); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationFireboltUpdateLoadingMethodExternalTableViaS3, "", true, true); err == nil {
u.DestinationFireboltUpdateLoadingMethodExternalTableViaS3 = destinationFireboltUpdateLoadingMethodExternalTableViaS3
u.Type = DestinationFireboltUpdateLoadingMethodTypeDestinationFireboltUpdateLoadingMethodExternalTableViaS3
return nil
@@ -133,14 +186,14 @@ func (u *DestinationFireboltUpdateLoadingMethod) UnmarshalJSON(data []byte) erro
func (u DestinationFireboltUpdateLoadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationFireboltUpdateLoadingMethodSQLInserts != nil {
- return json.Marshal(u.DestinationFireboltUpdateLoadingMethodSQLInserts)
+ return utils.MarshalJSON(u.DestinationFireboltUpdateLoadingMethodSQLInserts, "", true)
}
if u.DestinationFireboltUpdateLoadingMethodExternalTableViaS3 != nil {
- return json.Marshal(u.DestinationFireboltUpdateLoadingMethodExternalTableViaS3)
+ return utils.MarshalJSON(u.DestinationFireboltUpdateLoadingMethodExternalTableViaS3, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationFireboltUpdate struct {
@@ -159,3 +212,52 @@ type DestinationFireboltUpdate struct {
// Firebolt email address you use to login.
Username string `json:"username"`
}
+
+func (o *DestinationFireboltUpdate) GetAccount() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Account
+}
+
+func (o *DestinationFireboltUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationFireboltUpdate) GetEngine() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Engine
+}
+
+func (o *DestinationFireboltUpdate) GetHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Host
+}
+
+func (o *DestinationFireboltUpdate) GetLoadingMethod() *DestinationFireboltUpdateLoadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.LoadingMethod
+}
+
+func (o *DestinationFireboltUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationFireboltUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfirestore.go b/internal/sdk/pkg/models/shared/destinationfirestore.go
old mode 100755
new mode 100644
index b2f808703..cf5c13818
--- a/internal/sdk/pkg/models/shared/destinationfirestore.go
+++ b/internal/sdk/pkg/models/shared/destinationfirestore.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *DestinationFirestoreFirestore) UnmarshalJSON(data []byte) error {
type DestinationFirestore struct {
// The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty.
CredentialsJSON *string `json:"credentials_json,omitempty"`
- DestinationType DestinationFirestoreFirestore `json:"destinationType"`
+ destinationType DestinationFirestoreFirestore `const:"firestore" json:"destinationType"`
// The GCP project ID for the project containing the target BigQuery dataset.
ProjectID string `json:"project_id"`
}
+
+func (d DestinationFirestore) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationFirestore) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationFirestore) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationFirestore) GetDestinationType() DestinationFirestoreFirestore {
+ return DestinationFirestoreFirestoreFirestore
+}
+
+func (o *DestinationFirestore) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfirestorecreaterequest.go b/internal/sdk/pkg/models/shared/destinationfirestorecreaterequest.go
old mode 100755
new mode 100644
index bf882f3c5..99620b912
--- a/internal/sdk/pkg/models/shared/destinationfirestorecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationfirestorecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationFirestoreCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationFirestoreCreateRequest) GetConfiguration() DestinationFirestore {
+ if o == nil {
+ return DestinationFirestore{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationFirestoreCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationFirestoreCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfirestoreputrequest.go b/internal/sdk/pkg/models/shared/destinationfirestoreputrequest.go
old mode 100755
new mode 100644
index 45266c929..1a2060769
--- a/internal/sdk/pkg/models/shared/destinationfirestoreputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationfirestoreputrequest.go
@@ -7,3 +7,24 @@ type DestinationFirestorePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationFirestorePutRequest) GetConfiguration() DestinationFirestoreUpdate {
+ if o == nil {
+ return DestinationFirestoreUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationFirestorePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationFirestorePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationfirestoreupdate.go b/internal/sdk/pkg/models/shared/destinationfirestoreupdate.go
old mode 100755
new mode 100644
index 86043b1c1..f2c18ea1d
--- a/internal/sdk/pkg/models/shared/destinationfirestoreupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationfirestoreupdate.go
@@ -8,3 +8,17 @@ type DestinationFirestoreUpdate struct {
// The GCP project ID for the project containing the target BigQuery dataset.
ProjectID string `json:"project_id"`
}
+
+func (o *DestinationFirestoreUpdate) GetCredentialsJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationFirestoreUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgcs.go b/internal/sdk/pkg/models/shared/destinationgcs.go
old mode 100755
new mode 100644
index e0a586d4b..226a4e201
--- a/internal/sdk/pkg/models/shared/destinationgcs.go
+++ b/internal/sdk/pkg/models/shared/destinationgcs.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,45 @@ func (e *DestinationGcsAuthenticationHMACKeyCredentialType) UnmarshalJSON(data [
// DestinationGcsAuthenticationHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationGcsAuthenticationHMACKey struct {
- CredentialType DestinationGcsAuthenticationHMACKeyCredentialType `json:"credential_type"`
+ CredentialType *DestinationGcsAuthenticationHMACKeyCredentialType `default:"HMAC_KEY" json:"credential_type"`
// When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more here.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more here.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationGcsAuthenticationHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsAuthenticationHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsAuthenticationHMACKey) GetCredentialType() *DestinationGcsAuthenticationHMACKeyCredentialType {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialType
+}
+
+func (o *DestinationGcsAuthenticationHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationGcsAuthenticationHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationGcsAuthenticationType string
const (
@@ -64,12 +96,9 @@ func CreateDestinationGcsAuthenticationDestinationGcsAuthenticationHMACKey(desti
}
func (u *DestinationGcsAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsAuthenticationHMACKey := new(DestinationGcsAuthenticationHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsAuthenticationHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsAuthenticationHMACKey, "", true, true); err == nil {
u.DestinationGcsAuthenticationHMACKey = destinationGcsAuthenticationHMACKey
u.Type = DestinationGcsAuthenticationTypeDestinationGcsAuthenticationHMACKey
return nil
@@ -80,10 +109,10 @@ func (u *DestinationGcsAuthentication) UnmarshalJSON(data []byte) error {
func (u DestinationGcsAuthentication) MarshalJSON() ([]byte, error) {
if u.DestinationGcsAuthenticationHMACKey != nil {
- return json.Marshal(u.DestinationGcsAuthenticationHMACKey)
+ return utils.MarshalJSON(u.DestinationGcsAuthenticationHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationGcsGcs string
@@ -180,18 +209,78 @@ func (e *DestinationGcsOutputFormatParquetColumnarStorageFormatType) UnmarshalJS
// DestinationGcsOutputFormatParquetColumnarStorage - Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format.
type DestinationGcsOutputFormatParquetColumnarStorage struct {
// This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
- BlockSizeMb *int64 `json:"block_size_mb,omitempty"`
+ BlockSizeMb *int64 `default:"128" json:"block_size_mb"`
// The compression algorithm used to compress data pages.
- CompressionCodec *DestinationGcsOutputFormatParquetColumnarStorageCompressionCodec `json:"compression_codec,omitempty"`
+ CompressionCodec *DestinationGcsOutputFormatParquetColumnarStorageCompressionCodec `default:"UNCOMPRESSED" json:"compression_codec"`
// Default: true.
- DictionaryEncoding *bool `json:"dictionary_encoding,omitempty"`
+ DictionaryEncoding *bool `default:"true" json:"dictionary_encoding"`
// There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
- DictionaryPageSizeKb *int64 `json:"dictionary_page_size_kb,omitempty"`
- FormatType DestinationGcsOutputFormatParquetColumnarStorageFormatType `json:"format_type"`
+ DictionaryPageSizeKb *int64 `default:"1024" json:"dictionary_page_size_kb"`
+ FormatType *DestinationGcsOutputFormatParquetColumnarStorageFormatType `default:"Parquet" json:"format_type"`
// Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- MaxPaddingSizeMb *int64 `json:"max_padding_size_mb,omitempty"`
+ MaxPaddingSizeMb *int64 `default:"8" json:"max_padding_size_mb"`
// The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
- PageSizeKb *int64 `json:"page_size_kb,omitempty"`
+ PageSizeKb *int64 `default:"1024" json:"page_size_kb"`
+}
+
+func (d DestinationGcsOutputFormatParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetBlockSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSizeMb
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetCompressionCodec() *DestinationGcsOutputFormatParquetColumnarStorageCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetDictionaryEncoding() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryEncoding
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetDictionaryPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryPageSizeKb
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetFormatType() *DestinationGcsOutputFormatParquetColumnarStorageFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetMaxPaddingSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPaddingSizeMb
+}
+
+func (o *DestinationGcsOutputFormatParquetColumnarStorage) GetPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSizeKb
}
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType string
@@ -220,7 +309,25 @@ func (e *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPC
// DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -249,7 +356,25 @@ func (e *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCom
// DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -285,21 +410,16 @@ func CreateDestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionDes
}
func (u *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -310,14 +430,14 @@ func (u *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompression) Unm
func (u DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType string
@@ -348,7 +468,32 @@ func (e *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType) Unma
type DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
- FormatType DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ FormatType *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType string
@@ -377,7 +522,25 @@ func (e *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompres
// DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP struct {
- CompressionType *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP) GetCompressionType() *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType string
@@ -406,7 +569,25 @@ func (e *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompressi
// DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression struct {
- CompressionType *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) GetCompressionType() *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionType string
@@ -442,21 +623,16 @@ func CreateDestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionDestinati
}
func (u *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression := new(DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true, true); err == nil {
u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression = destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
u.Type = DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
return nil
}
destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP := new(DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true, true); err == nil {
u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP = destinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP
u.Type = DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP
return nil
@@ -467,14 +643,14 @@ func (u *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompression) Unmarshal
func (u DestinationGcsOutputFormatCSVCommaSeparatedValuesCompression) MarshalJSON() ([]byte, error) {
if u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression != nil {
- return json.Marshal(u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true)
}
if u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP != nil {
- return json.Marshal(u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationGcsOutputFormatCSVCommaSeparatedValuesNormalization - Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -534,8 +710,40 @@ type DestinationGcsOutputFormatCSVCommaSeparatedValues struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
Compression *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompression `json:"compression,omitempty"`
// Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening *DestinationGcsOutputFormatCSVCommaSeparatedValuesNormalization `json:"flattening,omitempty"`
- FormatType DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationGcsOutputFormatCSVCommaSeparatedValuesNormalization `default:"No flattening" json:"flattening"`
+ FormatType *DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType `default:"CSV" json:"format_type"`
+}
+
+func (d DestinationGcsOutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatCSVCommaSeparatedValues) GetCompression() *DestinationGcsOutputFormatCSVCommaSeparatedValuesCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationGcsOutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationGcsOutputFormatCSVCommaSeparatedValuesNormalization {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationGcsOutputFormatCSVCommaSeparatedValues) GetFormatType() *DestinationGcsOutputFormatCSVCommaSeparatedValuesFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec string
@@ -564,7 +772,25 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec) Un
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `default:"snappy" json:"codec"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappyCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec string
@@ -593,11 +819,43 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `default:"zstandard" json:"codec"`
// Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"3" json:"compression_level"`
// If true, include a checksum with each data block.
- IncludeChecksum *bool `json:"include_checksum,omitempty"`
+ IncludeChecksum *bool `default:"false" json:"include_checksum"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandardCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard) GetIncludeChecksum() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeChecksum
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec string
@@ -626,9 +884,34 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec) Unmars
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec `default:"xz" json:"codec"`
// The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here for details.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"6" json:"compression_level"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXzCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec string
@@ -657,7 +940,25 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec) Unm
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `default:"bzip2" json:"codec"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2Codec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec string
@@ -686,9 +987,34 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec) U
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `default:"Deflate" json:"codec"`
// 0: no compression & fastest, 9: best compression & slowest.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"0" json:"compression_level"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflateCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec string
@@ -717,7 +1043,25 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCo
// DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression struct {
- Codec DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `json:"codec"`
+ Codec *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `default:"no compression" json:"codec"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression) GetCodec() *DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsOutputFormatAvroApacheAvroCompressionCodecType string
@@ -797,57 +1141,44 @@ func CreateDestinationGcsOutputFormatAvroApacheAvroCompressionCodecDestinationGc
}
func (u *DestinationGcsOutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression = destinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression
return nil
}
destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 = destinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2
return nil
}
destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy = destinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy
return nil
}
destinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate = destinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate
return nil
}
destinationGcsOutputFormatAvroApacheAvroCompressionCodecXz := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecXz); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecXz, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz = destinationGcsOutputFormatAvroApacheAvroCompressionCodecXz
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz
return nil
}
destinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard := new(DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard = destinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard
u.Type = DestinationGcsOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard
return nil
@@ -858,30 +1189,30 @@ func (u *DestinationGcsOutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON
func (u DestinationGcsOutputFormatAvroApacheAvroCompressionCodec) MarshalJSON() ([]byte, error) {
if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression)
- }
-
- if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true)
}
- if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy)
+ if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true)
}
- if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecDeflate)
+ if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true)
}
if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecXz, "", true)
}
if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true)
+ }
+
+ if u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationGcsOutputFormatAvroApacheAvroFormatType string
@@ -912,7 +1243,32 @@ func (e *DestinationGcsOutputFormatAvroApacheAvroFormatType) UnmarshalJSON(data
type DestinationGcsOutputFormatAvroApacheAvro struct {
// The compression algorithm used to compress data. Default to no compression.
CompressionCodec DestinationGcsOutputFormatAvroApacheAvroCompressionCodec `json:"compression_codec"`
- FormatType DestinationGcsOutputFormatAvroApacheAvroFormatType `json:"format_type"`
+ FormatType *DestinationGcsOutputFormatAvroApacheAvroFormatType `default:"Avro" json:"format_type"`
+}
+
+func (d DestinationGcsOutputFormatAvroApacheAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsOutputFormatAvroApacheAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvro) GetCompressionCodec() DestinationGcsOutputFormatAvroApacheAvroCompressionCodec {
+ if o == nil {
+ return DestinationGcsOutputFormatAvroApacheAvroCompressionCodec{}
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationGcsOutputFormatAvroApacheAvro) GetFormatType() *DestinationGcsOutputFormatAvroApacheAvroFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsOutputFormatType string
@@ -970,39 +1326,30 @@ func CreateDestinationGcsOutputFormatDestinationGcsOutputFormatParquetColumnarSt
}
func (u *DestinationGcsOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsOutputFormatAvroApacheAvro := new(DestinationGcsOutputFormatAvroApacheAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatAvroApacheAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatAvroApacheAvro, "", true, true); err == nil {
u.DestinationGcsOutputFormatAvroApacheAvro = destinationGcsOutputFormatAvroApacheAvro
u.Type = DestinationGcsOutputFormatTypeDestinationGcsOutputFormatAvroApacheAvro
return nil
}
destinationGcsOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON = destinationGcsOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationGcsOutputFormatTypeDestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationGcsOutputFormatCSVCommaSeparatedValues := new(DestinationGcsOutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationGcsOutputFormatCSVCommaSeparatedValues = destinationGcsOutputFormatCSVCommaSeparatedValues
u.Type = DestinationGcsOutputFormatTypeDestinationGcsOutputFormatCSVCommaSeparatedValues
return nil
}
destinationGcsOutputFormatParquetColumnarStorage := new(DestinationGcsOutputFormatParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsOutputFormatParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsOutputFormatParquetColumnarStorage, "", true, true); err == nil {
u.DestinationGcsOutputFormatParquetColumnarStorage = destinationGcsOutputFormatParquetColumnarStorage
u.Type = DestinationGcsOutputFormatTypeDestinationGcsOutputFormatParquetColumnarStorage
return nil
@@ -1013,22 +1360,22 @@ func (u *DestinationGcsOutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationGcsOutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationGcsOutputFormatAvroApacheAvro != nil {
- return json.Marshal(u.DestinationGcsOutputFormatAvroApacheAvro)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatAvroApacheAvro, "", true)
}
- if u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON)
+ if u.DestinationGcsOutputFormatCSVCommaSeparatedValues != nil {
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatCSVCommaSeparatedValues, "", true)
}
- if u.DestinationGcsOutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationGcsOutputFormatCSVCommaSeparatedValues)
+ if u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON != nil {
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationGcsOutputFormatParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationGcsOutputFormatParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationGcsOutputFormatParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationGCSGCSBucketRegion - Select a Region of the GCS Bucket. Read more here.
@@ -1161,7 +1508,7 @@ func (e *DestinationGCSGCSBucketRegion) UnmarshalJSON(data []byte) error {
type DestinationGcs struct {
// An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
Credential DestinationGcsAuthentication `json:"credential"`
- DestinationType DestinationGcsGcs `json:"destinationType"`
+ destinationType DestinationGcsGcs `const:"gcs" json:"destinationType"`
// Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format.
Format DestinationGcsOutputFormat `json:"format"`
// You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more here.
@@ -1169,5 +1516,55 @@ type DestinationGcs struct {
// GCS Bucket Path string Subdirectory under the above bucket to sync the data into.
GcsBucketPath string `json:"gcs_bucket_path"`
// Select a Region of the GCS Bucket. Read more here.
- GcsBucketRegion *DestinationGCSGCSBucketRegion `json:"gcs_bucket_region,omitempty"`
+ GcsBucketRegion *DestinationGCSGCSBucketRegion `default:"us" json:"gcs_bucket_region"`
+}
+
+func (d DestinationGcs) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcs) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcs) GetCredential() DestinationGcsAuthentication {
+ if o == nil {
+ return DestinationGcsAuthentication{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationGcs) GetDestinationType() DestinationGcsGcs {
+ return DestinationGcsGcsGcs
+}
+
+func (o *DestinationGcs) GetFormat() DestinationGcsOutputFormat {
+ if o == nil {
+ return DestinationGcsOutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationGcs) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationGcs) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationGcs) GetGcsBucketRegion() *DestinationGCSGCSBucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.GcsBucketRegion
}
diff --git a/internal/sdk/pkg/models/shared/destinationgcscreaterequest.go b/internal/sdk/pkg/models/shared/destinationgcscreaterequest.go
old mode 100755
new mode 100644
index 31db59f02..4286a2f6a
--- a/internal/sdk/pkg/models/shared/destinationgcscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationgcscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationGcsCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationGcsCreateRequest) GetConfiguration() DestinationGcs {
+ if o == nil {
+ return DestinationGcs{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationGcsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationGcsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgcsputrequest.go b/internal/sdk/pkg/models/shared/destinationgcsputrequest.go
old mode 100755
new mode 100644
index 8840c7f4b..c91f96c4a
--- a/internal/sdk/pkg/models/shared/destinationgcsputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationgcsputrequest.go
@@ -7,3 +7,24 @@ type DestinationGcsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationGcsPutRequest) GetConfiguration() DestinationGcsUpdate {
+ if o == nil {
+ return DestinationGcsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationGcsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationGcsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgcsupdate.go b/internal/sdk/pkg/models/shared/destinationgcsupdate.go
old mode 100755
new mode 100644
index e7b48050c..f07382af5
--- a/internal/sdk/pkg/models/shared/destinationgcsupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationgcsupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,45 @@ func (e *DestinationGcsUpdateAuthenticationHMACKeyCredentialType) UnmarshalJSON(
// DestinationGcsUpdateAuthenticationHMACKey - An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here.
type DestinationGcsUpdateAuthenticationHMACKey struct {
- CredentialType DestinationGcsUpdateAuthenticationHMACKeyCredentialType `json:"credential_type"`
+ CredentialType *DestinationGcsUpdateAuthenticationHMACKeyCredentialType `default:"HMAC_KEY" json:"credential_type"`
// When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more here.
HmacKeyAccessID string `json:"hmac_key_access_id"`
// The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more here.
HmacKeySecret string `json:"hmac_key_secret"`
}
+func (d DestinationGcsUpdateAuthenticationHMACKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateAuthenticationHMACKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateAuthenticationHMACKey) GetCredentialType() *DestinationGcsUpdateAuthenticationHMACKeyCredentialType {
+ if o == nil {
+ return nil
+ }
+ return o.CredentialType
+}
+
+func (o *DestinationGcsUpdateAuthenticationHMACKey) GetHmacKeyAccessID() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeyAccessID
+}
+
+func (o *DestinationGcsUpdateAuthenticationHMACKey) GetHmacKeySecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.HmacKeySecret
+}
+
type DestinationGcsUpdateAuthenticationType string
const (
@@ -64,12 +96,9 @@ func CreateDestinationGcsUpdateAuthenticationDestinationGcsUpdateAuthenticationH
}
func (u *DestinationGcsUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsUpdateAuthenticationHMACKey := new(DestinationGcsUpdateAuthenticationHMACKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateAuthenticationHMACKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateAuthenticationHMACKey, "", true, true); err == nil {
u.DestinationGcsUpdateAuthenticationHMACKey = destinationGcsUpdateAuthenticationHMACKey
u.Type = DestinationGcsUpdateAuthenticationTypeDestinationGcsUpdateAuthenticationHMACKey
return nil
@@ -80,10 +109,10 @@ func (u *DestinationGcsUpdateAuthentication) UnmarshalJSON(data []byte) error {
func (u DestinationGcsUpdateAuthentication) MarshalJSON() ([]byte, error) {
if u.DestinationGcsUpdateAuthenticationHMACKey != nil {
- return json.Marshal(u.DestinationGcsUpdateAuthenticationHMACKey)
+ return utils.MarshalJSON(u.DestinationGcsUpdateAuthenticationHMACKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationGcsUpdateOutputFormatParquetColumnarStorageCompressionCodec - The compression algorithm used to compress data pages.
@@ -156,18 +185,78 @@ func (e *DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType) Unmar
// DestinationGcsUpdateOutputFormatParquetColumnarStorage - Output data format. One of the following formats must be selected - AVRO format, PARQUET format, CSV format, or JSONL format.
type DestinationGcsUpdateOutputFormatParquetColumnarStorage struct {
// This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
- BlockSizeMb *int64 `json:"block_size_mb,omitempty"`
+ BlockSizeMb *int64 `default:"128" json:"block_size_mb"`
// The compression algorithm used to compress data pages.
- CompressionCodec *DestinationGcsUpdateOutputFormatParquetColumnarStorageCompressionCodec `json:"compression_codec,omitempty"`
+ CompressionCodec *DestinationGcsUpdateOutputFormatParquetColumnarStorageCompressionCodec `default:"UNCOMPRESSED" json:"compression_codec"`
// Default: true.
- DictionaryEncoding *bool `json:"dictionary_encoding,omitempty"`
+ DictionaryEncoding *bool `default:"true" json:"dictionary_encoding"`
// There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
- DictionaryPageSizeKb *int64 `json:"dictionary_page_size_kb,omitempty"`
- FormatType DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType `json:"format_type"`
+ DictionaryPageSizeKb *int64 `default:"1024" json:"dictionary_page_size_kb"`
+ FormatType *DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType `default:"Parquet" json:"format_type"`
// Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- MaxPaddingSizeMb *int64 `json:"max_padding_size_mb,omitempty"`
+ MaxPaddingSizeMb *int64 `default:"8" json:"max_padding_size_mb"`
// The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
- PageSizeKb *int64 `json:"page_size_kb,omitempty"`
+ PageSizeKb *int64 `default:"1024" json:"page_size_kb"`
+}
+
+func (d DestinationGcsUpdateOutputFormatParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetBlockSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSizeMb
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetCompressionCodec() *DestinationGcsUpdateOutputFormatParquetColumnarStorageCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetDictionaryEncoding() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryEncoding
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetDictionaryPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryPageSizeKb
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetFormatType() *DestinationGcsUpdateOutputFormatParquetColumnarStorageFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetMaxPaddingSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPaddingSizeMb
+}
+
+func (o *DestinationGcsUpdateOutputFormatParquetColumnarStorage) GetPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSizeKb
}
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType string
@@ -196,7 +285,25 @@ func (e *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressio
// DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -225,7 +332,25 @@ func (e *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressio
// DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -261,21 +386,16 @@ func CreateDestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompress
}
func (u *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -286,14 +406,14 @@ func (u *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressio
func (u DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType string
@@ -324,7 +444,32 @@ func (e *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType
type DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
- FormatType DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ FormatType *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType string
@@ -353,7 +498,25 @@ func (e *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPC
// DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP struct {
- CompressionType *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) GetCompressionType() *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType string
@@ -382,7 +545,25 @@ func (e *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCom
// DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression struct {
- CompressionType *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) GetCompressionType() *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionType string
@@ -418,21 +599,16 @@ func CreateDestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionDes
}
func (u *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression := new(DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression = destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
u.Type = DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
return nil
}
destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP := new(DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP = destinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP
u.Type = DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP
return nil
@@ -443,14 +619,14 @@ func (u *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompression) Unm
func (u DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompression) MarshalJSON() ([]byte, error) {
if u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true)
}
if u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesNormalization - Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -510,8 +686,40 @@ type DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
Compression *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompression `json:"compression,omitempty"`
// Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesNormalization `json:"flattening,omitempty"`
- FormatType DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesNormalization `default:"No flattening" json:"flattening"`
+ FormatType *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType `default:"CSV" json:"format_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues) GetCompression() *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesNormalization {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues) GetFormatType() *DestinationGcsUpdateOutputFormatCSVCommaSeparatedValuesFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec string
@@ -540,7 +748,25 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCod
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `default:"snappy" json:"codec"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec string
@@ -569,11 +795,43 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `default:"zstandard" json:"codec"`
// Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"3" json:"compression_level"`
// If true, include a checksum with each data block.
- IncludeChecksum *bool `json:"include_checksum,omitempty"`
+ IncludeChecksum *bool `default:"false" json:"include_checksum"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetIncludeChecksum() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeChecksum
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec string
@@ -602,9 +860,34 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec)
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec `default:"xz" json:"codec"`
// The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here for details.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"6" json:"compression_level"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec string
@@ -633,7 +916,25 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Code
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `default:"bzip2" json:"codec"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec string
@@ -662,9 +963,34 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCo
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `default:"Deflate" json:"codec"`
// 0: no compression & fastest, 9: best compression & slowest.
- CompressionLevel *int64 `json:"compression_level,omitempty"`
+ CompressionLevel *int64 `default:"0" json:"compression_level"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec string
@@ -693,7 +1019,25 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompres
// DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression - The compression algorithm used to compress data. Default to no compression.
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression struct {
- Codec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `json:"codec"`
+ Codec *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `default:"no compression" json:"codec"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) GetCodec() *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecType string
@@ -773,57 +1117,44 @@ func CreateDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDestina
}
func (u *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
return nil
}
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
return nil
}
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
return nil
}
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
return nil
}
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz
return nil
}
destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard := new(DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard = destinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
u.Type = DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
return nil
@@ -834,30 +1165,30 @@ func (u *DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec) Unmarsh
func (u DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec) MarshalJSON() ([]byte, error) {
if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true)
}
- if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2)
- }
-
- if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy)
+ if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true)
}
- if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecDeflate)
+ if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true)
}
if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecXz, "", true)
}
if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true)
+ }
+
+ if u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType string
@@ -888,7 +1219,32 @@ func (e *DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType) UnmarshalJSON
type DestinationGcsUpdateOutputFormatAvroApacheAvro struct {
// The compression algorithm used to compress data. Default to no compression.
CompressionCodec DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec `json:"compression_codec"`
- FormatType DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType `json:"format_type"`
+ FormatType *DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType `default:"Avro" json:"format_type"`
+}
+
+func (d DestinationGcsUpdateOutputFormatAvroApacheAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdateOutputFormatAvroApacheAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvro) GetCompressionCodec() DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec {
+ if o == nil {
+ return DestinationGcsUpdateOutputFormatAvroApacheAvroCompressionCodec{}
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationGcsUpdateOutputFormatAvroApacheAvro) GetFormatType() *DestinationGcsUpdateOutputFormatAvroApacheAvroFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationGcsUpdateOutputFormatType string
@@ -946,39 +1302,30 @@ func CreateDestinationGcsUpdateOutputFormatDestinationGcsUpdateOutputFormatParqu
}
func (u *DestinationGcsUpdateOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationGcsUpdateOutputFormatAvroApacheAvro := new(DestinationGcsUpdateOutputFormatAvroApacheAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatAvroApacheAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatAvroApacheAvro, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatAvroApacheAvro = destinationGcsUpdateOutputFormatAvroApacheAvro
u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateOutputFormatAvroApacheAvro
return nil
}
destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON = destinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationGcsUpdateOutputFormatCSVCommaSeparatedValues := new(DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues = destinationGcsUpdateOutputFormatCSVCommaSeparatedValues
u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateOutputFormatCSVCommaSeparatedValues
return nil
}
destinationGcsUpdateOutputFormatParquetColumnarStorage := new(DestinationGcsUpdateOutputFormatParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationGcsUpdateOutputFormatParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationGcsUpdateOutputFormatParquetColumnarStorage, "", true, true); err == nil {
u.DestinationGcsUpdateOutputFormatParquetColumnarStorage = destinationGcsUpdateOutputFormatParquetColumnarStorage
u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateOutputFormatParquetColumnarStorage
return nil
@@ -989,22 +1336,22 @@ func (u *DestinationGcsUpdateOutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationGcsUpdateOutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationGcsUpdateOutputFormatAvroApacheAvro != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatAvroApacheAvro)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatAvroApacheAvro, "", true)
}
- if u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
+ if u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues != nil {
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues, "", true)
}
- if u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatCSVCommaSeparatedValues)
+ if u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationGcsUpdateOutputFormatParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationGcsUpdateOutputFormatParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationGcsUpdateOutputFormatParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationGCSUpdateGCSBucketRegion - Select a Region of the GCS Bucket. Read more here.
@@ -1144,5 +1491,51 @@ type DestinationGcsUpdate struct {
// GCS Bucket Path string Subdirectory under the above bucket to sync the data into.
GcsBucketPath string `json:"gcs_bucket_path"`
// Select a Region of the GCS Bucket. Read more here.
- GcsBucketRegion *DestinationGCSUpdateGCSBucketRegion `json:"gcs_bucket_region,omitempty"`
+ GcsBucketRegion *DestinationGCSUpdateGCSBucketRegion `default:"us" json:"gcs_bucket_region"`
+}
+
+func (d DestinationGcsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGcsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGcsUpdate) GetCredential() DestinationGcsUpdateAuthentication {
+ if o == nil {
+ return DestinationGcsUpdateAuthentication{}
+ }
+ return o.Credential
+}
+
+func (o *DestinationGcsUpdate) GetFormat() DestinationGcsUpdateOutputFormat {
+ if o == nil {
+ return DestinationGcsUpdateOutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationGcsUpdate) GetGcsBucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketName
+}
+
+func (o *DestinationGcsUpdate) GetGcsBucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucketPath
+}
+
+func (o *DestinationGcsUpdate) GetGcsBucketRegion() *DestinationGCSUpdateGCSBucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.GcsBucketRegion
}
diff --git a/internal/sdk/pkg/models/shared/destinationgooglesheets.go b/internal/sdk/pkg/models/shared/destinationgooglesheets.go
old mode 100755
new mode 100644
index 79507679b..ba1688bda
--- a/internal/sdk/pkg/models/shared/destinationgooglesheets.go
+++ b/internal/sdk/pkg/models/shared/destinationgooglesheets.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -17,6 +18,27 @@ type DestinationGoogleSheetsAuthenticationViaGoogleOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (o *DestinationGoogleSheetsAuthenticationViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *DestinationGoogleSheetsAuthenticationViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *DestinationGoogleSheetsAuthenticationViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type DestinationGoogleSheetsGoogleSheets string
const (
@@ -44,7 +66,36 @@ func (e *DestinationGoogleSheetsGoogleSheets) UnmarshalJSON(data []byte) error {
type DestinationGoogleSheets struct {
// Google API Credentials for connecting to Google Sheets and Google Drive APIs
Credentials DestinationGoogleSheetsAuthenticationViaGoogleOAuth `json:"credentials"`
- DestinationType DestinationGoogleSheetsGoogleSheets `json:"destinationType"`
+ destinationType DestinationGoogleSheetsGoogleSheets `const:"google-sheets" json:"destinationType"`
// The link to your spreadsheet. See this guide for more details.
SpreadsheetID string `json:"spreadsheet_id"`
}
+
+func (d DestinationGoogleSheets) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationGoogleSheets) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationGoogleSheets) GetCredentials() DestinationGoogleSheetsAuthenticationViaGoogleOAuth {
+ if o == nil {
+ return DestinationGoogleSheetsAuthenticationViaGoogleOAuth{}
+ }
+ return o.Credentials
+}
+
+func (o *DestinationGoogleSheets) GetDestinationType() DestinationGoogleSheetsGoogleSheets {
+ return DestinationGoogleSheetsGoogleSheetsGoogleSheets
+}
+
+func (o *DestinationGoogleSheets) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgooglesheetscreaterequest.go b/internal/sdk/pkg/models/shared/destinationgooglesheetscreaterequest.go
old mode 100755
new mode 100644
index 91a08316b..72636bd76
--- a/internal/sdk/pkg/models/shared/destinationgooglesheetscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationgooglesheetscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationGoogleSheetsCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationGoogleSheetsCreateRequest) GetConfiguration() DestinationGoogleSheets {
+ if o == nil {
+ return DestinationGoogleSheets{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationGoogleSheetsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationGoogleSheetsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgooglesheetsputrequest.go b/internal/sdk/pkg/models/shared/destinationgooglesheetsputrequest.go
old mode 100755
new mode 100644
index 6b1fc5179..07e40d974
--- a/internal/sdk/pkg/models/shared/destinationgooglesheetsputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationgooglesheetsputrequest.go
@@ -7,3 +7,24 @@ type DestinationGoogleSheetsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationGoogleSheetsPutRequest) GetConfiguration() DestinationGoogleSheetsUpdate {
+ if o == nil {
+ return DestinationGoogleSheetsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationGoogleSheetsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationGoogleSheetsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationgooglesheetsupdate.go b/internal/sdk/pkg/models/shared/destinationgooglesheetsupdate.go
old mode 100755
new mode 100644
index 81114c419..427667df2
--- a/internal/sdk/pkg/models/shared/destinationgooglesheetsupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationgooglesheetsupdate.go
@@ -12,9 +12,44 @@ type DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (o *DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type DestinationGoogleSheetsUpdate struct {
// Google API Credentials for connecting to Google Sheets and Google Drive APIs
Credentials DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth `json:"credentials"`
// The link to your spreadsheet. See this guide for more details.
SpreadsheetID string `json:"spreadsheet_id"`
}
+
+func (o *DestinationGoogleSheetsUpdate) GetCredentials() DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth {
+ if o == nil {
+ return DestinationGoogleSheetsUpdateAuthenticationViaGoogleOAuth{}
+ }
+ return o.Credentials
+}
+
+func (o *DestinationGoogleSheetsUpdate) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkeen.go b/internal/sdk/pkg/models/shared/destinationkeen.go
old mode 100755
new mode 100644
index 782fb7769..08db26759
--- a/internal/sdk/pkg/models/shared/destinationkeen.go
+++ b/internal/sdk/pkg/models/shared/destinationkeen.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,9 +35,45 @@ func (e *DestinationKeenKeen) UnmarshalJSON(data []byte) error {
type DestinationKeen struct {
// To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
APIKey string `json:"api_key"`
- DestinationType DestinationKeenKeen `json:"destinationType"`
+ destinationType DestinationKeenKeen `const:"keen" json:"destinationType"`
// Allow connector to guess keen.timestamp value based on the streamed data.
- InferTimestamp *bool `json:"infer_timestamp,omitempty"`
+ InferTimestamp *bool `default:"true" json:"infer_timestamp"`
// To get Keen Project ID, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
ProjectID string `json:"project_id"`
}
+
+func (d DestinationKeen) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationKeen) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationKeen) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationKeen) GetDestinationType() DestinationKeenKeen {
+ return DestinationKeenKeenKeen
+}
+
+func (o *DestinationKeen) GetInferTimestamp() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.InferTimestamp
+}
+
+func (o *DestinationKeen) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkeencreaterequest.go b/internal/sdk/pkg/models/shared/destinationkeencreaterequest.go
old mode 100755
new mode 100644
index 6890764ed..56a5ee19f
--- a/internal/sdk/pkg/models/shared/destinationkeencreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationkeencreaterequest.go
@@ -7,3 +7,24 @@ type DestinationKeenCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationKeenCreateRequest) GetConfiguration() DestinationKeen {
+ if o == nil {
+ return DestinationKeen{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationKeenCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationKeenCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkeenputrequest.go b/internal/sdk/pkg/models/shared/destinationkeenputrequest.go
old mode 100755
new mode 100644
index 128c70124..1899c0e61
--- a/internal/sdk/pkg/models/shared/destinationkeenputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationkeenputrequest.go
@@ -7,3 +7,24 @@ type DestinationKeenPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationKeenPutRequest) GetConfiguration() DestinationKeenUpdate {
+ if o == nil {
+ return DestinationKeenUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationKeenPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationKeenPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkeenupdate.go b/internal/sdk/pkg/models/shared/destinationkeenupdate.go
old mode 100755
new mode 100644
index c7bee0be8..ac1a18f5a
--- a/internal/sdk/pkg/models/shared/destinationkeenupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationkeenupdate.go
@@ -2,11 +2,47 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationKeenUpdate struct {
// To get Keen Master API Key, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
APIKey string `json:"api_key"`
// Allow connector to guess keen.timestamp value based on the streamed data.
- InferTimestamp *bool `json:"infer_timestamp,omitempty"`
+ InferTimestamp *bool `default:"true" json:"infer_timestamp"`
// To get Keen Project ID, navigate to the Access tab from the left-hand, side panel and check the Project Details section.
ProjectID string `json:"project_id"`
}
+
+func (d DestinationKeenUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationKeenUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationKeenUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationKeenUpdate) GetInferTimestamp() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.InferTimestamp
+}
+
+func (o *DestinationKeenUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkinesis.go b/internal/sdk/pkg/models/shared/destinationkinesis.go
old mode 100755
new mode 100644
index 04d12eab1..20af52832
--- a/internal/sdk/pkg/models/shared/destinationkinesis.go
+++ b/internal/sdk/pkg/models/shared/destinationkinesis.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,8 +36,8 @@ type DestinationKinesis struct {
// Generate the AWS Access Key for current user.
AccessKey string `json:"accessKey"`
// Buffer size for storing kinesis records before being batch streamed.
- BufferSize int64 `json:"bufferSize"`
- DestinationType DestinationKinesisKinesis `json:"destinationType"`
+ BufferSize *int64 `default:"100" json:"bufferSize"`
+ destinationType DestinationKinesisKinesis `const:"kinesis" json:"destinationType"`
// AWS Kinesis endpoint.
Endpoint string `json:"endpoint"`
// The AWS Private Key - a string of numbers and letters that are unique for each account, also known as a "recovery phrase".
@@ -44,5 +45,62 @@ type DestinationKinesis struct {
// AWS region. Your account determines the Regions that are available to you.
Region string `json:"region"`
// Number of shards to which the data should be streamed.
- ShardCount int64 `json:"shardCount"`
+ ShardCount *int64 `default:"5" json:"shardCount"`
+}
+
+func (d DestinationKinesis) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationKinesis) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationKinesis) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *DestinationKinesis) GetBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BufferSize
+}
+
+func (o *DestinationKinesis) GetDestinationType() DestinationKinesisKinesis {
+ return DestinationKinesisKinesisKinesis
+}
+
+func (o *DestinationKinesis) GetEndpoint() string {
+ if o == nil {
+ return ""
+ }
+ return o.Endpoint
+}
+
+func (o *DestinationKinesis) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *DestinationKinesis) GetRegion() string {
+ if o == nil {
+ return ""
+ }
+ return o.Region
+}
+
+func (o *DestinationKinesis) GetShardCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ShardCount
}
diff --git a/internal/sdk/pkg/models/shared/destinationkinesiscreaterequest.go b/internal/sdk/pkg/models/shared/destinationkinesiscreaterequest.go
old mode 100755
new mode 100644
index 2dc0177cd..da46ad100
--- a/internal/sdk/pkg/models/shared/destinationkinesiscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationkinesiscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationKinesisCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationKinesisCreateRequest) GetConfiguration() DestinationKinesis {
+ if o == nil {
+ return DestinationKinesis{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationKinesisCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationKinesisCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkinesisputrequest.go b/internal/sdk/pkg/models/shared/destinationkinesisputrequest.go
old mode 100755
new mode 100644
index 66b481e88..8826436c4
--- a/internal/sdk/pkg/models/shared/destinationkinesisputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationkinesisputrequest.go
@@ -7,3 +7,24 @@ type DestinationKinesisPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationKinesisPutRequest) GetConfiguration() DestinationKinesisUpdate {
+ if o == nil {
+ return DestinationKinesisUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationKinesisPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationKinesisPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationkinesisupdate.go b/internal/sdk/pkg/models/shared/destinationkinesisupdate.go
old mode 100755
new mode 100644
index 4244c67f4..df0eb439f
--- a/internal/sdk/pkg/models/shared/destinationkinesisupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationkinesisupdate.go
@@ -2,11 +2,15 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationKinesisUpdate struct {
// Generate the AWS Access Key for current user.
AccessKey string `json:"accessKey"`
// Buffer size for storing kinesis records before being batch streamed.
- BufferSize int64 `json:"bufferSize"`
+ BufferSize *int64 `default:"100" json:"bufferSize"`
// AWS Kinesis endpoint.
Endpoint string `json:"endpoint"`
// The AWS Private Key - a string of numbers and letters that are unique for each account, also known as a "recovery phrase".
@@ -14,5 +18,58 @@ type DestinationKinesisUpdate struct {
// AWS region. Your account determines the Regions that are available to you.
Region string `json:"region"`
// Number of shards to which the data should be streamed.
- ShardCount int64 `json:"shardCount"`
+ ShardCount *int64 `default:"5" json:"shardCount"`
+}
+
+func (d DestinationKinesisUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationKinesisUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationKinesisUpdate) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *DestinationKinesisUpdate) GetBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BufferSize
+}
+
+func (o *DestinationKinesisUpdate) GetEndpoint() string {
+ if o == nil {
+ return ""
+ }
+ return o.Endpoint
+}
+
+func (o *DestinationKinesisUpdate) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *DestinationKinesisUpdate) GetRegion() string {
+ if o == nil {
+ return ""
+ }
+ return o.Region
+}
+
+func (o *DestinationKinesisUpdate) GetShardCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ShardCount
}
diff --git a/internal/sdk/pkg/models/shared/destinationlangchain.go b/internal/sdk/pkg/models/shared/destinationlangchain.go
old mode 100755
new mode 100644
index 8addc3858..3440087ed
--- a/internal/sdk/pkg/models/shared/destinationlangchain.go
+++ b/internal/sdk/pkg/models/shared/destinationlangchain.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -59,7 +59,22 @@ func (e *DestinationLangchainEmbeddingFakeMode) UnmarshalJSON(data []byte) error
// DestinationLangchainEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationLangchainEmbeddingFake struct {
- Mode *DestinationLangchainEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationLangchainEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationLangchainEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainEmbeddingFake) GetMode() *DestinationLangchainEmbeddingFakeMode {
+ return DestinationLangchainEmbeddingFakeModeFake.ToPointer()
}
type DestinationLangchainEmbeddingOpenAIMode string
@@ -88,10 +103,32 @@ func (e *DestinationLangchainEmbeddingOpenAIMode) UnmarshalJSON(data []byte) err
// DestinationLangchainEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationLangchainEmbeddingOpenAI struct {
- Mode *DestinationLangchainEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationLangchainEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationLangchainEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainEmbeddingOpenAI) GetMode() *DestinationLangchainEmbeddingOpenAIMode {
+ return DestinationLangchainEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationLangchainEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationLangchainEmbeddingType string
const (
@@ -125,21 +162,16 @@ func CreateDestinationLangchainEmbeddingDestinationLangchainEmbeddingFake(destin
}
func (u *DestinationLangchainEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationLangchainEmbeddingFake := new(DestinationLangchainEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainEmbeddingFake, "", true, true); err == nil {
u.DestinationLangchainEmbeddingFake = destinationLangchainEmbeddingFake
u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainEmbeddingFake
return nil
}
destinationLangchainEmbeddingOpenAI := new(DestinationLangchainEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationLangchainEmbeddingOpenAI = destinationLangchainEmbeddingOpenAI
u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainEmbeddingOpenAI
return nil
@@ -149,15 +181,15 @@ func (u *DestinationLangchainEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationLangchainEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationLangchainEmbeddingFake != nil {
- return json.Marshal(u.DestinationLangchainEmbeddingFake)
+ if u.DestinationLangchainEmbeddingOpenAI != nil {
+ return utils.MarshalJSON(u.DestinationLangchainEmbeddingOpenAI, "", true)
}
- if u.DestinationLangchainEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationLangchainEmbeddingOpenAI)
+ if u.DestinationLangchainEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationLangchainEmbeddingFake, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationLangchainIndexingChromaLocalPersistanceMode string
@@ -187,10 +219,39 @@ func (e *DestinationLangchainIndexingChromaLocalPersistanceMode) UnmarshalJSON(d
// DestinationLangchainIndexingChromaLocalPersistance - Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.
type DestinationLangchainIndexingChromaLocalPersistance struct {
// Name of the collection to use.
- CollectionName *string `json:"collection_name,omitempty"`
+ CollectionName *string `default:"langchain" json:"collection_name"`
// Path to the directory where chroma files will be written. The files will be placed inside that local mount.
DestinationPath string `json:"destination_path"`
- Mode *DestinationLangchainIndexingChromaLocalPersistanceMode `json:"mode,omitempty"`
+ mode *DestinationLangchainIndexingChromaLocalPersistanceMode `const:"chroma_local" json:"mode"`
+}
+
+func (d DestinationLangchainIndexingChromaLocalPersistance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainIndexingChromaLocalPersistance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainIndexingChromaLocalPersistance) GetCollectionName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CollectionName
+}
+
+func (o *DestinationLangchainIndexingChromaLocalPersistance) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationLangchainIndexingChromaLocalPersistance) GetMode() *DestinationLangchainIndexingChromaLocalPersistanceMode {
+ return DestinationLangchainIndexingChromaLocalPersistanceModeChromaLocal.ToPointer()
}
type DestinationLangchainIndexingDocArrayHnswSearchMode string
@@ -221,7 +282,29 @@ func (e *DestinationLangchainIndexingDocArrayHnswSearchMode) UnmarshalJSON(data
type DestinationLangchainIndexingDocArrayHnswSearch struct {
// Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
DestinationPath string `json:"destination_path"`
- Mode *DestinationLangchainIndexingDocArrayHnswSearchMode `json:"mode,omitempty"`
+ mode *DestinationLangchainIndexingDocArrayHnswSearchMode `const:"DocArrayHnswSearch" json:"mode"`
+}
+
+func (d DestinationLangchainIndexingDocArrayHnswSearch) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainIndexingDocArrayHnswSearch) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainIndexingDocArrayHnswSearch) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationLangchainIndexingDocArrayHnswSearch) GetMode() *DestinationLangchainIndexingDocArrayHnswSearchMode {
+ return DestinationLangchainIndexingDocArrayHnswSearchModeDocArrayHnswSearch.ToPointer()
}
type DestinationLangchainIndexingPineconeMode string
@@ -252,12 +335,48 @@ func (e *DestinationLangchainIndexingPineconeMode) UnmarshalJSON(data []byte) er
type DestinationLangchainIndexingPinecone struct {
// Pinecone index to use
Index string `json:"index"`
- Mode *DestinationLangchainIndexingPineconeMode `json:"mode,omitempty"`
+ mode *DestinationLangchainIndexingPineconeMode `const:"pinecone" json:"mode"`
// Pinecone environment to use
PineconeEnvironment string `json:"pinecone_environment"`
PineconeKey string `json:"pinecone_key"`
}
+func (d DestinationLangchainIndexingPinecone) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainIndexingPinecone) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainIndexingPinecone) GetIndex() string {
+ if o == nil {
+ return ""
+ }
+ return o.Index
+}
+
+func (o *DestinationLangchainIndexingPinecone) GetMode() *DestinationLangchainIndexingPineconeMode {
+ return DestinationLangchainIndexingPineconeModePinecone.ToPointer()
+}
+
+func (o *DestinationLangchainIndexingPinecone) GetPineconeEnvironment() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeEnvironment
+}
+
+func (o *DestinationLangchainIndexingPinecone) GetPineconeKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeKey
+}
+
type DestinationLangchainIndexingType string
const (
@@ -302,30 +421,23 @@ func CreateDestinationLangchainIndexingDestinationLangchainIndexingChromaLocalPe
}
func (u *DestinationLangchainIndexing) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationLangchainIndexingDocArrayHnswSearch := new(DestinationLangchainIndexingDocArrayHnswSearch)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainIndexingDocArrayHnswSearch); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainIndexingDocArrayHnswSearch, "", true, true); err == nil {
u.DestinationLangchainIndexingDocArrayHnswSearch = destinationLangchainIndexingDocArrayHnswSearch
u.Type = DestinationLangchainIndexingTypeDestinationLangchainIndexingDocArrayHnswSearch
return nil
}
destinationLangchainIndexingChromaLocalPersistance := new(DestinationLangchainIndexingChromaLocalPersistance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainIndexingChromaLocalPersistance); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainIndexingChromaLocalPersistance, "", true, true); err == nil {
u.DestinationLangchainIndexingChromaLocalPersistance = destinationLangchainIndexingChromaLocalPersistance
u.Type = DestinationLangchainIndexingTypeDestinationLangchainIndexingChromaLocalPersistance
return nil
}
destinationLangchainIndexingPinecone := new(DestinationLangchainIndexingPinecone)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainIndexingPinecone); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainIndexingPinecone, "", true, true); err == nil {
u.DestinationLangchainIndexingPinecone = destinationLangchainIndexingPinecone
u.Type = DestinationLangchainIndexingTypeDestinationLangchainIndexingPinecone
return nil
@@ -335,35 +447,103 @@ func (u *DestinationLangchainIndexing) UnmarshalJSON(data []byte) error {
}
func (u DestinationLangchainIndexing) MarshalJSON() ([]byte, error) {
- if u.DestinationLangchainIndexingDocArrayHnswSearch != nil {
- return json.Marshal(u.DestinationLangchainIndexingDocArrayHnswSearch)
+ if u.DestinationLangchainIndexingPinecone != nil {
+ return utils.MarshalJSON(u.DestinationLangchainIndexingPinecone, "", true)
}
- if u.DestinationLangchainIndexingChromaLocalPersistance != nil {
- return json.Marshal(u.DestinationLangchainIndexingChromaLocalPersistance)
+ if u.DestinationLangchainIndexingDocArrayHnswSearch != nil {
+ return utils.MarshalJSON(u.DestinationLangchainIndexingDocArrayHnswSearch, "", true)
}
- if u.DestinationLangchainIndexingPinecone != nil {
- return json.Marshal(u.DestinationLangchainIndexingPinecone)
+ if u.DestinationLangchainIndexingChromaLocalPersistance != nil {
+ return utils.MarshalJSON(u.DestinationLangchainIndexingChromaLocalPersistance, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationLangchainProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array.
TextFields []string `json:"text_fields"`
}
+func (d DestinationLangchainProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationLangchainProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationLangchainProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.TextFields
+}
+
type DestinationLangchain struct {
- DestinationType DestinationLangchainLangchain `json:"destinationType"`
+ destinationType DestinationLangchainLangchain `const:"langchain" json:"destinationType"`
// Embedding configuration
Embedding DestinationLangchainEmbedding `json:"embedding"`
// Indexing configuration
Indexing DestinationLangchainIndexing `json:"indexing"`
Processing DestinationLangchainProcessingConfigModel `json:"processing"`
}
+
+func (d DestinationLangchain) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchain) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchain) GetDestinationType() DestinationLangchainLangchain {
+ return DestinationLangchainLangchainLangchain
+}
+
+func (o *DestinationLangchain) GetEmbedding() DestinationLangchainEmbedding {
+ if o == nil {
+ return DestinationLangchainEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationLangchain) GetIndexing() DestinationLangchainIndexing {
+ if o == nil {
+ return DestinationLangchainIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationLangchain) GetProcessing() DestinationLangchainProcessingConfigModel {
+ if o == nil {
+ return DestinationLangchainProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationlangchaincreaterequest.go b/internal/sdk/pkg/models/shared/destinationlangchaincreaterequest.go
old mode 100755
new mode 100644
index 2ccb6daec..d6477bd12
--- a/internal/sdk/pkg/models/shared/destinationlangchaincreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationlangchaincreaterequest.go
@@ -7,3 +7,24 @@ type DestinationLangchainCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationLangchainCreateRequest) GetConfiguration() DestinationLangchain {
+ if o == nil {
+ return DestinationLangchain{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationLangchainCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationLangchainCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationlangchainputrequest.go b/internal/sdk/pkg/models/shared/destinationlangchainputrequest.go
old mode 100755
new mode 100644
index 344fa5cd9..cd3de13c9
--- a/internal/sdk/pkg/models/shared/destinationlangchainputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationlangchainputrequest.go
@@ -7,3 +7,24 @@ type DestinationLangchainPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationLangchainPutRequest) GetConfiguration() DestinationLangchainUpdate {
+ if o == nil {
+ return DestinationLangchainUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationLangchainPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationLangchainPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationlangchainupdate.go b/internal/sdk/pkg/models/shared/destinationlangchainupdate.go
old mode 100755
new mode 100644
index d1c96f7bc..7c7a418fb
--- a/internal/sdk/pkg/models/shared/destinationlangchainupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationlangchainupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *DestinationLangchainUpdateEmbeddingFakeMode) UnmarshalJSON(data []byte)
// DestinationLangchainUpdateEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationLangchainUpdateEmbeddingFake struct {
- Mode *DestinationLangchainUpdateEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationLangchainUpdateEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationLangchainUpdateEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateEmbeddingFake) GetMode() *DestinationLangchainUpdateEmbeddingFakeMode {
+ return DestinationLangchainUpdateEmbeddingFakeModeFake.ToPointer()
}
type DestinationLangchainUpdateEmbeddingOpenAIMode string
@@ -64,10 +79,32 @@ func (e *DestinationLangchainUpdateEmbeddingOpenAIMode) UnmarshalJSON(data []byt
// DestinationLangchainUpdateEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationLangchainUpdateEmbeddingOpenAI struct {
- Mode *DestinationLangchainUpdateEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationLangchainUpdateEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationLangchainUpdateEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateEmbeddingOpenAI) GetMode() *DestinationLangchainUpdateEmbeddingOpenAIMode {
+ return DestinationLangchainUpdateEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationLangchainUpdateEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationLangchainUpdateEmbeddingType string
const (
@@ -101,21 +138,16 @@ func CreateDestinationLangchainUpdateEmbeddingDestinationLangchainUpdateEmbeddin
}
func (u *DestinationLangchainUpdateEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationLangchainUpdateEmbeddingFake := new(DestinationLangchainUpdateEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainUpdateEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateEmbeddingFake, "", true, true); err == nil {
u.DestinationLangchainUpdateEmbeddingFake = destinationLangchainUpdateEmbeddingFake
u.Type = DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateEmbeddingFake
return nil
}
destinationLangchainUpdateEmbeddingOpenAI := new(DestinationLangchainUpdateEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainUpdateEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationLangchainUpdateEmbeddingOpenAI = destinationLangchainUpdateEmbeddingOpenAI
u.Type = DestinationLangchainUpdateEmbeddingTypeDestinationLangchainUpdateEmbeddingOpenAI
return nil
@@ -125,15 +157,15 @@ func (u *DestinationLangchainUpdateEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationLangchainUpdateEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationLangchainUpdateEmbeddingFake != nil {
- return json.Marshal(u.DestinationLangchainUpdateEmbeddingFake)
+ if u.DestinationLangchainUpdateEmbeddingOpenAI != nil {
+ return utils.MarshalJSON(u.DestinationLangchainUpdateEmbeddingOpenAI, "", true)
}
- if u.DestinationLangchainUpdateEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationLangchainUpdateEmbeddingOpenAI)
+ if u.DestinationLangchainUpdateEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationLangchainUpdateEmbeddingFake, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationLangchainUpdateIndexingChromaLocalPersistanceMode string
@@ -163,10 +195,39 @@ func (e *DestinationLangchainUpdateIndexingChromaLocalPersistanceMode) Unmarshal
// DestinationLangchainUpdateIndexingChromaLocalPersistance - Chroma is a popular vector store that can be used to store and retrieve embeddings. It will build its index in memory and persist it to disk by the end of the sync.
type DestinationLangchainUpdateIndexingChromaLocalPersistance struct {
// Name of the collection to use.
- CollectionName *string `json:"collection_name,omitempty"`
+ CollectionName *string `default:"langchain" json:"collection_name"`
// Path to the directory where chroma files will be written. The files will be placed inside that local mount.
DestinationPath string `json:"destination_path"`
- Mode *DestinationLangchainUpdateIndexingChromaLocalPersistanceMode `json:"mode,omitempty"`
+ mode *DestinationLangchainUpdateIndexingChromaLocalPersistanceMode `const:"chroma_local" json:"mode"`
+}
+
+func (d DestinationLangchainUpdateIndexingChromaLocalPersistance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateIndexingChromaLocalPersistance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateIndexingChromaLocalPersistance) GetCollectionName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CollectionName
+}
+
+func (o *DestinationLangchainUpdateIndexingChromaLocalPersistance) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationLangchainUpdateIndexingChromaLocalPersistance) GetMode() *DestinationLangchainUpdateIndexingChromaLocalPersistanceMode {
+ return DestinationLangchainUpdateIndexingChromaLocalPersistanceModeChromaLocal.ToPointer()
}
type DestinationLangchainUpdateIndexingDocArrayHnswSearchMode string
@@ -197,7 +258,29 @@ func (e *DestinationLangchainUpdateIndexingDocArrayHnswSearchMode) UnmarshalJSON
type DestinationLangchainUpdateIndexingDocArrayHnswSearch struct {
// Path to the directory where hnswlib and meta data files will be written. The files will be placed inside that local mount. All files in the specified destination directory will be deleted on each run.
DestinationPath string `json:"destination_path"`
- Mode *DestinationLangchainUpdateIndexingDocArrayHnswSearchMode `json:"mode,omitempty"`
+ mode *DestinationLangchainUpdateIndexingDocArrayHnswSearchMode `const:"DocArrayHnswSearch" json:"mode"`
+}
+
+func (d DestinationLangchainUpdateIndexingDocArrayHnswSearch) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateIndexingDocArrayHnswSearch) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateIndexingDocArrayHnswSearch) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationLangchainUpdateIndexingDocArrayHnswSearch) GetMode() *DestinationLangchainUpdateIndexingDocArrayHnswSearchMode {
+ return DestinationLangchainUpdateIndexingDocArrayHnswSearchModeDocArrayHnswSearch.ToPointer()
}
type DestinationLangchainUpdateIndexingPineconeMode string
@@ -228,12 +311,48 @@ func (e *DestinationLangchainUpdateIndexingPineconeMode) UnmarshalJSON(data []by
type DestinationLangchainUpdateIndexingPinecone struct {
// Pinecone index to use
Index string `json:"index"`
- Mode *DestinationLangchainUpdateIndexingPineconeMode `json:"mode,omitempty"`
+ mode *DestinationLangchainUpdateIndexingPineconeMode `const:"pinecone" json:"mode"`
// Pinecone environment to use
PineconeEnvironment string `json:"pinecone_environment"`
PineconeKey string `json:"pinecone_key"`
}
+func (d DestinationLangchainUpdateIndexingPinecone) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateIndexingPinecone) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateIndexingPinecone) GetIndex() string {
+ if o == nil {
+ return ""
+ }
+ return o.Index
+}
+
+func (o *DestinationLangchainUpdateIndexingPinecone) GetMode() *DestinationLangchainUpdateIndexingPineconeMode {
+ return DestinationLangchainUpdateIndexingPineconeModePinecone.ToPointer()
+}
+
+func (o *DestinationLangchainUpdateIndexingPinecone) GetPineconeEnvironment() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeEnvironment
+}
+
+func (o *DestinationLangchainUpdateIndexingPinecone) GetPineconeKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeKey
+}
+
type DestinationLangchainUpdateIndexingType string
const (
@@ -278,30 +397,23 @@ func CreateDestinationLangchainUpdateIndexingDestinationLangchainUpdateIndexingC
}
func (u *DestinationLangchainUpdateIndexing) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationLangchainUpdateIndexingDocArrayHnswSearch := new(DestinationLangchainUpdateIndexingDocArrayHnswSearch)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainUpdateIndexingDocArrayHnswSearch); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateIndexingDocArrayHnswSearch, "", true, true); err == nil {
u.DestinationLangchainUpdateIndexingDocArrayHnswSearch = destinationLangchainUpdateIndexingDocArrayHnswSearch
u.Type = DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdateIndexingDocArrayHnswSearch
return nil
}
destinationLangchainUpdateIndexingChromaLocalPersistance := new(DestinationLangchainUpdateIndexingChromaLocalPersistance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainUpdateIndexingChromaLocalPersistance); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateIndexingChromaLocalPersistance, "", true, true); err == nil {
u.DestinationLangchainUpdateIndexingChromaLocalPersistance = destinationLangchainUpdateIndexingChromaLocalPersistance
u.Type = DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdateIndexingChromaLocalPersistance
return nil
}
destinationLangchainUpdateIndexingPinecone := new(DestinationLangchainUpdateIndexingPinecone)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationLangchainUpdateIndexingPinecone); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationLangchainUpdateIndexingPinecone, "", true, true); err == nil {
u.DestinationLangchainUpdateIndexingPinecone = destinationLangchainUpdateIndexingPinecone
u.Type = DestinationLangchainUpdateIndexingTypeDestinationLangchainUpdateIndexingPinecone
return nil
@@ -311,30 +423,62 @@ func (u *DestinationLangchainUpdateIndexing) UnmarshalJSON(data []byte) error {
}
func (u DestinationLangchainUpdateIndexing) MarshalJSON() ([]byte, error) {
- if u.DestinationLangchainUpdateIndexingDocArrayHnswSearch != nil {
- return json.Marshal(u.DestinationLangchainUpdateIndexingDocArrayHnswSearch)
+ if u.DestinationLangchainUpdateIndexingPinecone != nil {
+ return utils.MarshalJSON(u.DestinationLangchainUpdateIndexingPinecone, "", true)
}
- if u.DestinationLangchainUpdateIndexingChromaLocalPersistance != nil {
- return json.Marshal(u.DestinationLangchainUpdateIndexingChromaLocalPersistance)
+ if u.DestinationLangchainUpdateIndexingDocArrayHnswSearch != nil {
+ return utils.MarshalJSON(u.DestinationLangchainUpdateIndexingDocArrayHnswSearch, "", true)
}
- if u.DestinationLangchainUpdateIndexingPinecone != nil {
- return json.Marshal(u.DestinationLangchainUpdateIndexingPinecone)
+ if u.DestinationLangchainUpdateIndexingChromaLocalPersistance != nil {
+ return utils.MarshalJSON(u.DestinationLangchainUpdateIndexingChromaLocalPersistance, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationLangchainUpdateProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be used to calculate the embedding. All other fields are passed along as meta fields. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array.
TextFields []string `json:"text_fields"`
}
+func (d DestinationLangchainUpdateProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationLangchainUpdateProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationLangchainUpdateProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationLangchainUpdateProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationLangchainUpdateProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.TextFields
+}
+
type DestinationLangchainUpdate struct {
// Embedding configuration
Embedding DestinationLangchainUpdateEmbedding `json:"embedding"`
@@ -342,3 +486,24 @@ type DestinationLangchainUpdate struct {
Indexing DestinationLangchainUpdateIndexing `json:"indexing"`
Processing DestinationLangchainUpdateProcessingConfigModel `json:"processing"`
}
+
+func (o *DestinationLangchainUpdate) GetEmbedding() DestinationLangchainUpdateEmbedding {
+ if o == nil {
+ return DestinationLangchainUpdateEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationLangchainUpdate) GetIndexing() DestinationLangchainUpdateIndexing {
+ if o == nil {
+ return DestinationLangchainUpdateIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationLangchainUpdate) GetProcessing() DestinationLangchainUpdateProcessingConfigModel {
+ if o == nil {
+ return DestinationLangchainUpdateProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmilvus.go b/internal/sdk/pkg/models/shared/destinationmilvus.go
old mode 100755
new mode 100644
index a664a9212..caad48c7f
--- a/internal/sdk/pkg/models/shared/destinationmilvus.go
+++ b/internal/sdk/pkg/models/shared/destinationmilvus.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,7 +63,36 @@ type DestinationMilvusEmbeddingFromField struct {
Dimensions int64 `json:"dimensions"`
// Name of the field in the record that contains the embedding
FieldName string `json:"field_name"`
- Mode *DestinationMilvusEmbeddingFromFieldMode `json:"mode,omitempty"`
+ mode *DestinationMilvusEmbeddingFromFieldMode `const:"from_field" json:"mode"`
+}
+
+func (d DestinationMilvusEmbeddingFromField) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusEmbeddingFromField) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusEmbeddingFromField) GetDimensions() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Dimensions
+}
+
+func (o *DestinationMilvusEmbeddingFromField) GetFieldName() string {
+ if o == nil {
+ return ""
+ }
+ return o.FieldName
+}
+
+func (o *DestinationMilvusEmbeddingFromField) GetMode() *DestinationMilvusEmbeddingFromFieldMode {
+ return DestinationMilvusEmbeddingFromFieldModeFromField.ToPointer()
}
type DestinationMilvusEmbeddingFakeMode string
@@ -92,7 +121,22 @@ func (e *DestinationMilvusEmbeddingFakeMode) UnmarshalJSON(data []byte) error {
// DestinationMilvusEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationMilvusEmbeddingFake struct {
- Mode *DestinationMilvusEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationMilvusEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationMilvusEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusEmbeddingFake) GetMode() *DestinationMilvusEmbeddingFakeMode {
+ return DestinationMilvusEmbeddingFakeModeFake.ToPointer()
}
type DestinationMilvusEmbeddingCohereMode string
@@ -122,7 +166,29 @@ func (e *DestinationMilvusEmbeddingCohereMode) UnmarshalJSON(data []byte) error
// DestinationMilvusEmbeddingCohere - Use the Cohere API to embed text.
type DestinationMilvusEmbeddingCohere struct {
CohereKey string `json:"cohere_key"`
- Mode *DestinationMilvusEmbeddingCohereMode `json:"mode,omitempty"`
+ mode *DestinationMilvusEmbeddingCohereMode `const:"cohere" json:"mode"`
+}
+
+func (d DestinationMilvusEmbeddingCohere) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusEmbeddingCohere) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusEmbeddingCohere) GetCohereKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.CohereKey
+}
+
+func (o *DestinationMilvusEmbeddingCohere) GetMode() *DestinationMilvusEmbeddingCohereMode {
+ return DestinationMilvusEmbeddingCohereModeCohere.ToPointer()
}
type DestinationMilvusEmbeddingOpenAIMode string
@@ -151,10 +217,32 @@ func (e *DestinationMilvusEmbeddingOpenAIMode) UnmarshalJSON(data []byte) error
// DestinationMilvusEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationMilvusEmbeddingOpenAI struct {
- Mode *DestinationMilvusEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationMilvusEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationMilvusEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusEmbeddingOpenAI) GetMode() *DestinationMilvusEmbeddingOpenAIMode {
+ return DestinationMilvusEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationMilvusEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationMilvusEmbeddingType string
const (
@@ -210,39 +298,30 @@ func CreateDestinationMilvusEmbeddingDestinationMilvusEmbeddingFromField(destina
}
func (u *DestinationMilvusEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMilvusEmbeddingFake := new(DestinationMilvusEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusEmbeddingFake, "", true, true); err == nil {
u.DestinationMilvusEmbeddingFake = destinationMilvusEmbeddingFake
u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusEmbeddingFake
return nil
}
destinationMilvusEmbeddingOpenAI := new(DestinationMilvusEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationMilvusEmbeddingOpenAI = destinationMilvusEmbeddingOpenAI
u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusEmbeddingOpenAI
return nil
}
destinationMilvusEmbeddingCohere := new(DestinationMilvusEmbeddingCohere)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusEmbeddingCohere); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusEmbeddingCohere, "", true, true); err == nil {
u.DestinationMilvusEmbeddingCohere = destinationMilvusEmbeddingCohere
u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusEmbeddingCohere
return nil
}
destinationMilvusEmbeddingFromField := new(DestinationMilvusEmbeddingFromField)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusEmbeddingFromField); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusEmbeddingFromField, "", true, true); err == nil {
u.DestinationMilvusEmbeddingFromField = destinationMilvusEmbeddingFromField
u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusEmbeddingFromField
return nil
@@ -252,23 +331,23 @@ func (u *DestinationMilvusEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationMilvusEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationMilvusEmbeddingFake != nil {
- return json.Marshal(u.DestinationMilvusEmbeddingFake)
- }
-
if u.DestinationMilvusEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationMilvusEmbeddingOpenAI)
+ return utils.MarshalJSON(u.DestinationMilvusEmbeddingOpenAI, "", true)
}
if u.DestinationMilvusEmbeddingCohere != nil {
- return json.Marshal(u.DestinationMilvusEmbeddingCohere)
+ return utils.MarshalJSON(u.DestinationMilvusEmbeddingCohere, "", true)
+ }
+
+ if u.DestinationMilvusEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationMilvusEmbeddingFake, "", true)
}
if u.DestinationMilvusEmbeddingFromField != nil {
- return json.Marshal(u.DestinationMilvusEmbeddingFromField)
+ return utils.MarshalJSON(u.DestinationMilvusEmbeddingFromField, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMilvusIndexingAuthenticationNoAuthMode string
@@ -297,7 +376,22 @@ func (e *DestinationMilvusIndexingAuthenticationNoAuthMode) UnmarshalJSON(data [
// DestinationMilvusIndexingAuthenticationNoAuth - Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)
type DestinationMilvusIndexingAuthenticationNoAuth struct {
- Mode *DestinationMilvusIndexingAuthenticationNoAuthMode `json:"mode,omitempty"`
+ mode *DestinationMilvusIndexingAuthenticationNoAuthMode `const:"no_auth" json:"mode"`
+}
+
+func (d DestinationMilvusIndexingAuthenticationNoAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusIndexingAuthenticationNoAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusIndexingAuthenticationNoAuth) GetMode() *DestinationMilvusIndexingAuthenticationNoAuthMode {
+ return DestinationMilvusIndexingAuthenticationNoAuthModeNoAuth.ToPointer()
}
type DestinationMilvusIndexingAuthenticationUsernamePasswordMode string
@@ -326,13 +420,42 @@ func (e *DestinationMilvusIndexingAuthenticationUsernamePasswordMode) UnmarshalJ
// DestinationMilvusIndexingAuthenticationUsernamePassword - Authenticate using username and password (suitable for self-managed Milvus clusters)
type DestinationMilvusIndexingAuthenticationUsernamePassword struct {
- Mode *DestinationMilvusIndexingAuthenticationUsernamePasswordMode `json:"mode,omitempty"`
+ mode *DestinationMilvusIndexingAuthenticationUsernamePasswordMode `const:"username_password" json:"mode"`
// Password for the Milvus instance
Password string `json:"password"`
// Username for the Milvus instance
Username string `json:"username"`
}
+func (d DestinationMilvusIndexingAuthenticationUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusIndexingAuthenticationUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusIndexingAuthenticationUsernamePassword) GetMode() *DestinationMilvusIndexingAuthenticationUsernamePasswordMode {
+ return DestinationMilvusIndexingAuthenticationUsernamePasswordModeUsernamePassword.ToPointer()
+}
+
+func (o *DestinationMilvusIndexingAuthenticationUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationMilvusIndexingAuthenticationUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationMilvusIndexingAuthenticationAPITokenMode string
const (
@@ -359,11 +482,33 @@ func (e *DestinationMilvusIndexingAuthenticationAPITokenMode) UnmarshalJSON(data
// DestinationMilvusIndexingAuthenticationAPIToken - Authenticate using an API token (suitable for Zilliz Cloud)
type DestinationMilvusIndexingAuthenticationAPIToken struct {
- Mode *DestinationMilvusIndexingAuthenticationAPITokenMode `json:"mode,omitempty"`
+ mode *DestinationMilvusIndexingAuthenticationAPITokenMode `const:"token" json:"mode"`
// API Token for the Milvus instance
Token string `json:"token"`
}
+func (d DestinationMilvusIndexingAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusIndexingAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusIndexingAuthenticationAPIToken) GetMode() *DestinationMilvusIndexingAuthenticationAPITokenMode {
+ return DestinationMilvusIndexingAuthenticationAPITokenModeToken.ToPointer()
+}
+
+func (o *DestinationMilvusIndexingAuthenticationAPIToken) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
+
type DestinationMilvusIndexingAuthenticationType string
const (
@@ -408,30 +553,23 @@ func CreateDestinationMilvusIndexingAuthenticationDestinationMilvusIndexingAuthe
}
func (u *DestinationMilvusIndexingAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMilvusIndexingAuthenticationNoAuth := new(DestinationMilvusIndexingAuthenticationNoAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusIndexingAuthenticationNoAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusIndexingAuthenticationNoAuth, "", true, true); err == nil {
u.DestinationMilvusIndexingAuthenticationNoAuth = destinationMilvusIndexingAuthenticationNoAuth
u.Type = DestinationMilvusIndexingAuthenticationTypeDestinationMilvusIndexingAuthenticationNoAuth
return nil
}
destinationMilvusIndexingAuthenticationAPIToken := new(DestinationMilvusIndexingAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusIndexingAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusIndexingAuthenticationAPIToken, "", true, true); err == nil {
u.DestinationMilvusIndexingAuthenticationAPIToken = destinationMilvusIndexingAuthenticationAPIToken
u.Type = DestinationMilvusIndexingAuthenticationTypeDestinationMilvusIndexingAuthenticationAPIToken
return nil
}
destinationMilvusIndexingAuthenticationUsernamePassword := new(DestinationMilvusIndexingAuthenticationUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusIndexingAuthenticationUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusIndexingAuthenticationUsernamePassword, "", true, true); err == nil {
u.DestinationMilvusIndexingAuthenticationUsernamePassword = destinationMilvusIndexingAuthenticationUsernamePassword
u.Type = DestinationMilvusIndexingAuthenticationTypeDestinationMilvusIndexingAuthenticationUsernamePassword
return nil
@@ -441,19 +579,19 @@ func (u *DestinationMilvusIndexingAuthentication) UnmarshalJSON(data []byte) err
}
func (u DestinationMilvusIndexingAuthentication) MarshalJSON() ([]byte, error) {
- if u.DestinationMilvusIndexingAuthenticationNoAuth != nil {
- return json.Marshal(u.DestinationMilvusIndexingAuthenticationNoAuth)
- }
-
if u.DestinationMilvusIndexingAuthenticationAPIToken != nil {
- return json.Marshal(u.DestinationMilvusIndexingAuthenticationAPIToken)
+ return utils.MarshalJSON(u.DestinationMilvusIndexingAuthenticationAPIToken, "", true)
}
if u.DestinationMilvusIndexingAuthenticationUsernamePassword != nil {
- return json.Marshal(u.DestinationMilvusIndexingAuthenticationUsernamePassword)
+ return utils.MarshalJSON(u.DestinationMilvusIndexingAuthenticationUsernamePassword, "", true)
+ }
+
+ if u.DestinationMilvusIndexingAuthenticationNoAuth != nil {
+ return utils.MarshalJSON(u.DestinationMilvusIndexingAuthenticationNoAuth, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMilvusIndexing - Indexing configuration
@@ -463,18 +601,71 @@ type DestinationMilvusIndexing struct {
// The collection to load data into
Collection string `json:"collection"`
// The database to connect to
- Db *string `json:"db,omitempty"`
+ Db *string `default:"" json:"db"`
// The public endpoint of the Milvus instance.
Host string `json:"host"`
// The field in the entity that contains the embedded text
- TextField *string `json:"text_field,omitempty"`
+ TextField *string `default:"text" json:"text_field"`
// The field in the entity that contains the vector
- VectorField *string `json:"vector_field,omitempty"`
+ VectorField *string `default:"vector" json:"vector_field"`
+}
+
+func (d DestinationMilvusIndexing) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusIndexing) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusIndexing) GetAuth() DestinationMilvusIndexingAuthentication {
+ if o == nil {
+ return DestinationMilvusIndexingAuthentication{}
+ }
+ return o.Auth
+}
+
+func (o *DestinationMilvusIndexing) GetCollection() string {
+ if o == nil {
+ return ""
+ }
+ return o.Collection
+}
+
+func (o *DestinationMilvusIndexing) GetDb() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Db
+}
+
+func (o *DestinationMilvusIndexing) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMilvusIndexing) GetTextField() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TextField
+}
+
+func (o *DestinationMilvusIndexing) GetVectorField() *string {
+ if o == nil {
+ return nil
+ }
+ return o.VectorField
}
type DestinationMilvusProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path.
@@ -483,11 +674,86 @@ type DestinationMilvusProcessingConfigModel struct {
TextFields []string `json:"text_fields,omitempty"`
}
+func (d DestinationMilvusProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationMilvusProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationMilvusProcessingConfigModel) GetMetadataFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *DestinationMilvusProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TextFields
+}
+
type DestinationMilvus struct {
- DestinationType DestinationMilvusMilvus `json:"destinationType"`
+ destinationType DestinationMilvusMilvus `const:"milvus" json:"destinationType"`
// Embedding configuration
Embedding DestinationMilvusEmbedding `json:"embedding"`
// Indexing configuration
Indexing DestinationMilvusIndexing `json:"indexing"`
Processing DestinationMilvusProcessingConfigModel `json:"processing"`
}
+
+func (d DestinationMilvus) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvus) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvus) GetDestinationType() DestinationMilvusMilvus {
+ return DestinationMilvusMilvusMilvus
+}
+
+func (o *DestinationMilvus) GetEmbedding() DestinationMilvusEmbedding {
+ if o == nil {
+ return DestinationMilvusEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationMilvus) GetIndexing() DestinationMilvusIndexing {
+ if o == nil {
+ return DestinationMilvusIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationMilvus) GetProcessing() DestinationMilvusProcessingConfigModel {
+ if o == nil {
+ return DestinationMilvusProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmilvuscreaterequest.go b/internal/sdk/pkg/models/shared/destinationmilvuscreaterequest.go
old mode 100755
new mode 100644
index 6f1af0cba..64e402c1c
--- a/internal/sdk/pkg/models/shared/destinationmilvuscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmilvuscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationMilvusCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMilvusCreateRequest) GetConfiguration() DestinationMilvus {
+ if o == nil {
+ return DestinationMilvus{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMilvusCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMilvusCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmilvusputrequest.go b/internal/sdk/pkg/models/shared/destinationmilvusputrequest.go
old mode 100755
new mode 100644
index ba3946485..9310bcd08
--- a/internal/sdk/pkg/models/shared/destinationmilvusputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmilvusputrequest.go
@@ -7,3 +7,24 @@ type DestinationMilvusPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMilvusPutRequest) GetConfiguration() DestinationMilvusUpdate {
+ if o == nil {
+ return DestinationMilvusUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMilvusPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMilvusPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmilvusupdate.go b/internal/sdk/pkg/models/shared/destinationmilvusupdate.go
old mode 100755
new mode 100644
index 4a20582ee..fa32ba96a
--- a/internal/sdk/pkg/models/shared/destinationmilvusupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationmilvusupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,7 +39,36 @@ type DestinationMilvusUpdateEmbeddingFromField struct {
Dimensions int64 `json:"dimensions"`
// Name of the field in the record that contains the embedding
FieldName string `json:"field_name"`
- Mode *DestinationMilvusUpdateEmbeddingFromFieldMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateEmbeddingFromFieldMode `const:"from_field" json:"mode"`
+}
+
+func (d DestinationMilvusUpdateEmbeddingFromField) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateEmbeddingFromField) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateEmbeddingFromField) GetDimensions() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Dimensions
+}
+
+func (o *DestinationMilvusUpdateEmbeddingFromField) GetFieldName() string {
+ if o == nil {
+ return ""
+ }
+ return o.FieldName
+}
+
+func (o *DestinationMilvusUpdateEmbeddingFromField) GetMode() *DestinationMilvusUpdateEmbeddingFromFieldMode {
+ return DestinationMilvusUpdateEmbeddingFromFieldModeFromField.ToPointer()
}
type DestinationMilvusUpdateEmbeddingFakeMode string
@@ -68,7 +97,22 @@ func (e *DestinationMilvusUpdateEmbeddingFakeMode) UnmarshalJSON(data []byte) er
// DestinationMilvusUpdateEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationMilvusUpdateEmbeddingFake struct {
- Mode *DestinationMilvusUpdateEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationMilvusUpdateEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateEmbeddingFake) GetMode() *DestinationMilvusUpdateEmbeddingFakeMode {
+ return DestinationMilvusUpdateEmbeddingFakeModeFake.ToPointer()
}
type DestinationMilvusUpdateEmbeddingCohereMode string
@@ -98,7 +142,29 @@ func (e *DestinationMilvusUpdateEmbeddingCohereMode) UnmarshalJSON(data []byte)
// DestinationMilvusUpdateEmbeddingCohere - Use the Cohere API to embed text.
type DestinationMilvusUpdateEmbeddingCohere struct {
CohereKey string `json:"cohere_key"`
- Mode *DestinationMilvusUpdateEmbeddingCohereMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateEmbeddingCohereMode `const:"cohere" json:"mode"`
+}
+
+func (d DestinationMilvusUpdateEmbeddingCohere) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateEmbeddingCohere) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateEmbeddingCohere) GetCohereKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.CohereKey
+}
+
+func (o *DestinationMilvusUpdateEmbeddingCohere) GetMode() *DestinationMilvusUpdateEmbeddingCohereMode {
+ return DestinationMilvusUpdateEmbeddingCohereModeCohere.ToPointer()
}
type DestinationMilvusUpdateEmbeddingOpenAIMode string
@@ -127,10 +193,32 @@ func (e *DestinationMilvusUpdateEmbeddingOpenAIMode) UnmarshalJSON(data []byte)
// DestinationMilvusUpdateEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationMilvusUpdateEmbeddingOpenAI struct {
- Mode *DestinationMilvusUpdateEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationMilvusUpdateEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateEmbeddingOpenAI) GetMode() *DestinationMilvusUpdateEmbeddingOpenAIMode {
+ return DestinationMilvusUpdateEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationMilvusUpdateEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationMilvusUpdateEmbeddingType string
const (
@@ -186,39 +274,30 @@ func CreateDestinationMilvusUpdateEmbeddingDestinationMilvusUpdateEmbeddingFromF
}
func (u *DestinationMilvusUpdateEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMilvusUpdateEmbeddingFake := new(DestinationMilvusUpdateEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateEmbeddingFake, "", true, true); err == nil {
u.DestinationMilvusUpdateEmbeddingFake = destinationMilvusUpdateEmbeddingFake
u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateEmbeddingFake
return nil
}
destinationMilvusUpdateEmbeddingOpenAI := new(DestinationMilvusUpdateEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationMilvusUpdateEmbeddingOpenAI = destinationMilvusUpdateEmbeddingOpenAI
u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateEmbeddingOpenAI
return nil
}
destinationMilvusUpdateEmbeddingCohere := new(DestinationMilvusUpdateEmbeddingCohere)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateEmbeddingCohere); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateEmbeddingCohere, "", true, true); err == nil {
u.DestinationMilvusUpdateEmbeddingCohere = destinationMilvusUpdateEmbeddingCohere
u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateEmbeddingCohere
return nil
}
destinationMilvusUpdateEmbeddingFromField := new(DestinationMilvusUpdateEmbeddingFromField)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateEmbeddingFromField); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateEmbeddingFromField, "", true, true); err == nil {
u.DestinationMilvusUpdateEmbeddingFromField = destinationMilvusUpdateEmbeddingFromField
u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateEmbeddingFromField
return nil
@@ -228,23 +307,23 @@ func (u *DestinationMilvusUpdateEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationMilvusUpdateEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationMilvusUpdateEmbeddingFake != nil {
- return json.Marshal(u.DestinationMilvusUpdateEmbeddingFake)
- }
-
if u.DestinationMilvusUpdateEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationMilvusUpdateEmbeddingOpenAI)
+ return utils.MarshalJSON(u.DestinationMilvusUpdateEmbeddingOpenAI, "", true)
}
if u.DestinationMilvusUpdateEmbeddingCohere != nil {
- return json.Marshal(u.DestinationMilvusUpdateEmbeddingCohere)
+ return utils.MarshalJSON(u.DestinationMilvusUpdateEmbeddingCohere, "", true)
+ }
+
+ if u.DestinationMilvusUpdateEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationMilvusUpdateEmbeddingFake, "", true)
}
if u.DestinationMilvusUpdateEmbeddingFromField != nil {
- return json.Marshal(u.DestinationMilvusUpdateEmbeddingFromField)
+ return utils.MarshalJSON(u.DestinationMilvusUpdateEmbeddingFromField, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMilvusUpdateIndexingAuthenticationNoAuthMode string
@@ -273,7 +352,22 @@ func (e *DestinationMilvusUpdateIndexingAuthenticationNoAuthMode) UnmarshalJSON(
// DestinationMilvusUpdateIndexingAuthenticationNoAuth - Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses)
type DestinationMilvusUpdateIndexingAuthenticationNoAuth struct {
- Mode *DestinationMilvusUpdateIndexingAuthenticationNoAuthMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateIndexingAuthenticationNoAuthMode `const:"no_auth" json:"mode"`
+}
+
+func (d DestinationMilvusUpdateIndexingAuthenticationNoAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateIndexingAuthenticationNoAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationNoAuth) GetMode() *DestinationMilvusUpdateIndexingAuthenticationNoAuthMode {
+ return DestinationMilvusUpdateIndexingAuthenticationNoAuthModeNoAuth.ToPointer()
}
type DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode string
@@ -302,13 +396,42 @@ func (e *DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode) Unma
// DestinationMilvusUpdateIndexingAuthenticationUsernamePassword - Authenticate using username and password (suitable for self-managed Milvus clusters)
type DestinationMilvusUpdateIndexingAuthenticationUsernamePassword struct {
- Mode *DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode `const:"username_password" json:"mode"`
// Password for the Milvus instance
Password string `json:"password"`
// Username for the Milvus instance
Username string `json:"username"`
}
+func (d DestinationMilvusUpdateIndexingAuthenticationUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateIndexingAuthenticationUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationUsernamePassword) GetMode() *DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordMode {
+ return DestinationMilvusUpdateIndexingAuthenticationUsernamePasswordModeUsernamePassword.ToPointer()
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationMilvusUpdateIndexingAuthenticationAPITokenMode string
const (
@@ -335,11 +458,33 @@ func (e *DestinationMilvusUpdateIndexingAuthenticationAPITokenMode) UnmarshalJSO
// DestinationMilvusUpdateIndexingAuthenticationAPIToken - Authenticate using an API token (suitable for Zilliz Cloud)
type DestinationMilvusUpdateIndexingAuthenticationAPIToken struct {
- Mode *DestinationMilvusUpdateIndexingAuthenticationAPITokenMode `json:"mode,omitempty"`
+ mode *DestinationMilvusUpdateIndexingAuthenticationAPITokenMode `const:"token" json:"mode"`
// API Token for the Milvus instance
Token string `json:"token"`
}
+func (d DestinationMilvusUpdateIndexingAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateIndexingAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationAPIToken) GetMode() *DestinationMilvusUpdateIndexingAuthenticationAPITokenMode {
+ return DestinationMilvusUpdateIndexingAuthenticationAPITokenModeToken.ToPointer()
+}
+
+func (o *DestinationMilvusUpdateIndexingAuthenticationAPIToken) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
+
type DestinationMilvusUpdateIndexingAuthenticationType string
const (
@@ -384,30 +529,23 @@ func CreateDestinationMilvusUpdateIndexingAuthenticationDestinationMilvusUpdateI
}
func (u *DestinationMilvusUpdateIndexingAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMilvusUpdateIndexingAuthenticationNoAuth := new(DestinationMilvusUpdateIndexingAuthenticationNoAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateIndexingAuthenticationNoAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateIndexingAuthenticationNoAuth, "", true, true); err == nil {
u.DestinationMilvusUpdateIndexingAuthenticationNoAuth = destinationMilvusUpdateIndexingAuthenticationNoAuth
u.Type = DestinationMilvusUpdateIndexingAuthenticationTypeDestinationMilvusUpdateIndexingAuthenticationNoAuth
return nil
}
destinationMilvusUpdateIndexingAuthenticationAPIToken := new(DestinationMilvusUpdateIndexingAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateIndexingAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateIndexingAuthenticationAPIToken, "", true, true); err == nil {
u.DestinationMilvusUpdateIndexingAuthenticationAPIToken = destinationMilvusUpdateIndexingAuthenticationAPIToken
u.Type = DestinationMilvusUpdateIndexingAuthenticationTypeDestinationMilvusUpdateIndexingAuthenticationAPIToken
return nil
}
destinationMilvusUpdateIndexingAuthenticationUsernamePassword := new(DestinationMilvusUpdateIndexingAuthenticationUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMilvusUpdateIndexingAuthenticationUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateIndexingAuthenticationUsernamePassword, "", true, true); err == nil {
u.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword = destinationMilvusUpdateIndexingAuthenticationUsernamePassword
u.Type = DestinationMilvusUpdateIndexingAuthenticationTypeDestinationMilvusUpdateIndexingAuthenticationUsernamePassword
return nil
@@ -417,19 +555,19 @@ func (u *DestinationMilvusUpdateIndexingAuthentication) UnmarshalJSON(data []byt
}
func (u DestinationMilvusUpdateIndexingAuthentication) MarshalJSON() ([]byte, error) {
- if u.DestinationMilvusUpdateIndexingAuthenticationNoAuth != nil {
- return json.Marshal(u.DestinationMilvusUpdateIndexingAuthenticationNoAuth)
- }
-
if u.DestinationMilvusUpdateIndexingAuthenticationAPIToken != nil {
- return json.Marshal(u.DestinationMilvusUpdateIndexingAuthenticationAPIToken)
+ return utils.MarshalJSON(u.DestinationMilvusUpdateIndexingAuthenticationAPIToken, "", true)
}
if u.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword != nil {
- return json.Marshal(u.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword)
+ return utils.MarshalJSON(u.DestinationMilvusUpdateIndexingAuthenticationUsernamePassword, "", true)
}
- return nil, nil
+ if u.DestinationMilvusUpdateIndexingAuthenticationNoAuth != nil {
+ return utils.MarshalJSON(u.DestinationMilvusUpdateIndexingAuthenticationNoAuth, "", true)
+ }
+
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMilvusUpdateIndexing - Indexing configuration
@@ -439,18 +577,71 @@ type DestinationMilvusUpdateIndexing struct {
// The collection to load data into
Collection string `json:"collection"`
// The database to connect to
- Db *string `json:"db,omitempty"`
+ Db *string `default:"" json:"db"`
// The public endpoint of the Milvus instance.
Host string `json:"host"`
// The field in the entity that contains the embedded text
- TextField *string `json:"text_field,omitempty"`
+ TextField *string `default:"text" json:"text_field"`
// The field in the entity that contains the vector
- VectorField *string `json:"vector_field,omitempty"`
+ VectorField *string `default:"vector" json:"vector_field"`
+}
+
+func (d DestinationMilvusUpdateIndexing) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateIndexing) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetAuth() DestinationMilvusUpdateIndexingAuthentication {
+ if o == nil {
+ return DestinationMilvusUpdateIndexingAuthentication{}
+ }
+ return o.Auth
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetCollection() string {
+ if o == nil {
+ return ""
+ }
+ return o.Collection
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetDb() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Db
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetTextField() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TextField
+}
+
+func (o *DestinationMilvusUpdateIndexing) GetVectorField() *string {
+ if o == nil {
+ return nil
+ }
+ return o.VectorField
}
type DestinationMilvusUpdateProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path.
@@ -459,6 +650,45 @@ type DestinationMilvusUpdateProcessingConfigModel struct {
TextFields []string `json:"text_fields,omitempty"`
}
+func (d DestinationMilvusUpdateProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMilvusUpdateProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMilvusUpdateProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationMilvusUpdateProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationMilvusUpdateProcessingConfigModel) GetMetadataFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *DestinationMilvusUpdateProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TextFields
+}
+
type DestinationMilvusUpdate struct {
// Embedding configuration
Embedding DestinationMilvusUpdateEmbedding `json:"embedding"`
@@ -466,3 +696,24 @@ type DestinationMilvusUpdate struct {
Indexing DestinationMilvusUpdateIndexing `json:"indexing"`
Processing DestinationMilvusUpdateProcessingConfigModel `json:"processing"`
}
+
+func (o *DestinationMilvusUpdate) GetEmbedding() DestinationMilvusUpdateEmbedding {
+ if o == nil {
+ return DestinationMilvusUpdateEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationMilvusUpdate) GetIndexing() DestinationMilvusUpdateIndexing {
+ if o == nil {
+ return DestinationMilvusUpdateIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationMilvusUpdate) GetProcessing() DestinationMilvusUpdateProcessingConfigModel {
+ if o == nil {
+ return DestinationMilvusUpdateProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmongodb.go b/internal/sdk/pkg/models/shared/destinationmongodb.go
old mode 100755
new mode 100644
index b3edae1a1..60b0206eb
--- a/internal/sdk/pkg/models/shared/destinationmongodb.go
+++ b/internal/sdk/pkg/models/shared/destinationmongodb.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *DestinationMongodbAuthorizationTypeLoginPasswordAuthorization) Unmarsha
// DestinationMongodbAuthorizationTypeLoginPassword - Login/Password.
type DestinationMongodbAuthorizationTypeLoginPassword struct {
- Authorization DestinationMongodbAuthorizationTypeLoginPasswordAuthorization `json:"authorization"`
+ authorization DestinationMongodbAuthorizationTypeLoginPasswordAuthorization `const:"login/password" json:"authorization"`
// Password associated with the username.
Password string `json:"password"`
// Username to use to access the database.
Username string `json:"username"`
}
+func (d DestinationMongodbAuthorizationTypeLoginPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbAuthorizationTypeLoginPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbAuthorizationTypeLoginPassword) GetAuthorization() DestinationMongodbAuthorizationTypeLoginPasswordAuthorization {
+ return DestinationMongodbAuthorizationTypeLoginPasswordAuthorizationLoginPassword
+}
+
+func (o *DestinationMongodbAuthorizationTypeLoginPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationMongodbAuthorizationTypeLoginPassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationMongodbAuthorizationTypeNoneAuthorization string
const (
@@ -68,7 +97,22 @@ func (e *DestinationMongodbAuthorizationTypeNoneAuthorization) UnmarshalJSON(dat
// DestinationMongodbAuthorizationTypeNone - None.
type DestinationMongodbAuthorizationTypeNone struct {
- Authorization DestinationMongodbAuthorizationTypeNoneAuthorization `json:"authorization"`
+ authorization DestinationMongodbAuthorizationTypeNoneAuthorization `const:"none" json:"authorization"`
+}
+
+func (d DestinationMongodbAuthorizationTypeNone) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbAuthorizationTypeNone) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbAuthorizationTypeNone) GetAuthorization() DestinationMongodbAuthorizationTypeNoneAuthorization {
+ return DestinationMongodbAuthorizationTypeNoneAuthorizationNone
}
type DestinationMongodbAuthorizationTypeType string
@@ -104,21 +148,16 @@ func CreateDestinationMongodbAuthorizationTypeDestinationMongodbAuthorizationTyp
}
func (u *DestinationMongodbAuthorizationType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbAuthorizationTypeNone := new(DestinationMongodbAuthorizationTypeNone)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbAuthorizationTypeNone); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbAuthorizationTypeNone, "", true, true); err == nil {
u.DestinationMongodbAuthorizationTypeNone = destinationMongodbAuthorizationTypeNone
u.Type = DestinationMongodbAuthorizationTypeTypeDestinationMongodbAuthorizationTypeNone
return nil
}
destinationMongodbAuthorizationTypeLoginPassword := new(DestinationMongodbAuthorizationTypeLoginPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbAuthorizationTypeLoginPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbAuthorizationTypeLoginPassword, "", true, true); err == nil {
u.DestinationMongodbAuthorizationTypeLoginPassword = destinationMongodbAuthorizationTypeLoginPassword
u.Type = DestinationMongodbAuthorizationTypeTypeDestinationMongodbAuthorizationTypeLoginPassword
return nil
@@ -129,14 +168,14 @@ func (u *DestinationMongodbAuthorizationType) UnmarshalJSON(data []byte) error {
func (u DestinationMongodbAuthorizationType) MarshalJSON() ([]byte, error) {
if u.DestinationMongodbAuthorizationTypeNone != nil {
- return json.Marshal(u.DestinationMongodbAuthorizationTypeNone)
+ return utils.MarshalJSON(u.DestinationMongodbAuthorizationTypeNone, "", true)
}
if u.DestinationMongodbAuthorizationTypeLoginPassword != nil {
- return json.Marshal(u.DestinationMongodbAuthorizationTypeLoginPassword)
+ return utils.MarshalJSON(u.DestinationMongodbAuthorizationTypeLoginPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMongodbMongodb string
@@ -190,8 +229,33 @@ func (e *DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance) UnmarshalJSO
// DestinationMongodbMongoDBInstanceTypeMongoDBAtlas - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbMongoDBInstanceTypeMongoDBAtlas struct {
// URL of a cluster to connect to.
- ClusterURL string `json:"cluster_url"`
- Instance DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance `json:"instance"`
+ ClusterURL string `json:"cluster_url"`
+ Instance *DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance `default:"atlas" json:"instance"`
+}
+
+func (d DestinationMongodbMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbMongoDBInstanceTypeMongoDBAtlas) GetClusterURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClusterURL
+}
+
+func (o *DestinationMongodbMongoDBInstanceTypeMongoDBAtlas) GetInstance() *DestinationMongodbMongoDBInstanceTypeMongoDBAtlasInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
}
type DestinationMongodbMongoDbInstanceTypeReplicaSetInstance string
@@ -220,13 +284,45 @@ func (e *DestinationMongodbMongoDbInstanceTypeReplicaSetInstance) UnmarshalJSON(
// DestinationMongodbMongoDbInstanceTypeReplicaSet - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbMongoDbInstanceTypeReplicaSet struct {
- Instance DestinationMongodbMongoDbInstanceTypeReplicaSetInstance `json:"instance"`
+ Instance *DestinationMongodbMongoDbInstanceTypeReplicaSetInstance `default:"replica" json:"instance"`
// A replica set name.
ReplicaSet *string `json:"replica_set,omitempty"`
// The members of a replica set. Please specify `host`:`port` of each member seperated by comma.
ServerAddresses string `json:"server_addresses"`
}
+func (d DestinationMongodbMongoDbInstanceTypeReplicaSet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbMongoDbInstanceTypeReplicaSet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeReplicaSet) GetInstance() *DestinationMongodbMongoDbInstanceTypeReplicaSetInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeReplicaSet) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeReplicaSet) GetServerAddresses() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServerAddresses
+}
+
type DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance string
const (
@@ -254,10 +350,42 @@ func (e *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance)
// DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance struct {
// The Host of a Mongo database to be replicated.
- Host string `json:"host"`
- Instance DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `json:"instance"`
+ Host string `json:"host"`
+ Instance *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `default:"standalone" json:"instance"`
// The Port of a Mongo database to be replicated.
- Port int64 `json:"port"`
+ Port *int64 `default:"27017" json:"port"`
+}
+
+func (d DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetInstance() *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
+}
+
+func (o *DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
}
type DestinationMongodbMongoDbInstanceTypeType string
@@ -304,30 +432,23 @@ func CreateDestinationMongodbMongoDbInstanceTypeDestinationMongodbMongoDBInstanc
}
func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbMongoDBInstanceTypeMongoDBAtlas := new(DestinationMongodbMongoDBInstanceTypeMongoDBAtlas)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbMongoDBInstanceTypeMongoDBAtlas); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbMongoDBInstanceTypeMongoDBAtlas, "", true, true); err == nil {
u.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas = destinationMongodbMongoDBInstanceTypeMongoDBAtlas
u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDBInstanceTypeMongoDBAtlas
return nil
}
destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance := new(DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance, "", true, true); err == nil {
u.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance = destinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
return nil
}
destinationMongodbMongoDbInstanceTypeReplicaSet := new(DestinationMongodbMongoDbInstanceTypeReplicaSet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbMongoDbInstanceTypeReplicaSet); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbMongoDbInstanceTypeReplicaSet, "", true, true); err == nil {
u.DestinationMongodbMongoDbInstanceTypeReplicaSet = destinationMongodbMongoDbInstanceTypeReplicaSet
u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDbInstanceTypeReplicaSet
return nil
@@ -337,19 +458,19 @@ func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error
}
func (u DestinationMongodbMongoDbInstanceType) MarshalJSON() ([]byte, error) {
- if u.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
- return json.Marshal(u.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas)
- }
-
if u.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
- return json.Marshal(u.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance)
+ return utils.MarshalJSON(u.DestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance, "", true)
}
if u.DestinationMongodbMongoDbInstanceTypeReplicaSet != nil {
- return json.Marshal(u.DestinationMongodbMongoDbInstanceTypeReplicaSet)
+ return utils.MarshalJSON(u.DestinationMongodbMongoDbInstanceTypeReplicaSet, "", true)
}
- return nil, nil
+ if u.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
+ return utils.MarshalJSON(u.DestinationMongodbMongoDBInstanceTypeMongoDBAtlas, "", true)
+ }
+
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -377,20 +498,63 @@ func (e *DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod) Un
}
}
-// DestinationMongodbSSHTunnelMethodPasswordAuthentication - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
+// DestinationMongodbSSHTunnelMethodPasswordAuthentication - Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.
type DestinationMongodbSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMongodbSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMongodbSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMongodbSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMongodbSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMongodbSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMongodbSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -416,20 +580,63 @@ func (e *DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod) Unma
}
}
-// DestinationMongodbSSHTunnelMethodSSHKeyAuthentication - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
+// DestinationMongodbSSHTunnelMethodSSHKeyAuthentication - Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.
type DestinationMongodbSSHTunnelMethodSSHKeyAuthentication struct {
// OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
SSHKey string `json:"ssh_key"`
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMongodbSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMongodbSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod string
@@ -455,10 +662,25 @@ func (e *DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(da
}
}
-// DestinationMongodbSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
+// DestinationMongodbSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.
type DestinationMongodbSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMongodbSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMongodbSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMongodbSSHTunnelMethodType string
@@ -505,30 +727,23 @@ func CreateDestinationMongodbSSHTunnelMethodDestinationMongodbSSHTunnelMethodPas
}
func (u *DestinationMongodbSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbSSHTunnelMethodNoTunnel := new(DestinationMongodbSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMongodbSSHTunnelMethodNoTunnel = destinationMongodbSSHTunnelMethodNoTunnel
u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHTunnelMethodNoTunnel
return nil
}
destinationMongodbSSHTunnelMethodSSHKeyAuthentication := new(DestinationMongodbSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication = destinationMongodbSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMongodbSSHTunnelMethodPasswordAuthentication := new(DestinationMongodbSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMongodbSSHTunnelMethodPasswordAuthentication = destinationMongodbSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHTunnelMethodPasswordAuthentication
return nil
@@ -539,18 +754,18 @@ func (u *DestinationMongodbSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationMongodbSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMongodbSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMongodbSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMongodbSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMongodbSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMongodbSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMongodbSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMongodbSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMongodb struct {
@@ -558,9 +773,52 @@ type DestinationMongodb struct {
AuthType DestinationMongodbAuthorizationType `json:"auth_type"`
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationMongodbMongodb `json:"destinationType"`
+ destinationType DestinationMongodbMongodb `const:"mongodb" json:"destinationType"`
// MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
InstanceType *DestinationMongodbMongoDbInstanceType `json:"instance_type,omitempty"`
- // Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
+ // Whether to initiate an SSH tunnel before connecting to the database, and iftatus so, which kind of authentication to use.
TunnelMethod *DestinationMongodbSSHTunnelMethod `json:"tunnel_method,omitempty"`
}
+
+func (d DestinationMongodb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodb) GetAuthType() DestinationMongodbAuthorizationType {
+ if o == nil {
+ return DestinationMongodbAuthorizationType{}
+ }
+ return o.AuthType
+}
+
+func (o *DestinationMongodb) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMongodb) GetDestinationType() DestinationMongodbMongodb {
+ return DestinationMongodbMongodbMongodb
+}
+
+func (o *DestinationMongodb) GetInstanceType() *DestinationMongodbMongoDbInstanceType {
+ if o == nil {
+ return nil
+ }
+ return o.InstanceType
+}
+
+func (o *DestinationMongodb) GetTunnelMethod() *DestinationMongodbSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmongodbcreaterequest.go b/internal/sdk/pkg/models/shared/destinationmongodbcreaterequest.go
old mode 100755
new mode 100644
index a034f68e7..bf8ae90aa
--- a/internal/sdk/pkg/models/shared/destinationmongodbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmongodbcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationMongodbCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMongodbCreateRequest) GetConfiguration() DestinationMongodb {
+ if o == nil {
+ return DestinationMongodb{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMongodbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMongodbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmongodbputrequest.go b/internal/sdk/pkg/models/shared/destinationmongodbputrequest.go
old mode 100755
new mode 100644
index 1ea66bce3..453795406
--- a/internal/sdk/pkg/models/shared/destinationmongodbputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmongodbputrequest.go
@@ -7,3 +7,24 @@ type DestinationMongodbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMongodbPutRequest) GetConfiguration() DestinationMongodbUpdate {
+ if o == nil {
+ return DestinationMongodbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMongodbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMongodbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmongodbupdate.go b/internal/sdk/pkg/models/shared/destinationmongodbupdate.go
old mode 100755
new mode 100644
index acd08fa23..550e36e25
--- a/internal/sdk/pkg/models/shared/destinationmongodbupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationmongodbupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorization) Un
// DestinationMongodbUpdateAuthorizationTypeLoginPassword - Login/Password.
type DestinationMongodbUpdateAuthorizationTypeLoginPassword struct {
- Authorization DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorization `json:"authorization"`
+ authorization DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorization `const:"login/password" json:"authorization"`
// Password associated with the username.
Password string `json:"password"`
// Username to use to access the database.
Username string `json:"username"`
}
+func (d DestinationMongodbUpdateAuthorizationTypeLoginPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateAuthorizationTypeLoginPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateAuthorizationTypeLoginPassword) GetAuthorization() DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorization {
+ return DestinationMongodbUpdateAuthorizationTypeLoginPasswordAuthorizationLoginPassword
+}
+
+func (o *DestinationMongodbUpdateAuthorizationTypeLoginPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationMongodbUpdateAuthorizationTypeLoginPassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type DestinationMongodbUpdateAuthorizationTypeNoneAuthorization string
const (
@@ -68,7 +97,22 @@ func (e *DestinationMongodbUpdateAuthorizationTypeNoneAuthorization) UnmarshalJS
// DestinationMongodbUpdateAuthorizationTypeNone - None.
type DestinationMongodbUpdateAuthorizationTypeNone struct {
- Authorization DestinationMongodbUpdateAuthorizationTypeNoneAuthorization `json:"authorization"`
+ authorization DestinationMongodbUpdateAuthorizationTypeNoneAuthorization `const:"none" json:"authorization"`
+}
+
+func (d DestinationMongodbUpdateAuthorizationTypeNone) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateAuthorizationTypeNone) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateAuthorizationTypeNone) GetAuthorization() DestinationMongodbUpdateAuthorizationTypeNoneAuthorization {
+ return DestinationMongodbUpdateAuthorizationTypeNoneAuthorizationNone
}
type DestinationMongodbUpdateAuthorizationTypeType string
@@ -104,21 +148,16 @@ func CreateDestinationMongodbUpdateAuthorizationTypeDestinationMongodbUpdateAuth
}
func (u *DestinationMongodbUpdateAuthorizationType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbUpdateAuthorizationTypeNone := new(DestinationMongodbUpdateAuthorizationTypeNone)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateAuthorizationTypeNone); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateAuthorizationTypeNone, "", true, true); err == nil {
u.DestinationMongodbUpdateAuthorizationTypeNone = destinationMongodbUpdateAuthorizationTypeNone
u.Type = DestinationMongodbUpdateAuthorizationTypeTypeDestinationMongodbUpdateAuthorizationTypeNone
return nil
}
destinationMongodbUpdateAuthorizationTypeLoginPassword := new(DestinationMongodbUpdateAuthorizationTypeLoginPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateAuthorizationTypeLoginPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateAuthorizationTypeLoginPassword, "", true, true); err == nil {
u.DestinationMongodbUpdateAuthorizationTypeLoginPassword = destinationMongodbUpdateAuthorizationTypeLoginPassword
u.Type = DestinationMongodbUpdateAuthorizationTypeTypeDestinationMongodbUpdateAuthorizationTypeLoginPassword
return nil
@@ -129,14 +168,14 @@ func (u *DestinationMongodbUpdateAuthorizationType) UnmarshalJSON(data []byte) e
func (u DestinationMongodbUpdateAuthorizationType) MarshalJSON() ([]byte, error) {
if u.DestinationMongodbUpdateAuthorizationTypeNone != nil {
- return json.Marshal(u.DestinationMongodbUpdateAuthorizationTypeNone)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateAuthorizationTypeNone, "", true)
}
if u.DestinationMongodbUpdateAuthorizationTypeLoginPassword != nil {
- return json.Marshal(u.DestinationMongodbUpdateAuthorizationTypeLoginPassword)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateAuthorizationTypeLoginPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance string
@@ -166,8 +205,33 @@ func (e *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance) Unmars
// DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas struct {
// URL of a cluster to connect to.
- ClusterURL string `json:"cluster_url"`
- Instance DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance `json:"instance"`
+ ClusterURL string `json:"cluster_url"`
+ Instance *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance `default:"atlas" json:"instance"`
+}
+
+func (d DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) GetClusterURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClusterURL
+}
+
+func (o *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) GetInstance() *DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
}
type DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance string
@@ -196,13 +260,45 @@ func (e *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance) Unmarsha
// DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet struct {
- Instance DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance `json:"instance"`
+ Instance *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance `default:"replica" json:"instance"`
// A replica set name.
ReplicaSet *string `json:"replica_set,omitempty"`
// The members of a replica set. Please specify `host`:`port` of each member seperated by comma.
ServerAddresses string `json:"server_addresses"`
}
+func (d DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet) GetInstance() *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSetInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet) GetServerAddresses() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServerAddresses
+}
+
type DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance string
const (
@@ -230,10 +326,42 @@ func (e *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceIns
// DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance - MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance struct {
// The Host of a Mongo database to be replicated.
- Host string `json:"host"`
- Instance DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `json:"instance"`
+ Host string `json:"host"`
+ Instance *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `default:"standalone" json:"instance"`
// The Port of a Mongo database to be replicated.
- Port int64 `json:"port"`
+ Port *int64 `default:"27017" json:"port"`
+}
+
+func (d DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetInstance() *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance {
+ if o == nil {
+ return nil
+ }
+ return o.Instance
+}
+
+func (o *DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
}
type DestinationMongodbUpdateMongoDbInstanceTypeType string
@@ -280,30 +408,23 @@ func CreateDestinationMongodbUpdateMongoDbInstanceTypeDestinationMongodbUpdateMo
}
func (u *DestinationMongodbUpdateMongoDbInstanceType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas := new(DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas, "", true, true); err == nil {
u.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas = destinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
u.Type = DestinationMongodbUpdateMongoDbInstanceTypeTypeDestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
return nil
}
destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance := new(DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance, "", true, true); err == nil {
u.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance = destinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
u.Type = DestinationMongodbUpdateMongoDbInstanceTypeTypeDestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
return nil
}
destinationMongodbUpdateMongoDbInstanceTypeReplicaSet := new(DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateMongoDbInstanceTypeReplicaSet); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateMongoDbInstanceTypeReplicaSet, "", true, true); err == nil {
u.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet = destinationMongodbUpdateMongoDbInstanceTypeReplicaSet
u.Type = DestinationMongodbUpdateMongoDbInstanceTypeTypeDestinationMongodbUpdateMongoDbInstanceTypeReplicaSet
return nil
@@ -313,19 +434,19 @@ func (u *DestinationMongodbUpdateMongoDbInstanceType) UnmarshalJSON(data []byte)
}
func (u DestinationMongodbUpdateMongoDbInstanceType) MarshalJSON() ([]byte, error) {
- if u.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
- return json.Marshal(u.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas)
- }
-
if u.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
- return json.Marshal(u.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance, "", true)
}
if u.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet != nil {
- return json.Marshal(u.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateMongoDbInstanceTypeReplicaSet, "", true)
+ }
+
+ if u.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
+ return utils.MarshalJSON(u.DestinationMongodbUpdateMongoDBInstanceTypeMongoDBAtlas, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -358,15 +479,58 @@ type DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMongodbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -399,13 +563,56 @@ type DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -434,7 +641,22 @@ func (e *DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJ
// DestinationMongodbUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationMongodbUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMongodbUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMongodbUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMongodbUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMongodbUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMongodbUpdateSSHTunnelMethodType string
@@ -481,30 +703,23 @@ func CreateDestinationMongodbUpdateSSHTunnelMethodDestinationMongodbUpdateSSHTun
}
func (u *DestinationMongodbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMongodbUpdateSSHTunnelMethodNoTunnel := new(DestinationMongodbUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMongodbUpdateSSHTunnelMethodNoTunnel = destinationMongodbUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication = destinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication = destinationMongodbUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -515,18 +730,18 @@ func (u *DestinationMongodbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) err
func (u DestinationMongodbUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMongodbUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMongodbUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMongodbUpdate struct {
@@ -539,3 +754,31 @@ type DestinationMongodbUpdate struct {
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationMongodbUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"`
}
+
+func (o *DestinationMongodbUpdate) GetAuthType() DestinationMongodbUpdateAuthorizationType {
+ if o == nil {
+ return DestinationMongodbUpdateAuthorizationType{}
+ }
+ return o.AuthType
+}
+
+func (o *DestinationMongodbUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMongodbUpdate) GetInstanceType() *DestinationMongodbUpdateMongoDbInstanceType {
+ if o == nil {
+ return nil
+ }
+ return o.InstanceType
+}
+
+func (o *DestinationMongodbUpdate) GetTunnelMethod() *DestinationMongodbUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmssql.go b/internal/sdk/pkg/models/shared/destinationmssql.go
old mode 100755
new mode 100644
index 7680ec88b..f53ebc65e
--- a/internal/sdk/pkg/models/shared/destinationmssql.go
+++ b/internal/sdk/pkg/models/shared/destinationmssql.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -60,8 +60,30 @@ func (e *DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethod) Unmarshal
// DestinationMssqlSSLMethodEncryptedVerifyCertificate - Verify and use the certificate provided by the server.
type DestinationMssqlSSLMethodEncryptedVerifyCertificate struct {
// Specifies the host name of the server. The value of this property must match the subject property of the certificate.
- HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
- SslMethod DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethod `json:"ssl_method"`
+ HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
+ sslMethod *DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethod `const:"encrypted_verify_certificate" json:"ssl_method"`
+}
+
+func (d DestinationMssqlSSLMethodEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlSSLMethodEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlSSLMethodEncryptedVerifyCertificate) GetHostNameInCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.HostNameInCertificate
+}
+
+func (o *DestinationMssqlSSLMethodEncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethod {
+ return DestinationMssqlSSLMethodEncryptedVerifyCertificateSSLMethodEncryptedVerifyCertificate.ToPointer()
}
type DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod string
@@ -90,7 +112,22 @@ func (e *DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod) Unma
// DestinationMssqlSSLMethodEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!)
type DestinationMssqlSSLMethodEncryptedTrustServerCertificate struct {
- SslMethod DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod `json:"ssl_method"`
+ sslMethod *DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"`
+}
+
+func (d DestinationMssqlSSLMethodEncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlSSLMethodEncryptedTrustServerCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlSSLMethodEncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod {
+ return DestinationMssqlSSLMethodEncryptedTrustServerCertificateSSLMethodEncryptedTrustServerCertificate.ToPointer()
}
type DestinationMssqlSSLMethodType string
@@ -126,21 +163,16 @@ func CreateDestinationMssqlSSLMethodDestinationMssqlSSLMethodEncryptedVerifyCert
}
func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMssqlSSLMethodEncryptedTrustServerCertificate := new(DestinationMssqlSSLMethodEncryptedTrustServerCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlSSLMethodEncryptedTrustServerCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlSSLMethodEncryptedTrustServerCertificate, "", true, true); err == nil {
u.DestinationMssqlSSLMethodEncryptedTrustServerCertificate = destinationMssqlSSLMethodEncryptedTrustServerCertificate
u.Type = DestinationMssqlSSLMethodTypeDestinationMssqlSSLMethodEncryptedTrustServerCertificate
return nil
}
destinationMssqlSSLMethodEncryptedVerifyCertificate := new(DestinationMssqlSSLMethodEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlSSLMethodEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlSSLMethodEncryptedVerifyCertificate, "", true, true); err == nil {
u.DestinationMssqlSSLMethodEncryptedVerifyCertificate = destinationMssqlSSLMethodEncryptedVerifyCertificate
u.Type = DestinationMssqlSSLMethodTypeDestinationMssqlSSLMethodEncryptedVerifyCertificate
return nil
@@ -151,14 +183,14 @@ func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error {
func (u DestinationMssqlSSLMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMssqlSSLMethodEncryptedTrustServerCertificate != nil {
- return json.Marshal(u.DestinationMssqlSSLMethodEncryptedTrustServerCertificate)
+ return utils.MarshalJSON(u.DestinationMssqlSSLMethodEncryptedTrustServerCertificate, "", true)
}
if u.DestinationMssqlSSLMethodEncryptedVerifyCertificate != nil {
- return json.Marshal(u.DestinationMssqlSSLMethodEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.DestinationMssqlSSLMethodEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -191,15 +223,58 @@ type DestinationMssqlSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMssqlSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -232,13 +307,56 @@ type DestinationMssqlSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod string
@@ -267,7 +385,22 @@ func (e *DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data
// DestinationMssqlSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationMssqlSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMssqlSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMssqlSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMssqlSSHTunnelMethodType string
@@ -314,30 +447,23 @@ func CreateDestinationMssqlSSHTunnelMethodDestinationMssqlSSHTunnelMethodPasswor
}
func (u *DestinationMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMssqlSSHTunnelMethodNoTunnel := new(DestinationMssqlSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMssqlSSHTunnelMethodNoTunnel = destinationMssqlSSHTunnelMethodNoTunnel
u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHTunnelMethodNoTunnel
return nil
}
destinationMssqlSSHTunnelMethodSSHKeyAuthentication := new(DestinationMssqlSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication = destinationMssqlSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMssqlSSHTunnelMethodPasswordAuthentication := new(DestinationMssqlSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMssqlSSHTunnelMethodPasswordAuthentication = destinationMssqlSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHTunnelMethodPasswordAuthentication
return nil
@@ -348,24 +474,24 @@ func (u *DestinationMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationMssqlSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMssqlSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMssqlSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMssqlSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMssqlSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMssqlSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMssqlSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMssqlSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMssql struct {
// The name of the MSSQL database.
Database string `json:"database"`
- DestinationType DestinationMssqlMssql `json:"destinationType"`
+ destinationType DestinationMssqlMssql `const:"mssql" json:"destinationType"`
// The host name of the MSSQL database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -373,9 +499,9 @@ type DestinationMssql struct {
// The password associated with this username.
Password *string `json:"password,omitempty"`
// The port of the MSSQL database.
- Port int64 `json:"port"`
+ Port *int64 `default:"1433" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// The encryption method which is used to communicate with the database.
SslMethod *DestinationMssqlSSLMethod `json:"ssl_method,omitempty"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -383,3 +509,81 @@ type DestinationMssql struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (d DestinationMssql) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssql) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssql) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMssql) GetDestinationType() DestinationMssqlMssql {
+ return DestinationMssqlMssqlMssql
+}
+
+func (o *DestinationMssql) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMssql) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationMssql) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationMssql) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationMssql) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationMssql) GetSslMethod() *DestinationMssqlSSLMethod {
+ if o == nil {
+ return nil
+ }
+ return o.SslMethod
+}
+
+func (o *DestinationMssql) GetTunnelMethod() *DestinationMssqlSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationMssql) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmssqlcreaterequest.go b/internal/sdk/pkg/models/shared/destinationmssqlcreaterequest.go
old mode 100755
new mode 100644
index d33281301..d6f57e86e
--- a/internal/sdk/pkg/models/shared/destinationmssqlcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmssqlcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationMssqlCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMssqlCreateRequest) GetConfiguration() DestinationMssql {
+ if o == nil {
+ return DestinationMssql{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMssqlCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMssqlCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmssqlputrequest.go b/internal/sdk/pkg/models/shared/destinationmssqlputrequest.go
old mode 100755
new mode 100644
index 9b049df3b..986b1558d
--- a/internal/sdk/pkg/models/shared/destinationmssqlputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmssqlputrequest.go
@@ -7,3 +7,24 @@ type DestinationMssqlPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMssqlPutRequest) GetConfiguration() DestinationMssqlUpdate {
+ if o == nil {
+ return DestinationMssqlUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMssqlPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMssqlPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmssqlupdate.go b/internal/sdk/pkg/models/shared/destinationmssqlupdate.go
old mode 100755
new mode 100644
index dca62a8ff..ddca48a41
--- a/internal/sdk/pkg/models/shared/destinationmssqlupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationmssqlupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,8 +36,30 @@ func (e *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod) Unm
// DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate - Verify and use the certificate provided by the server.
type DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate struct {
// Specifies the host name of the server. The value of this property must match the subject property of the certificate.
- HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
- SslMethod DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod `json:"ssl_method"`
+ HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
+ sslMethod *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod `const:"encrypted_verify_certificate" json:"ssl_method"`
+}
+
+func (d DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate) GetHostNameInCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.HostNameInCertificate
+}
+
+func (o *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate) GetSslMethod() *DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod {
+ return DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethodEncryptedVerifyCertificate.ToPointer()
}
type DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod string
@@ -66,7 +88,22 @@ func (e *DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod
// DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!)
type DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate struct {
- SslMethod DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod `json:"ssl_method"`
+ sslMethod *DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"`
+}
+
+func (d DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod {
+ return DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethodEncryptedTrustServerCertificate.ToPointer()
}
type DestinationMssqlUpdateSSLMethodType string
@@ -102,21 +139,16 @@ func CreateDestinationMssqlUpdateSSLMethodDestinationMssqlUpdateSSLMethodEncrypt
}
func (u *DestinationMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate := new(DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate, "", true, true); err == nil {
u.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate = destinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate
u.Type = DestinationMssqlUpdateSSLMethodTypeDestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate
return nil
}
destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate := new(DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate, "", true, true); err == nil {
u.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate = destinationMssqlUpdateSSLMethodEncryptedVerifyCertificate
u.Type = DestinationMssqlUpdateSSLMethodTypeDestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate
return nil
@@ -127,14 +159,14 @@ func (u *DestinationMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error {
func (u DestinationMssqlUpdateSSLMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
- return json.Marshal(u.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate)
+ return utils.MarshalJSON(u.DestinationMssqlUpdateSSLMethodEncryptedTrustServerCertificate, "", true)
}
if u.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate != nil {
- return json.Marshal(u.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.DestinationMssqlUpdateSSLMethodEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -167,15 +199,58 @@ type DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -208,13 +283,56 @@ type DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -243,7 +361,22 @@ func (e *DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSO
// DestinationMssqlUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationMssqlUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMssqlUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMssqlUpdateSSHTunnelMethodType string
@@ -290,30 +423,23 @@ func CreateDestinationMssqlUpdateSSHTunnelMethodDestinationMssqlUpdateSSHTunnelM
}
func (u *DestinationMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMssqlUpdateSSHTunnelMethodNoTunnel := new(DestinationMssqlUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMssqlUpdateSSHTunnelMethodNoTunnel = destinationMssqlUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication = destinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication = destinationMssqlUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -324,18 +450,18 @@ func (u *DestinationMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error
func (u DestinationMssqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMssqlUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMssqlUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMssqlUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMssqlUpdate struct {
@@ -348,9 +474,9 @@ type DestinationMssqlUpdate struct {
// The password associated with this username.
Password *string `json:"password,omitempty"`
// The port of the MSSQL database.
- Port int64 `json:"port"`
+ Port *int64 `default:"1433" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// The encryption method which is used to communicate with the database.
SslMethod *DestinationMssqlUpdateSSLMethod `json:"ssl_method,omitempty"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -358,3 +484,77 @@ type DestinationMssqlUpdate struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (d DestinationMssqlUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMssqlUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMssqlUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMssqlUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMssqlUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationMssqlUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationMssqlUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationMssqlUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationMssqlUpdate) GetSslMethod() *DestinationMssqlUpdateSSLMethod {
+ if o == nil {
+ return nil
+ }
+ return o.SslMethod
+}
+
+func (o *DestinationMssqlUpdate) GetTunnelMethod() *DestinationMssqlUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationMssqlUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmysql.go b/internal/sdk/pkg/models/shared/destinationmysql.go
old mode 100755
new mode 100644
index 737a5cf66..8175d8121
--- a/internal/sdk/pkg/models/shared/destinationmysql.go
+++ b/internal/sdk/pkg/models/shared/destinationmysql.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type DestinationMysqlSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMysqlSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type DestinationMysqlSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data
// DestinationMysqlSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationMysqlSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMysqlSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMysqlSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMysqlSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateDestinationMysqlSSHTunnelMethodDestinationMysqlSSHTunnelMethodPasswor
}
func (u *DestinationMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMysqlSSHTunnelMethodNoTunnel := new(DestinationMysqlSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMysqlSSHTunnelMethodNoTunnel = destinationMysqlSSHTunnelMethodNoTunnel
u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHTunnelMethodNoTunnel
return nil
}
destinationMysqlSSHTunnelMethodSSHKeyAuthentication := new(DestinationMysqlSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication = destinationMysqlSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMysqlSSHTunnelMethodPasswordAuthentication := new(DestinationMysqlSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMysqlSSHTunnelMethodPasswordAuthentication = destinationMysqlSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,24 +314,24 @@ func (u *DestinationMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationMysqlSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMysqlSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMysqlSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMysqlSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMysqlSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMysqlSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMysqlSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMysqlSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMysql struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationMysqlMysql `json:"destinationType"`
+ destinationType DestinationMysqlMysql `const:"mysql" json:"destinationType"`
// Hostname of the database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -245,9 +339,73 @@ type DestinationMysql struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"3306" json:"port"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationMysqlSSHTunnelMethod `json:"tunnel_method,omitempty"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationMysql) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysql) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysql) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMysql) GetDestinationType() DestinationMysqlMysql {
+ return DestinationMysqlMysqlMysql
+}
+
+func (o *DestinationMysql) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMysql) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationMysql) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationMysql) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationMysql) GetTunnelMethod() *DestinationMysqlSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationMysql) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmysqlcreaterequest.go b/internal/sdk/pkg/models/shared/destinationmysqlcreaterequest.go
old mode 100755
new mode 100644
index a2ff3ac19..342317b35
--- a/internal/sdk/pkg/models/shared/destinationmysqlcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmysqlcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationMysqlCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMysqlCreateRequest) GetConfiguration() DestinationMysql {
+ if o == nil {
+ return DestinationMysql{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMysqlCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMysqlCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmysqlputrequest.go b/internal/sdk/pkg/models/shared/destinationmysqlputrequest.go
old mode 100755
new mode 100644
index 79a051820..95560d135
--- a/internal/sdk/pkg/models/shared/destinationmysqlputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationmysqlputrequest.go
@@ -7,3 +7,24 @@ type DestinationMysqlPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationMysqlPutRequest) GetConfiguration() DestinationMysqlUpdate {
+ if o == nil {
+ return DestinationMysqlUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationMysqlPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationMysqlPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationmysqlupdate.go b/internal/sdk/pkg/models/shared/destinationmysqlupdate.go
old mode 100755
new mode 100644
index 9d5ce93e0..2ce90a05d
--- a/internal/sdk/pkg/models/shared/destinationmysqlupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationmysqlupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSO
// DestinationMysqlUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationMysqlUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationMysqlUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationMysqlUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateDestinationMysqlUpdateSSHTunnelMethodDestinationMysqlUpdateSSHTunnelM
}
func (u *DestinationMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationMysqlUpdateSSHTunnelMethodNoTunnel := new(DestinationMysqlUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationMysqlUpdateSSHTunnelMethodNoTunnel = destinationMysqlUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication = destinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication = destinationMysqlUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *DestinationMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error
func (u DestinationMysqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationMysqlUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationMysqlUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationMysqlUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationMysqlUpdate struct {
@@ -220,9 +314,69 @@ type DestinationMysqlUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"3306" json:"port"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationMysqlUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationMysqlUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationMysqlUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationMysqlUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationMysqlUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationMysqlUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationMysqlUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationMysqlUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationMysqlUpdate) GetTunnelMethod() *DestinationMysqlUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationMysqlUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationoracle.go b/internal/sdk/pkg/models/shared/destinationoracle.go
old mode 100755
new mode 100644
index e519980f4..cc55369c1
--- a/internal/sdk/pkg/models/shared/destinationoracle.go
+++ b/internal/sdk/pkg/models/shared/destinationoracle.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type DestinationOracleSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationOracleSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationOracleSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationOracleSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationOracleSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationOracleSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationOracleSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type DestinationOracleSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationOracleSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(dat
// DestinationOracleSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationOracleSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationOracleSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationOracleSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationOracleSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationOracleSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateDestinationOracleSSHTunnelMethodDestinationOracleSSHTunnelMethodPassw
}
func (u *DestinationOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationOracleSSHTunnelMethodNoTunnel := new(DestinationOracleSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationOracleSSHTunnelMethodNoTunnel = destinationOracleSSHTunnelMethodNoTunnel
u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHTunnelMethodNoTunnel
return nil
}
destinationOracleSSHTunnelMethodSSHKeyAuthentication := new(DestinationOracleSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationOracleSSHTunnelMethodSSHKeyAuthentication = destinationOracleSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationOracleSSHTunnelMethodPasswordAuthentication := new(DestinationOracleSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationOracleSSHTunnelMethodPasswordAuthentication = destinationOracleSSHTunnelMethodPasswordAuthentication
u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,22 +314,22 @@ func (u *DestinationOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationOracleSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationOracleSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationOracleSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationOracleSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationOracleSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationOracleSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationOracleSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationOracleSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationOracleSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationOracleSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationOracle struct {
- DestinationType DestinationOracleOracle `json:"destinationType"`
+ destinationType DestinationOracleOracle `const:"oracle" json:"destinationType"`
// The hostname of the database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -243,9 +337,9 @@ type DestinationOracle struct {
// The password associated with the username.
Password *string `json:"password,omitempty"`
// The port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"1521" json:"port"`
// The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema.
- Schema *string `json:"schema,omitempty"`
+ Schema *string `default:"airbyte" json:"schema"`
// The System Identifier uniquely distinguishes the instance from any other instance on the same computer.
Sid string `json:"sid"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -253,3 +347,74 @@ type DestinationOracle struct {
// The username to access the database. This user must have CREATE USER privileges in the database.
Username string `json:"username"`
}
+
+func (d DestinationOracle) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracle) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracle) GetDestinationType() DestinationOracleOracle {
+ return DestinationOracleOracleOracle
+}
+
+func (o *DestinationOracle) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationOracle) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationOracle) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationOracle) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationOracle) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationOracle) GetSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.Sid
+}
+
+func (o *DestinationOracle) GetTunnelMethod() *DestinationOracleSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationOracle) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationoraclecreaterequest.go b/internal/sdk/pkg/models/shared/destinationoraclecreaterequest.go
old mode 100755
new mode 100644
index 131626e30..575b6c781
--- a/internal/sdk/pkg/models/shared/destinationoraclecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationoraclecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationOracleCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationOracleCreateRequest) GetConfiguration() DestinationOracle {
+ if o == nil {
+ return DestinationOracle{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationOracleCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationOracleCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationoracleputrequest.go b/internal/sdk/pkg/models/shared/destinationoracleputrequest.go
old mode 100755
new mode 100644
index 0559c6269..0ca6b2fec
--- a/internal/sdk/pkg/models/shared/destinationoracleputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationoracleputrequest.go
@@ -7,3 +7,24 @@ type DestinationOraclePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationOraclePutRequest) GetConfiguration() DestinationOracleUpdate {
+ if o == nil {
+ return DestinationOracleUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationOraclePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationOraclePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationoracleupdate.go b/internal/sdk/pkg/models/shared/destinationoracleupdate.go
old mode 100755
new mode 100644
index e3d36e223..778b5f79b
--- a/internal/sdk/pkg/models/shared/destinationoracleupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationoracleupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJS
// DestinationOracleUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationOracleUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationOracleUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationOracleUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationOracleUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateDestinationOracleUpdateSSHTunnelMethodDestinationOracleUpdateSSHTunne
}
func (u *DestinationOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationOracleUpdateSSHTunnelMethodNoTunnel := new(DestinationOracleUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationOracleUpdateSSHTunnelMethodNoTunnel = destinationOracleUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication = destinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationOracleUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationOracleUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationOracleUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication = destinationOracleUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *DestinationOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) erro
func (u DestinationOracleUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationOracleUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationOracleUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationOracleUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationOracleUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationOracleUpdate struct {
@@ -218,9 +312,9 @@ type DestinationOracleUpdate struct {
// The password associated with the username.
Password *string `json:"password,omitempty"`
// The port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"1521" json:"port"`
// The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema.
- Schema *string `json:"schema,omitempty"`
+ Schema *string `default:"airbyte" json:"schema"`
// The System Identifier uniquely distinguishes the instance from any other instance on the same computer.
Sid string `json:"sid"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -228,3 +322,70 @@ type DestinationOracleUpdate struct {
// The username to access the database. This user must have CREATE USER privileges in the database.
Username string `json:"username"`
}
+
+func (d DestinationOracleUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationOracleUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationOracleUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationOracleUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationOracleUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationOracleUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationOracleUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationOracleUpdate) GetSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.Sid
+}
+
+func (o *DestinationOracleUpdate) GetTunnelMethod() *DestinationOracleUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationOracleUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpatchrequest.go b/internal/sdk/pkg/models/shared/destinationpatchrequest.go
old mode 100755
new mode 100644
index fcbba4a73..f0fd420ac
--- a/internal/sdk/pkg/models/shared/destinationpatchrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpatchrequest.go
@@ -7,3 +7,17 @@ type DestinationPatchRequest struct {
Configuration interface{} `json:"configuration,omitempty"`
Name *string `json:"name,omitempty"`
}
+
+func (o *DestinationPatchRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPatchRequest) GetName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpinecone.go b/internal/sdk/pkg/models/shared/destinationpinecone.go
old mode 100755
new mode 100644
index 81f24ac74..2594b2492
--- a/internal/sdk/pkg/models/shared/destinationpinecone.go
+++ b/internal/sdk/pkg/models/shared/destinationpinecone.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -59,7 +59,22 @@ func (e *DestinationPineconeEmbeddingFakeMode) UnmarshalJSON(data []byte) error
// DestinationPineconeEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationPineconeEmbeddingFake struct {
- Mode *DestinationPineconeEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationPineconeEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationPineconeEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeEmbeddingFake) GetMode() *DestinationPineconeEmbeddingFakeMode {
+ return DestinationPineconeEmbeddingFakeModeFake.ToPointer()
}
type DestinationPineconeEmbeddingCohereMode string
@@ -89,7 +104,29 @@ func (e *DestinationPineconeEmbeddingCohereMode) UnmarshalJSON(data []byte) erro
// DestinationPineconeEmbeddingCohere - Use the Cohere API to embed text.
type DestinationPineconeEmbeddingCohere struct {
CohereKey string `json:"cohere_key"`
- Mode *DestinationPineconeEmbeddingCohereMode `json:"mode,omitempty"`
+ mode *DestinationPineconeEmbeddingCohereMode `const:"cohere" json:"mode"`
+}
+
+func (d DestinationPineconeEmbeddingCohere) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeEmbeddingCohere) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeEmbeddingCohere) GetCohereKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.CohereKey
+}
+
+func (o *DestinationPineconeEmbeddingCohere) GetMode() *DestinationPineconeEmbeddingCohereMode {
+ return DestinationPineconeEmbeddingCohereModeCohere.ToPointer()
}
type DestinationPineconeEmbeddingOpenAIMode string
@@ -118,10 +155,32 @@ func (e *DestinationPineconeEmbeddingOpenAIMode) UnmarshalJSON(data []byte) erro
// DestinationPineconeEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationPineconeEmbeddingOpenAI struct {
- Mode *DestinationPineconeEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationPineconeEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationPineconeEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeEmbeddingOpenAI) GetMode() *DestinationPineconeEmbeddingOpenAIMode {
+ return DestinationPineconeEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationPineconeEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationPineconeEmbeddingType string
const (
@@ -166,30 +225,23 @@ func CreateDestinationPineconeEmbeddingDestinationPineconeEmbeddingFake(destinat
}
func (u *DestinationPineconeEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPineconeEmbeddingFake := new(DestinationPineconeEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeEmbeddingFake, "", true, true); err == nil {
u.DestinationPineconeEmbeddingFake = destinationPineconeEmbeddingFake
u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeEmbeddingFake
return nil
}
destinationPineconeEmbeddingOpenAI := new(DestinationPineconeEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationPineconeEmbeddingOpenAI = destinationPineconeEmbeddingOpenAI
u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeEmbeddingOpenAI
return nil
}
destinationPineconeEmbeddingCohere := new(DestinationPineconeEmbeddingCohere)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeEmbeddingCohere); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeEmbeddingCohere, "", true, true); err == nil {
u.DestinationPineconeEmbeddingCohere = destinationPineconeEmbeddingCohere
u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeEmbeddingCohere
return nil
@@ -199,19 +251,19 @@ func (u *DestinationPineconeEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationPineconeEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationPineconeEmbeddingFake != nil {
- return json.Marshal(u.DestinationPineconeEmbeddingFake)
- }
-
if u.DestinationPineconeEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationPineconeEmbeddingOpenAI)
+ return utils.MarshalJSON(u.DestinationPineconeEmbeddingOpenAI, "", true)
}
if u.DestinationPineconeEmbeddingCohere != nil {
- return json.Marshal(u.DestinationPineconeEmbeddingCohere)
+ return utils.MarshalJSON(u.DestinationPineconeEmbeddingCohere, "", true)
}
- return nil, nil
+ if u.DestinationPineconeEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationPineconeEmbeddingFake, "", true)
+ }
+
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationPineconeIndexing - Pinecone is a popular vector store that can be used to store and retrieve embeddings.
@@ -223,9 +275,30 @@ type DestinationPineconeIndexing struct {
PineconeKey string `json:"pinecone_key"`
}
+func (o *DestinationPineconeIndexing) GetIndex() string {
+ if o == nil {
+ return ""
+ }
+ return o.Index
+}
+
+func (o *DestinationPineconeIndexing) GetPineconeEnvironment() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeEnvironment
+}
+
+func (o *DestinationPineconeIndexing) GetPineconeKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeKey
+}
+
type DestinationPineconeProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path.
@@ -234,11 +307,86 @@ type DestinationPineconeProcessingConfigModel struct {
TextFields []string `json:"text_fields,omitempty"`
}
+func (d DestinationPineconeProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationPineconeProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationPineconeProcessingConfigModel) GetMetadataFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *DestinationPineconeProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TextFields
+}
+
type DestinationPinecone struct {
- DestinationType DestinationPineconePinecone `json:"destinationType"`
+ destinationType DestinationPineconePinecone `const:"pinecone" json:"destinationType"`
// Embedding configuration
Embedding DestinationPineconeEmbedding `json:"embedding"`
// Pinecone is a popular vector store that can be used to store and retrieve embeddings.
Indexing DestinationPineconeIndexing `json:"indexing"`
Processing DestinationPineconeProcessingConfigModel `json:"processing"`
}
+
+func (d DestinationPinecone) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPinecone) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPinecone) GetDestinationType() DestinationPineconePinecone {
+ return DestinationPineconePineconePinecone
+}
+
+func (o *DestinationPinecone) GetEmbedding() DestinationPineconeEmbedding {
+ if o == nil {
+ return DestinationPineconeEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationPinecone) GetIndexing() DestinationPineconeIndexing {
+ if o == nil {
+ return DestinationPineconeIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationPinecone) GetProcessing() DestinationPineconeProcessingConfigModel {
+ if o == nil {
+ return DestinationPineconeProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpineconecreaterequest.go b/internal/sdk/pkg/models/shared/destinationpineconecreaterequest.go
old mode 100755
new mode 100644
index 47c7380cf..96ac58a25
--- a/internal/sdk/pkg/models/shared/destinationpineconecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpineconecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationPineconeCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPineconeCreateRequest) GetConfiguration() DestinationPinecone {
+ if o == nil {
+ return DestinationPinecone{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPineconeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPineconeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpineconeputrequest.go b/internal/sdk/pkg/models/shared/destinationpineconeputrequest.go
old mode 100755
new mode 100644
index d59659835..0033abae6
--- a/internal/sdk/pkg/models/shared/destinationpineconeputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpineconeputrequest.go
@@ -7,3 +7,24 @@ type DestinationPineconePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPineconePutRequest) GetConfiguration() DestinationPineconeUpdate {
+ if o == nil {
+ return DestinationPineconeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPineconePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPineconePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpineconeupdate.go b/internal/sdk/pkg/models/shared/destinationpineconeupdate.go
old mode 100755
new mode 100644
index 813b50eb6..23437acaf
--- a/internal/sdk/pkg/models/shared/destinationpineconeupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationpineconeupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *DestinationPineconeUpdateEmbeddingFakeMode) UnmarshalJSON(data []byte)
// DestinationPineconeUpdateEmbeddingFake - Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs.
type DestinationPineconeUpdateEmbeddingFake struct {
- Mode *DestinationPineconeUpdateEmbeddingFakeMode `json:"mode,omitempty"`
+ mode *DestinationPineconeUpdateEmbeddingFakeMode `const:"fake" json:"mode"`
+}
+
+func (d DestinationPineconeUpdateEmbeddingFake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeUpdateEmbeddingFake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeUpdateEmbeddingFake) GetMode() *DestinationPineconeUpdateEmbeddingFakeMode {
+ return DestinationPineconeUpdateEmbeddingFakeModeFake.ToPointer()
}
type DestinationPineconeUpdateEmbeddingCohereMode string
@@ -65,7 +80,29 @@ func (e *DestinationPineconeUpdateEmbeddingCohereMode) UnmarshalJSON(data []byte
// DestinationPineconeUpdateEmbeddingCohere - Use the Cohere API to embed text.
type DestinationPineconeUpdateEmbeddingCohere struct {
CohereKey string `json:"cohere_key"`
- Mode *DestinationPineconeUpdateEmbeddingCohereMode `json:"mode,omitempty"`
+ mode *DestinationPineconeUpdateEmbeddingCohereMode `const:"cohere" json:"mode"`
+}
+
+func (d DestinationPineconeUpdateEmbeddingCohere) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeUpdateEmbeddingCohere) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeUpdateEmbeddingCohere) GetCohereKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.CohereKey
+}
+
+func (o *DestinationPineconeUpdateEmbeddingCohere) GetMode() *DestinationPineconeUpdateEmbeddingCohereMode {
+ return DestinationPineconeUpdateEmbeddingCohereModeCohere.ToPointer()
}
type DestinationPineconeUpdateEmbeddingOpenAIMode string
@@ -94,10 +131,32 @@ func (e *DestinationPineconeUpdateEmbeddingOpenAIMode) UnmarshalJSON(data []byte
// DestinationPineconeUpdateEmbeddingOpenAI - Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions.
type DestinationPineconeUpdateEmbeddingOpenAI struct {
- Mode *DestinationPineconeUpdateEmbeddingOpenAIMode `json:"mode,omitempty"`
+ mode *DestinationPineconeUpdateEmbeddingOpenAIMode `const:"openai" json:"mode"`
OpenaiKey string `json:"openai_key"`
}
+func (d DestinationPineconeUpdateEmbeddingOpenAI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeUpdateEmbeddingOpenAI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeUpdateEmbeddingOpenAI) GetMode() *DestinationPineconeUpdateEmbeddingOpenAIMode {
+ return DestinationPineconeUpdateEmbeddingOpenAIModeOpenai.ToPointer()
+}
+
+func (o *DestinationPineconeUpdateEmbeddingOpenAI) GetOpenaiKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.OpenaiKey
+}
+
type DestinationPineconeUpdateEmbeddingType string
const (
@@ -142,30 +201,23 @@ func CreateDestinationPineconeUpdateEmbeddingDestinationPineconeUpdateEmbeddingF
}
func (u *DestinationPineconeUpdateEmbedding) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPineconeUpdateEmbeddingFake := new(DestinationPineconeUpdateEmbeddingFake)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeUpdateEmbeddingFake); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateEmbeddingFake, "", true, true); err == nil {
u.DestinationPineconeUpdateEmbeddingFake = destinationPineconeUpdateEmbeddingFake
u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateEmbeddingFake
return nil
}
destinationPineconeUpdateEmbeddingOpenAI := new(DestinationPineconeUpdateEmbeddingOpenAI)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeUpdateEmbeddingOpenAI); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateEmbeddingOpenAI, "", true, true); err == nil {
u.DestinationPineconeUpdateEmbeddingOpenAI = destinationPineconeUpdateEmbeddingOpenAI
u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateEmbeddingOpenAI
return nil
}
destinationPineconeUpdateEmbeddingCohere := new(DestinationPineconeUpdateEmbeddingCohere)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPineconeUpdateEmbeddingCohere); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateEmbeddingCohere, "", true, true); err == nil {
u.DestinationPineconeUpdateEmbeddingCohere = destinationPineconeUpdateEmbeddingCohere
u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateEmbeddingCohere
return nil
@@ -175,19 +227,19 @@ func (u *DestinationPineconeUpdateEmbedding) UnmarshalJSON(data []byte) error {
}
func (u DestinationPineconeUpdateEmbedding) MarshalJSON() ([]byte, error) {
- if u.DestinationPineconeUpdateEmbeddingFake != nil {
- return json.Marshal(u.DestinationPineconeUpdateEmbeddingFake)
- }
-
if u.DestinationPineconeUpdateEmbeddingOpenAI != nil {
- return json.Marshal(u.DestinationPineconeUpdateEmbeddingOpenAI)
+ return utils.MarshalJSON(u.DestinationPineconeUpdateEmbeddingOpenAI, "", true)
}
if u.DestinationPineconeUpdateEmbeddingCohere != nil {
- return json.Marshal(u.DestinationPineconeUpdateEmbeddingCohere)
+ return utils.MarshalJSON(u.DestinationPineconeUpdateEmbeddingCohere, "", true)
}
- return nil, nil
+ if u.DestinationPineconeUpdateEmbeddingFake != nil {
+ return utils.MarshalJSON(u.DestinationPineconeUpdateEmbeddingFake, "", true)
+ }
+
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationPineconeUpdateIndexing - Pinecone is a popular vector store that can be used to store and retrieve embeddings.
@@ -199,9 +251,30 @@ type DestinationPineconeUpdateIndexing struct {
PineconeKey string `json:"pinecone_key"`
}
+func (o *DestinationPineconeUpdateIndexing) GetIndex() string {
+ if o == nil {
+ return ""
+ }
+ return o.Index
+}
+
+func (o *DestinationPineconeUpdateIndexing) GetPineconeEnvironment() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeEnvironment
+}
+
+func (o *DestinationPineconeUpdateIndexing) GetPineconeKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PineconeKey
+}
+
type DestinationPineconeUpdateProcessingConfigModel struct {
// Size of overlap between chunks in tokens to store in vector store to better capture relevant context
- ChunkOverlap *int64 `json:"chunk_overlap,omitempty"`
+ ChunkOverlap *int64 `default:"0" json:"chunk_overlap"`
// Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM)
ChunkSize int64 `json:"chunk_size"`
// List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path.
@@ -210,6 +283,45 @@ type DestinationPineconeUpdateProcessingConfigModel struct {
TextFields []string `json:"text_fields,omitempty"`
}
+func (d DestinationPineconeUpdateProcessingConfigModel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPineconeUpdateProcessingConfigModel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPineconeUpdateProcessingConfigModel) GetChunkOverlap() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ChunkOverlap
+}
+
+func (o *DestinationPineconeUpdateProcessingConfigModel) GetChunkSize() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.ChunkSize
+}
+
+func (o *DestinationPineconeUpdateProcessingConfigModel) GetMetadataFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *DestinationPineconeUpdateProcessingConfigModel) GetTextFields() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TextFields
+}
+
type DestinationPineconeUpdate struct {
// Embedding configuration
Embedding DestinationPineconeUpdateEmbedding `json:"embedding"`
@@ -217,3 +329,24 @@ type DestinationPineconeUpdate struct {
Indexing DestinationPineconeUpdateIndexing `json:"indexing"`
Processing DestinationPineconeUpdateProcessingConfigModel `json:"processing"`
}
+
+func (o *DestinationPineconeUpdate) GetEmbedding() DestinationPineconeUpdateEmbedding {
+ if o == nil {
+ return DestinationPineconeUpdateEmbedding{}
+ }
+ return o.Embedding
+}
+
+func (o *DestinationPineconeUpdate) GetIndexing() DestinationPineconeUpdateIndexing {
+ if o == nil {
+ return DestinationPineconeUpdateIndexing{}
+ }
+ return o.Indexing
+}
+
+func (o *DestinationPineconeUpdate) GetProcessing() DestinationPineconeUpdateProcessingConfigModel {
+ if o == nil {
+ return DestinationPineconeUpdateProcessingConfigModel{}
+ }
+ return o.Processing
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpostgres.go b/internal/sdk/pkg/models/shared/destinationpostgres.go
old mode 100755
new mode 100644
index 6ffdff971..9b28a8333
--- a/internal/sdk/pkg/models/shared/destinationpostgres.go
+++ b/internal/sdk/pkg/models/shared/destinationpostgres.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -66,8 +66,51 @@ type DestinationPostgresSSLModesVerifyFull struct {
// Client key
ClientKey string `json:"client_key"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationPostgresSSLModesVerifyFullMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationPostgresSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationPostgresSSLModesVerifyFull) GetClientCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientCertificate
+}
+
+func (o *DestinationPostgresSSLModesVerifyFull) GetClientKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientKey
+}
+
+func (o *DestinationPostgresSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationPostgresSSLModesVerifyFull) GetMode() *DestinationPostgresSSLModesVerifyFullMode {
+ return DestinationPostgresSSLModesVerifyFullModeVerifyFull.ToPointer()
}
type DestinationPostgresSSLModesVerifyCaMode string
@@ -99,8 +142,37 @@ type DestinationPostgresSSLModesVerifyCa struct {
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationPostgresSSLModesVerifyCaMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationPostgresSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationPostgresSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationPostgresSSLModesVerifyCa) GetMode() *DestinationPostgresSSLModesVerifyCaMode {
+ return DestinationPostgresSSLModesVerifyCaModeVerifyCa.ToPointer()
}
type DestinationPostgresSSLModesRequireMode string
@@ -129,7 +201,22 @@ func (e *DestinationPostgresSSLModesRequireMode) UnmarshalJSON(data []byte) erro
// DestinationPostgresSSLModesRequire - Require SSL mode.
type DestinationPostgresSSLModesRequire struct {
- Mode DestinationPostgresSSLModesRequireMode `json:"mode"`
+ mode *DestinationPostgresSSLModesRequireMode `const:"require" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesRequire) GetMode() *DestinationPostgresSSLModesRequireMode {
+ return DestinationPostgresSSLModesRequireModeRequire.ToPointer()
}
type DestinationPostgresSSLModesPreferMode string
@@ -158,7 +245,22 @@ func (e *DestinationPostgresSSLModesPreferMode) UnmarshalJSON(data []byte) error
// DestinationPostgresSSLModesPrefer - Prefer SSL mode.
type DestinationPostgresSSLModesPrefer struct {
- Mode DestinationPostgresSSLModesPreferMode `json:"mode"`
+ mode *DestinationPostgresSSLModesPreferMode `const:"prefer" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesPrefer) GetMode() *DestinationPostgresSSLModesPreferMode {
+ return DestinationPostgresSSLModesPreferModePrefer.ToPointer()
}
type DestinationPostgresSSLModesAllowMode string
@@ -187,7 +289,22 @@ func (e *DestinationPostgresSSLModesAllowMode) UnmarshalJSON(data []byte) error
// DestinationPostgresSSLModesAllow - Allow SSL mode.
type DestinationPostgresSSLModesAllow struct {
- Mode DestinationPostgresSSLModesAllowMode `json:"mode"`
+ mode *DestinationPostgresSSLModesAllowMode `const:"allow" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesAllow) GetMode() *DestinationPostgresSSLModesAllowMode {
+ return DestinationPostgresSSLModesAllowModeAllow.ToPointer()
}
type DestinationPostgresSSLModesDisableMode string
@@ -216,7 +333,22 @@ func (e *DestinationPostgresSSLModesDisableMode) UnmarshalJSON(data []byte) erro
// DestinationPostgresSSLModesDisable - Disable SSL.
type DestinationPostgresSSLModesDisable struct {
- Mode DestinationPostgresSSLModesDisableMode `json:"mode"`
+ mode *DestinationPostgresSSLModesDisableMode `const:"disable" json:"mode"`
+}
+
+func (d DestinationPostgresSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSLModesDisable) GetMode() *DestinationPostgresSSLModesDisableMode {
+ return DestinationPostgresSSLModesDisableModeDisable.ToPointer()
}
type DestinationPostgresSSLModesType string
@@ -296,57 +428,44 @@ func CreateDestinationPostgresSSLModesDestinationPostgresSSLModesVerifyFull(dest
}
func (u *DestinationPostgresSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPostgresSSLModesDisable := new(DestinationPostgresSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesDisable, "", true, true); err == nil {
u.DestinationPostgresSSLModesDisable = destinationPostgresSSLModesDisable
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesDisable
return nil
}
destinationPostgresSSLModesAllow := new(DestinationPostgresSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesAllow, "", true, true); err == nil {
u.DestinationPostgresSSLModesAllow = destinationPostgresSSLModesAllow
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesAllow
return nil
}
destinationPostgresSSLModesPrefer := new(DestinationPostgresSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesPrefer, "", true, true); err == nil {
u.DestinationPostgresSSLModesPrefer = destinationPostgresSSLModesPrefer
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesPrefer
return nil
}
destinationPostgresSSLModesRequire := new(DestinationPostgresSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesRequire, "", true, true); err == nil {
u.DestinationPostgresSSLModesRequire = destinationPostgresSSLModesRequire
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesRequire
return nil
}
destinationPostgresSSLModesVerifyCa := new(DestinationPostgresSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesVerifyCa, "", true, true); err == nil {
u.DestinationPostgresSSLModesVerifyCa = destinationPostgresSSLModesVerifyCa
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesVerifyCa
return nil
}
destinationPostgresSSLModesVerifyFull := new(DestinationPostgresSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSLModesVerifyFull, "", true, true); err == nil {
u.DestinationPostgresSSLModesVerifyFull = destinationPostgresSSLModesVerifyFull
u.Type = DestinationPostgresSSLModesTypeDestinationPostgresSSLModesVerifyFull
return nil
@@ -357,30 +476,30 @@ func (u *DestinationPostgresSSLModes) UnmarshalJSON(data []byte) error {
func (u DestinationPostgresSSLModes) MarshalJSON() ([]byte, error) {
if u.DestinationPostgresSSLModesDisable != nil {
- return json.Marshal(u.DestinationPostgresSSLModesDisable)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesDisable, "", true)
}
if u.DestinationPostgresSSLModesAllow != nil {
- return json.Marshal(u.DestinationPostgresSSLModesAllow)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesAllow, "", true)
}
if u.DestinationPostgresSSLModesPrefer != nil {
- return json.Marshal(u.DestinationPostgresSSLModesPrefer)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesPrefer, "", true)
}
if u.DestinationPostgresSSLModesRequire != nil {
- return json.Marshal(u.DestinationPostgresSSLModesRequire)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesRequire, "", true)
}
if u.DestinationPostgresSSLModesVerifyCa != nil {
- return json.Marshal(u.DestinationPostgresSSLModesVerifyCa)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesVerifyCa, "", true)
}
if u.DestinationPostgresSSLModesVerifyFull != nil {
- return json.Marshal(u.DestinationPostgresSSLModesVerifyFull)
+ return utils.MarshalJSON(u.DestinationPostgresSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -413,15 +532,58 @@ type DestinationPostgresSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationPostgresSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationPostgresSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationPostgresSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationPostgresSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationPostgresSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationPostgresSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -454,13 +616,56 @@ type DestinationPostgresSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationPostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationPostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod string
@@ -489,7 +694,22 @@ func (e *DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(d
// DestinationPostgresSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationPostgresSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationPostgresSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationPostgresSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationPostgresSSHTunnelMethodType string
@@ -536,30 +756,23 @@ func CreateDestinationPostgresSSHTunnelMethodDestinationPostgresSSHTunnelMethodP
}
func (u *DestinationPostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPostgresSSHTunnelMethodNoTunnel := new(DestinationPostgresSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationPostgresSSHTunnelMethodNoTunnel = destinationPostgresSSHTunnelMethodNoTunnel
u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHTunnelMethodNoTunnel
return nil
}
destinationPostgresSSHTunnelMethodSSHKeyAuthentication := new(DestinationPostgresSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication = destinationPostgresSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationPostgresSSHTunnelMethodPasswordAuthentication := new(DestinationPostgresSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationPostgresSSHTunnelMethodPasswordAuthentication = destinationPostgresSSHTunnelMethodPasswordAuthentication
u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHTunnelMethodPasswordAuthentication
return nil
@@ -570,24 +783,24 @@ func (u *DestinationPostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationPostgresSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationPostgresSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationPostgresSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationPostgresSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationPostgresSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationPostgresSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationPostgresSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationPostgresSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationPostgres struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationPostgresPostgres `json:"destinationType"`
+ destinationType DestinationPostgresPostgres `const:"postgres" json:"destinationType"`
// Hostname of the database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -595,9 +808,9 @@ type DestinationPostgres struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// SSL connection modes.
// disable - Chose this mode to disable encryption of communication between Airbyte and destination database
// allow - Chose this mode to enable encryption only when required by the source database
@@ -612,3 +825,81 @@ type DestinationPostgres struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationPostgres) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgres) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgres) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationPostgres) GetDestinationType() DestinationPostgresPostgres {
+ return DestinationPostgresPostgresPostgres
+}
+
+func (o *DestinationPostgres) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationPostgres) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationPostgres) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationPostgres) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationPostgres) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationPostgres) GetSslMode() *DestinationPostgresSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *DestinationPostgres) GetTunnelMethod() *DestinationPostgresSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationPostgres) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpostgrescreaterequest.go b/internal/sdk/pkg/models/shared/destinationpostgrescreaterequest.go
old mode 100755
new mode 100644
index 39a24904a..456a5c22f
--- a/internal/sdk/pkg/models/shared/destinationpostgrescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpostgrescreaterequest.go
@@ -7,3 +7,24 @@ type DestinationPostgresCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPostgresCreateRequest) GetConfiguration() DestinationPostgres {
+ if o == nil {
+ return DestinationPostgres{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPostgresCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPostgresCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpostgresputrequest.go b/internal/sdk/pkg/models/shared/destinationpostgresputrequest.go
old mode 100755
new mode 100644
index ee308d3fc..fed0fc787
--- a/internal/sdk/pkg/models/shared/destinationpostgresputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpostgresputrequest.go
@@ -7,3 +7,24 @@ type DestinationPostgresPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPostgresPutRequest) GetConfiguration() DestinationPostgresUpdate {
+ if o == nil {
+ return DestinationPostgresUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPostgresPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPostgresPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpostgresupdate.go b/internal/sdk/pkg/models/shared/destinationpostgresupdate.go
old mode 100755
new mode 100644
index 79eec9137..92a4b2d86
--- a/internal/sdk/pkg/models/shared/destinationpostgresupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationpostgresupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -42,8 +42,51 @@ type DestinationPostgresUpdateSSLModesVerifyFull struct {
// Client key
ClientKey string `json:"client_key"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationPostgresUpdateSSLModesVerifyFullMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationPostgresUpdateSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyFull) GetClientCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientCertificate
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyFull) GetClientKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientKey
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyFull) GetMode() *DestinationPostgresUpdateSSLModesVerifyFullMode {
+ return DestinationPostgresUpdateSSLModesVerifyFullModeVerifyFull.ToPointer()
}
type DestinationPostgresUpdateSSLModesVerifyCaMode string
@@ -75,8 +118,37 @@ type DestinationPostgresUpdateSSLModesVerifyCa struct {
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationPostgresUpdateSSLModesVerifyCaMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationPostgresUpdateSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationPostgresUpdateSSLModesVerifyCa) GetMode() *DestinationPostgresUpdateSSLModesVerifyCaMode {
+ return DestinationPostgresUpdateSSLModesVerifyCaModeVerifyCa.ToPointer()
}
type DestinationPostgresUpdateSSLModesRequireMode string
@@ -105,7 +177,22 @@ func (e *DestinationPostgresUpdateSSLModesRequireMode) UnmarshalJSON(data []byte
// DestinationPostgresUpdateSSLModesRequire - Require SSL mode.
type DestinationPostgresUpdateSSLModesRequire struct {
- Mode DestinationPostgresUpdateSSLModesRequireMode `json:"mode"`
+ mode *DestinationPostgresUpdateSSLModesRequireMode `const:"require" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesRequire) GetMode() *DestinationPostgresUpdateSSLModesRequireMode {
+ return DestinationPostgresUpdateSSLModesRequireModeRequire.ToPointer()
}
type DestinationPostgresUpdateSSLModesPreferMode string
@@ -134,7 +221,22 @@ func (e *DestinationPostgresUpdateSSLModesPreferMode) UnmarshalJSON(data []byte)
// DestinationPostgresUpdateSSLModesPrefer - Prefer SSL mode.
type DestinationPostgresUpdateSSLModesPrefer struct {
- Mode DestinationPostgresUpdateSSLModesPreferMode `json:"mode"`
+ mode *DestinationPostgresUpdateSSLModesPreferMode `const:"prefer" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesPrefer) GetMode() *DestinationPostgresUpdateSSLModesPreferMode {
+ return DestinationPostgresUpdateSSLModesPreferModePrefer.ToPointer()
}
type DestinationPostgresUpdateSSLModesAllowMode string
@@ -163,7 +265,22 @@ func (e *DestinationPostgresUpdateSSLModesAllowMode) UnmarshalJSON(data []byte)
// DestinationPostgresUpdateSSLModesAllow - Allow SSL mode.
type DestinationPostgresUpdateSSLModesAllow struct {
- Mode DestinationPostgresUpdateSSLModesAllowMode `json:"mode"`
+ mode *DestinationPostgresUpdateSSLModesAllowMode `const:"allow" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesAllow) GetMode() *DestinationPostgresUpdateSSLModesAllowMode {
+ return DestinationPostgresUpdateSSLModesAllowModeAllow.ToPointer()
}
type DestinationPostgresUpdateSSLModesDisableMode string
@@ -192,7 +309,22 @@ func (e *DestinationPostgresUpdateSSLModesDisableMode) UnmarshalJSON(data []byte
// DestinationPostgresUpdateSSLModesDisable - Disable SSL.
type DestinationPostgresUpdateSSLModesDisable struct {
- Mode DestinationPostgresUpdateSSLModesDisableMode `json:"mode"`
+ mode *DestinationPostgresUpdateSSLModesDisableMode `const:"disable" json:"mode"`
+}
+
+func (d DestinationPostgresUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSLModesDisable) GetMode() *DestinationPostgresUpdateSSLModesDisableMode {
+ return DestinationPostgresUpdateSSLModesDisableModeDisable.ToPointer()
}
type DestinationPostgresUpdateSSLModesType string
@@ -272,57 +404,44 @@ func CreateDestinationPostgresUpdateSSLModesDestinationPostgresUpdateSSLModesVer
}
func (u *DestinationPostgresUpdateSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPostgresUpdateSSLModesDisable := new(DestinationPostgresUpdateSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesDisable, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesDisable = destinationPostgresUpdateSSLModesDisable
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesDisable
return nil
}
destinationPostgresUpdateSSLModesAllow := new(DestinationPostgresUpdateSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesAllow, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesAllow = destinationPostgresUpdateSSLModesAllow
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesAllow
return nil
}
destinationPostgresUpdateSSLModesPrefer := new(DestinationPostgresUpdateSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesPrefer, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesPrefer = destinationPostgresUpdateSSLModesPrefer
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesPrefer
return nil
}
destinationPostgresUpdateSSLModesRequire := new(DestinationPostgresUpdateSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesRequire, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesRequire = destinationPostgresUpdateSSLModesRequire
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesRequire
return nil
}
destinationPostgresUpdateSSLModesVerifyCa := new(DestinationPostgresUpdateSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesVerifyCa, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesVerifyCa = destinationPostgresUpdateSSLModesVerifyCa
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesVerifyCa
return nil
}
destinationPostgresUpdateSSLModesVerifyFull := new(DestinationPostgresUpdateSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSLModesVerifyFull, "", true, true); err == nil {
u.DestinationPostgresUpdateSSLModesVerifyFull = destinationPostgresUpdateSSLModesVerifyFull
u.Type = DestinationPostgresUpdateSSLModesTypeDestinationPostgresUpdateSSLModesVerifyFull
return nil
@@ -333,30 +452,30 @@ func (u *DestinationPostgresUpdateSSLModes) UnmarshalJSON(data []byte) error {
func (u DestinationPostgresUpdateSSLModes) MarshalJSON() ([]byte, error) {
if u.DestinationPostgresUpdateSSLModesDisable != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesDisable)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesDisable, "", true)
}
if u.DestinationPostgresUpdateSSLModesAllow != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesAllow)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesAllow, "", true)
}
if u.DestinationPostgresUpdateSSLModesPrefer != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesPrefer)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesPrefer, "", true)
}
if u.DestinationPostgresUpdateSSLModesRequire != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesRequire)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesRequire, "", true)
}
if u.DestinationPostgresUpdateSSLModesVerifyCa != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesVerifyCa)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesVerifyCa, "", true)
}
if u.DestinationPostgresUpdateSSLModesVerifyFull != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSLModesVerifyFull)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -389,15 +508,58 @@ type DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationPostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -430,13 +592,56 @@ type DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -465,7 +670,22 @@ func (e *DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod) Unmarshal
// DestinationPostgresUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationPostgresUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationPostgresUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationPostgresUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationPostgresUpdateSSHTunnelMethodType string
@@ -512,30 +732,23 @@ func CreateDestinationPostgresUpdateSSHTunnelMethodDestinationPostgresUpdateSSHT
}
func (u *DestinationPostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationPostgresUpdateSSHTunnelMethodNoTunnel := new(DestinationPostgresUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationPostgresUpdateSSHTunnelMethodNoTunnel = destinationPostgresUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication = destinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication = destinationPostgresUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -546,18 +759,18 @@ func (u *DestinationPostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) er
func (u DestinationPostgresUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationPostgresUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationPostgresUpdate struct {
@@ -570,9 +783,9 @@ type DestinationPostgresUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// SSL connection modes.
// disable - Chose this mode to disable encryption of communication between Airbyte and destination database
// allow - Chose this mode to enable encryption only when required by the source database
@@ -587,3 +800,77 @@ type DestinationPostgresUpdate struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationPostgresUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPostgresUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPostgresUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationPostgresUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationPostgresUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationPostgresUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationPostgresUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationPostgresUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationPostgresUpdate) GetSslMode() *DestinationPostgresUpdateSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *DestinationPostgresUpdate) GetTunnelMethod() *DestinationPostgresUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationPostgresUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpubsub.go b/internal/sdk/pkg/models/shared/destinationpubsub.go
old mode 100755
new mode 100644
index 5f5cf236a..198bf190a
--- a/internal/sdk/pkg/models/shared/destinationpubsub.go
+++ b/internal/sdk/pkg/models/shared/destinationpubsub.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,20 +34,91 @@ func (e *DestinationPubsubPubsub) UnmarshalJSON(data []byte) error {
type DestinationPubsub struct {
// Number of ms before the buffer is flushed
- BatchingDelayThreshold *int64 `json:"batching_delay_threshold,omitempty"`
+ BatchingDelayThreshold *int64 `default:"1" json:"batching_delay_threshold"`
// Number of messages before the buffer is flushed
- BatchingElementCountThreshold *int64 `json:"batching_element_count_threshold,omitempty"`
+ BatchingElementCountThreshold *int64 `default:"1" json:"batching_element_count_threshold"`
// If TRUE messages will be buffered instead of sending them one by one
- BatchingEnabled bool `json:"batching_enabled"`
+ BatchingEnabled *bool `default:"false" json:"batching_enabled"`
// Number of bytes before the buffer is flushed
- BatchingRequestBytesThreshold *int64 `json:"batching_request_bytes_threshold,omitempty"`
+ BatchingRequestBytesThreshold *int64 `default:"1" json:"batching_request_bytes_threshold"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key.
CredentialsJSON string `json:"credentials_json"`
- DestinationType DestinationPubsubPubsub `json:"destinationType"`
+ destinationType DestinationPubsubPubsub `const:"pubsub" json:"destinationType"`
// If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream
- OrderingEnabled bool `json:"ordering_enabled"`
+ OrderingEnabled *bool `default:"false" json:"ordering_enabled"`
// The GCP project ID for the project containing the target PubSub.
ProjectID string `json:"project_id"`
// The PubSub topic ID in the given GCP project ID.
TopicID string `json:"topic_id"`
}
+
+func (d DestinationPubsub) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPubsub) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPubsub) GetBatchingDelayThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingDelayThreshold
+}
+
+func (o *DestinationPubsub) GetBatchingElementCountThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingElementCountThreshold
+}
+
+func (o *DestinationPubsub) GetBatchingEnabled() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingEnabled
+}
+
+func (o *DestinationPubsub) GetBatchingRequestBytesThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingRequestBytesThreshold
+}
+
+func (o *DestinationPubsub) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationPubsub) GetDestinationType() DestinationPubsubPubsub {
+ return DestinationPubsubPubsubPubsub
+}
+
+func (o *DestinationPubsub) GetOrderingEnabled() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.OrderingEnabled
+}
+
+func (o *DestinationPubsub) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *DestinationPubsub) GetTopicID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TopicID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpubsubcreaterequest.go b/internal/sdk/pkg/models/shared/destinationpubsubcreaterequest.go
old mode 100755
new mode 100644
index 4526e9041..039ce274f
--- a/internal/sdk/pkg/models/shared/destinationpubsubcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpubsubcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationPubsubCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPubsubCreateRequest) GetConfiguration() DestinationPubsub {
+ if o == nil {
+ return DestinationPubsub{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPubsubCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPubsubCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpubsubputrequest.go b/internal/sdk/pkg/models/shared/destinationpubsubputrequest.go
old mode 100755
new mode 100644
index 305980db4..7091ea66d
--- a/internal/sdk/pkg/models/shared/destinationpubsubputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationpubsubputrequest.go
@@ -7,3 +7,24 @@ type DestinationPubsubPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationPubsubPutRequest) GetConfiguration() DestinationPubsubUpdate {
+ if o == nil {
+ return DestinationPubsubUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPubsubPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationPubsubPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationpubsubupdate.go b/internal/sdk/pkg/models/shared/destinationpubsubupdate.go
old mode 100755
new mode 100644
index 8f3495db4..c69d30736
--- a/internal/sdk/pkg/models/shared/destinationpubsubupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationpubsubupdate.go
@@ -2,21 +2,92 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationPubsubUpdate struct {
// Number of ms before the buffer is flushed
- BatchingDelayThreshold *int64 `json:"batching_delay_threshold,omitempty"`
+ BatchingDelayThreshold *int64 `default:"1" json:"batching_delay_threshold"`
// Number of messages before the buffer is flushed
- BatchingElementCountThreshold *int64 `json:"batching_element_count_threshold,omitempty"`
+ BatchingElementCountThreshold *int64 `default:"1" json:"batching_element_count_threshold"`
// If TRUE messages will be buffered instead of sending them one by one
- BatchingEnabled bool `json:"batching_enabled"`
+ BatchingEnabled *bool `default:"false" json:"batching_enabled"`
// Number of bytes before the buffer is flushed
- BatchingRequestBytesThreshold *int64 `json:"batching_request_bytes_threshold,omitempty"`
+ BatchingRequestBytesThreshold *int64 `default:"1" json:"batching_request_bytes_threshold"`
// The contents of the JSON service account key. Check out the docs if you need help generating this key.
CredentialsJSON string `json:"credentials_json"`
// If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream
- OrderingEnabled bool `json:"ordering_enabled"`
+ OrderingEnabled *bool `default:"false" json:"ordering_enabled"`
// The GCP project ID for the project containing the target PubSub.
ProjectID string `json:"project_id"`
// The PubSub topic ID in the given GCP project ID.
TopicID string `json:"topic_id"`
}
+
+func (d DestinationPubsubUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationPubsubUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationPubsubUpdate) GetBatchingDelayThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingDelayThreshold
+}
+
+func (o *DestinationPubsubUpdate) GetBatchingElementCountThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingElementCountThreshold
+}
+
+func (o *DestinationPubsubUpdate) GetBatchingEnabled() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingEnabled
+}
+
+func (o *DestinationPubsubUpdate) GetBatchingRequestBytesThreshold() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchingRequestBytesThreshold
+}
+
+func (o *DestinationPubsubUpdate) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *DestinationPubsubUpdate) GetOrderingEnabled() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.OrderingEnabled
+}
+
+func (o *DestinationPubsubUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *DestinationPubsubUpdate) GetTopicID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TopicID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationputrequest.go b/internal/sdk/pkg/models/shared/destinationputrequest.go
old mode 100755
new mode 100644
index a4eb95550..a2e792902
--- a/internal/sdk/pkg/models/shared/destinationputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationputrequest.go
@@ -7,3 +7,17 @@ type DestinationPutRequest struct {
Configuration interface{} `json:"configuration"`
Name string `json:"name"`
}
+
+func (o *DestinationPutRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *DestinationPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredis.go b/internal/sdk/pkg/models/shared/destinationredis.go
old mode 100755
new mode 100644
index 79d4ea87a..910ba847e
--- a/internal/sdk/pkg/models/shared/destinationredis.go
+++ b/internal/sdk/pkg/models/shared/destinationredis.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -91,8 +91,51 @@ type DestinationRedisSSLModesVerifyFull struct {
// Client key
ClientKey string `json:"client_key"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationRedisSSLModesVerifyFullMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationRedisSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
+}
+
+func (d DestinationRedisSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationRedisSSLModesVerifyFull) GetClientCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientCertificate
+}
+
+func (o *DestinationRedisSSLModesVerifyFull) GetClientKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientKey
+}
+
+func (o *DestinationRedisSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationRedisSSLModesVerifyFull) GetMode() *DestinationRedisSSLModesVerifyFullMode {
+ return DestinationRedisSSLModesVerifyFullModeVerifyFull.ToPointer()
}
type DestinationRedisSSLModesDisableMode string
@@ -121,7 +164,22 @@ func (e *DestinationRedisSSLModesDisableMode) UnmarshalJSON(data []byte) error {
// DestinationRedisSSLModesDisable - Disable SSL.
type DestinationRedisSSLModesDisable struct {
- Mode DestinationRedisSSLModesDisableMode `json:"mode"`
+ mode *DestinationRedisSSLModesDisableMode `const:"disable" json:"mode"`
+}
+
+func (d DestinationRedisSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisSSLModesDisable) GetMode() *DestinationRedisSSLModesDisableMode {
+ return DestinationRedisSSLModesDisableModeDisable.ToPointer()
}
type DestinationRedisSSLModesType string
@@ -157,21 +215,16 @@ func CreateDestinationRedisSSLModesDestinationRedisSSLModesVerifyFull(destinatio
}
func (u *DestinationRedisSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedisSSLModesDisable := new(DestinationRedisSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisSSLModesDisable, "", true, true); err == nil {
u.DestinationRedisSSLModesDisable = destinationRedisSSLModesDisable
u.Type = DestinationRedisSSLModesTypeDestinationRedisSSLModesDisable
return nil
}
destinationRedisSSLModesVerifyFull := new(DestinationRedisSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisSSLModesVerifyFull, "", true, true); err == nil {
u.DestinationRedisSSLModesVerifyFull = destinationRedisSSLModesVerifyFull
u.Type = DestinationRedisSSLModesTypeDestinationRedisSSLModesVerifyFull
return nil
@@ -182,14 +235,14 @@ func (u *DestinationRedisSSLModes) UnmarshalJSON(data []byte) error {
func (u DestinationRedisSSLModes) MarshalJSON() ([]byte, error) {
if u.DestinationRedisSSLModesDisable != nil {
- return json.Marshal(u.DestinationRedisSSLModesDisable)
+ return utils.MarshalJSON(u.DestinationRedisSSLModesDisable, "", true)
}
if u.DestinationRedisSSLModesVerifyFull != nil {
- return json.Marshal(u.DestinationRedisSSLModesVerifyFull)
+ return utils.MarshalJSON(u.DestinationRedisSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -222,15 +275,58 @@ type DestinationRedisSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationRedisSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedisSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationRedisSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationRedisSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedisSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationRedisSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -263,13 +359,56 @@ type DestinationRedisSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationRedisSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationRedisSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedisSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod string
@@ -298,7 +437,22 @@ func (e *DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data
// DestinationRedisSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationRedisSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationRedisSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationRedisSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationRedisSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationRedisSSHTunnelMethodType string
@@ -345,30 +499,23 @@ func CreateDestinationRedisSSHTunnelMethodDestinationRedisSSHTunnelMethodPasswor
}
func (u *DestinationRedisSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedisSSHTunnelMethodNoTunnel := new(DestinationRedisSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationRedisSSHTunnelMethodNoTunnel = destinationRedisSSHTunnelMethodNoTunnel
u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHTunnelMethodNoTunnel
return nil
}
destinationRedisSSHTunnelMethodSSHKeyAuthentication := new(DestinationRedisSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationRedisSSHTunnelMethodSSHKeyAuthentication = destinationRedisSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationRedisSSHTunnelMethodPasswordAuthentication := new(DestinationRedisSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationRedisSSHTunnelMethodPasswordAuthentication = destinationRedisSSHTunnelMethodPasswordAuthentication
u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHTunnelMethodPasswordAuthentication
return nil
@@ -379,32 +526,32 @@ func (u *DestinationRedisSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationRedisSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedisSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationRedisSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationRedisSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationRedisSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationRedisSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationRedisSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationRedisSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationRedisSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationRedisSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedis struct {
// Redis cache type to store data in.
- CacheType DestinationRedisCacheType `json:"cache_type"`
- DestinationType DestinationRedisRedis `json:"destinationType"`
+ CacheType *DestinationRedisCacheType `default:"hash" json:"cache_type"`
+ destinationType DestinationRedisRedis `const:"redis" json:"destinationType"`
// Redis host to connect to.
Host string `json:"host"`
// Password associated with Redis.
Password *string `json:"password,omitempty"`
// Port of Redis.
- Port int64 `json:"port"`
+ Port *int64 `default:"6379" json:"port"`
// Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible.
- Ssl *bool `json:"ssl,omitempty"`
+ Ssl *bool `default:"false" json:"ssl"`
// SSL connection modes.
// verify-full - This is the most secure mode. Always require encryption and verifies the identity of the source database server
SslMode *DestinationRedisSSLModes `json:"ssl_mode,omitempty"`
@@ -413,3 +560,74 @@ type DestinationRedis struct {
// Username associated with Redis.
Username string `json:"username"`
}
+
+func (d DestinationRedis) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedis) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedis) GetCacheType() *DestinationRedisCacheType {
+ if o == nil {
+ return nil
+ }
+ return o.CacheType
+}
+
+func (o *DestinationRedis) GetDestinationType() DestinationRedisRedis {
+ return DestinationRedisRedisRedis
+}
+
+func (o *DestinationRedis) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationRedis) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationRedis) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationRedis) GetSsl() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Ssl
+}
+
+func (o *DestinationRedis) GetSslMode() *DestinationRedisSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *DestinationRedis) GetTunnelMethod() *DestinationRedisSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationRedis) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationrediscreaterequest.go b/internal/sdk/pkg/models/shared/destinationrediscreaterequest.go
old mode 100755
new mode 100644
index c50521773..a20bf3f6f
--- a/internal/sdk/pkg/models/shared/destinationrediscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationrediscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationRedisCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationRedisCreateRequest) GetConfiguration() DestinationRedis {
+ if o == nil {
+ return DestinationRedis{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationRedisCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationRedisCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredisputrequest.go b/internal/sdk/pkg/models/shared/destinationredisputrequest.go
old mode 100755
new mode 100644
index e6efe3ddb..e86fbf189
--- a/internal/sdk/pkg/models/shared/destinationredisputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationredisputrequest.go
@@ -7,3 +7,24 @@ type DestinationRedisPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationRedisPutRequest) GetConfiguration() DestinationRedisUpdate {
+ if o == nil {
+ return DestinationRedisUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationRedisPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationRedisPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredisupdate.go b/internal/sdk/pkg/models/shared/destinationredisupdate.go
old mode 100755
new mode 100644
index 62c60f56e..86962672e
--- a/internal/sdk/pkg/models/shared/destinationredisupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationredisupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -67,8 +67,51 @@ type DestinationRedisUpdateSSLModesVerifyFull struct {
// Client key
ClientKey string `json:"client_key"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
- ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode DestinationRedisUpdateSSLModesVerifyFullMode `json:"mode"`
+ ClientKeyPassword *string `json:"client_key_password,omitempty"`
+ mode *DestinationRedisUpdateSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
+}
+
+func (d DestinationRedisUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdateSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdateSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *DestinationRedisUpdateSSLModesVerifyFull) GetClientCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientCertificate
+}
+
+func (o *DestinationRedisUpdateSSLModesVerifyFull) GetClientKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientKey
+}
+
+func (o *DestinationRedisUpdateSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *DestinationRedisUpdateSSLModesVerifyFull) GetMode() *DestinationRedisUpdateSSLModesVerifyFullMode {
+ return DestinationRedisUpdateSSLModesVerifyFullModeVerifyFull.ToPointer()
}
type DestinationRedisUpdateSSLModesDisableMode string
@@ -97,7 +140,22 @@ func (e *DestinationRedisUpdateSSLModesDisableMode) UnmarshalJSON(data []byte) e
// DestinationRedisUpdateSSLModesDisable - Disable SSL.
type DestinationRedisUpdateSSLModesDisable struct {
- Mode DestinationRedisUpdateSSLModesDisableMode `json:"mode"`
+ mode *DestinationRedisUpdateSSLModesDisableMode `const:"disable" json:"mode"`
+}
+
+func (d DestinationRedisUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdateSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdateSSLModesDisable) GetMode() *DestinationRedisUpdateSSLModesDisableMode {
+ return DestinationRedisUpdateSSLModesDisableModeDisable.ToPointer()
}
type DestinationRedisUpdateSSLModesType string
@@ -133,21 +191,16 @@ func CreateDestinationRedisUpdateSSLModesDestinationRedisUpdateSSLModesVerifyFul
}
func (u *DestinationRedisUpdateSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedisUpdateSSLModesDisable := new(DestinationRedisUpdateSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisUpdateSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSLModesDisable, "", true, true); err == nil {
u.DestinationRedisUpdateSSLModesDisable = destinationRedisUpdateSSLModesDisable
u.Type = DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateSSLModesDisable
return nil
}
destinationRedisUpdateSSLModesVerifyFull := new(DestinationRedisUpdateSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisUpdateSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSLModesVerifyFull, "", true, true); err == nil {
u.DestinationRedisUpdateSSLModesVerifyFull = destinationRedisUpdateSSLModesVerifyFull
u.Type = DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateSSLModesVerifyFull
return nil
@@ -158,14 +211,14 @@ func (u *DestinationRedisUpdateSSLModes) UnmarshalJSON(data []byte) error {
func (u DestinationRedisUpdateSSLModes) MarshalJSON() ([]byte, error) {
if u.DestinationRedisUpdateSSLModesDisable != nil {
- return json.Marshal(u.DestinationRedisUpdateSSLModesDisable)
+ return utils.MarshalJSON(u.DestinationRedisUpdateSSLModesDisable, "", true)
}
if u.DestinationRedisUpdateSSLModesVerifyFull != nil {
- return json.Marshal(u.DestinationRedisUpdateSSLModesVerifyFull)
+ return utils.MarshalJSON(u.DestinationRedisUpdateSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -198,15 +251,58 @@ type DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationRedisUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -239,13 +335,56 @@ type DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -274,7 +413,22 @@ func (e *DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSO
// DestinationRedisUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationRedisUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationRedisUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationRedisUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationRedisUpdateSSHTunnelMethodType string
@@ -321,30 +475,23 @@ func CreateDestinationRedisUpdateSSHTunnelMethodDestinationRedisUpdateSSHTunnelM
}
func (u *DestinationRedisUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedisUpdateSSHTunnelMethodNoTunnel := new(DestinationRedisUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationRedisUpdateSSHTunnelMethodNoTunnel = destinationRedisUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication = destinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationRedisUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedisUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication = destinationRedisUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -355,31 +502,31 @@ func (u *DestinationRedisUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error
func (u DestinationRedisUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedisUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationRedisUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationRedisUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationRedisUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedisUpdate struct {
// Redis cache type to store data in.
- CacheType DestinationRedisUpdateCacheType `json:"cache_type"`
+ CacheType *DestinationRedisUpdateCacheType `default:"hash" json:"cache_type"`
// Redis host to connect to.
Host string `json:"host"`
// Password associated with Redis.
Password *string `json:"password,omitempty"`
// Port of Redis.
- Port int64 `json:"port"`
+ Port *int64 `default:"6379" json:"port"`
// Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible.
- Ssl *bool `json:"ssl,omitempty"`
+ Ssl *bool `default:"false" json:"ssl"`
// SSL connection modes.
// verify-full - This is the most secure mode. Always require encryption and verifies the identity of the source database server
SslMode *DestinationRedisUpdateSSLModes `json:"ssl_mode,omitempty"`
@@ -388,3 +535,70 @@ type DestinationRedisUpdate struct {
// Username associated with Redis.
Username string `json:"username"`
}
+
+func (d DestinationRedisUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedisUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedisUpdate) GetCacheType() *DestinationRedisUpdateCacheType {
+ if o == nil {
+ return nil
+ }
+ return o.CacheType
+}
+
+func (o *DestinationRedisUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationRedisUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationRedisUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationRedisUpdate) GetSsl() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Ssl
+}
+
+func (o *DestinationRedisUpdate) GetSslMode() *DestinationRedisUpdateSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *DestinationRedisUpdate) GetTunnelMethod() *DestinationRedisUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationRedisUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredshift.go b/internal/sdk/pkg/models/shared/destinationredshift.go
old mode 100755
new mode 100644
index e72b77a47..483478538
--- a/internal/sdk/pkg/models/shared/destinationredshift.go
+++ b/internal/sdk/pkg/models/shared/destinationredshift.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type DestinationRedshiftSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationRedshiftSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationRedshiftSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationRedshiftSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationRedshiftSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationRedshiftSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(d
// DestinationRedshiftSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationRedshiftSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationRedshiftSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationRedshiftSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationRedshiftSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateDestinationRedshiftSSHTunnelMethodDestinationRedshiftSSHTunnelMethodP
}
func (u *DestinationRedshiftSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftSSHTunnelMethodNoTunnel := new(DestinationRedshiftSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationRedshiftSSHTunnelMethodNoTunnel = destinationRedshiftSSHTunnelMethodNoTunnel
u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHTunnelMethodNoTunnel
return nil
}
destinationRedshiftSSHTunnelMethodSSHKeyAuthentication := new(DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication = destinationRedshiftSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationRedshiftSSHTunnelMethodPasswordAuthentication := new(DestinationRedshiftSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationRedshiftSSHTunnelMethodPasswordAuthentication = destinationRedshiftSSHTunnelMethodPasswordAuthentication
u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,18 +314,18 @@ func (u *DestinationRedshiftSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationRedshiftSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationRedshiftSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationRedshiftSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationRedshiftSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationRedshiftSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationRedshiftSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationRedshiftSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType string
@@ -260,11 +354,33 @@ func (e *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncr
// DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption - Staging data will be encrypted using AES-CBC envelope encryption.
type DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption struct {
- EncryptionType DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType `json:"encryption_type"`
+ encryptionType *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType `const:"aes_cbc_envelope" json:"encryption_type"`
// The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
KeyEncryptingKey *string `json:"key_encrypting_key,omitempty"`
}
+func (d DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) GetEncryptionType() *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType {
+ return DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionTypeAesCbcEnvelope.ToPointer()
+}
+
+func (o *DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) GetKeyEncryptingKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.KeyEncryptingKey
+}
+
type DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType string
const (
@@ -291,7 +407,22 @@ func (e *DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryp
// DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption - Staging data will be stored in plaintext.
type DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption struct {
- EncryptionType DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType `json:"encryption_type"`
+ encryptionType *DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType `const:"none" json:"encryption_type"`
+}
+
+func (d DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption) GetEncryptionType() *DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType {
+ return DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryptionEncryptionTypeNone.ToPointer()
}
type DestinationRedshiftUploadingMethodS3StagingEncryptionType string
@@ -327,21 +458,16 @@ func CreateDestinationRedshiftUploadingMethodS3StagingEncryptionDestinationRedsh
}
func (u *DestinationRedshiftUploadingMethodS3StagingEncryption) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption := new(DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption, "", true, true); err == nil {
u.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption = destinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption
u.Type = DestinationRedshiftUploadingMethodS3StagingEncryptionTypeDestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption
return nil
}
destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption := new(DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption, "", true, true); err == nil {
u.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption = destinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
u.Type = DestinationRedshiftUploadingMethodS3StagingEncryptionTypeDestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
return nil
@@ -352,14 +478,14 @@ func (u *DestinationRedshiftUploadingMethodS3StagingEncryption) UnmarshalJSON(da
func (u DestinationRedshiftUploadingMethodS3StagingEncryption) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption != nil {
- return json.Marshal(u.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption)
+ return utils.MarshalJSON(u.DestinationRedshiftUploadingMethodS3StagingEncryptionNoEncryption, "", true)
}
if u.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption != nil {
- return json.Marshal(u.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption)
+ return utils.MarshalJSON(u.DestinationRedshiftUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshiftUploadingMethodS3StagingMethod string
@@ -487,22 +613,100 @@ type DestinationRedshiftUploadingMethodS3Staging struct {
// How to encrypt the staging data
Encryption *DestinationRedshiftUploadingMethodS3StagingEncryption `json:"encryption,omitempty"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
- Method DestinationRedshiftUploadingMethodS3StagingMethod `json:"method"`
+ method DestinationRedshiftUploadingMethodS3StagingMethod `const:"S3 Staging" json:"method"`
// Whether to delete the staging files from S3 after completing the sync. See docs for details.
- PurgeStagingData *bool `json:"purge_staging_data,omitempty"`
+ PurgeStagingData *bool `default:"true" json:"purge_staging_data"`
// The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
S3BucketName string `json:"s3_bucket_name"`
// The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
S3BucketPath *string `json:"s3_bucket_path,omitempty"`
// The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
- S3BucketRegion DestinationRedshiftUploadingMethodS3StagingS3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationRedshiftUploadingMethodS3StagingS3BucketRegion `default:"" json:"s3_bucket_region"`
// The corresponding secret to the above access key id. See AWS docs on how to generate an access key ID and secret access key.
SecretAccessKey string `json:"secret_access_key"`
}
+func (d DestinationRedshiftUploadingMethodS3Staging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUploadingMethodS3Staging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetEncryption() *DestinationRedshiftUploadingMethodS3StagingEncryption {
+ if o == nil {
+ return nil
+ }
+ return o.Encryption
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetMethod() DestinationRedshiftUploadingMethodS3StagingMethod {
+ return DestinationRedshiftUploadingMethodS3StagingMethodS3Staging
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetPurgeStagingData() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.PurgeStagingData
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetS3BucketPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetS3BucketRegion() *DestinationRedshiftUploadingMethodS3StagingS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationRedshiftUploadingMethodS3Staging) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
+
type DestinationRedshiftUploadingMethodStandardMethod string
const (
@@ -529,7 +733,22 @@ func (e *DestinationRedshiftUploadingMethodStandardMethod) UnmarshalJSON(data []
// DestinationRedshiftUploadingMethodStandard - The method how the data will be uploaded to the database.
type DestinationRedshiftUploadingMethodStandard struct {
- Method DestinationRedshiftUploadingMethodStandardMethod `json:"method"`
+ method DestinationRedshiftUploadingMethodStandardMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationRedshiftUploadingMethodStandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUploadingMethodStandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUploadingMethodStandard) GetMethod() DestinationRedshiftUploadingMethodStandardMethod {
+ return DestinationRedshiftUploadingMethodStandardMethodStandard
}
type DestinationRedshiftUploadingMethodType string
@@ -565,21 +784,16 @@ func CreateDestinationRedshiftUploadingMethodDestinationRedshiftUploadingMethodS
}
func (u *DestinationRedshiftUploadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftUploadingMethodStandard := new(DestinationRedshiftUploadingMethodStandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUploadingMethodStandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUploadingMethodStandard, "", true, true); err == nil {
u.DestinationRedshiftUploadingMethodStandard = destinationRedshiftUploadingMethodStandard
u.Type = DestinationRedshiftUploadingMethodTypeDestinationRedshiftUploadingMethodStandard
return nil
}
destinationRedshiftUploadingMethodS3Staging := new(DestinationRedshiftUploadingMethodS3Staging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUploadingMethodS3Staging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUploadingMethodS3Staging, "", true, true); err == nil {
u.DestinationRedshiftUploadingMethodS3Staging = destinationRedshiftUploadingMethodS3Staging
u.Type = DestinationRedshiftUploadingMethodTypeDestinationRedshiftUploadingMethodS3Staging
return nil
@@ -590,20 +804,20 @@ func (u *DestinationRedshiftUploadingMethod) UnmarshalJSON(data []byte) error {
func (u DestinationRedshiftUploadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftUploadingMethodStandard != nil {
- return json.Marshal(u.DestinationRedshiftUploadingMethodStandard)
+ return utils.MarshalJSON(u.DestinationRedshiftUploadingMethodStandard, "", true)
}
if u.DestinationRedshiftUploadingMethodS3Staging != nil {
- return json.Marshal(u.DestinationRedshiftUploadingMethodS3Staging)
+ return utils.MarshalJSON(u.DestinationRedshiftUploadingMethodS3Staging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshift struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationRedshiftRedshift `json:"destinationType"`
+ destinationType DestinationRedshiftRedshift `const:"redshift" json:"destinationType"`
// Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com)
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -611,9 +825,9 @@ type DestinationRedshift struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5439" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationRedshiftSSHTunnelMethod `json:"tunnel_method,omitempty"`
// The method how the data will be uploaded to the database.
@@ -621,3 +835,81 @@ type DestinationRedshift struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationRedshift) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshift) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshift) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationRedshift) GetDestinationType() DestinationRedshiftRedshift {
+ return DestinationRedshiftRedshiftRedshift
+}
+
+func (o *DestinationRedshift) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationRedshift) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationRedshift) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationRedshift) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationRedshift) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationRedshift) GetTunnelMethod() *DestinationRedshiftSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationRedshift) GetUploadingMethod() *DestinationRedshiftUploadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.UploadingMethod
+}
+
+func (o *DestinationRedshift) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredshiftcreaterequest.go b/internal/sdk/pkg/models/shared/destinationredshiftcreaterequest.go
old mode 100755
new mode 100644
index fd9384c73..2f70c40fe
--- a/internal/sdk/pkg/models/shared/destinationredshiftcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationredshiftcreaterequest.go
@@ -7,3 +7,24 @@ type DestinationRedshiftCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationRedshiftCreateRequest) GetConfiguration() DestinationRedshift {
+ if o == nil {
+ return DestinationRedshift{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationRedshiftCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationRedshiftCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredshiftputrequest.go b/internal/sdk/pkg/models/shared/destinationredshiftputrequest.go
old mode 100755
new mode 100644
index 263693349..32846e065
--- a/internal/sdk/pkg/models/shared/destinationredshiftputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationredshiftputrequest.go
@@ -7,3 +7,24 @@ type DestinationRedshiftPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationRedshiftPutRequest) GetConfiguration() DestinationRedshiftUpdate {
+ if o == nil {
+ return DestinationRedshiftUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationRedshiftPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationRedshiftPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationredshiftupdate.go b/internal/sdk/pkg/models/shared/destinationredshiftupdate.go
old mode 100755
new mode 100644
index c5c2f5186..7fc1ba0f7
--- a/internal/sdk/pkg/models/shared/destinationredshiftupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationredshiftupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod) Unmarshal
// DestinationRedshiftUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationRedshiftUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationRedshiftUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationRedshiftUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationRedshiftUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateDestinationRedshiftUpdateSSHTunnelMethodDestinationRedshiftUpdateSSHT
}
func (u *DestinationRedshiftUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftUpdateSSHTunnelMethodNoTunnel := new(DestinationRedshiftUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel = destinationRedshiftUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication = destinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication = destinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *DestinationRedshiftUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) er
func (u DestinationRedshiftUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType string
@@ -236,11 +330,33 @@ func (e *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelo
// DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption - Staging data will be encrypted using AES-CBC envelope encryption.
type DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption struct {
- EncryptionType DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType `json:"encryption_type"`
+ encryptionType *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType `const:"aes_cbc_envelope" json:"encryption_type"`
// The key, base64-encoded. Must be either 128, 192, or 256 bits. Leave blank to have Airbyte generate an ephemeral key for each sync.
KeyEncryptingKey *string `json:"key_encrypting_key,omitempty"`
}
+func (d DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) GetEncryptionType() *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionType {
+ return DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryptionEncryptionTypeAesCbcEnvelope.ToPointer()
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption) GetKeyEncryptingKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.KeyEncryptingKey
+}
+
type DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType string
const (
@@ -267,7 +383,22 @@ func (e *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption
// DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption - Staging data will be stored in plaintext.
type DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption struct {
- EncryptionType DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType `json:"encryption_type"`
+ encryptionType *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType `const:"none" json:"encryption_type"`
+}
+
+func (d DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption) GetEncryptionType() *DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionType {
+ return DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryptionEncryptionTypeNone.ToPointer()
}
type DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionType string
@@ -303,21 +434,16 @@ func CreateDestinationRedshiftUpdateUploadingMethodS3StagingEncryptionDestinatio
}
func (u *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption := new(DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption, "", true, true); err == nil {
u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption = destinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption
u.Type = DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionTypeDestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption
return nil
}
destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption := new(DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption, "", true, true); err == nil {
u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption = destinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
u.Type = DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionTypeDestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption
return nil
@@ -328,14 +454,14 @@ func (u *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption) UnmarshalJ
func (u DestinationRedshiftUpdateUploadingMethodS3StagingEncryption) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption != nil {
- return json.Marshal(u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionNoEncryption, "", true)
}
if u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption != nil {
- return json.Marshal(u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateUploadingMethodS3StagingEncryptionAESCBCEnvelopeEncryption, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshiftUpdateUploadingMethodS3StagingMethod string
@@ -463,22 +589,100 @@ type DestinationRedshiftUpdateUploadingMethodS3Staging struct {
// How to encrypt the staging data
Encryption *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption `json:"encryption,omitempty"`
// Number of file buffers allocated for writing data. Increasing this number is beneficial for connections using Change Data Capture (CDC) and up to the number of streams within a connection. Increasing the number of file buffers past the maximum number of streams has deteriorating effects
- FileBufferCount *int64 `json:"file_buffer_count,omitempty"`
+ FileBufferCount *int64 `default:"10" json:"file_buffer_count"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
- Method DestinationRedshiftUpdateUploadingMethodS3StagingMethod `json:"method"`
+ method DestinationRedshiftUpdateUploadingMethodS3StagingMethod `const:"S3 Staging" json:"method"`
// Whether to delete the staging files from S3 after completing the sync. See docs for details.
- PurgeStagingData *bool `json:"purge_staging_data,omitempty"`
+ PurgeStagingData *bool `default:"true" json:"purge_staging_data"`
// The name of the staging S3 bucket to use if utilising a COPY strategy. COPY is recommended for production workloads for better speed and scalability. See AWS docs for more details.
S3BucketName string `json:"s3_bucket_name"`
// The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See path's name recommendations for more details.
S3BucketPath *string `json:"s3_bucket_path,omitempty"`
// The region of the S3 staging bucket to use if utilising a COPY strategy. See AWS docs for details.
- S3BucketRegion DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion `default:"" json:"s3_bucket_region"`
// The corresponding secret to the above access key id. See AWS docs on how to generate an access key ID and secret access key.
SecretAccessKey string `json:"secret_access_key"`
}
+func (d DestinationRedshiftUpdateUploadingMethodS3Staging) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateUploadingMethodS3Staging) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetEncryption() *DestinationRedshiftUpdateUploadingMethodS3StagingEncryption {
+ if o == nil {
+ return nil
+ }
+ return o.Encryption
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetFileBufferCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.FileBufferCount
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetMethod() DestinationRedshiftUpdateUploadingMethodS3StagingMethod {
+ return DestinationRedshiftUpdateUploadingMethodS3StagingMethodS3Staging
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetPurgeStagingData() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.PurgeStagingData
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetS3BucketPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetS3BucketRegion() *DestinationRedshiftUpdateUploadingMethodS3StagingS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodS3Staging) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
+
type DestinationRedshiftUpdateUploadingMethodStandardMethod string
const (
@@ -505,7 +709,22 @@ func (e *DestinationRedshiftUpdateUploadingMethodStandardMethod) UnmarshalJSON(d
// DestinationRedshiftUpdateUploadingMethodStandard - The method how the data will be uploaded to the database.
type DestinationRedshiftUpdateUploadingMethodStandard struct {
- Method DestinationRedshiftUpdateUploadingMethodStandardMethod `json:"method"`
+ method DestinationRedshiftUpdateUploadingMethodStandardMethod `const:"Standard" json:"method"`
+}
+
+func (d DestinationRedshiftUpdateUploadingMethodStandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdateUploadingMethodStandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdateUploadingMethodStandard) GetMethod() DestinationRedshiftUpdateUploadingMethodStandardMethod {
+ return DestinationRedshiftUpdateUploadingMethodStandardMethodStandard
}
type DestinationRedshiftUpdateUploadingMethodType string
@@ -541,21 +760,16 @@ func CreateDestinationRedshiftUpdateUploadingMethodDestinationRedshiftUpdateUplo
}
func (u *DestinationRedshiftUpdateUploadingMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationRedshiftUpdateUploadingMethodStandard := new(DestinationRedshiftUpdateUploadingMethodStandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateUploadingMethodStandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateUploadingMethodStandard, "", true, true); err == nil {
u.DestinationRedshiftUpdateUploadingMethodStandard = destinationRedshiftUpdateUploadingMethodStandard
u.Type = DestinationRedshiftUpdateUploadingMethodTypeDestinationRedshiftUpdateUploadingMethodStandard
return nil
}
destinationRedshiftUpdateUploadingMethodS3Staging := new(DestinationRedshiftUpdateUploadingMethodS3Staging)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationRedshiftUpdateUploadingMethodS3Staging); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateUploadingMethodS3Staging, "", true, true); err == nil {
u.DestinationRedshiftUpdateUploadingMethodS3Staging = destinationRedshiftUpdateUploadingMethodS3Staging
u.Type = DestinationRedshiftUpdateUploadingMethodTypeDestinationRedshiftUpdateUploadingMethodS3Staging
return nil
@@ -566,14 +780,14 @@ func (u *DestinationRedshiftUpdateUploadingMethod) UnmarshalJSON(data []byte) er
func (u DestinationRedshiftUpdateUploadingMethod) MarshalJSON() ([]byte, error) {
if u.DestinationRedshiftUpdateUploadingMethodStandard != nil {
- return json.Marshal(u.DestinationRedshiftUpdateUploadingMethodStandard)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateUploadingMethodStandard, "", true)
}
if u.DestinationRedshiftUpdateUploadingMethodS3Staging != nil {
- return json.Marshal(u.DestinationRedshiftUpdateUploadingMethodS3Staging)
+ return utils.MarshalJSON(u.DestinationRedshiftUpdateUploadingMethodS3Staging, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationRedshiftUpdate struct {
@@ -586,9 +800,9 @@ type DestinationRedshiftUpdate struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5439" json:"port"`
// The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public".
- Schema string `json:"schema"`
+ Schema *string `default:"public" json:"schema"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *DestinationRedshiftUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"`
// The method how the data will be uploaded to the database.
@@ -596,3 +810,77 @@ type DestinationRedshiftUpdate struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationRedshiftUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationRedshiftUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationRedshiftUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationRedshiftUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationRedshiftUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationRedshiftUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationRedshiftUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationRedshiftUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *DestinationRedshiftUpdate) GetTunnelMethod() *DestinationRedshiftUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationRedshiftUpdate) GetUploadingMethod() *DestinationRedshiftUpdateUploadingMethod {
+ if o == nil {
+ return nil
+ }
+ return o.UploadingMethod
+}
+
+func (o *DestinationRedshiftUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationresponse.go b/internal/sdk/pkg/models/shared/destinationresponse.go
old mode 100755
new mode 100644
index 7f43a8b59..48d7243fb
--- a/internal/sdk/pkg/models/shared/destinationresponse.go
+++ b/internal/sdk/pkg/models/shared/destinationresponse.go
@@ -11,3 +11,38 @@ type DestinationResponse struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationResponse) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *DestinationResponse) GetDestinationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationID
+}
+
+func (o *DestinationResponse) GetDestinationType() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationType
+}
+
+func (o *DestinationResponse) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationResponse) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3.go b/internal/sdk/pkg/models/shared/destinations3.go
old mode 100755
new mode 100644
index bb6abc638..a16daa5c0
--- a/internal/sdk/pkg/models/shared/destinations3.go
+++ b/internal/sdk/pkg/models/shared/destinations3.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -103,18 +103,78 @@ func (e *DestinationS3OutputFormatParquetColumnarStorageFormatType) UnmarshalJSO
// DestinationS3OutputFormatParquetColumnarStorage - Format of the data output. See here for more details
type DestinationS3OutputFormatParquetColumnarStorage struct {
// This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
- BlockSizeMb *int64 `json:"block_size_mb,omitempty"`
+ BlockSizeMb *int64 `default:"128" json:"block_size_mb"`
// The compression algorithm used to compress data pages.
- CompressionCodec *DestinationS3OutputFormatParquetColumnarStorageCompressionCodec `json:"compression_codec,omitempty"`
+ CompressionCodec *DestinationS3OutputFormatParquetColumnarStorageCompressionCodec `default:"UNCOMPRESSED" json:"compression_codec"`
// Default: true.
- DictionaryEncoding *bool `json:"dictionary_encoding,omitempty"`
+ DictionaryEncoding *bool `default:"true" json:"dictionary_encoding"`
// There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
- DictionaryPageSizeKb *int64 `json:"dictionary_page_size_kb,omitempty"`
- FormatType DestinationS3OutputFormatParquetColumnarStorageFormatType `json:"format_type"`
+ DictionaryPageSizeKb *int64 `default:"1024" json:"dictionary_page_size_kb"`
+ FormatType *DestinationS3OutputFormatParquetColumnarStorageFormatType `default:"Parquet" json:"format_type"`
// Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- MaxPaddingSizeMb *int64 `json:"max_padding_size_mb,omitempty"`
+ MaxPaddingSizeMb *int64 `default:"8" json:"max_padding_size_mb"`
// The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
- PageSizeKb *int64 `json:"page_size_kb,omitempty"`
+ PageSizeKb *int64 `default:"1024" json:"page_size_kb"`
+}
+
+func (d DestinationS3OutputFormatParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetBlockSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSizeMb
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetCompressionCodec() *DestinationS3OutputFormatParquetColumnarStorageCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetDictionaryEncoding() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryEncoding
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetDictionaryPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryPageSizeKb
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetFormatType() *DestinationS3OutputFormatParquetColumnarStorageFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetMaxPaddingSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPaddingSizeMb
+}
+
+func (o *DestinationS3OutputFormatParquetColumnarStorage) GetPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSizeKb
}
type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType string
@@ -143,7 +203,25 @@ func (e *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCo
// DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -172,7 +250,25 @@ func (e *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoComp
// DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -208,21 +304,16 @@ func CreateDestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionDest
}
func (u *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -233,14 +324,14 @@ func (u *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompression) Unma
func (u DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
@@ -300,8 +391,40 @@ type DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
- Flattening *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFlattening `json:"flattening,omitempty"`
- FormatType DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ Flattening *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFlattening `default:"No flattening" json:"flattening"`
+ FormatType *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON) GetFlattening() *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationS3OutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType string
@@ -330,7 +453,25 @@ func (e *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIPCompress
// DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP struct {
- CompressionType *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP) GetCompressionType() *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType string
@@ -359,7 +500,25 @@ func (e *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompressio
// DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression struct {
- CompressionType *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression) GetCompressionType() *DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionType string
@@ -395,21 +554,16 @@ func CreateDestinationS3OutputFormatCSVCommaSeparatedValuesCompressionDestinatio
}
func (u *DestinationS3OutputFormatCSVCommaSeparatedValuesCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression := new(DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression = destinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression
u.Type = DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression
return nil
}
destinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP := new(DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true, true); err == nil {
u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP = destinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP
u.Type = DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP
return nil
@@ -420,14 +574,14 @@ func (u *DestinationS3OutputFormatCSVCommaSeparatedValuesCompression) UnmarshalJ
func (u DestinationS3OutputFormatCSVCommaSeparatedValuesCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true)
}
if u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -487,8 +641,40 @@ type DestinationS3OutputFormatCSVCommaSeparatedValues struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
Compression *DestinationS3OutputFormatCSVCommaSeparatedValuesCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening `json:"flattening"`
- FormatType DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening `default:"No flattening" json:"flattening"`
+ FormatType *DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType `default:"CSV" json:"format_type"`
+}
+
+func (d DestinationS3OutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatCSVCommaSeparatedValues) GetCompression() *DestinationS3OutputFormatCSVCommaSeparatedValuesCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3OutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationS3OutputFormatCSVCommaSeparatedValuesFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3OutputFormatCSVCommaSeparatedValues) GetFormatType() *DestinationS3OutputFormatCSVCommaSeparatedValuesFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec string
@@ -517,7 +703,25 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec) Unm
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec `default:"snappy" json:"codec"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappyCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec string
@@ -546,11 +750,43 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec)
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec `default:"zstandard" json:"codec"`
// Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"3" json:"compression_level"`
// If true, include a checksum with each data block.
- IncludeChecksum *bool `json:"include_checksum,omitempty"`
+ IncludeChecksum *bool `default:"false" json:"include_checksum"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandardCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard) GetIncludeChecksum() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeChecksum
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec string
@@ -579,9 +815,34 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec) Unmarsh
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec `default:"xz" json:"codec"`
// See here for details.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"6" json:"compression_level"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXzCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec string
@@ -610,7 +871,25 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec) Unma
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec `default:"bzip2" json:"codec"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2Codec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec string
@@ -639,9 +918,34 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec) Un
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec `default:"Deflate" json:"codec"`
// 0: no compression & fastest, 9: best compression & slowest.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"0" json:"compression_level"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflateCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec string
@@ -670,7 +974,25 @@ func (e *DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCod
// DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression - The compression algorithm used to compress data. Default to no compression.
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression struct {
- Codec DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `json:"codec"`
+ Codec *DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `default:"no compression" json:"codec"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression) GetCodec() *DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3OutputFormatAvroApacheAvroCompressionCodecType string
@@ -750,57 +1072,44 @@ func CreateDestinationS3OutputFormatAvroApacheAvroCompressionCodecDestinationS3O
}
func (u *DestinationS3OutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression = destinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression
return nil
}
destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 = destinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2
return nil
}
destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy = destinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy
return nil
}
destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate = destinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate
return nil
}
destinationS3OutputFormatAvroApacheAvroCompressionCodecXz := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecXz); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecXz, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz = destinationS3OutputFormatAvroApacheAvroCompressionCodecXz
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecXz
return nil
}
destinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard := new(DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard = destinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard
u.Type = DestinationS3OutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard
return nil
@@ -811,30 +1120,30 @@ func (u *DestinationS3OutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON(
func (u DestinationS3OutputFormatAvroApacheAvroCompressionCodec) MarshalJSON() ([]byte, error) {
if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true)
}
- if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2)
- }
-
- if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy)
+ if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate, "", true)
}
- if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecDeflate)
+ if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecBzip2, "", true)
}
if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecXz, "", true)
}
if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecZstandard, "", true)
+ }
+
+ if u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvroCompressionCodecSnappy, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationS3OutputFormatAvroApacheAvroFormatType string
@@ -865,7 +1174,32 @@ func (e *DestinationS3OutputFormatAvroApacheAvroFormatType) UnmarshalJSON(data [
type DestinationS3OutputFormatAvroApacheAvro struct {
// The compression algorithm used to compress data. Default to no compression.
CompressionCodec DestinationS3OutputFormatAvroApacheAvroCompressionCodec `json:"compression_codec"`
- FormatType DestinationS3OutputFormatAvroApacheAvroFormatType `json:"format_type"`
+ FormatType *DestinationS3OutputFormatAvroApacheAvroFormatType `default:"Avro" json:"format_type"`
+}
+
+func (d DestinationS3OutputFormatAvroApacheAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3OutputFormatAvroApacheAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvro) GetCompressionCodec() DestinationS3OutputFormatAvroApacheAvroCompressionCodec {
+ if o == nil {
+ return DestinationS3OutputFormatAvroApacheAvroCompressionCodec{}
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationS3OutputFormatAvroApacheAvro) GetFormatType() *DestinationS3OutputFormatAvroApacheAvroFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3OutputFormatType string
@@ -923,39 +1257,30 @@ func CreateDestinationS3OutputFormatDestinationS3OutputFormatParquetColumnarStor
}
func (u *DestinationS3OutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3OutputFormatAvroApacheAvro := new(DestinationS3OutputFormatAvroApacheAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatAvroApacheAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatAvroApacheAvro, "", true, true); err == nil {
u.DestinationS3OutputFormatAvroApacheAvro = destinationS3OutputFormatAvroApacheAvro
u.Type = DestinationS3OutputFormatTypeDestinationS3OutputFormatAvroApacheAvro
return nil
}
destinationS3OutputFormatCSVCommaSeparatedValues := new(DestinationS3OutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationS3OutputFormatCSVCommaSeparatedValues = destinationS3OutputFormatCSVCommaSeparatedValues
u.Type = DestinationS3OutputFormatTypeDestinationS3OutputFormatCSVCommaSeparatedValues
return nil
}
destinationS3OutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON = destinationS3OutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationS3OutputFormatTypeDestinationS3OutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationS3OutputFormatParquetColumnarStorage := new(DestinationS3OutputFormatParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3OutputFormatParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3OutputFormatParquetColumnarStorage, "", true, true); err == nil {
u.DestinationS3OutputFormatParquetColumnarStorage = destinationS3OutputFormatParquetColumnarStorage
u.Type = DestinationS3OutputFormatTypeDestinationS3OutputFormatParquetColumnarStorage
return nil
@@ -966,22 +1291,22 @@ func (u *DestinationS3OutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationS3OutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationS3OutputFormatAvroApacheAvro != nil {
- return json.Marshal(u.DestinationS3OutputFormatAvroApacheAvro)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatAvroApacheAvro, "", true)
}
if u.DestinationS3OutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationS3OutputFormatCSVCommaSeparatedValues)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatCSVCommaSeparatedValues, "", true)
}
if u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationS3OutputFormatParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationS3OutputFormatParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationS3OutputFormatParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3S3BucketRegion - The region of the S3 bucket. See here for all region codes.
@@ -1087,7 +1412,7 @@ func (e *DestinationS3S3BucketRegion) UnmarshalJSON(data []byte) error {
type DestinationS3 struct {
// The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
AccessKeyID *string `json:"access_key_id,omitempty"`
- DestinationType DestinationS3S3 `json:"destinationType"`
+ destinationType DestinationS3S3 `const:"s3" json:"destinationType"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
// Format of the data output. See here for more details
@@ -1097,11 +1422,89 @@ type DestinationS3 struct {
// Directory under the S3 bucket where data will be written. Read more here
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 bucket. See here for all region codes.
- S3BucketRegion DestinationS3S3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationS3S3BucketRegion `default:"" json:"s3_bucket_region"`
// Your S3 endpoint url. Read more here
- S3Endpoint *string `json:"s3_endpoint,omitempty"`
+ S3Endpoint *string `default:"" json:"s3_endpoint"`
// Format string on how data will be organized inside the S3 bucket directory. Read more here
S3PathFormat *string `json:"s3_path_format,omitempty"`
// The corresponding secret to the access key ID. Read more here
SecretAccessKey *string `json:"secret_access_key,omitempty"`
}
+
+func (d DestinationS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3) GetAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationS3) GetDestinationType() DestinationS3S3 {
+ return DestinationS3S3S3
+}
+
+func (o *DestinationS3) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationS3) GetFormat() DestinationS3OutputFormat {
+ if o == nil {
+ return DestinationS3OutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationS3) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationS3) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationS3) GetS3BucketRegion() *DestinationS3S3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationS3) GetS3Endpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3Endpoint
+}
+
+func (o *DestinationS3) GetS3PathFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3PathFormat
+}
+
+func (o *DestinationS3) GetSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3createrequest.go b/internal/sdk/pkg/models/shared/destinations3createrequest.go
old mode 100755
new mode 100644
index 2d5bfc5ba..c6c35a759
--- a/internal/sdk/pkg/models/shared/destinations3createrequest.go
+++ b/internal/sdk/pkg/models/shared/destinations3createrequest.go
@@ -7,3 +7,24 @@ type DestinationS3CreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationS3CreateRequest) GetConfiguration() DestinationS3 {
+ if o == nil {
+ return DestinationS3{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationS3CreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationS3CreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3glue.go b/internal/sdk/pkg/models/shared/destinations3glue.go
old mode 100755
new mode 100644
index f6d876d72..b2a5a55b0
--- a/internal/sdk/pkg/models/shared/destinations3glue.go
+++ b/internal/sdk/pkg/models/shared/destinations3glue.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -59,7 +59,25 @@ func (e *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZ
// DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -88,7 +106,25 @@ func (e *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNo
// DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -124,21 +160,16 @@ func CreateDestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression
}
func (u *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -149,14 +180,14 @@ func (u *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression)
func (u DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
@@ -216,8 +247,40 @@ type DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
- Flattening *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFlattening `json:"flattening,omitempty"`
- FormatType DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ Flattening *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFlattening `default:"Root level flattening" json:"flattening"`
+ FormatType *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON) GetFlattening() *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3GlueOutputFormatType string
@@ -242,12 +305,9 @@ func CreateDestinationS3GlueOutputFormatDestinationS3GlueOutputFormatJSONLinesNe
}
func (u *DestinationS3GlueOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON = destinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationS3GlueOutputFormatTypeDestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON
return nil
@@ -258,10 +318,10 @@ func (u *DestinationS3GlueOutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationS3GlueOutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3GlueSerializationLibrary - The library that your query engine will use for reading and writing data in your lake.
@@ -395,7 +455,7 @@ func (e *DestinationS3GlueS3BucketRegion) UnmarshalJSON(data []byte) error {
type DestinationS3Glue struct {
// The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here.
AccessKeyID *string `json:"access_key_id,omitempty"`
- DestinationType DestinationS3GlueS3Glue `json:"destinationType"`
+ destinationType DestinationS3GlueS3Glue `const:"s3-glue" json:"destinationType"`
// The pattern allows you to set the file-name format for the S3 staging file(s)
FileNamePattern *string `json:"file_name_pattern,omitempty"`
// Format of the data output. See here for more details
@@ -403,17 +463,109 @@ type DestinationS3Glue struct {
// Name of the glue database for creating the tables, leave blank if no integration
GlueDatabase string `json:"glue_database"`
// The library that your query engine will use for reading and writing data in your lake.
- GlueSerializationLibrary DestinationS3GlueSerializationLibrary `json:"glue_serialization_library"`
+ GlueSerializationLibrary *DestinationS3GlueSerializationLibrary `default:"org.openx.data.jsonserde.JsonSerDe" json:"glue_serialization_library"`
// The name of the S3 bucket. Read more here.
S3BucketName string `json:"s3_bucket_name"`
// Directory under the S3 bucket where data will be written. Read more here
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 bucket. See here for all region codes.
- S3BucketRegion DestinationS3GlueS3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationS3GlueS3BucketRegion `default:"" json:"s3_bucket_region"`
// Your S3 endpoint url. Read more here
- S3Endpoint *string `json:"s3_endpoint,omitempty"`
+ S3Endpoint *string `default:"" json:"s3_endpoint"`
// Format string on how data will be organized inside the S3 bucket directory. Read more here
S3PathFormat *string `json:"s3_path_format,omitempty"`
// The corresponding secret to the access key ID. Read more here
SecretAccessKey *string `json:"secret_access_key,omitempty"`
}
+
+func (d DestinationS3Glue) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3Glue) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3Glue) GetAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationS3Glue) GetDestinationType() DestinationS3GlueS3Glue {
+ return DestinationS3GlueS3GlueS3Glue
+}
+
+func (o *DestinationS3Glue) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationS3Glue) GetFormat() DestinationS3GlueOutputFormat {
+ if o == nil {
+ return DestinationS3GlueOutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationS3Glue) GetGlueDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.GlueDatabase
+}
+
+func (o *DestinationS3Glue) GetGlueSerializationLibrary() *DestinationS3GlueSerializationLibrary {
+ if o == nil {
+ return nil
+ }
+ return o.GlueSerializationLibrary
+}
+
+func (o *DestinationS3Glue) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationS3Glue) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationS3Glue) GetS3BucketRegion() *DestinationS3GlueS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationS3Glue) GetS3Endpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3Endpoint
+}
+
+func (o *DestinationS3Glue) GetS3PathFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3PathFormat
+}
+
+func (o *DestinationS3Glue) GetSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3gluecreaterequest.go b/internal/sdk/pkg/models/shared/destinations3gluecreaterequest.go
old mode 100755
new mode 100644
index 4ac7ada4a..dd684b40c
--- a/internal/sdk/pkg/models/shared/destinations3gluecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinations3gluecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationS3GlueCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationS3GlueCreateRequest) GetConfiguration() DestinationS3Glue {
+ if o == nil {
+ return DestinationS3Glue{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationS3GlueCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationS3GlueCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3glueputrequest.go b/internal/sdk/pkg/models/shared/destinations3glueputrequest.go
old mode 100755
new mode 100644
index d09f93455..99d777229
--- a/internal/sdk/pkg/models/shared/destinations3glueputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinations3glueputrequest.go
@@ -7,3 +7,24 @@ type DestinationS3GluePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationS3GluePutRequest) GetConfiguration() DestinationS3GlueUpdate {
+ if o == nil {
+ return DestinationS3GlueUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationS3GluePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationS3GluePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3glueupdate.go b/internal/sdk/pkg/models/shared/destinations3glueupdate.go
old mode 100755
new mode 100644
index faf26f12c..568d8b1c4
--- a/internal/sdk/pkg/models/shared/destinations3glueupdate.go
+++ b/internal/sdk/pkg/models/shared/destinations3glueupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,25 @@ func (e *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompres
// DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -64,7 +82,25 @@ func (e *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompres
// DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -100,21 +136,16 @@ func CreateDestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompr
}
func (u *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -125,14 +156,14 @@ func (u *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompres
func (u DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
@@ -192,8 +223,40 @@ type DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
- Flattening *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening `json:"flattening,omitempty"`
- FormatType DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ Flattening *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening `default:"Root level flattening" json:"flattening"`
+ FormatType *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFlattening() *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3GlueUpdateOutputFormatType string
@@ -218,12 +281,9 @@ func CreateDestinationS3GlueUpdateOutputFormatDestinationS3GlueUpdateOutputForma
}
func (u *DestinationS3GlueUpdateOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON = destinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationS3GlueUpdateOutputFormatTypeDestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON
return nil
@@ -234,10 +294,10 @@ func (u *DestinationS3GlueUpdateOutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationS3GlueUpdateOutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3GlueUpdateSerializationLibrary - The library that your query engine will use for reading and writing data in your lake.
@@ -378,17 +438,105 @@ type DestinationS3GlueUpdate struct {
// Name of the glue database for creating the tables, leave blank if no integration
GlueDatabase string `json:"glue_database"`
// The library that your query engine will use for reading and writing data in your lake.
- GlueSerializationLibrary DestinationS3GlueUpdateSerializationLibrary `json:"glue_serialization_library"`
+ GlueSerializationLibrary *DestinationS3GlueUpdateSerializationLibrary `default:"org.openx.data.jsonserde.JsonSerDe" json:"glue_serialization_library"`
// The name of the S3 bucket. Read more here.
S3BucketName string `json:"s3_bucket_name"`
// Directory under the S3 bucket where data will be written. Read more here
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 bucket. See here for all region codes.
- S3BucketRegion DestinationS3GlueUpdateS3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationS3GlueUpdateS3BucketRegion `default:"" json:"s3_bucket_region"`
// Your S3 endpoint url. Read more here
- S3Endpoint *string `json:"s3_endpoint,omitempty"`
+ S3Endpoint *string `default:"" json:"s3_endpoint"`
// Format string on how data will be organized inside the S3 bucket directory. Read more here
S3PathFormat *string `json:"s3_path_format,omitempty"`
// The corresponding secret to the access key ID. Read more here
SecretAccessKey *string `json:"secret_access_key,omitempty"`
}
+
+func (d DestinationS3GlueUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3GlueUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3GlueUpdate) GetAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationS3GlueUpdate) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationS3GlueUpdate) GetFormat() DestinationS3GlueUpdateOutputFormat {
+ if o == nil {
+ return DestinationS3GlueUpdateOutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationS3GlueUpdate) GetGlueDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.GlueDatabase
+}
+
+func (o *DestinationS3GlueUpdate) GetGlueSerializationLibrary() *DestinationS3GlueUpdateSerializationLibrary {
+ if o == nil {
+ return nil
+ }
+ return o.GlueSerializationLibrary
+}
+
+func (o *DestinationS3GlueUpdate) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationS3GlueUpdate) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationS3GlueUpdate) GetS3BucketRegion() *DestinationS3GlueUpdateS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationS3GlueUpdate) GetS3Endpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3Endpoint
+}
+
+func (o *DestinationS3GlueUpdate) GetS3PathFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3PathFormat
+}
+
+func (o *DestinationS3GlueUpdate) GetSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3putrequest.go b/internal/sdk/pkg/models/shared/destinations3putrequest.go
old mode 100755
new mode 100644
index 4141dfe02..fc0f570ec
--- a/internal/sdk/pkg/models/shared/destinations3putrequest.go
+++ b/internal/sdk/pkg/models/shared/destinations3putrequest.go
@@ -7,3 +7,24 @@ type DestinationS3PutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationS3PutRequest) GetConfiguration() DestinationS3Update {
+ if o == nil {
+ return DestinationS3Update{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationS3PutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationS3PutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinations3update.go b/internal/sdk/pkg/models/shared/destinations3update.go
old mode 100755
new mode 100644
index 62ebb26be..2b48cf497
--- a/internal/sdk/pkg/models/shared/destinations3update.go
+++ b/internal/sdk/pkg/models/shared/destinations3update.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -79,18 +79,78 @@ func (e *DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType) Unmars
// DestinationS3UpdateOutputFormatParquetColumnarStorage - Format of the data output. See here for more details
type DestinationS3UpdateOutputFormatParquetColumnarStorage struct {
// This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB.
- BlockSizeMb *int64 `json:"block_size_mb,omitempty"`
+ BlockSizeMb *int64 `default:"128" json:"block_size_mb"`
// The compression algorithm used to compress data pages.
- CompressionCodec *DestinationS3UpdateOutputFormatParquetColumnarStorageCompressionCodec `json:"compression_codec,omitempty"`
+ CompressionCodec *DestinationS3UpdateOutputFormatParquetColumnarStorageCompressionCodec `default:"UNCOMPRESSED" json:"compression_codec"`
// Default: true.
- DictionaryEncoding *bool `json:"dictionary_encoding,omitempty"`
+ DictionaryEncoding *bool `default:"true" json:"dictionary_encoding"`
// There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB.
- DictionaryPageSizeKb *int64 `json:"dictionary_page_size_kb,omitempty"`
- FormatType DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType `json:"format_type"`
+ DictionaryPageSizeKb *int64 `default:"1024" json:"dictionary_page_size_kb"`
+ FormatType *DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType `default:"Parquet" json:"format_type"`
// Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB.
- MaxPaddingSizeMb *int64 `json:"max_padding_size_mb,omitempty"`
+ MaxPaddingSizeMb *int64 `default:"8" json:"max_padding_size_mb"`
// The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB.
- PageSizeKb *int64 `json:"page_size_kb,omitempty"`
+ PageSizeKb *int64 `default:"1024" json:"page_size_kb"`
+}
+
+func (d DestinationS3UpdateOutputFormatParquetColumnarStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatParquetColumnarStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetBlockSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSizeMb
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetCompressionCodec() *DestinationS3UpdateOutputFormatParquetColumnarStorageCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetDictionaryEncoding() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryEncoding
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetDictionaryPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DictionaryPageSizeKb
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetFormatType() *DestinationS3UpdateOutputFormatParquetColumnarStorageFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetMaxPaddingSizeMb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPaddingSizeMb
+}
+
+func (o *DestinationS3UpdateOutputFormatParquetColumnarStorage) GetPageSizeKb() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSizeKb
}
type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType string
@@ -119,7 +179,25 @@ func (e *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression
// DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP struct {
- CompressionType *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP) GetCompressionType() *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType string
@@ -148,7 +226,25 @@ func (e *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression
// DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression struct {
- CompressionType *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression) GetCompressionType() *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionType string
@@ -184,21 +280,16 @@ func CreateDestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressi
}
func (u *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression := new(DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression = destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
u.Type = DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression
return nil
}
destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP := new(DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP = destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
u.Type = DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionTypeDestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP
return nil
@@ -209,14 +300,14 @@ func (u *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression
func (u DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionNoCompression, "", true)
}
if u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening - Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
@@ -276,8 +367,40 @@ type DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz").
Compression *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output JSON Lines. Please refer to docs for details.
- Flattening *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening `json:"flattening,omitempty"`
- FormatType DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ Flattening *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening `default:"No flattening" json:"flattening"`
+ FormatType *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType `default:"JSONL" json:"format_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetCompression() *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFlattening() *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() *DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType string
@@ -306,7 +429,25 @@ func (e *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCo
// DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP struct {
- CompressionType *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType `default:"GZIP" json:"compression_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP) GetCompressionType() *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIPCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType string
@@ -335,7 +476,25 @@ func (e *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoComp
// DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression - Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
type DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression struct {
- CompressionType *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `json:"compression_type,omitempty"`
+ CompressionType *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType `default:"No Compression" json:"compression_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression) GetCompressionType() *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompressionCompressionType {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionType
}
type DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionType string
@@ -371,21 +530,16 @@ func CreateDestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionDest
}
func (u *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompression) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression := new(DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression = destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
u.Type = DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression
return nil
}
destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP := new(DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP = destinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP
u.Type = DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionTypeDestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP
return nil
@@ -396,14 +550,14 @@ func (u *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompression) Unma
func (u DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompression) MarshalJSON() ([]byte, error) {
if u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionNoCompression, "", true)
}
if u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompressionGZIP, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening - Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
@@ -463,8 +617,40 @@ type DestinationS3UpdateOutputFormatCSVCommaSeparatedValues struct {
// Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz").
Compression *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompression `json:"compression,omitempty"`
// Whether the input json data should be normalized (flattened) in the output CSV. Please refer to docs for details.
- Flattening DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening `json:"flattening"`
- FormatType DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType `json:"format_type"`
+ Flattening *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening `default:"No flattening" json:"flattening"`
+ FormatType *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType `default:"CSV" json:"format_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatCSVCommaSeparatedValues) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatCSVCommaSeparatedValues) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatCSVCommaSeparatedValues) GetCompression() *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesCompression {
+ if o == nil {
+ return nil
+ }
+ return o.Compression
+}
+
+func (o *DestinationS3UpdateOutputFormatCSVCommaSeparatedValues) GetFlattening() *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFlattening {
+ if o == nil {
+ return nil
+ }
+ return o.Flattening
+}
+
+func (o *DestinationS3UpdateOutputFormatCSVCommaSeparatedValues) GetFormatType() *DestinationS3UpdateOutputFormatCSVCommaSeparatedValuesFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec string
@@ -493,7 +679,25 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCode
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec `default:"snappy" json:"codec"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappyCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec string
@@ -522,11 +726,43 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardC
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec `default:"zstandard" json:"codec"`
// Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"3" json:"compression_level"`
// If true, include a checksum with each data block.
- IncludeChecksum *bool `json:"include_checksum,omitempty"`
+ IncludeChecksum *bool `default:"false" json:"include_checksum"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandardCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard) GetIncludeChecksum() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeChecksum
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec string
@@ -555,9 +791,34 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec) U
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec `default:"xz" json:"codec"`
// See here for details.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"6" json:"compression_level"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXzCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec string
@@ -586,7 +847,25 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec `default:"bzip2" json:"codec"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2Codec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec string
@@ -615,9 +894,34 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCod
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec `default:"Deflate" json:"codec"`
// 0: no compression & fastest, 9: best compression & slowest.
- CompressionLevel int64 `json:"compression_level"`
+ CompressionLevel *int64 `default:"0" json:"compression_level"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflateCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate) GetCompressionLevel() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.CompressionLevel
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec string
@@ -646,7 +950,25 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompress
// DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression - The compression algorithm used to compress data. Default to no compression.
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression struct {
- Codec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `json:"codec"`
+ Codec *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec `default:"no compression" json:"codec"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression) GetCodec() *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompressionCodec {
+ if o == nil {
+ return nil
+ }
+ return o.Codec
}
type DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecType string
@@ -726,57 +1048,44 @@ func CreateDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDestinat
}
func (u *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression
return nil
}
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2
return nil
}
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy
return nil
}
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate
return nil
}
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz
return nil
}
destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard := new(DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard = destinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
u.Type = DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecTypeDestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard
return nil
@@ -787,30 +1096,30 @@ func (u *DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec) Unmarsha
func (u DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec) MarshalJSON() ([]byte, error) {
if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecNoCompression, "", true)
}
- if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2)
- }
-
- if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy)
+ if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate, "", true)
}
- if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecDeflate)
+ if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2 != nil {
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecBzip2, "", true)
}
if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecXz, "", true)
}
if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecZstandard, "", true)
+ }
+
+ if u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy != nil {
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodecSnappy, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationS3UpdateOutputFormatAvroApacheAvroFormatType string
@@ -841,7 +1150,32 @@ func (e *DestinationS3UpdateOutputFormatAvroApacheAvroFormatType) UnmarshalJSON(
type DestinationS3UpdateOutputFormatAvroApacheAvro struct {
// The compression algorithm used to compress data. Default to no compression.
CompressionCodec DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec `json:"compression_codec"`
- FormatType DestinationS3UpdateOutputFormatAvroApacheAvroFormatType `json:"format_type"`
+ FormatType *DestinationS3UpdateOutputFormatAvroApacheAvroFormatType `default:"Avro" json:"format_type"`
+}
+
+func (d DestinationS3UpdateOutputFormatAvroApacheAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3UpdateOutputFormatAvroApacheAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvro) GetCompressionCodec() DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec {
+ if o == nil {
+ return DestinationS3UpdateOutputFormatAvroApacheAvroCompressionCodec{}
+ }
+ return o.CompressionCodec
+}
+
+func (o *DestinationS3UpdateOutputFormatAvroApacheAvro) GetFormatType() *DestinationS3UpdateOutputFormatAvroApacheAvroFormatType {
+ if o == nil {
+ return nil
+ }
+ return o.FormatType
}
type DestinationS3UpdateOutputFormatType string
@@ -899,39 +1233,30 @@ func CreateDestinationS3UpdateOutputFormatDestinationS3UpdateOutputFormatParquet
}
func (u *DestinationS3UpdateOutputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationS3UpdateOutputFormatAvroApacheAvro := new(DestinationS3UpdateOutputFormatAvroApacheAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatAvroApacheAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatAvroApacheAvro, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatAvroApacheAvro = destinationS3UpdateOutputFormatAvroApacheAvro
u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateOutputFormatAvroApacheAvro
return nil
}
destinationS3UpdateOutputFormatCSVCommaSeparatedValues := new(DestinationS3UpdateOutputFormatCSVCommaSeparatedValues)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatCSVCommaSeparatedValues); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatCSVCommaSeparatedValues, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues = destinationS3UpdateOutputFormatCSVCommaSeparatedValues
u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateOutputFormatCSVCommaSeparatedValues
return nil
}
destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON := new(DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON = destinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON
u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON
return nil
}
destinationS3UpdateOutputFormatParquetColumnarStorage := new(DestinationS3UpdateOutputFormatParquetColumnarStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationS3UpdateOutputFormatParquetColumnarStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationS3UpdateOutputFormatParquetColumnarStorage, "", true, true); err == nil {
u.DestinationS3UpdateOutputFormatParquetColumnarStorage = destinationS3UpdateOutputFormatParquetColumnarStorage
u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateOutputFormatParquetColumnarStorage
return nil
@@ -942,22 +1267,22 @@ func (u *DestinationS3UpdateOutputFormat) UnmarshalJSON(data []byte) error {
func (u DestinationS3UpdateOutputFormat) MarshalJSON() ([]byte, error) {
if u.DestinationS3UpdateOutputFormatAvroApacheAvro != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatAvroApacheAvro)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatAvroApacheAvro, "", true)
}
if u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatCSVCommaSeparatedValues, "", true)
}
if u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
if u.DestinationS3UpdateOutputFormatParquetColumnarStorage != nil {
- return json.Marshal(u.DestinationS3UpdateOutputFormatParquetColumnarStorage)
+ return utils.MarshalJSON(u.DestinationS3UpdateOutputFormatParquetColumnarStorage, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// DestinationS3UpdateS3BucketRegion - The region of the S3 bucket. See here for all region codes.
@@ -1072,11 +1397,85 @@ type DestinationS3Update struct {
// Directory under the S3 bucket where data will be written. Read more here
S3BucketPath string `json:"s3_bucket_path"`
// The region of the S3 bucket. See here for all region codes.
- S3BucketRegion DestinationS3UpdateS3BucketRegion `json:"s3_bucket_region"`
+ S3BucketRegion *DestinationS3UpdateS3BucketRegion `default:"" json:"s3_bucket_region"`
// Your S3 endpoint url. Read more here
- S3Endpoint *string `json:"s3_endpoint,omitempty"`
+ S3Endpoint *string `default:"" json:"s3_endpoint"`
// Format string on how data will be organized inside the S3 bucket directory. Read more here
S3PathFormat *string `json:"s3_path_format,omitempty"`
// The corresponding secret to the access key ID. Read more here
SecretAccessKey *string `json:"secret_access_key,omitempty"`
}
+
+func (d DestinationS3Update) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationS3Update) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationS3Update) GetAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKeyID
+}
+
+func (o *DestinationS3Update) GetFileNamePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileNamePattern
+}
+
+func (o *DestinationS3Update) GetFormat() DestinationS3UpdateOutputFormat {
+ if o == nil {
+ return DestinationS3UpdateOutputFormat{}
+ }
+ return o.Format
+}
+
+func (o *DestinationS3Update) GetS3BucketName() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketName
+}
+
+func (o *DestinationS3Update) GetS3BucketPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.S3BucketPath
+}
+
+func (o *DestinationS3Update) GetS3BucketRegion() *DestinationS3UpdateS3BucketRegion {
+ if o == nil {
+ return nil
+ }
+ return o.S3BucketRegion
+}
+
+func (o *DestinationS3Update) GetS3Endpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3Endpoint
+}
+
+func (o *DestinationS3Update) GetS3PathFormat() *string {
+ if o == nil {
+ return nil
+ }
+ return o.S3PathFormat
+}
+
+func (o *DestinationS3Update) GetSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsftpjson.go b/internal/sdk/pkg/models/shared/destinationsftpjson.go
old mode 100755
new mode 100644
index 37359b863..98e3b1ebf
--- a/internal/sdk/pkg/models/shared/destinationsftpjson.go
+++ b/internal/sdk/pkg/models/shared/destinationsftpjson.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,7 +33,7 @@ func (e *DestinationSftpJSONSftpJSON) UnmarshalJSON(data []byte) error {
}
type DestinationSftpJSON struct {
- DestinationType DestinationSftpJSONSftpJSON `json:"destinationType"`
+ destinationType DestinationSftpJSONSftpJSON `const:"sftp-json" json:"destinationType"`
// Path to the directory where json files will be written.
DestinationPath string `json:"destination_path"`
// Hostname of the SFTP server.
@@ -40,7 +41,57 @@ type DestinationSftpJSON struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the SFTP server.
- Port *int64 `json:"port,omitempty"`
+ Port *int64 `default:"22" json:"port"`
// Username to use to access the SFTP server.
Username string `json:"username"`
}
+
+func (d DestinationSftpJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSftpJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSftpJSON) GetDestinationType() DestinationSftpJSONSftpJSON {
+ return DestinationSftpJSONSftpJSONSftpJSON
+}
+
+func (o *DestinationSftpJSON) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationSftpJSON) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationSftpJSON) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationSftpJSON) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationSftpJSON) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsftpjsoncreaterequest.go b/internal/sdk/pkg/models/shared/destinationsftpjsoncreaterequest.go
old mode 100755
new mode 100644
index eb556c517..eec2add80
--- a/internal/sdk/pkg/models/shared/destinationsftpjsoncreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationsftpjsoncreaterequest.go
@@ -7,3 +7,24 @@ type DestinationSftpJSONCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationSftpJSONCreateRequest) GetConfiguration() DestinationSftpJSON {
+ if o == nil {
+ return DestinationSftpJSON{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationSftpJSONCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationSftpJSONCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsftpjsonputrequest.go b/internal/sdk/pkg/models/shared/destinationsftpjsonputrequest.go
old mode 100755
new mode 100644
index 1a7af86cd..c14396fec
--- a/internal/sdk/pkg/models/shared/destinationsftpjsonputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationsftpjsonputrequest.go
@@ -7,3 +7,24 @@ type DestinationSftpJSONPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationSftpJSONPutRequest) GetConfiguration() DestinationSftpJSONUpdate {
+ if o == nil {
+ return DestinationSftpJSONUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationSftpJSONPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationSftpJSONPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsftpjsonupdate.go b/internal/sdk/pkg/models/shared/destinationsftpjsonupdate.go
old mode 100755
new mode 100644
index fd1e2635e..954768afd
--- a/internal/sdk/pkg/models/shared/destinationsftpjsonupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationsftpjsonupdate.go
@@ -2,6 +2,10 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationSftpJSONUpdate struct {
// Path to the directory where json files will be written.
DestinationPath string `json:"destination_path"`
@@ -10,7 +14,53 @@ type DestinationSftpJSONUpdate struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the SFTP server.
- Port *int64 `json:"port,omitempty"`
+ Port *int64 `default:"22" json:"port"`
// Username to use to access the SFTP server.
Username string `json:"username"`
}
+
+func (d DestinationSftpJSONUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSftpJSONUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSftpJSONUpdate) GetDestinationPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.DestinationPath
+}
+
+func (o *DestinationSftpJSONUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationSftpJSONUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *DestinationSftpJSONUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationSftpJSONUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsnowflake.go b/internal/sdk/pkg/models/shared/destinationsnowflake.go
old mode 100755
new mode 100644
index 8af8ad074..e866b1a77
--- a/internal/sdk/pkg/models/shared/destinationsnowflake.go
+++ b/internal/sdk/pkg/models/shared/destinationsnowflake.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -34,11 +34,33 @@ func (e *DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType) Unm
}
type DestinationSnowflakeAuthorizationMethodUsernameAndPassword struct {
- AuthType *DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType `const:"Username and Password" json:"auth_type"`
// Enter the password associated with the username.
Password string `json:"password"`
}
+func (d DestinationSnowflakeAuthorizationMethodUsernameAndPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeAuthorizationMethodUsernameAndPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodUsernameAndPassword) GetAuthType() *DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthType {
+ return DestinationSnowflakeAuthorizationMethodUsernameAndPasswordAuthTypeUsernameAndPassword.ToPointer()
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodUsernameAndPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
type DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType string
const (
@@ -64,13 +86,42 @@ func (e *DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType) U
}
type DestinationSnowflakeAuthorizationMethodKeyPairAuthentication struct {
- AuthType *DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType `const:"Key Pair Authentication" json:"auth_type"`
// RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.
PrivateKey string `json:"private_key"`
// Passphrase for private key
PrivateKeyPassword *string `json:"private_key_password,omitempty"`
}
+func (d DestinationSnowflakeAuthorizationMethodKeyPairAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeAuthorizationMethodKeyPairAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodKeyPairAuthentication) GetAuthType() *DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthType {
+ return DestinationSnowflakeAuthorizationMethodKeyPairAuthenticationAuthTypeKeyPairAuthentication.ToPointer()
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodKeyPairAuthentication) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodKeyPairAuthentication) GetPrivateKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrivateKeyPassword
+}
+
type DestinationSnowflakeAuthorizationMethodOAuth20AuthType string
const (
@@ -98,7 +149,7 @@ func (e *DestinationSnowflakeAuthorizationMethodOAuth20AuthType) UnmarshalJSON(d
type DestinationSnowflakeAuthorizationMethodOAuth20 struct {
// Enter you application's Access Token
AccessToken string `json:"access_token"`
- AuthType *DestinationSnowflakeAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeAuthorizationMethodOAuth20AuthType `const:"OAuth2.0" json:"auth_type"`
// Enter your application's Client ID
ClientID *string `json:"client_id,omitempty"`
// Enter your application's Client secret
@@ -107,6 +158,49 @@ type DestinationSnowflakeAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (d DestinationSnowflakeAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodOAuth20) GetAuthType() *DestinationSnowflakeAuthorizationMethodOAuth20AuthType {
+ return DestinationSnowflakeAuthorizationMethodOAuth20AuthTypeOAuth20.ToPointer()
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *DestinationSnowflakeAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type DestinationSnowflakeAuthorizationMethodType string
const (
@@ -151,30 +245,23 @@ func CreateDestinationSnowflakeAuthorizationMethodDestinationSnowflakeAuthorizat
}
func (u *DestinationSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationSnowflakeAuthorizationMethodUsernameAndPassword := new(DestinationSnowflakeAuthorizationMethodUsernameAndPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeAuthorizationMethodUsernameAndPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeAuthorizationMethodUsernameAndPassword, "", true, true); err == nil {
u.DestinationSnowflakeAuthorizationMethodUsernameAndPassword = destinationSnowflakeAuthorizationMethodUsernameAndPassword
u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeAuthorizationMethodUsernameAndPassword
return nil
}
destinationSnowflakeAuthorizationMethodKeyPairAuthentication := new(DestinationSnowflakeAuthorizationMethodKeyPairAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeAuthorizationMethodKeyPairAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeAuthorizationMethodKeyPairAuthentication, "", true, true); err == nil {
u.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication = destinationSnowflakeAuthorizationMethodKeyPairAuthentication
u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeAuthorizationMethodKeyPairAuthentication
return nil
}
destinationSnowflakeAuthorizationMethodOAuth20 := new(DestinationSnowflakeAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeAuthorizationMethodOAuth20, "", true, true); err == nil {
u.DestinationSnowflakeAuthorizationMethodOAuth20 = destinationSnowflakeAuthorizationMethodOAuth20
u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeAuthorizationMethodOAuth20
return nil
@@ -184,19 +271,19 @@ func (u *DestinationSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) err
}
func (u DestinationSnowflakeAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.DestinationSnowflakeAuthorizationMethodUsernameAndPassword != nil {
- return json.Marshal(u.DestinationSnowflakeAuthorizationMethodUsernameAndPassword)
+ if u.DestinationSnowflakeAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.DestinationSnowflakeAuthorizationMethodOAuth20, "", true)
}
if u.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication != nil {
- return json.Marshal(u.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication)
+ return utils.MarshalJSON(u.DestinationSnowflakeAuthorizationMethodKeyPairAuthentication, "", true)
}
- if u.DestinationSnowflakeAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.DestinationSnowflakeAuthorizationMethodOAuth20)
+ if u.DestinationSnowflakeAuthorizationMethodUsernameAndPassword != nil {
+ return utils.MarshalJSON(u.DestinationSnowflakeAuthorizationMethodUsernameAndPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationSnowflakeSnowflake string
@@ -227,7 +314,7 @@ type DestinationSnowflake struct {
Credentials *DestinationSnowflakeAuthorizationMethod `json:"credentials,omitempty"`
// Enter the name of the database you want to sync data into
Database string `json:"database"`
- DestinationType DestinationSnowflakeSnowflake `json:"destinationType"`
+ destinationType DestinationSnowflakeSnowflake `const:"snowflake" json:"destinationType"`
// Enter your Snowflake account's locator (in the format ...snowflakecomputing.com)
Host string `json:"host"`
// Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3
@@ -243,3 +330,81 @@ type DestinationSnowflake struct {
// Enter the name of the warehouse that you want to sync data into
Warehouse string `json:"warehouse"`
}
+
+func (d DestinationSnowflake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflake) GetCredentials() *DestinationSnowflakeAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *DestinationSnowflake) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationSnowflake) GetDestinationType() DestinationSnowflakeSnowflake {
+ return DestinationSnowflakeSnowflakeSnowflake
+}
+
+func (o *DestinationSnowflake) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationSnowflake) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationSnowflake) GetRawDataSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RawDataSchema
+}
+
+func (o *DestinationSnowflake) GetRole() string {
+ if o == nil {
+ return ""
+ }
+ return o.Role
+}
+
+func (o *DestinationSnowflake) GetSchema() string {
+ if o == nil {
+ return ""
+ }
+ return o.Schema
+}
+
+func (o *DestinationSnowflake) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
+func (o *DestinationSnowflake) GetWarehouse() string {
+ if o == nil {
+ return ""
+ }
+ return o.Warehouse
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsnowflakecreaterequest.go b/internal/sdk/pkg/models/shared/destinationsnowflakecreaterequest.go
old mode 100755
new mode 100644
index 2e063ab87..4e3071b09
--- a/internal/sdk/pkg/models/shared/destinationsnowflakecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationsnowflakecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationSnowflakeCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationSnowflakeCreateRequest) GetConfiguration() DestinationSnowflake {
+ if o == nil {
+ return DestinationSnowflake{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationSnowflakeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationSnowflakeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsnowflakeputrequest.go b/internal/sdk/pkg/models/shared/destinationsnowflakeputrequest.go
old mode 100755
new mode 100644
index 3dd4e15ac..f00c7d343
--- a/internal/sdk/pkg/models/shared/destinationsnowflakeputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationsnowflakeputrequest.go
@@ -7,3 +7,24 @@ type DestinationSnowflakePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationSnowflakePutRequest) GetConfiguration() DestinationSnowflakeUpdate {
+ if o == nil {
+ return DestinationSnowflakeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationSnowflakePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationSnowflakePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go b/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go
old mode 100755
new mode 100644
index d5f7e7d2e..003080a52
--- a/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -34,11 +34,33 @@ func (e *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthTyp
}
type DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword struct {
- AuthType *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType `const:"Username and Password" json:"auth_type"`
// Enter the password associated with the username.
Password string `json:"password"`
}
+func (d DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword) GetAuthType() *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType {
+ return DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthTypeUsernameAndPassword.ToPointer()
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
type DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType string
const (
@@ -64,13 +86,42 @@ func (e *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthT
}
type DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication struct {
- AuthType *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType `const:"Key Pair Authentication" json:"auth_type"`
// RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key.
PrivateKey string `json:"private_key"`
// Passphrase for private key
PrivateKeyPassword *string `json:"private_key_password,omitempty"`
}
+func (d DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication) GetAuthType() *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthType {
+ return DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthenticationAuthTypeKeyPairAuthentication.ToPointer()
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication) GetPrivateKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrivateKeyPassword
+}
+
type DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType string
const (
@@ -98,7 +149,7 @@ func (e *DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType) Unmarshal
type DestinationSnowflakeUpdateAuthorizationMethodOAuth20 struct {
// Enter you application's Access Token
AccessToken string `json:"access_token"`
- AuthType *DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType `const:"OAuth2.0" json:"auth_type"`
// Enter your application's Client ID
ClientID *string `json:"client_id,omitempty"`
// Enter your application's Client secret
@@ -107,6 +158,49 @@ type DestinationSnowflakeUpdateAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (d DestinationSnowflakeUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) GetAuthType() *DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthType {
+ return DestinationSnowflakeUpdateAuthorizationMethodOAuth20AuthTypeOAuth20.ToPointer()
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *DestinationSnowflakeUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type DestinationSnowflakeUpdateAuthorizationMethodType string
const (
@@ -151,30 +245,23 @@ func CreateDestinationSnowflakeUpdateAuthorizationMethodDestinationSnowflakeUpda
}
func (u *DestinationSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword := new(DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword, "", true, true); err == nil {
u.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword = destinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword
u.Type = DestinationSnowflakeUpdateAuthorizationMethodTypeDestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword
return nil
}
destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication := new(DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication, "", true, true); err == nil {
u.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication = destinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication
u.Type = DestinationSnowflakeUpdateAuthorizationMethodTypeDestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication
return nil
}
destinationSnowflakeUpdateAuthorizationMethodOAuth20 := new(DestinationSnowflakeUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationSnowflakeUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationSnowflakeUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.DestinationSnowflakeUpdateAuthorizationMethodOAuth20 = destinationSnowflakeUpdateAuthorizationMethodOAuth20
u.Type = DestinationSnowflakeUpdateAuthorizationMethodTypeDestinationSnowflakeUpdateAuthorizationMethodOAuth20
return nil
@@ -184,19 +271,19 @@ func (u *DestinationSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byt
}
func (u DestinationSnowflakeUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
- return json.Marshal(u.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword)
+ if u.DestinationSnowflakeUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.DestinationSnowflakeUpdateAuthorizationMethodOAuth20, "", true)
}
if u.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication != nil {
- return json.Marshal(u.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication)
+ return utils.MarshalJSON(u.DestinationSnowflakeUpdateAuthorizationMethodKeyPairAuthentication, "", true)
}
- if u.DestinationSnowflakeUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.DestinationSnowflakeUpdateAuthorizationMethodOAuth20)
+ if u.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
+ return utils.MarshalJSON(u.DestinationSnowflakeUpdateAuthorizationMethodUsernameAndPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationSnowflakeUpdate struct {
@@ -218,3 +305,66 @@ type DestinationSnowflakeUpdate struct {
// Enter the name of the warehouse that you want to sync data into
Warehouse string `json:"warehouse"`
}
+
+func (o *DestinationSnowflakeUpdate) GetCredentials() *DestinationSnowflakeUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *DestinationSnowflakeUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationSnowflakeUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationSnowflakeUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationSnowflakeUpdate) GetRawDataSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RawDataSchema
+}
+
+func (o *DestinationSnowflakeUpdate) GetRole() string {
+ if o == nil {
+ return ""
+ }
+ return o.Role
+}
+
+func (o *DestinationSnowflakeUpdate) GetSchema() string {
+ if o == nil {
+ return ""
+ }
+ return o.Schema
+}
+
+func (o *DestinationSnowflakeUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
+func (o *DestinationSnowflakeUpdate) GetWarehouse() string {
+ if o == nil {
+ return ""
+ }
+ return o.Warehouse
+}
diff --git a/internal/sdk/pkg/models/shared/destinationsresponse.go b/internal/sdk/pkg/models/shared/destinationsresponse.go
old mode 100755
new mode 100644
index ec9a40233..145dd5e72
--- a/internal/sdk/pkg/models/shared/destinationsresponse.go
+++ b/internal/sdk/pkg/models/shared/destinationsresponse.go
@@ -7,3 +7,24 @@ type DestinationsResponse struct {
Next *string `json:"next,omitempty"`
Previous *string `json:"previous,omitempty"`
}
+
+func (o *DestinationsResponse) GetData() []DestinationResponse {
+ if o == nil {
+ return []DestinationResponse{}
+ }
+ return o.Data
+}
+
+func (o *DestinationsResponse) GetNext() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Next
+}
+
+func (o *DestinationsResponse) GetPrevious() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Previous
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtimeplus.go b/internal/sdk/pkg/models/shared/destinationtimeplus.go
old mode 100755
new mode 100644
index 628f76766..32cea052d
--- a/internal/sdk/pkg/models/shared/destinationtimeplus.go
+++ b/internal/sdk/pkg/models/shared/destinationtimeplus.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *DestinationTimeplusTimeplus) UnmarshalJSON(data []byte) error {
type DestinationTimeplus struct {
// Personal API key
Apikey string `json:"apikey"`
- DestinationType DestinationTimeplusTimeplus `json:"destinationType"`
+ destinationType DestinationTimeplusTimeplus `const:"timeplus" json:"destinationType"`
// Timeplus workspace endpoint
- Endpoint string `json:"endpoint"`
+ Endpoint *string `default:"https://us.timeplus.cloud/" json:"endpoint"`
+}
+
+func (d DestinationTimeplus) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationTimeplus) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationTimeplus) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *DestinationTimeplus) GetDestinationType() DestinationTimeplusTimeplus {
+ return DestinationTimeplusTimeplusTimeplus
+}
+
+func (o *DestinationTimeplus) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
}
diff --git a/internal/sdk/pkg/models/shared/destinationtimepluscreaterequest.go b/internal/sdk/pkg/models/shared/destinationtimepluscreaterequest.go
old mode 100755
new mode 100644
index 68690e756..df3a59553
--- a/internal/sdk/pkg/models/shared/destinationtimepluscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationtimepluscreaterequest.go
@@ -7,3 +7,24 @@ type DestinationTimeplusCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationTimeplusCreateRequest) GetConfiguration() DestinationTimeplus {
+ if o == nil {
+ return DestinationTimeplus{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationTimeplusCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationTimeplusCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtimeplusputrequest.go b/internal/sdk/pkg/models/shared/destinationtimeplusputrequest.go
old mode 100755
new mode 100644
index 5a30b1732..6e7da4606
--- a/internal/sdk/pkg/models/shared/destinationtimeplusputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationtimeplusputrequest.go
@@ -7,3 +7,24 @@ type DestinationTimeplusPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationTimeplusPutRequest) GetConfiguration() DestinationTimeplusUpdate {
+ if o == nil {
+ return DestinationTimeplusUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationTimeplusPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationTimeplusPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtimeplusupdate.go b/internal/sdk/pkg/models/shared/destinationtimeplusupdate.go
old mode 100755
new mode 100644
index 360bceb09..068311fad
--- a/internal/sdk/pkg/models/shared/destinationtimeplusupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationtimeplusupdate.go
@@ -2,9 +2,38 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type DestinationTimeplusUpdate struct {
// Personal API key
Apikey string `json:"apikey"`
// Timeplus workspace endpoint
- Endpoint string `json:"endpoint"`
+ Endpoint *string `default:"https://us.timeplus.cloud/" json:"endpoint"`
+}
+
+func (d DestinationTimeplusUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationTimeplusUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationTimeplusUpdate) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *DestinationTimeplusUpdate) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
}
diff --git a/internal/sdk/pkg/models/shared/destinationtypesense.go b/internal/sdk/pkg/models/shared/destinationtypesense.go
old mode 100755
new mode 100644
index ed06be1c1..04bea2fb1
--- a/internal/sdk/pkg/models/shared/destinationtypesense.go
+++ b/internal/sdk/pkg/models/shared/destinationtypesense.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,7 +37,7 @@ type DestinationTypesense struct {
APIKey string `json:"api_key"`
// How many documents should be imported together. Default 1000
BatchSize *int64 `json:"batch_size,omitempty"`
- DestinationType DestinationTypesenseTypesense `json:"destinationType"`
+ destinationType DestinationTypesenseTypesense `const:"typesense" json:"destinationType"`
// Hostname of the Typesense instance without protocol.
Host string `json:"host"`
// Port of the Typesense instance. Ex: 8108, 80, 443. Default is 443
@@ -44,3 +45,53 @@ type DestinationTypesense struct {
// Protocol of the Typesense instance. Ex: http or https. Default is https
Protocol *string `json:"protocol,omitempty"`
}
+
+func (d DestinationTypesense) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationTypesense) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationTypesense) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationTypesense) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *DestinationTypesense) GetDestinationType() DestinationTypesenseTypesense {
+ return DestinationTypesenseTypesenseTypesense
+}
+
+func (o *DestinationTypesense) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationTypesense) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationTypesense) GetProtocol() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Protocol
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtypesensecreaterequest.go b/internal/sdk/pkg/models/shared/destinationtypesensecreaterequest.go
old mode 100755
new mode 100644
index 92fe586d9..996e75488
--- a/internal/sdk/pkg/models/shared/destinationtypesensecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationtypesensecreaterequest.go
@@ -7,3 +7,24 @@ type DestinationTypesenseCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationTypesenseCreateRequest) GetConfiguration() DestinationTypesense {
+ if o == nil {
+ return DestinationTypesense{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationTypesenseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationTypesenseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtypesenseputrequest.go b/internal/sdk/pkg/models/shared/destinationtypesenseputrequest.go
old mode 100755
new mode 100644
index ec224b306..188697844
--- a/internal/sdk/pkg/models/shared/destinationtypesenseputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationtypesenseputrequest.go
@@ -7,3 +7,24 @@ type DestinationTypesensePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationTypesensePutRequest) GetConfiguration() DestinationTypesenseUpdate {
+ if o == nil {
+ return DestinationTypesenseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationTypesensePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationTypesensePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationtypesenseupdate.go b/internal/sdk/pkg/models/shared/destinationtypesenseupdate.go
old mode 100755
new mode 100644
index e53ad1135..98e801470
--- a/internal/sdk/pkg/models/shared/destinationtypesenseupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationtypesenseupdate.go
@@ -14,3 +14,38 @@ type DestinationTypesenseUpdate struct {
// Protocol of the Typesense instance. Ex: http or https. Default is https
Protocol *string `json:"protocol,omitempty"`
}
+
+func (o *DestinationTypesenseUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationTypesenseUpdate) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *DestinationTypesenseUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationTypesenseUpdate) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationTypesenseUpdate) GetProtocol() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Protocol
+}
diff --git a/internal/sdk/pkg/models/shared/destinationvertica.go b/internal/sdk/pkg/models/shared/destinationvertica.go
old mode 100755
new mode 100644
index 6dfd61d46..bca237393
--- a/internal/sdk/pkg/models/shared/destinationvertica.go
+++ b/internal/sdk/pkg/models/shared/destinationvertica.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type DestinationVerticaSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationVerticaSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationVerticaSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationVerticaSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationVerticaSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationVerticaSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationVerticaSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationVerticaSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationVerticaSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type DestinationVerticaSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationVerticaSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationVerticaSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(da
// DestinationVerticaSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationVerticaSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationVerticaSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationVerticaSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationVerticaSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateDestinationVerticaSSHTunnelMethodDestinationVerticaSSHTunnelMethodPas
}
func (u *DestinationVerticaSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationVerticaSSHTunnelMethodNoTunnel := new(DestinationVerticaSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationVerticaSSHTunnelMethodNoTunnel = destinationVerticaSSHTunnelMethodNoTunnel
u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHTunnelMethodNoTunnel
return nil
}
destinationVerticaSSHTunnelMethodSSHKeyAuthentication := new(DestinationVerticaSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication = destinationVerticaSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationVerticaSSHTunnelMethodPasswordAuthentication := new(DestinationVerticaSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationVerticaSSHTunnelMethodPasswordAuthentication = destinationVerticaSSHTunnelMethodPasswordAuthentication
u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,24 +314,24 @@ func (u *DestinationVerticaSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u DestinationVerticaSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationVerticaSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationVerticaSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationVerticaSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationVerticaSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationVerticaSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationVerticaSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationVerticaSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationVertica struct {
// Name of the database.
Database string `json:"database"`
- DestinationType DestinationVerticaVertica `json:"destinationType"`
+ destinationType DestinationVerticaVertica `const:"vertica" json:"destinationType"`
// Hostname of the database.
Host string `json:"host"`
// Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3).
@@ -245,7 +339,7 @@ type DestinationVertica struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5433" json:"port"`
// Schema for vertica destination
Schema string `json:"schema"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -253,3 +347,74 @@ type DestinationVertica struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationVertica) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVertica) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVertica) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationVertica) GetDestinationType() DestinationVerticaVertica {
+ return DestinationVerticaVerticaVertica
+}
+
+func (o *DestinationVertica) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationVertica) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationVertica) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationVertica) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationVertica) GetSchema() string {
+ if o == nil {
+ return ""
+ }
+ return o.Schema
+}
+
+func (o *DestinationVertica) GetTunnelMethod() *DestinationVerticaSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationVertica) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationverticacreaterequest.go b/internal/sdk/pkg/models/shared/destinationverticacreaterequest.go
old mode 100755
new mode 100644
index 8c8cd4ec6..72da52e26
--- a/internal/sdk/pkg/models/shared/destinationverticacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationverticacreaterequest.go
@@ -7,3 +7,24 @@ type DestinationVerticaCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationVerticaCreateRequest) GetConfiguration() DestinationVertica {
+ if o == nil {
+ return DestinationVertica{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationVerticaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationVerticaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationverticaputrequest.go b/internal/sdk/pkg/models/shared/destinationverticaputrequest.go
old mode 100755
new mode 100644
index f2d38566f..a94f8db8c
--- a/internal/sdk/pkg/models/shared/destinationverticaputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationverticaputrequest.go
@@ -7,3 +7,24 @@ type DestinationVerticaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationVerticaPutRequest) GetConfiguration() DestinationVerticaUpdate {
+ if o == nil {
+ return DestinationVerticaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationVerticaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationVerticaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationverticaupdate.go b/internal/sdk/pkg/models/shared/destinationverticaupdate.go
old mode 100755
new mode 100644
index 825cd0564..ae74802b0
--- a/internal/sdk/pkg/models/shared/destinationverticaupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationverticaupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod DestinationVerticaUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (d DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() DestinationVerticaUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return DestinationVerticaUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (d DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJ
// DestinationVerticaUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type DestinationVerticaUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (d DestinationVerticaUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return DestinationVerticaUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type DestinationVerticaUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateDestinationVerticaUpdateSSHTunnelMethodDestinationVerticaUpdateSSHTun
}
func (u *DestinationVerticaUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
destinationVerticaUpdateSSHTunnelMethodNoTunnel := new(DestinationVerticaUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.DestinationVerticaUpdateSSHTunnelMethodNoTunnel = destinationVerticaUpdateSSHTunnelMethodNoTunnel
u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHTunnelMethodNoTunnel
return nil
}
destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication := new(DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication = destinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication := new(DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication = destinationVerticaUpdateSSHTunnelMethodPasswordAuthentication
u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *DestinationVerticaUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) err
func (u DestinationVerticaUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.DestinationVerticaUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.DestinationVerticaUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.DestinationVerticaUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.DestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.DestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type DestinationVerticaUpdate struct {
@@ -220,7 +314,7 @@ type DestinationVerticaUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5433" json:"port"`
// Schema for vertica destination
Schema string `json:"schema"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -228,3 +322,70 @@ type DestinationVerticaUpdate struct {
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (d DestinationVerticaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationVerticaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationVerticaUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *DestinationVerticaUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *DestinationVerticaUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *DestinationVerticaUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *DestinationVerticaUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *DestinationVerticaUpdate) GetSchema() string {
+ if o == nil {
+ return ""
+ }
+ return o.Schema
+}
+
+func (o *DestinationVerticaUpdate) GetTunnelMethod() *DestinationVerticaUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *DestinationVerticaUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/destinationxata.go b/internal/sdk/pkg/models/shared/destinationxata.go
old mode 100755
new mode 100644
index a7b20a6b7..7e689a70d
--- a/internal/sdk/pkg/models/shared/destinationxata.go
+++ b/internal/sdk/pkg/models/shared/destinationxata.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type DestinationXata struct {
APIKey string `json:"api_key"`
// URL pointing to your workspace.
DbURL string `json:"db_url"`
- DestinationType DestinationXataXata `json:"destinationType"`
+ destinationType DestinationXataXata `const:"xata" json:"destinationType"`
+}
+
+func (d DestinationXata) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(d, "", false)
+}
+
+func (d *DestinationXata) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *DestinationXata) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationXata) GetDbURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DbURL
+}
+
+func (o *DestinationXata) GetDestinationType() DestinationXataXata {
+ return DestinationXataXataXata
}
diff --git a/internal/sdk/pkg/models/shared/destinationxatacreaterequest.go b/internal/sdk/pkg/models/shared/destinationxatacreaterequest.go
old mode 100755
new mode 100644
index 4641587bb..21b7d84aa
--- a/internal/sdk/pkg/models/shared/destinationxatacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/destinationxatacreaterequest.go
@@ -7,3 +7,24 @@ type DestinationXataCreateRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationXataCreateRequest) GetConfiguration() DestinationXata {
+ if o == nil {
+ return DestinationXata{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationXataCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationXataCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationxataputrequest.go b/internal/sdk/pkg/models/shared/destinationxataputrequest.go
old mode 100755
new mode 100644
index b7e7edfc3..acfbd1e40
--- a/internal/sdk/pkg/models/shared/destinationxataputrequest.go
+++ b/internal/sdk/pkg/models/shared/destinationxataputrequest.go
@@ -7,3 +7,24 @@ type DestinationXataPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *DestinationXataPutRequest) GetConfiguration() DestinationXataUpdate {
+ if o == nil {
+ return DestinationXataUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *DestinationXataPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *DestinationXataPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/destinationxataupdate.go b/internal/sdk/pkg/models/shared/destinationxataupdate.go
old mode 100755
new mode 100644
index 7805ada36..859b2ddbf
--- a/internal/sdk/pkg/models/shared/destinationxataupdate.go
+++ b/internal/sdk/pkg/models/shared/destinationxataupdate.go
@@ -8,3 +8,17 @@ type DestinationXataUpdate struct {
// URL pointing to your workspace.
DbURL string `json:"db_url"`
}
+
+func (o *DestinationXataUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *DestinationXataUpdate) GetDbURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DbURL
+}
diff --git a/internal/sdk/pkg/models/shared/geographyenum.go b/internal/sdk/pkg/models/shared/geographyenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/geographyenumnodefault.go b/internal/sdk/pkg/models/shared/geographyenumnodefault.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/initiateoauthrequest.go b/internal/sdk/pkg/models/shared/initiateoauthrequest.go
old mode 100755
new mode 100644
index e2f2bc8a4..c2581c8c5
--- a/internal/sdk/pkg/models/shared/initiateoauthrequest.go
+++ b/internal/sdk/pkg/models/shared/initiateoauthrequest.go
@@ -13,3 +13,31 @@ type InitiateOauthRequest struct {
// The workspace to create the secret and eventually the full source.
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *InitiateOauthRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *InitiateOauthRequest) GetOAuthInputConfiguration() *OAuthInputConfiguration {
+ if o == nil {
+ return nil
+ }
+ return o.OAuthInputConfiguration
+}
+
+func (o *InitiateOauthRequest) GetRedirectURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.RedirectURL
+}
+
+func (o *InitiateOauthRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/jobcreaterequest.go b/internal/sdk/pkg/models/shared/jobcreaterequest.go
old mode 100755
new mode 100644
index 9ebedafab..217e820df
--- a/internal/sdk/pkg/models/shared/jobcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/jobcreaterequest.go
@@ -8,3 +8,17 @@ type JobCreateRequest struct {
// Enum that describes the different types of jobs that the platform runs.
JobType JobTypeEnum `json:"jobType"`
}
+
+func (o *JobCreateRequest) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
+func (o *JobCreateRequest) GetJobType() JobTypeEnum {
+ if o == nil {
+ return JobTypeEnum("")
+ }
+ return o.JobType
+}
diff --git a/internal/sdk/pkg/models/shared/jobresponse.go b/internal/sdk/pkg/models/shared/jobresponse.go
old mode 100755
new mode 100644
index dd1cae007..17f2f4fd6
--- a/internal/sdk/pkg/models/shared/jobresponse.go
+++ b/internal/sdk/pkg/models/shared/jobresponse.go
@@ -16,3 +16,66 @@ type JobResponse struct {
StartTime string `json:"startTime"`
Status JobStatusEnum `json:"status"`
}
+
+func (o *JobResponse) GetBytesSynced() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BytesSynced
+}
+
+func (o *JobResponse) GetConnectionID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConnectionID
+}
+
+func (o *JobResponse) GetDuration() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Duration
+}
+
+func (o *JobResponse) GetJobID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.JobID
+}
+
+func (o *JobResponse) GetJobType() JobTypeEnum {
+ if o == nil {
+ return JobTypeEnum("")
+ }
+ return o.JobType
+}
+
+func (o *JobResponse) GetLastUpdatedAt() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LastUpdatedAt
+}
+
+func (o *JobResponse) GetRowsSynced() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RowsSynced
+}
+
+func (o *JobResponse) GetStartTime() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartTime
+}
+
+func (o *JobResponse) GetStatus() JobStatusEnum {
+ if o == nil {
+ return JobStatusEnum("")
+ }
+ return o.Status
+}
diff --git a/internal/sdk/pkg/models/shared/jobsresponse.go b/internal/sdk/pkg/models/shared/jobsresponse.go
old mode 100755
new mode 100644
index 26501596d..6b9c0eaab
--- a/internal/sdk/pkg/models/shared/jobsresponse.go
+++ b/internal/sdk/pkg/models/shared/jobsresponse.go
@@ -7,3 +7,24 @@ type JobsResponse struct {
Next *string `json:"next,omitempty"`
Previous *string `json:"previous,omitempty"`
}
+
+func (o *JobsResponse) GetData() []JobResponse {
+ if o == nil {
+ return []JobResponse{}
+ }
+ return o.Data
+}
+
+func (o *JobsResponse) GetNext() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Next
+}
+
+func (o *JobsResponse) GetPrevious() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Previous
+}
diff --git a/internal/sdk/pkg/models/shared/jobstatusenum.go b/internal/sdk/pkg/models/shared/jobstatusenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/jobtypeenum.go b/internal/sdk/pkg/models/shared/jobtypeenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/namespacedefinitionenum.go b/internal/sdk/pkg/models/shared/namespacedefinitionenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/namespacedefinitionenumnodefault.go b/internal/sdk/pkg/models/shared/namespacedefinitionenumnodefault.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/nonbreakingschemaupdatesbehaviorenum.go b/internal/sdk/pkg/models/shared/nonbreakingschemaupdatesbehaviorenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/nonbreakingschemaupdatesbehaviorenumnodefault.go b/internal/sdk/pkg/models/shared/nonbreakingschemaupdatesbehaviorenumnodefault.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/oauthcredentialsconfiguration.go b/internal/sdk/pkg/models/shared/oauthcredentialsconfiguration.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/oauthinputconfiguration.go b/internal/sdk/pkg/models/shared/oauthinputconfiguration.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/scheduletypeenum.go b/internal/sdk/pkg/models/shared/scheduletypeenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/scheduletypewithbasicenum.go b/internal/sdk/pkg/models/shared/scheduletypewithbasicenum.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/security.go b/internal/sdk/pkg/models/shared/security.go
old mode 100755
new mode 100644
index cc19e48f8..9954cc263
--- a/internal/sdk/pkg/models/shared/security.go
+++ b/internal/sdk/pkg/models/shared/security.go
@@ -7,7 +7,35 @@ type SchemeBasicAuth struct {
Username string `security:"name=username"`
}
+func (o *SchemeBasicAuth) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SchemeBasicAuth) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type Security struct {
BasicAuth *SchemeBasicAuth `security:"scheme,type=http,subtype=basic"`
BearerAuth *string `security:"scheme,type=http,subtype=bearer,name=Authorization"`
}
+
+func (o *Security) GetBasicAuth() *SchemeBasicAuth {
+ if o == nil {
+ return nil
+ }
+ return o.BasicAuth
+}
+
+func (o *Security) GetBearerAuth() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BearerAuth
+}
diff --git a/internal/sdk/pkg/models/shared/sourceaha.go b/internal/sdk/pkg/models/shared/sourceaha.go
old mode 100755
new mode 100644
index dc0b144dc..7da67d7a0
--- a/internal/sdk/pkg/models/shared/sourceaha.go
+++ b/internal/sdk/pkg/models/shared/sourceaha.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *SourceAhaAha) UnmarshalJSON(data []byte) error {
type SourceAha struct {
// API Key
APIKey string `json:"api_key"`
- SourceType SourceAhaAha `json:"sourceType"`
+ sourceType SourceAhaAha `const:"aha" json:"sourceType"`
// URL
URL string `json:"url"`
}
+
+func (s SourceAha) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAha) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAha) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAha) GetSourceType() SourceAhaAha {
+ return SourceAhaAhaAha
+}
+
+func (o *SourceAha) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourceahacreaterequest.go b/internal/sdk/pkg/models/shared/sourceahacreaterequest.go
old mode 100755
new mode 100644
index e3745d85f..5be7a7754
--- a/internal/sdk/pkg/models/shared/sourceahacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceahacreaterequest.go
@@ -9,3 +9,31 @@ type SourceAhaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAhaCreateRequest) GetConfiguration() SourceAha {
+ if o == nil {
+ return SourceAha{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAhaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAhaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAhaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceahaputrequest.go b/internal/sdk/pkg/models/shared/sourceahaputrequest.go
old mode 100755
new mode 100644
index 48cab7b2a..9a61da97f
--- a/internal/sdk/pkg/models/shared/sourceahaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceahaputrequest.go
@@ -7,3 +7,24 @@ type SourceAhaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAhaPutRequest) GetConfiguration() SourceAhaUpdate {
+ if o == nil {
+ return SourceAhaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAhaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAhaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceahaupdate.go b/internal/sdk/pkg/models/shared/sourceahaupdate.go
old mode 100755
new mode 100644
index 24b75f25b..18321094e
--- a/internal/sdk/pkg/models/shared/sourceahaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceahaupdate.go
@@ -8,3 +8,17 @@ type SourceAhaUpdate struct {
// URL
URL string `json:"url"`
}
+
+func (o *SourceAhaUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAhaUpdate) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourceaircall.go b/internal/sdk/pkg/models/shared/sourceaircall.go
old mode 100755
new mode 100644
index a37e1cc7f..f8e4d72aa
--- a/internal/sdk/pkg/models/shared/sourceaircall.go
+++ b/internal/sdk/pkg/models/shared/sourceaircall.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -37,7 +38,43 @@ type SourceAircall struct {
APIID string `json:"api_id"`
// App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys)
APIToken string `json:"api_token"`
- SourceType SourceAircallAircall `json:"sourceType"`
+ sourceType SourceAircallAircall `const:"aircall" json:"sourceType"`
// Date time filter for incremental filter, Specify which date to extract from.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceAircall) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAircall) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAircall) GetAPIID() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIID
+}
+
+func (o *SourceAircall) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceAircall) GetSourceType() SourceAircallAircall {
+ return SourceAircallAircallAircall
+}
+
+func (o *SourceAircall) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceaircallcreaterequest.go b/internal/sdk/pkg/models/shared/sourceaircallcreaterequest.go
old mode 100755
new mode 100644
index 9eb22bb4a..9dd53d2be
--- a/internal/sdk/pkg/models/shared/sourceaircallcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceaircallcreaterequest.go
@@ -9,3 +9,31 @@ type SourceAircallCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAircallCreateRequest) GetConfiguration() SourceAircall {
+ if o == nil {
+ return SourceAircall{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAircallCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAircallCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAircallCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceaircallputrequest.go b/internal/sdk/pkg/models/shared/sourceaircallputrequest.go
old mode 100755
new mode 100644
index 0b2fb32ef..eb1fd3b04
--- a/internal/sdk/pkg/models/shared/sourceaircallputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceaircallputrequest.go
@@ -7,3 +7,24 @@ type SourceAircallPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAircallPutRequest) GetConfiguration() SourceAircallUpdate {
+ if o == nil {
+ return SourceAircallUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAircallPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAircallPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceaircallupdate.go b/internal/sdk/pkg/models/shared/sourceaircallupdate.go
old mode 100755
new mode 100644
index 57f3aac5b..7f6c5d1bf
--- a/internal/sdk/pkg/models/shared/sourceaircallupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceaircallupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -14,3 +15,35 @@ type SourceAircallUpdate struct {
// Date time filter for incremental filter, Specify which date to extract from.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceAircallUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAircallUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAircallUpdate) GetAPIID() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIID
+}
+
+func (o *SourceAircallUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceAircallUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceairtable.go b/internal/sdk/pkg/models/shared/sourceairtable.go
old mode 100755
new mode 100644
index 21eda702c..71a217ff0
--- a/internal/sdk/pkg/models/shared/sourceairtable.go
+++ b/internal/sdk/pkg/models/shared/sourceairtable.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceAirtableAuthenticationPersonalAccessTokenAuthMethod) UnmarshalJSO
type SourceAirtableAuthenticationPersonalAccessToken struct {
// The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
APIKey string `json:"api_key"`
- AuthMethod *SourceAirtableAuthenticationPersonalAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceAirtableAuthenticationPersonalAccessTokenAuthMethod `const:"api_key" json:"auth_method,omitempty"`
+}
+
+func (s SourceAirtableAuthenticationPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAirtableAuthenticationPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAirtableAuthenticationPersonalAccessToken) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAirtableAuthenticationPersonalAccessToken) GetAuthMethod() *SourceAirtableAuthenticationPersonalAccessTokenAuthMethod {
+ return SourceAirtableAuthenticationPersonalAccessTokenAuthMethodAPIKey.ToPointer()
}
type SourceAirtableAuthenticationOAuth20AuthMethod string
@@ -67,7 +89,7 @@ func (e *SourceAirtableAuthenticationOAuth20AuthMethod) UnmarshalJSON(data []byt
type SourceAirtableAuthenticationOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthMethod *SourceAirtableAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceAirtableAuthenticationOAuth20AuthMethod `const:"oauth2.0" json:"auth_method,omitempty"`
// The client ID of the Airtable developer application.
ClientID string `json:"client_id"`
// The client secret the Airtable developer application.
@@ -78,6 +100,56 @@ type SourceAirtableAuthenticationOAuth20 struct {
TokenExpiryDate *time.Time `json:"token_expiry_date,omitempty"`
}
+func (s SourceAirtableAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAirtableAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetAuthMethod() *SourceAirtableAuthenticationOAuth20AuthMethod {
+ return SourceAirtableAuthenticationOAuth20AuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAirtableAuthenticationOAuth20) GetTokenExpiryDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.TokenExpiryDate
+}
+
type SourceAirtableAuthenticationType string
const (
@@ -111,21 +183,16 @@ func CreateSourceAirtableAuthenticationSourceAirtableAuthenticationPersonalAcces
}
func (u *SourceAirtableAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAirtableAuthenticationPersonalAccessToken := new(SourceAirtableAuthenticationPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAirtableAuthenticationPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAirtableAuthenticationPersonalAccessToken, "", true, true); err == nil {
u.SourceAirtableAuthenticationPersonalAccessToken = sourceAirtableAuthenticationPersonalAccessToken
u.Type = SourceAirtableAuthenticationTypeSourceAirtableAuthenticationPersonalAccessToken
return nil
}
sourceAirtableAuthenticationOAuth20 := new(SourceAirtableAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAirtableAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAirtableAuthenticationOAuth20, "", true, true); err == nil {
u.SourceAirtableAuthenticationOAuth20 = sourceAirtableAuthenticationOAuth20
u.Type = SourceAirtableAuthenticationTypeSourceAirtableAuthenticationOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceAirtableAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceAirtableAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceAirtableAuthenticationPersonalAccessToken != nil {
- return json.Marshal(u.SourceAirtableAuthenticationPersonalAccessToken)
+ if u.SourceAirtableAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceAirtableAuthenticationOAuth20, "", true)
}
- if u.SourceAirtableAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceAirtableAuthenticationOAuth20)
+ if u.SourceAirtableAuthenticationPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceAirtableAuthenticationPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAirtableAirtable string
@@ -172,5 +239,27 @@ func (e *SourceAirtableAirtable) UnmarshalJSON(data []byte) error {
type SourceAirtable struct {
Credentials *SourceAirtableAuthentication `json:"credentials,omitempty"`
- SourceType *SourceAirtableAirtable `json:"sourceType,omitempty"`
+ sourceType *SourceAirtableAirtable `const:"airtable" json:"sourceType,omitempty"`
+}
+
+func (s SourceAirtable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAirtable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAirtable) GetCredentials() *SourceAirtableAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceAirtable) GetSourceType() *SourceAirtableAirtable {
+ return SourceAirtableAirtableAirtable.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourceairtablecreaterequest.go b/internal/sdk/pkg/models/shared/sourceairtablecreaterequest.go
old mode 100755
new mode 100644
index 3e7bb1a08..0b7a73399
--- a/internal/sdk/pkg/models/shared/sourceairtablecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceairtablecreaterequest.go
@@ -9,3 +9,31 @@ type SourceAirtableCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAirtableCreateRequest) GetConfiguration() SourceAirtable {
+ if o == nil {
+ return SourceAirtable{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAirtableCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAirtableCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAirtableCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceairtableputrequest.go b/internal/sdk/pkg/models/shared/sourceairtableputrequest.go
old mode 100755
new mode 100644
index 1b1eac1df..1bb54c254
--- a/internal/sdk/pkg/models/shared/sourceairtableputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceairtableputrequest.go
@@ -7,3 +7,24 @@ type SourceAirtablePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAirtablePutRequest) GetConfiguration() SourceAirtableUpdate {
+ if o == nil {
+ return SourceAirtableUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAirtablePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAirtablePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceairtableupdate.go b/internal/sdk/pkg/models/shared/sourceairtableupdate.go
old mode 100755
new mode 100644
index 3e58e82e5..4a841b853
--- a/internal/sdk/pkg/models/shared/sourceairtableupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceairtableupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod) Unmars
type SourceAirtableUpdateAuthenticationPersonalAccessToken struct {
// The Personal Access Token for the Airtable account. See the Support Guide for more information on how to obtain this token.
APIKey string `json:"api_key"`
- AuthMethod *SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod `const:"api_key" json:"auth_method,omitempty"`
+}
+
+func (s SourceAirtableUpdateAuthenticationPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAirtableUpdateAuthenticationPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAirtableUpdateAuthenticationPersonalAccessToken) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAirtableUpdateAuthenticationPersonalAccessToken) GetAuthMethod() *SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethod {
+ return SourceAirtableUpdateAuthenticationPersonalAccessTokenAuthMethodAPIKey.ToPointer()
}
type SourceAirtableUpdateAuthenticationOAuth20AuthMethod string
@@ -67,7 +89,7 @@ func (e *SourceAirtableUpdateAuthenticationOAuth20AuthMethod) UnmarshalJSON(data
type SourceAirtableUpdateAuthenticationOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthMethod *SourceAirtableUpdateAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceAirtableUpdateAuthenticationOAuth20AuthMethod `const:"oauth2.0" json:"auth_method,omitempty"`
// The client ID of the Airtable developer application.
ClientID string `json:"client_id"`
// The client secret the Airtable developer application.
@@ -78,6 +100,56 @@ type SourceAirtableUpdateAuthenticationOAuth20 struct {
TokenExpiryDate *time.Time `json:"token_expiry_date,omitempty"`
}
+func (s SourceAirtableUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAirtableUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetAuthMethod() *SourceAirtableUpdateAuthenticationOAuth20AuthMethod {
+ return SourceAirtableUpdateAuthenticationOAuth20AuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAirtableUpdateAuthenticationOAuth20) GetTokenExpiryDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.TokenExpiryDate
+}
+
type SourceAirtableUpdateAuthenticationType string
const (
@@ -111,21 +183,16 @@ func CreateSourceAirtableUpdateAuthenticationSourceAirtableUpdateAuthenticationP
}
func (u *SourceAirtableUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAirtableUpdateAuthenticationPersonalAccessToken := new(SourceAirtableUpdateAuthenticationPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAirtableUpdateAuthenticationPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAirtableUpdateAuthenticationPersonalAccessToken, "", true, true); err == nil {
u.SourceAirtableUpdateAuthenticationPersonalAccessToken = sourceAirtableUpdateAuthenticationPersonalAccessToken
u.Type = SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateAuthenticationPersonalAccessToken
return nil
}
sourceAirtableUpdateAuthenticationOAuth20 := new(SourceAirtableUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAirtableUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAirtableUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceAirtableUpdateAuthenticationOAuth20 = sourceAirtableUpdateAuthenticationOAuth20
u.Type = SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateAuthenticationOAuth20
return nil
@@ -135,17 +202,24 @@ func (u *SourceAirtableUpdateAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceAirtableUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceAirtableUpdateAuthenticationPersonalAccessToken != nil {
- return json.Marshal(u.SourceAirtableUpdateAuthenticationPersonalAccessToken)
+ if u.SourceAirtableUpdateAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceAirtableUpdateAuthenticationOAuth20, "", true)
}
- if u.SourceAirtableUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceAirtableUpdateAuthenticationOAuth20)
+ if u.SourceAirtableUpdateAuthenticationPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceAirtableUpdateAuthenticationPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAirtableUpdate struct {
Credentials *SourceAirtableUpdateAuthentication `json:"credentials,omitempty"`
}
+
+func (o *SourceAirtableUpdate) GetCredentials() *SourceAirtableUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcealloydb.go b/internal/sdk/pkg/models/shared/sourcealloydb.go
old mode 100755
new mode 100644
index 58e429820..38cb060ac
--- a/internal/sdk/pkg/models/shared/sourcealloydb.go
+++ b/internal/sdk/pkg/models/shared/sourcealloydb.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceAlloydbReplicationMethodStandardMethod) UnmarshalJSON(data []byte
// SourceAlloydbReplicationMethodStandard - Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.
type SourceAlloydbReplicationMethodStandard struct {
- Method SourceAlloydbReplicationMethodStandardMethod `json:"method"`
+ method SourceAlloydbReplicationMethodStandardMethod `const:"Standard" json:"method"`
+}
+
+func (s SourceAlloydbReplicationMethodStandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbReplicationMethodStandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbReplicationMethodStandard) GetMethod() SourceAlloydbReplicationMethodStandardMethod {
+ return SourceAlloydbReplicationMethodStandardMethodStandard
}
// SourceAlloydbReplicationMethodLogicalReplicationCDCLSNCommitBehaviour - Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
@@ -117,71 +132,84 @@ func (e *SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin) UnmarshalJSO
// SourceAlloydbReplicationMethodLogicalReplicationCDC - Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.
type SourceAlloydbReplicationMethodLogicalReplicationCDC struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
// Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
- LsnCommitBehaviour *SourceAlloydbReplicationMethodLogicalReplicationCDCLSNCommitBehaviour `json:"lsn_commit_behaviour,omitempty"`
- Method SourceAlloydbReplicationMethodLogicalReplicationCDCMethod `json:"method"`
+ LsnCommitBehaviour *SourceAlloydbReplicationMethodLogicalReplicationCDCLSNCommitBehaviour `default:"After loading Data in the destination" json:"lsn_commit_behaviour"`
+ method SourceAlloydbReplicationMethodLogicalReplicationCDCMethod `const:"CDC" json:"method"`
// A logical decoding plugin installed on the PostgreSQL server.
- Plugin *SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin `json:"plugin,omitempty"`
+ Plugin *SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin `default:"pgoutput" json:"plugin"`
// A Postgres publication used for consuming changes. Read about publications and replication identities.
Publication string `json:"publication"`
// The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful.
- QueueSize *int64 `json:"queue_size,omitempty"`
+ QueueSize *int64 `default:"10000" json:"queue_size"`
// A plugin logical replication slot. Read about replication slots.
ReplicationSlot string `json:"replication_slot"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceAlloydbReplicationMethodLogicalReplicationCDC SourceAlloydbReplicationMethodLogicalReplicationCDC
-func (c *SourceAlloydbReplicationMethodLogicalReplicationCDC) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbReplicationMethodLogicalReplicationCDC{}
+func (s SourceAlloydbReplicationMethodLogicalReplicationCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbReplicationMethodLogicalReplicationCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbReplicationMethodLogicalReplicationCDC(data)
+ return nil
+}
- additionalFields := make(map[string]interface{})
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "initial_waiting_seconds")
- delete(additionalFields, "lsn_commit_behaviour")
- delete(additionalFields, "method")
- delete(additionalFields, "plugin")
- delete(additionalFields, "publication")
- delete(additionalFields, "queue_size")
- delete(additionalFields, "replication_slot")
+ return o.InitialWaitingSeconds
+}
- c.AdditionalProperties = additionalFields
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetLsnCommitBehaviour() *SourceAlloydbReplicationMethodLogicalReplicationCDCLSNCommitBehaviour {
+ if o == nil {
+ return nil
+ }
+ return o.LsnCommitBehaviour
+}
- return nil
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetMethod() SourceAlloydbReplicationMethodLogicalReplicationCDCMethod {
+ return SourceAlloydbReplicationMethodLogicalReplicationCDCMethodCdc
}
-func (c SourceAlloydbReplicationMethodLogicalReplicationCDC) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbReplicationMethodLogicalReplicationCDC(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetPlugin() *SourceAlloydbReplicationMethodLogicalReplicationCDCPlugin {
+ if o == nil {
+ return nil
}
+ return o.Plugin
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetPublication() string {
+ if o == nil {
+ return ""
}
+ return o.Publication
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetQueueSize() *int64 {
+ if o == nil {
+ return nil
}
+ return o.QueueSize
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbReplicationMethodLogicalReplicationCDC) GetReplicationSlot() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.ReplicationSlot
}
type SourceAlloydbReplicationMethodStandardXminMethod string
@@ -210,7 +238,22 @@ func (e *SourceAlloydbReplicationMethodStandardXminMethod) UnmarshalJSON(data []
// SourceAlloydbReplicationMethodStandardXmin - Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.
type SourceAlloydbReplicationMethodStandardXmin struct {
- Method SourceAlloydbReplicationMethodStandardXminMethod `json:"method"`
+ method SourceAlloydbReplicationMethodStandardXminMethod `const:"Xmin" json:"method"`
+}
+
+func (s SourceAlloydbReplicationMethodStandardXmin) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbReplicationMethodStandardXmin) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbReplicationMethodStandardXmin) GetMethod() SourceAlloydbReplicationMethodStandardXminMethod {
+ return SourceAlloydbReplicationMethodStandardXminMethodXmin
}
type SourceAlloydbReplicationMethodType string
@@ -257,30 +300,23 @@ func CreateSourceAlloydbReplicationMethodSourceAlloydbReplicationMethodStandard(
}
func (u *SourceAlloydbReplicationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbReplicationMethodStandardXmin := new(SourceAlloydbReplicationMethodStandardXmin)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbReplicationMethodStandardXmin); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbReplicationMethodStandardXmin, "", true, true); err == nil {
u.SourceAlloydbReplicationMethodStandardXmin = sourceAlloydbReplicationMethodStandardXmin
u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbReplicationMethodStandardXmin
return nil
}
sourceAlloydbReplicationMethodStandard := new(SourceAlloydbReplicationMethodStandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbReplicationMethodStandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbReplicationMethodStandard, "", true, true); err == nil {
u.SourceAlloydbReplicationMethodStandard = sourceAlloydbReplicationMethodStandard
u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbReplicationMethodStandard
return nil
}
sourceAlloydbReplicationMethodLogicalReplicationCDC := new(SourceAlloydbReplicationMethodLogicalReplicationCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbReplicationMethodLogicalReplicationCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbReplicationMethodLogicalReplicationCDC, "", true, true); err == nil {
u.SourceAlloydbReplicationMethodLogicalReplicationCDC = sourceAlloydbReplicationMethodLogicalReplicationCDC
u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbReplicationMethodLogicalReplicationCDC
return nil
@@ -291,18 +327,18 @@ func (u *SourceAlloydbReplicationMethod) UnmarshalJSON(data []byte) error {
func (u SourceAlloydbReplicationMethod) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbReplicationMethodStandardXmin != nil {
- return json.Marshal(u.SourceAlloydbReplicationMethodStandardXmin)
+ return utils.MarshalJSON(u.SourceAlloydbReplicationMethodStandardXmin, "", true)
}
- if u.SourceAlloydbReplicationMethodStandard != nil {
- return json.Marshal(u.SourceAlloydbReplicationMethodStandard)
+ if u.SourceAlloydbReplicationMethodLogicalReplicationCDC != nil {
+ return utils.MarshalJSON(u.SourceAlloydbReplicationMethodLogicalReplicationCDC, "", true)
}
- if u.SourceAlloydbReplicationMethodLogicalReplicationCDC != nil {
- return json.Marshal(u.SourceAlloydbReplicationMethodLogicalReplicationCDC)
+ if u.SourceAlloydbReplicationMethodStandard != nil {
+ return utils.MarshalJSON(u.SourceAlloydbReplicationMethodStandard, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAlloydbAlloydb string
@@ -355,6 +391,7 @@ func (e *SourceAlloydbSSLModesVerifyFullMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesVerifyFull - This is the most secure mode. Always require encryption and verifies the identity of the source database server.
type SourceAlloydbSSLModesVerifyFull struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -363,57 +400,57 @@ type SourceAlloydbSSLModesVerifyFull struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceAlloydbSSLModesVerifyFullMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourceAlloydbSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
}
-type _SourceAlloydbSSLModesVerifyFull SourceAlloydbSSLModesVerifyFull
-func (c *SourceAlloydbSSLModesVerifyFull) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesVerifyFull{}
+func (s SourceAlloydbSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbSSLModesVerifyFull(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbSSLModesVerifyFull) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourceAlloydbSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesVerifyFull(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyFull) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyFull) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesVerifyFull) GetMode() SourceAlloydbSSLModesVerifyFullMode {
+ return SourceAlloydbSSLModesVerifyFullModeVerifyFull
}
type SourceAlloydbSSLModesVerifyCaMode string
@@ -442,6 +479,7 @@ func (e *SourceAlloydbSSLModesVerifyCaMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesVerifyCa - Always require encryption and verifies that the source database server has a valid SSL certificate.
type SourceAlloydbSSLModesVerifyCa struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -450,57 +488,57 @@ type SourceAlloydbSSLModesVerifyCa struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceAlloydbSSLModesVerifyCaMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourceAlloydbSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
}
-type _SourceAlloydbSSLModesVerifyCa SourceAlloydbSSLModesVerifyCa
-func (c *SourceAlloydbSSLModesVerifyCa) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesVerifyCa{}
+func (s SourceAlloydbSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbSSLModesVerifyCa(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbSSLModesVerifyCa) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourceAlloydbSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesVerifyCa(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyCa) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyCa) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesVerifyCa) GetMode() SourceAlloydbSSLModesVerifyCaMode {
+ return SourceAlloydbSSLModesVerifyCaModeVerifyCa
}
type SourceAlloydbSSLModesRequireMode string
@@ -529,53 +567,30 @@ func (e *SourceAlloydbSSLModesRequireMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesRequire - Always require encryption. If the source database server does not support encryption, connection will fail.
type SourceAlloydbSSLModesRequire struct {
- Mode SourceAlloydbSSLModesRequireMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbSSLModesRequireMode `const:"require" json:"mode"`
}
-type _SourceAlloydbSSLModesRequire SourceAlloydbSSLModesRequire
-
-func (c *SourceAlloydbSSLModesRequire) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesRequire{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbSSLModesRequire(data)
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbSSLModesRequire) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesRequire(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesRequire) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesRequire) GetMode() SourceAlloydbSSLModesRequireMode {
+ return SourceAlloydbSSLModesRequireModeRequire
}
type SourceAlloydbSSLModesPreferMode string
@@ -604,53 +619,30 @@ func (e *SourceAlloydbSSLModesPreferMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesPrefer - Allows unencrypted connection only if the source database does not support encryption.
type SourceAlloydbSSLModesPrefer struct {
- Mode SourceAlloydbSSLModesPreferMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbSSLModesPreferMode `const:"prefer" json:"mode"`
}
-type _SourceAlloydbSSLModesPrefer SourceAlloydbSSLModesPrefer
-
-func (c *SourceAlloydbSSLModesPrefer) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesPrefer{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbSSLModesPrefer(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbSSLModesPrefer) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesPrefer(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesPrefer) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesPrefer) GetMode() SourceAlloydbSSLModesPreferMode {
+ return SourceAlloydbSSLModesPreferModePrefer
}
type SourceAlloydbSSLModesAllowMode string
@@ -679,53 +671,30 @@ func (e *SourceAlloydbSSLModesAllowMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesAllow - Enables encryption only when required by the source database.
type SourceAlloydbSSLModesAllow struct {
- Mode SourceAlloydbSSLModesAllowMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbSSLModesAllowMode `const:"allow" json:"mode"`
}
-type _SourceAlloydbSSLModesAllow SourceAlloydbSSLModesAllow
-
-func (c *SourceAlloydbSSLModesAllow) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesAllow{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbSSLModesAllow(data)
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbSSLModesAllow) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesAllow(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesAllow) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesAllow) GetMode() SourceAlloydbSSLModesAllowMode {
+ return SourceAlloydbSSLModesAllowModeAllow
}
type SourceAlloydbSSLModesDisableMode string
@@ -754,53 +723,30 @@ func (e *SourceAlloydbSSLModesDisableMode) UnmarshalJSON(data []byte) error {
// SourceAlloydbSSLModesDisable - Disables encryption of communication between Airbyte and source database.
type SourceAlloydbSSLModesDisable struct {
- Mode SourceAlloydbSSLModesDisableMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbSSLModesDisableMode `const:"disable" json:"mode"`
}
-type _SourceAlloydbSSLModesDisable SourceAlloydbSSLModesDisable
-
-func (c *SourceAlloydbSSLModesDisable) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbSSLModesDisable{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbSSLModesDisable(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbSSLModesDisable) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbSSLModesDisable(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbSSLModesDisable) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbSSLModesDisable) GetMode() SourceAlloydbSSLModesDisableMode {
+ return SourceAlloydbSSLModesDisableModeDisable
}
type SourceAlloydbSSLModesType string
@@ -880,57 +826,44 @@ func CreateSourceAlloydbSSLModesSourceAlloydbSSLModesVerifyFull(sourceAlloydbSSL
}
func (u *SourceAlloydbSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbSSLModesDisable := new(SourceAlloydbSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesDisable, "", true, true); err == nil {
u.SourceAlloydbSSLModesDisable = sourceAlloydbSSLModesDisable
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesDisable
return nil
}
sourceAlloydbSSLModesAllow := new(SourceAlloydbSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesAllow, "", true, true); err == nil {
u.SourceAlloydbSSLModesAllow = sourceAlloydbSSLModesAllow
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesAllow
return nil
}
sourceAlloydbSSLModesPrefer := new(SourceAlloydbSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesPrefer, "", true, true); err == nil {
u.SourceAlloydbSSLModesPrefer = sourceAlloydbSSLModesPrefer
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesPrefer
return nil
}
sourceAlloydbSSLModesRequire := new(SourceAlloydbSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesRequire, "", true, true); err == nil {
u.SourceAlloydbSSLModesRequire = sourceAlloydbSSLModesRequire
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesRequire
return nil
}
sourceAlloydbSSLModesVerifyCa := new(SourceAlloydbSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesVerifyCa, "", true, true); err == nil {
u.SourceAlloydbSSLModesVerifyCa = sourceAlloydbSSLModesVerifyCa
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesVerifyCa
return nil
}
sourceAlloydbSSLModesVerifyFull := new(SourceAlloydbSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSLModesVerifyFull, "", true, true); err == nil {
u.SourceAlloydbSSLModesVerifyFull = sourceAlloydbSSLModesVerifyFull
u.Type = SourceAlloydbSSLModesTypeSourceAlloydbSSLModesVerifyFull
return nil
@@ -941,30 +874,30 @@ func (u *SourceAlloydbSSLModes) UnmarshalJSON(data []byte) error {
func (u SourceAlloydbSSLModes) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbSSLModesDisable != nil {
- return json.Marshal(u.SourceAlloydbSSLModesDisable)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesDisable, "", true)
}
if u.SourceAlloydbSSLModesAllow != nil {
- return json.Marshal(u.SourceAlloydbSSLModesAllow)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesAllow, "", true)
}
if u.SourceAlloydbSSLModesPrefer != nil {
- return json.Marshal(u.SourceAlloydbSSLModesPrefer)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesPrefer, "", true)
}
if u.SourceAlloydbSSLModesRequire != nil {
- return json.Marshal(u.SourceAlloydbSSLModesRequire)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesRequire, "", true)
}
if u.SourceAlloydbSSLModesVerifyCa != nil {
- return json.Marshal(u.SourceAlloydbSSLModesVerifyCa)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesVerifyCa, "", true)
}
if u.SourceAlloydbSSLModesVerifyFull != nil {
- return json.Marshal(u.SourceAlloydbSSLModesVerifyFull)
+ return utils.MarshalJSON(u.SourceAlloydbSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -997,15 +930,58 @@ type SourceAlloydbSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceAlloydbSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceAlloydbSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceAlloydbSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceAlloydbSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceAlloydbSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceAlloydbSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -1038,13 +1014,56 @@ type SourceAlloydbSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceAlloydbSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceAlloydbSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod string
@@ -1073,7 +1092,22 @@ func (e *SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data []
// SourceAlloydbSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceAlloydbSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceAlloydbSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceAlloydbSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceAlloydbSSHTunnelMethodType string
@@ -1120,30 +1154,23 @@ func CreateSourceAlloydbSSHTunnelMethodSourceAlloydbSSHTunnelMethodPasswordAuthe
}
func (u *SourceAlloydbSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbSSHTunnelMethodNoTunnel := new(SourceAlloydbSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceAlloydbSSHTunnelMethodNoTunnel = sourceAlloydbSSHTunnelMethodNoTunnel
u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHTunnelMethodNoTunnel
return nil
}
sourceAlloydbSSHTunnelMethodSSHKeyAuthentication := new(SourceAlloydbSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication = sourceAlloydbSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceAlloydbSSHTunnelMethodPasswordAuthentication := new(SourceAlloydbSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceAlloydbSSHTunnelMethodPasswordAuthentication = sourceAlloydbSSHTunnelMethodPasswordAuthentication
u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHTunnelMethodPasswordAuthentication
return nil
@@ -1154,18 +1181,18 @@ func (u *SourceAlloydbSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceAlloydbSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceAlloydbSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceAlloydbSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceAlloydbSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceAlloydbSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceAlloydbSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceAlloydbSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAlloydb struct {
@@ -1178,12 +1205,12 @@ type SourceAlloydb struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// Replication method for extracting data from the database.
ReplicationMethod *SourceAlloydbReplicationMethod `json:"replication_method,omitempty"`
// The list of schemas (case sensitive) to sync from. Defaults to public.
Schemas []string `json:"schemas,omitempty"`
- SourceType SourceAlloydbAlloydb `json:"sourceType"`
+ sourceType SourceAlloydbAlloydb `const:"alloydb" json:"sourceType"`
// SSL connection modes.
// Read more in the docs.
SslMode *SourceAlloydbSSLModes `json:"ssl_mode,omitempty"`
@@ -1192,3 +1219,88 @@ type SourceAlloydb struct {
// Username to access the database.
Username string `json:"username"`
}
+
+func (s SourceAlloydb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydb) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceAlloydb) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceAlloydb) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceAlloydb) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceAlloydb) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceAlloydb) GetReplicationMethod() *SourceAlloydbReplicationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceAlloydb) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceAlloydb) GetSourceType() SourceAlloydbAlloydb {
+ return SourceAlloydbAlloydbAlloydb
+}
+
+func (o *SourceAlloydb) GetSslMode() *SourceAlloydbSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourceAlloydb) GetTunnelMethod() *SourceAlloydbSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceAlloydb) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcealloydbcreaterequest.go b/internal/sdk/pkg/models/shared/sourcealloydbcreaterequest.go
old mode 100755
new mode 100644
index 0b5fd040e..b99b63fd3
--- a/internal/sdk/pkg/models/shared/sourcealloydbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcealloydbcreaterequest.go
@@ -9,3 +9,31 @@ type SourceAlloydbCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAlloydbCreateRequest) GetConfiguration() SourceAlloydb {
+ if o == nil {
+ return SourceAlloydb{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAlloydbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAlloydbCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAlloydbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcealloydbputrequest.go b/internal/sdk/pkg/models/shared/sourcealloydbputrequest.go
old mode 100755
new mode 100644
index 4fa998a42..5543cdd3e
--- a/internal/sdk/pkg/models/shared/sourcealloydbputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcealloydbputrequest.go
@@ -7,3 +7,24 @@ type SourceAlloydbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAlloydbPutRequest) GetConfiguration() SourceAlloydbUpdate {
+ if o == nil {
+ return SourceAlloydbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAlloydbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAlloydbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcealloydbupdate.go b/internal/sdk/pkg/models/shared/sourcealloydbupdate.go
old mode 100755
new mode 100644
index a385ff6d1..d7173431c
--- a/internal/sdk/pkg/models/shared/sourcealloydbupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcealloydbupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceAlloydbUpdateReplicationMethodStandardMethod) UnmarshalJSON(data
// SourceAlloydbUpdateReplicationMethodStandard - Standard replication requires no setup on the DB side but will not be able to represent deletions incrementally.
type SourceAlloydbUpdateReplicationMethodStandard struct {
- Method SourceAlloydbUpdateReplicationMethodStandardMethod `json:"method"`
+ method SourceAlloydbUpdateReplicationMethodStandardMethod `const:"Standard" json:"method"`
+}
+
+func (s SourceAlloydbUpdateReplicationMethodStandard) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdateReplicationMethodStandard) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdateReplicationMethodStandard) GetMethod() SourceAlloydbUpdateReplicationMethodStandardMethod {
+ return SourceAlloydbUpdateReplicationMethodStandardMethodStandard
}
// SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCLSNCommitBehaviour - Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
@@ -117,71 +132,84 @@ func (e *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin) Unmars
// SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC - Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.
type SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
// Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
- LsnCommitBehaviour *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCLSNCommitBehaviour `json:"lsn_commit_behaviour,omitempty"`
- Method SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCMethod `json:"method"`
+ LsnCommitBehaviour *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCLSNCommitBehaviour `default:"After loading Data in the destination" json:"lsn_commit_behaviour"`
+ method SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCMethod `const:"CDC" json:"method"`
// A logical decoding plugin installed on the PostgreSQL server.
- Plugin *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin `json:"plugin,omitempty"`
+ Plugin *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin `default:"pgoutput" json:"plugin"`
// A Postgres publication used for consuming changes. Read about publications and replication identities.
Publication string `json:"publication"`
// The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful.
- QueueSize *int64 `json:"queue_size,omitempty"`
+ QueueSize *int64 `default:"10000" json:"queue_size"`
// A plugin logical replication slot. Read about replication slots.
ReplicationSlot string `json:"replication_slot"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC
-func (c *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC{}
+func (s SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC(data)
+ return nil
+}
- additionalFields := make(map[string]interface{})
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "initial_waiting_seconds")
- delete(additionalFields, "lsn_commit_behaviour")
- delete(additionalFields, "method")
- delete(additionalFields, "plugin")
- delete(additionalFields, "publication")
- delete(additionalFields, "queue_size")
- delete(additionalFields, "replication_slot")
+ return o.InitialWaitingSeconds
+}
- c.AdditionalProperties = additionalFields
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetLsnCommitBehaviour() *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCLSNCommitBehaviour {
+ if o == nil {
+ return nil
+ }
+ return o.LsnCommitBehaviour
+}
- return nil
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetMethod() SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCMethod {
+ return SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCMethodCdc
}
-func (c SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetPlugin() *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDCPlugin {
+ if o == nil {
+ return nil
}
+ return o.Plugin
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetPublication() string {
+ if o == nil {
+ return ""
}
+ return o.Publication
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetQueueSize() *int64 {
+ if o == nil {
+ return nil
}
+ return o.QueueSize
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC) GetReplicationSlot() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.ReplicationSlot
}
type SourceAlloydbUpdateReplicationMethodStandardXminMethod string
@@ -210,7 +238,22 @@ func (e *SourceAlloydbUpdateReplicationMethodStandardXminMethod) UnmarshalJSON(d
// SourceAlloydbUpdateReplicationMethodStandardXmin - Xmin replication requires no setup on the DB side but will not be able to represent deletions incrementally.
type SourceAlloydbUpdateReplicationMethodStandardXmin struct {
- Method SourceAlloydbUpdateReplicationMethodStandardXminMethod `json:"method"`
+ method SourceAlloydbUpdateReplicationMethodStandardXminMethod `const:"Xmin" json:"method"`
+}
+
+func (s SourceAlloydbUpdateReplicationMethodStandardXmin) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdateReplicationMethodStandardXmin) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdateReplicationMethodStandardXmin) GetMethod() SourceAlloydbUpdateReplicationMethodStandardXminMethod {
+ return SourceAlloydbUpdateReplicationMethodStandardXminMethodXmin
}
type SourceAlloydbUpdateReplicationMethodType string
@@ -257,30 +300,23 @@ func CreateSourceAlloydbUpdateReplicationMethodSourceAlloydbUpdateReplicationMet
}
func (u *SourceAlloydbUpdateReplicationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbUpdateReplicationMethodStandardXmin := new(SourceAlloydbUpdateReplicationMethodStandardXmin)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateReplicationMethodStandardXmin); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateReplicationMethodStandardXmin, "", true, true); err == nil {
u.SourceAlloydbUpdateReplicationMethodStandardXmin = sourceAlloydbUpdateReplicationMethodStandardXmin
u.Type = SourceAlloydbUpdateReplicationMethodTypeSourceAlloydbUpdateReplicationMethodStandardXmin
return nil
}
sourceAlloydbUpdateReplicationMethodStandard := new(SourceAlloydbUpdateReplicationMethodStandard)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateReplicationMethodStandard); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateReplicationMethodStandard, "", true, true); err == nil {
u.SourceAlloydbUpdateReplicationMethodStandard = sourceAlloydbUpdateReplicationMethodStandard
u.Type = SourceAlloydbUpdateReplicationMethodTypeSourceAlloydbUpdateReplicationMethodStandard
return nil
}
sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC := new(SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC, "", true, true); err == nil {
u.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC = sourceAlloydbUpdateReplicationMethodLogicalReplicationCDC
u.Type = SourceAlloydbUpdateReplicationMethodTypeSourceAlloydbUpdateReplicationMethodLogicalReplicationCDC
return nil
@@ -291,18 +327,18 @@ func (u *SourceAlloydbUpdateReplicationMethod) UnmarshalJSON(data []byte) error
func (u SourceAlloydbUpdateReplicationMethod) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbUpdateReplicationMethodStandardXmin != nil {
- return json.Marshal(u.SourceAlloydbUpdateReplicationMethodStandardXmin)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateReplicationMethodStandardXmin, "", true)
}
- if u.SourceAlloydbUpdateReplicationMethodStandard != nil {
- return json.Marshal(u.SourceAlloydbUpdateReplicationMethodStandard)
+ if u.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC != nil {
+ return utils.MarshalJSON(u.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC, "", true)
}
- if u.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC != nil {
- return json.Marshal(u.SourceAlloydbUpdateReplicationMethodLogicalReplicationCDC)
+ if u.SourceAlloydbUpdateReplicationMethodStandard != nil {
+ return utils.MarshalJSON(u.SourceAlloydbUpdateReplicationMethodStandard, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAlloydbUpdateSSLModesVerifyFullMode string
@@ -331,6 +367,7 @@ func (e *SourceAlloydbUpdateSSLModesVerifyFullMode) UnmarshalJSON(data []byte) e
// SourceAlloydbUpdateSSLModesVerifyFull - This is the most secure mode. Always require encryption and verifies the identity of the source database server.
type SourceAlloydbUpdateSSLModesVerifyFull struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -339,57 +376,57 @@ type SourceAlloydbUpdateSSLModesVerifyFull struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceAlloydbUpdateSSLModesVerifyFullMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourceAlloydbUpdateSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesVerifyFull SourceAlloydbUpdateSSLModesVerifyFull
-func (c *SourceAlloydbUpdateSSLModesVerifyFull) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesVerifyFull{}
+func (s SourceAlloydbUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbUpdateSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbUpdateSSLModesVerifyFull(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourceAlloydbUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesVerifyFull(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesVerifyFull) GetMode() SourceAlloydbUpdateSSLModesVerifyFullMode {
+ return SourceAlloydbUpdateSSLModesVerifyFullModeVerifyFull
}
type SourceAlloydbUpdateSSLModesVerifyCaMode string
@@ -418,6 +455,7 @@ func (e *SourceAlloydbUpdateSSLModesVerifyCaMode) UnmarshalJSON(data []byte) err
// SourceAlloydbUpdateSSLModesVerifyCa - Always require encryption and verifies that the source database server has a valid SSL certificate.
type SourceAlloydbUpdateSSLModesVerifyCa struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -426,57 +464,57 @@ type SourceAlloydbUpdateSSLModesVerifyCa struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceAlloydbUpdateSSLModesVerifyCaMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourceAlloydbUpdateSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesVerifyCa SourceAlloydbUpdateSSLModesVerifyCa
-func (c *SourceAlloydbUpdateSSLModesVerifyCa) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesVerifyCa{}
+func (s SourceAlloydbUpdateSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourceAlloydbUpdateSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourceAlloydbUpdateSSLModesVerifyCa(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourceAlloydbUpdateSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesVerifyCa(c))
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesVerifyCa) GetMode() SourceAlloydbUpdateSSLModesVerifyCaMode {
+ return SourceAlloydbUpdateSSLModesVerifyCaModeVerifyCa
}
type SourceAlloydbUpdateSSLModesRequireMode string
@@ -505,53 +543,30 @@ func (e *SourceAlloydbUpdateSSLModesRequireMode) UnmarshalJSON(data []byte) erro
// SourceAlloydbUpdateSSLModesRequire - Always require encryption. If the source database server does not support encryption, connection will fail.
type SourceAlloydbUpdateSSLModesRequire struct {
- Mode SourceAlloydbUpdateSSLModesRequireMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbUpdateSSLModesRequireMode `const:"require" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesRequire SourceAlloydbUpdateSSLModesRequire
-
-func (c *SourceAlloydbUpdateSSLModesRequire) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesRequire{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbUpdateSSLModesRequire(data)
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbUpdateSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbUpdateSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbUpdateSSLModesRequire) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesRequire(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesRequire) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesRequire) GetMode() SourceAlloydbUpdateSSLModesRequireMode {
+ return SourceAlloydbUpdateSSLModesRequireModeRequire
}
type SourceAlloydbUpdateSSLModesPreferMode string
@@ -580,53 +595,30 @@ func (e *SourceAlloydbUpdateSSLModesPreferMode) UnmarshalJSON(data []byte) error
// SourceAlloydbUpdateSSLModesPrefer - Allows unencrypted connection only if the source database does not support encryption.
type SourceAlloydbUpdateSSLModesPrefer struct {
- Mode SourceAlloydbUpdateSSLModesPreferMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbUpdateSSLModesPreferMode `const:"prefer" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesPrefer SourceAlloydbUpdateSSLModesPrefer
-
-func (c *SourceAlloydbUpdateSSLModesPrefer) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesPrefer{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbUpdateSSLModesPrefer(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbUpdateSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbUpdateSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbUpdateSSLModesPrefer) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesPrefer(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesPrefer) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesPrefer) GetMode() SourceAlloydbUpdateSSLModesPreferMode {
+ return SourceAlloydbUpdateSSLModesPreferModePrefer
}
type SourceAlloydbUpdateSSLModesAllowMode string
@@ -655,53 +647,30 @@ func (e *SourceAlloydbUpdateSSLModesAllowMode) UnmarshalJSON(data []byte) error
// SourceAlloydbUpdateSSLModesAllow - Enables encryption only when required by the source database.
type SourceAlloydbUpdateSSLModesAllow struct {
- Mode SourceAlloydbUpdateSSLModesAllowMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbUpdateSSLModesAllowMode `const:"allow" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesAllow SourceAlloydbUpdateSSLModesAllow
-
-func (c *SourceAlloydbUpdateSSLModesAllow) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesAllow{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbUpdateSSLModesAllow(data)
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbUpdateSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbUpdateSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbUpdateSSLModesAllow) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesAllow(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesAllow) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesAllow) GetMode() SourceAlloydbUpdateSSLModesAllowMode {
+ return SourceAlloydbUpdateSSLModesAllowModeAllow
}
type SourceAlloydbUpdateSSLModesDisableMode string
@@ -730,53 +699,30 @@ func (e *SourceAlloydbUpdateSSLModesDisableMode) UnmarshalJSON(data []byte) erro
// SourceAlloydbUpdateSSLModesDisable - Disables encryption of communication between Airbyte and source database.
type SourceAlloydbUpdateSSLModesDisable struct {
- Mode SourceAlloydbUpdateSSLModesDisableMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourceAlloydbUpdateSSLModesDisableMode `const:"disable" json:"mode"`
}
-type _SourceAlloydbUpdateSSLModesDisable SourceAlloydbUpdateSSLModesDisable
-func (c *SourceAlloydbUpdateSSLModesDisable) UnmarshalJSON(bs []byte) error {
- data := _SourceAlloydbUpdateSSLModesDisable{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceAlloydbUpdateSSLModesDisable(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceAlloydbUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceAlloydbUpdateSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceAlloydbUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceAlloydbUpdateSSLModesDisable(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceAlloydbUpdateSSLModesDisable) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourceAlloydbUpdateSSLModesDisable) GetMode() SourceAlloydbUpdateSSLModesDisableMode {
+ return SourceAlloydbUpdateSSLModesDisableModeDisable
}
type SourceAlloydbUpdateSSLModesType string
@@ -856,57 +802,44 @@ func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateSSLModesVerifyFull(sour
}
func (u *SourceAlloydbUpdateSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbUpdateSSLModesDisable := new(SourceAlloydbUpdateSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesDisable, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesDisable = sourceAlloydbUpdateSSLModesDisable
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesDisable
return nil
}
sourceAlloydbUpdateSSLModesAllow := new(SourceAlloydbUpdateSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesAllow, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesAllow = sourceAlloydbUpdateSSLModesAllow
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesAllow
return nil
}
sourceAlloydbUpdateSSLModesPrefer := new(SourceAlloydbUpdateSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesPrefer, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesPrefer = sourceAlloydbUpdateSSLModesPrefer
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesPrefer
return nil
}
sourceAlloydbUpdateSSLModesRequire := new(SourceAlloydbUpdateSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesRequire, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesRequire = sourceAlloydbUpdateSSLModesRequire
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesRequire
return nil
}
sourceAlloydbUpdateSSLModesVerifyCa := new(SourceAlloydbUpdateSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesVerifyCa, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesVerifyCa = sourceAlloydbUpdateSSLModesVerifyCa
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesVerifyCa
return nil
}
sourceAlloydbUpdateSSLModesVerifyFull := new(SourceAlloydbUpdateSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSLModesVerifyFull, "", true, true); err == nil {
u.SourceAlloydbUpdateSSLModesVerifyFull = sourceAlloydbUpdateSSLModesVerifyFull
u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateSSLModesVerifyFull
return nil
@@ -917,30 +850,30 @@ func (u *SourceAlloydbUpdateSSLModes) UnmarshalJSON(data []byte) error {
func (u SourceAlloydbUpdateSSLModes) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbUpdateSSLModesDisable != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesDisable)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesDisable, "", true)
}
if u.SourceAlloydbUpdateSSLModesAllow != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesAllow)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesAllow, "", true)
}
if u.SourceAlloydbUpdateSSLModesPrefer != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesPrefer)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesPrefer, "", true)
}
if u.SourceAlloydbUpdateSSLModesRequire != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesRequire)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesRequire, "", true)
}
if u.SourceAlloydbUpdateSSLModesVerifyCa != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesVerifyCa)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesVerifyCa, "", true)
}
if u.SourceAlloydbUpdateSSLModesVerifyFull != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSLModesVerifyFull)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -973,15 +906,58 @@ type SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceAlloydbUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -1014,13 +990,56 @@ type SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -1049,7 +1068,22 @@ func (e *SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(d
// SourceAlloydbUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceAlloydbUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceAlloydbUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceAlloydbUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceAlloydbUpdateSSHTunnelMethodType string
@@ -1096,30 +1130,23 @@ func CreateSourceAlloydbUpdateSSHTunnelMethodSourceAlloydbUpdateSSHTunnelMethodP
}
func (u *SourceAlloydbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAlloydbUpdateSSHTunnelMethodNoTunnel := new(SourceAlloydbUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceAlloydbUpdateSSHTunnelMethodNoTunnel = sourceAlloydbUpdateSSHTunnelMethodNoTunnel
u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHTunnelMethodNoTunnel
return nil
}
sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication = sourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication := new(SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication = sourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -1130,18 +1157,18 @@ func (u *SourceAlloydbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceAlloydbUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceAlloydbUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAlloydbUpdate struct {
@@ -1154,7 +1181,7 @@ type SourceAlloydbUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// Replication method for extracting data from the database.
ReplicationMethod *SourceAlloydbUpdateReplicationMethod `json:"replication_method,omitempty"`
// The list of schemas (case sensitive) to sync from. Defaults to public.
@@ -1167,3 +1194,84 @@ type SourceAlloydbUpdate struct {
// Username to access the database.
Username string `json:"username"`
}
+
+func (s SourceAlloydbUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAlloydbUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAlloydbUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceAlloydbUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceAlloydbUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceAlloydbUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceAlloydbUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceAlloydbUpdate) GetReplicationMethod() *SourceAlloydbUpdateReplicationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceAlloydbUpdate) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceAlloydbUpdate) GetSslMode() *SourceAlloydbUpdateSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourceAlloydbUpdate) GetTunnelMethod() *SourceAlloydbUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceAlloydbUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonads.go b/internal/sdk/pkg/models/shared/sourceamazonads.go
old mode 100755
new mode 100644
index d2fa1f1f9..0da4f9429
--- a/internal/sdk/pkg/models/shared/sourceamazonads.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonads.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -162,13 +163,13 @@ func (e *SourceAmazonAdsStateFilter) UnmarshalJSON(data []byte) error {
}
type SourceAmazonAds struct {
- AuthType *SourceAmazonAdsAuthType `json:"auth_type,omitempty"`
+ authType *SourceAmazonAdsAuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The client ID of your Amazon Ads developer application. See the docs for more information.
ClientID string `json:"client_id"`
// The client secret of your Amazon Ads developer application. See the docs for more information.
ClientSecret string `json:"client_secret"`
// The amount of days to go back in time to get the updated data from Amazon Ads
- LookBackWindow *int64 `json:"look_back_window,omitempty"`
+ LookBackWindow *int64 `default:"3" json:"look_back_window"`
// Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
MarketplaceIds []string `json:"marketplace_ids,omitempty"`
// Profile IDs you want to fetch data for. See docs for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
@@ -176,12 +177,101 @@ type SourceAmazonAds struct {
// Amazon Ads refresh token. See the docs for more information on how to obtain this token.
RefreshToken string `json:"refresh_token"`
// Region to pull data from (EU/NA/FE). See docs for more details.
- Region *SourceAmazonAdsRegion `json:"region,omitempty"`
+ Region *SourceAmazonAdsRegion `default:"NA" json:"region"`
// Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See docs for more details
ReportRecordTypes []SourceAmazonAdsReportRecordTypes `json:"report_record_types,omitempty"`
- SourceType SourceAmazonAdsAmazonAds `json:"sourceType"`
+ sourceType SourceAmazonAdsAmazonAds `const:"amazon-ads" json:"sourceType"`
// The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format
StartDate *string `json:"start_date,omitempty"`
// Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely.
StateFilter []SourceAmazonAdsStateFilter `json:"state_filter,omitempty"`
}
+
+func (s SourceAmazonAds) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonAds) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonAds) GetAuthType() *SourceAmazonAdsAuthType {
+ return SourceAmazonAdsAuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceAmazonAds) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAmazonAds) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAmazonAds) GetLookBackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookBackWindow
+}
+
+func (o *SourceAmazonAds) GetMarketplaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MarketplaceIds
+}
+
+func (o *SourceAmazonAds) GetProfiles() []int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Profiles
+}
+
+func (o *SourceAmazonAds) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAmazonAds) GetRegion() *SourceAmazonAdsRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonAds) GetReportRecordTypes() []SourceAmazonAdsReportRecordTypes {
+ if o == nil {
+ return nil
+ }
+ return o.ReportRecordTypes
+}
+
+func (o *SourceAmazonAds) GetSourceType() SourceAmazonAdsAmazonAds {
+ return SourceAmazonAdsAmazonAdsAmazonAds
+}
+
+func (o *SourceAmazonAds) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceAmazonAds) GetStateFilter() []SourceAmazonAdsStateFilter {
+ if o == nil {
+ return nil
+ }
+ return o.StateFilter
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonadscreaterequest.go b/internal/sdk/pkg/models/shared/sourceamazonadscreaterequest.go
old mode 100755
new mode 100644
index ac301fb36..c77f8ccfd
--- a/internal/sdk/pkg/models/shared/sourceamazonadscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonadscreaterequest.go
@@ -9,3 +9,31 @@ type SourceAmazonAdsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonAdsCreateRequest) GetConfiguration() SourceAmazonAds {
+ if o == nil {
+ return SourceAmazonAds{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonAdsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonAdsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAmazonAdsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonadsputrequest.go b/internal/sdk/pkg/models/shared/sourceamazonadsputrequest.go
old mode 100755
new mode 100644
index abab7da3d..def2e8775
--- a/internal/sdk/pkg/models/shared/sourceamazonadsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonadsputrequest.go
@@ -7,3 +7,24 @@ type SourceAmazonAdsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonAdsPutRequest) GetConfiguration() SourceAmazonAdsUpdate {
+ if o == nil {
+ return SourceAmazonAdsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonAdsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonAdsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonadsupdate.go b/internal/sdk/pkg/models/shared/sourceamazonadsupdate.go
old mode 100755
new mode 100644
index 4087cc4ae..f67ba0a34
--- a/internal/sdk/pkg/models/shared/sourceamazonadsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonadsupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -138,13 +139,13 @@ func (e *SourceAmazonAdsUpdateStateFilter) UnmarshalJSON(data []byte) error {
}
type SourceAmazonAdsUpdate struct {
- AuthType *SourceAmazonAdsUpdateAuthType `json:"auth_type,omitempty"`
+ authType *SourceAmazonAdsUpdateAuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The client ID of your Amazon Ads developer application. See the docs for more information.
ClientID string `json:"client_id"`
// The client secret of your Amazon Ads developer application. See the docs for more information.
ClientSecret string `json:"client_secret"`
// The amount of days to go back in time to get the updated data from Amazon Ads
- LookBackWindow *int64 `json:"look_back_window,omitempty"`
+ LookBackWindow *int64 `default:"3" json:"look_back_window"`
// Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
MarketplaceIds []string `json:"marketplace_ids,omitempty"`
// Profile IDs you want to fetch data for. See docs for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID.
@@ -152,7 +153,7 @@ type SourceAmazonAdsUpdate struct {
// Amazon Ads refresh token. See the docs for more information on how to obtain this token.
RefreshToken string `json:"refresh_token"`
// Region to pull data from (EU/NA/FE). See docs for more details.
- Region *SourceAmazonAdsUpdateRegion `json:"region,omitempty"`
+ Region *SourceAmazonAdsUpdateRegion `default:"NA" json:"region"`
// Optional configuration which accepts an array of string of record types. Leave blank for default behaviour to pull all report types. Use this config option only if you want to pull specific report type(s). See docs for more details
ReportRecordTypes []SourceAmazonAdsUpdateReportRecordTypes `json:"report_record_types,omitempty"`
// The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format
@@ -160,3 +161,88 @@ type SourceAmazonAdsUpdate struct {
// Reflects the state of the Display, Product, and Brand Campaign streams as enabled, paused, or archived. If you do not populate this field, it will be ignored completely.
StateFilter []SourceAmazonAdsUpdateStateFilter `json:"state_filter,omitempty"`
}
+
+func (s SourceAmazonAdsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonAdsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonAdsUpdate) GetAuthType() *SourceAmazonAdsUpdateAuthType {
+ return SourceAmazonAdsUpdateAuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceAmazonAdsUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAmazonAdsUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAmazonAdsUpdate) GetLookBackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookBackWindow
+}
+
+func (o *SourceAmazonAdsUpdate) GetMarketplaceIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.MarketplaceIds
+}
+
+func (o *SourceAmazonAdsUpdate) GetProfiles() []int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Profiles
+}
+
+func (o *SourceAmazonAdsUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAmazonAdsUpdate) GetRegion() *SourceAmazonAdsUpdateRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonAdsUpdate) GetReportRecordTypes() []SourceAmazonAdsUpdateReportRecordTypes {
+ if o == nil {
+ return nil
+ }
+ return o.ReportRecordTypes
+}
+
+func (o *SourceAmazonAdsUpdate) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceAmazonAdsUpdate) GetStateFilter() []SourceAmazonAdsUpdateStateFilter {
+ if o == nil {
+ return nil
+ }
+ return o.StateFilter
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsellerpartner.go b/internal/sdk/pkg/models/shared/sourceamazonsellerpartner.go
old mode 100755
new mode 100644
index b66a76966..a8d79a417
--- a/internal/sdk/pkg/models/shared/sourceamazonsellerpartner.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsellerpartner.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -174,11 +175,11 @@ func (e *SourceAmazonSellerPartnerAmazonSellerPartner) UnmarshalJSON(data []byte
type SourceAmazonSellerPartner struct {
// Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.
AdvancedStreamOptions *string `json:"advanced_stream_options,omitempty"`
- AuthType *SourceAmazonSellerPartnerAuthType `json:"auth_type,omitempty"`
+ authType *SourceAmazonSellerPartnerAuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Specifies the AWS access key used as part of the credentials to authenticate the user.
AwsAccessKey *string `json:"aws_access_key,omitempty"`
// Select the AWS Environment.
- AwsEnvironment SourceAmazonSellerPartnerAWSEnvironment `json:"aws_environment"`
+ AwsEnvironment *SourceAmazonSellerPartnerAWSEnvironment `default:"PRODUCTION" json:"aws_environment"`
// Specifies the AWS secret key used as part of the credentials to authenticate the user.
AwsSecretKey *string `json:"aws_secret_key,omitempty"`
// Your Login with Amazon Client ID.
@@ -186,13 +187,13 @@ type SourceAmazonSellerPartner struct {
// Your Login with Amazon Client Secret.
LwaClientSecret string `json:"lwa_client_secret"`
// Sometimes report can take up to 30 minutes to generate. This will set the limit for how long to wait for a successful report.
- MaxWaitSeconds *int64 `json:"max_wait_seconds,omitempty"`
+ MaxWaitSeconds *int64 `default:"500" json:"max_wait_seconds"`
// Will be used for stream slicing for initial full_refresh sync when no updated state is present for reports that support sliced incremental sync.
- PeriodInDays *int64 `json:"period_in_days,omitempty"`
+ PeriodInDays *int64 `default:"90" json:"period_in_days"`
// The Refresh Token obtained via OAuth flow authorization.
RefreshToken string `json:"refresh_token"`
// Select the AWS Region.
- Region SourceAmazonSellerPartnerAWSRegion `json:"region"`
+ Region *SourceAmazonSellerPartnerAWSRegion `default:"US" json:"region"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated.
ReplicationEndDate *string `json:"replication_end_date,omitempty"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -201,5 +202,122 @@ type SourceAmazonSellerPartner struct {
ReportOptions *string `json:"report_options,omitempty"`
// Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).
RoleArn *string `json:"role_arn,omitempty"`
- SourceType SourceAmazonSellerPartnerAmazonSellerPartner `json:"sourceType"`
+ sourceType SourceAmazonSellerPartnerAmazonSellerPartner `const:"amazon-seller-partner" json:"sourceType"`
+}
+
+func (s SourceAmazonSellerPartner) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonSellerPartner) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonSellerPartner) GetAdvancedStreamOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvancedStreamOptions
+}
+
+func (o *SourceAmazonSellerPartner) GetAuthType() *SourceAmazonSellerPartnerAuthType {
+ return SourceAmazonSellerPartnerAuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceAmazonSellerPartner) GetAwsAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKey
+}
+
+func (o *SourceAmazonSellerPartner) GetAwsEnvironment() *SourceAmazonSellerPartnerAWSEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.AwsEnvironment
+}
+
+func (o *SourceAmazonSellerPartner) GetAwsSecretKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretKey
+}
+
+func (o *SourceAmazonSellerPartner) GetLwaAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.LwaAppID
+}
+
+func (o *SourceAmazonSellerPartner) GetLwaClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.LwaClientSecret
+}
+
+func (o *SourceAmazonSellerPartner) GetMaxWaitSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxWaitSeconds
+}
+
+func (o *SourceAmazonSellerPartner) GetPeriodInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PeriodInDays
+}
+
+func (o *SourceAmazonSellerPartner) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAmazonSellerPartner) GetRegion() *SourceAmazonSellerPartnerAWSRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonSellerPartner) GetReplicationEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationEndDate
+}
+
+func (o *SourceAmazonSellerPartner) GetReplicationStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ReplicationStartDate
+}
+
+func (o *SourceAmazonSellerPartner) GetReportOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReportOptions
+}
+
+func (o *SourceAmazonSellerPartner) GetRoleArn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RoleArn
+}
+
+func (o *SourceAmazonSellerPartner) GetSourceType() SourceAmazonSellerPartnerAmazonSellerPartner {
+ return SourceAmazonSellerPartnerAmazonSellerPartnerAmazonSellerPartner
}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnercreaterequest.go b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnercreaterequest.go
old mode 100755
new mode 100644
index 233a0f92b..6263ed7d8
--- a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnercreaterequest.go
@@ -9,3 +9,31 @@ type SourceAmazonSellerPartnerCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonSellerPartnerCreateRequest) GetConfiguration() SourceAmazonSellerPartner {
+ if o == nil {
+ return SourceAmazonSellerPartner{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonSellerPartnerCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonSellerPartnerCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAmazonSellerPartnerCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerputrequest.go b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerputrequest.go
old mode 100755
new mode 100644
index 77bd4150f..66cbe4444
--- a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerputrequest.go
@@ -7,3 +7,24 @@ type SourceAmazonSellerPartnerPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonSellerPartnerPutRequest) GetConfiguration() SourceAmazonSellerPartnerUpdate {
+ if o == nil {
+ return SourceAmazonSellerPartnerUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonSellerPartnerPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonSellerPartnerPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerupdate.go b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerupdate.go
old mode 100755
new mode 100644
index 1bfe4e1b5..5bb49b81f
--- a/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsellerpartnerupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -150,11 +151,11 @@ func (e *SourceAmazonSellerPartnerUpdateAWSRegion) UnmarshalJSON(data []byte) er
type SourceAmazonSellerPartnerUpdate struct {
// Additional information to configure report options. This varies by report type, not every report implement this kind of feature. Must be a valid json string.
AdvancedStreamOptions *string `json:"advanced_stream_options,omitempty"`
- AuthType *SourceAmazonSellerPartnerUpdateAuthType `json:"auth_type,omitempty"`
+ authType *SourceAmazonSellerPartnerUpdateAuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Specifies the AWS access key used as part of the credentials to authenticate the user.
AwsAccessKey *string `json:"aws_access_key,omitempty"`
// Select the AWS Environment.
- AwsEnvironment SourceAmazonSellerPartnerUpdateAWSEnvironment `json:"aws_environment"`
+ AwsEnvironment *SourceAmazonSellerPartnerUpdateAWSEnvironment `default:"PRODUCTION" json:"aws_environment"`
// Specifies the AWS secret key used as part of the credentials to authenticate the user.
AwsSecretKey *string `json:"aws_secret_key,omitempty"`
// Your Login with Amazon Client ID.
@@ -162,13 +163,13 @@ type SourceAmazonSellerPartnerUpdate struct {
// Your Login with Amazon Client Secret.
LwaClientSecret string `json:"lwa_client_secret"`
// Sometimes report can take up to 30 minutes to generate. This will set the limit for how long to wait for a successful report.
- MaxWaitSeconds *int64 `json:"max_wait_seconds,omitempty"`
+ MaxWaitSeconds *int64 `default:"500" json:"max_wait_seconds"`
// Will be used for stream slicing for initial full_refresh sync when no updated state is present for reports that support sliced incremental sync.
- PeriodInDays *int64 `json:"period_in_days,omitempty"`
+ PeriodInDays *int64 `default:"90" json:"period_in_days"`
// The Refresh Token obtained via OAuth flow authorization.
RefreshToken string `json:"refresh_token"`
// Select the AWS Region.
- Region SourceAmazonSellerPartnerUpdateAWSRegion `json:"region"`
+ Region *SourceAmazonSellerPartnerUpdateAWSRegion `default:"US" json:"region"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated.
ReplicationEndDate *string `json:"replication_end_date,omitempty"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
@@ -178,3 +179,116 @@ type SourceAmazonSellerPartnerUpdate struct {
// Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. (Needs permission to 'Assume Role' STS).
RoleArn *string `json:"role_arn,omitempty"`
}
+
+func (s SourceAmazonSellerPartnerUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonSellerPartnerUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetAdvancedStreamOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvancedStreamOptions
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetAuthType() *SourceAmazonSellerPartnerUpdateAuthType {
+ return SourceAmazonSellerPartnerUpdateAuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetAwsAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKey
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetAwsEnvironment() *SourceAmazonSellerPartnerUpdateAWSEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.AwsEnvironment
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetAwsSecretKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretKey
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetLwaAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.LwaAppID
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetLwaClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.LwaClientSecret
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetMaxWaitSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxWaitSeconds
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetPeriodInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PeriodInDays
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetRegion() *SourceAmazonSellerPartnerUpdateAWSRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetReplicationEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationEndDate
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetReplicationStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.ReplicationStartDate
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetReportOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReportOptions
+}
+
+func (o *SourceAmazonSellerPartnerUpdate) GetRoleArn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RoleArn
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsqs.go b/internal/sdk/pkg/models/shared/sourceamazonsqs.go
old mode 100755
new mode 100644
index 3c1ff0dd9..17330dd7d
--- a/internal/sdk/pkg/models/shared/sourceamazonsqs.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsqs.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -134,7 +135,7 @@ type SourceAmazonSqs struct {
// Comma separated list of Mesage Attribute names to return
AttributesToReturn *string `json:"attributes_to_return,omitempty"`
// If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail.
- DeleteMessages bool `json:"delete_messages"`
+ DeleteMessages *bool `default:"false" json:"delete_messages"`
// Max amount of messages to get in one batch (10 max)
MaxBatchSize *int64 `json:"max_batch_size,omitempty"`
// Max amount of time in seconds to wait for messages in a single poll (20 max)
@@ -145,7 +146,85 @@ type SourceAmazonSqs struct {
Region SourceAmazonSqsAWSRegion `json:"region"`
// The Secret Key of the AWS IAM Role to use for pulling messages
SecretKey *string `json:"secret_key,omitempty"`
- SourceType SourceAmazonSqsAmazonSqs `json:"sourceType"`
+ sourceType SourceAmazonSqsAmazonSqs `const:"amazon-sqs" json:"sourceType"`
// Modify the Visibility Timeout of the individual message from the Queue's default (seconds).
VisibilityTimeout *int64 `json:"visibility_timeout,omitempty"`
}
+
+func (s SourceAmazonSqs) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonSqs) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonSqs) GetAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKey
+}
+
+func (o *SourceAmazonSqs) GetAttributesToReturn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AttributesToReturn
+}
+
+func (o *SourceAmazonSqs) GetDeleteMessages() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DeleteMessages
+}
+
+func (o *SourceAmazonSqs) GetMaxBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxBatchSize
+}
+
+func (o *SourceAmazonSqs) GetMaxWaitTime() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxWaitTime
+}
+
+func (o *SourceAmazonSqs) GetQueueURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.QueueURL
+}
+
+func (o *SourceAmazonSqs) GetRegion() SourceAmazonSqsAWSRegion {
+ if o == nil {
+ return SourceAmazonSqsAWSRegion("")
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonSqs) GetSecretKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretKey
+}
+
+func (o *SourceAmazonSqs) GetSourceType() SourceAmazonSqsAmazonSqs {
+ return SourceAmazonSqsAmazonSqsAmazonSqs
+}
+
+func (o *SourceAmazonSqs) GetVisibilityTimeout() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.VisibilityTimeout
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsqscreaterequest.go b/internal/sdk/pkg/models/shared/sourceamazonsqscreaterequest.go
old mode 100755
new mode 100644
index 94ddf5ad1..1e7783fcb
--- a/internal/sdk/pkg/models/shared/sourceamazonsqscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsqscreaterequest.go
@@ -9,3 +9,31 @@ type SourceAmazonSqsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonSqsCreateRequest) GetConfiguration() SourceAmazonSqs {
+ if o == nil {
+ return SourceAmazonSqs{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonSqsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonSqsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAmazonSqsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsqsputrequest.go b/internal/sdk/pkg/models/shared/sourceamazonsqsputrequest.go
old mode 100755
new mode 100644
index cfa0a8568..acbbe8961
--- a/internal/sdk/pkg/models/shared/sourceamazonsqsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsqsputrequest.go
@@ -7,3 +7,24 @@ type SourceAmazonSqsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmazonSqsPutRequest) GetConfiguration() SourceAmazonSqsUpdate {
+ if o == nil {
+ return SourceAmazonSqsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmazonSqsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmazonSqsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamazonsqsupdate.go b/internal/sdk/pkg/models/shared/sourceamazonsqsupdate.go
old mode 100755
new mode 100644
index b1f526441..10e606d4d
--- a/internal/sdk/pkg/models/shared/sourceamazonsqsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceamazonsqsupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -110,7 +111,7 @@ type SourceAmazonSqsUpdate struct {
// Comma separated list of Mesage Attribute names to return
AttributesToReturn *string `json:"attributes_to_return,omitempty"`
// If Enabled, messages will be deleted from the SQS Queue after being read. If Disabled, messages are left in the queue and can be read more than once. WARNING: Enabling this option can result in data loss in cases of failure, use with caution, see documentation for more detail.
- DeleteMessages bool `json:"delete_messages"`
+ DeleteMessages *bool `default:"false" json:"delete_messages"`
// Max amount of messages to get in one batch (10 max)
MaxBatchSize *int64 `json:"max_batch_size,omitempty"`
// Max amount of time in seconds to wait for messages in a single poll (20 max)
@@ -124,3 +125,77 @@ type SourceAmazonSqsUpdate struct {
// Modify the Visibility Timeout of the individual message from the Queue's default (seconds).
VisibilityTimeout *int64 `json:"visibility_timeout,omitempty"`
}
+
+func (s SourceAmazonSqsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmazonSqsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmazonSqsUpdate) GetAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessKey
+}
+
+func (o *SourceAmazonSqsUpdate) GetAttributesToReturn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AttributesToReturn
+}
+
+func (o *SourceAmazonSqsUpdate) GetDeleteMessages() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DeleteMessages
+}
+
+func (o *SourceAmazonSqsUpdate) GetMaxBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxBatchSize
+}
+
+func (o *SourceAmazonSqsUpdate) GetMaxWaitTime() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxWaitTime
+}
+
+func (o *SourceAmazonSqsUpdate) GetQueueURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.QueueURL
+}
+
+func (o *SourceAmazonSqsUpdate) GetRegion() SourceAmazonSqsUpdateAWSRegion {
+ if o == nil {
+ return SourceAmazonSqsUpdateAWSRegion("")
+ }
+ return o.Region
+}
+
+func (o *SourceAmazonSqsUpdate) GetSecretKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretKey
+}
+
+func (o *SourceAmazonSqsUpdate) GetVisibilityTimeout() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.VisibilityTimeout
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamplitude.go b/internal/sdk/pkg/models/shared/sourceamplitude.go
old mode 100755
new mode 100644
index 983821900..cb6316d37
--- a/internal/sdk/pkg/models/shared/sourceamplitude.go
+++ b/internal/sdk/pkg/models/shared/sourceamplitude.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -63,12 +64,62 @@ type SourceAmplitude struct {
// Amplitude API Key. See the setup guide for more information on how to obtain this key.
APIKey string `json:"api_key"`
// Amplitude data region server
- DataRegion *SourceAmplitudeDataRegion `json:"data_region,omitempty"`
+ DataRegion *SourceAmplitudeDataRegion `default:"Standard Server" json:"data_region"`
// According to Considerations too big time range in request can cause a timeout error. In this case, set shorter time interval in hours.
- RequestTimeRange *int64 `json:"request_time_range,omitempty"`
+ RequestTimeRange *int64 `default:"24" json:"request_time_range"`
// Amplitude Secret Key. See the setup guide for more information on how to obtain this key.
SecretKey string `json:"secret_key"`
- SourceType SourceAmplitudeAmplitude `json:"sourceType"`
+ sourceType SourceAmplitudeAmplitude `const:"amplitude" json:"sourceType"`
// UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceAmplitude) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmplitude) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmplitude) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAmplitude) GetDataRegion() *SourceAmplitudeDataRegion {
+ if o == nil {
+ return nil
+ }
+ return o.DataRegion
+}
+
+func (o *SourceAmplitude) GetRequestTimeRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestTimeRange
+}
+
+func (o *SourceAmplitude) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceAmplitude) GetSourceType() SourceAmplitudeAmplitude {
+ return SourceAmplitudeAmplitudeAmplitude
+}
+
+func (o *SourceAmplitude) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamplitudecreaterequest.go b/internal/sdk/pkg/models/shared/sourceamplitudecreaterequest.go
old mode 100755
new mode 100644
index df0678050..4ce0cf120
--- a/internal/sdk/pkg/models/shared/sourceamplitudecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamplitudecreaterequest.go
@@ -9,3 +9,31 @@ type SourceAmplitudeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmplitudeCreateRequest) GetConfiguration() SourceAmplitude {
+ if o == nil {
+ return SourceAmplitude{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmplitudeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmplitudeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAmplitudeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamplitudeputrequest.go b/internal/sdk/pkg/models/shared/sourceamplitudeputrequest.go
old mode 100755
new mode 100644
index 82d9b960d..c7bcd7c34
--- a/internal/sdk/pkg/models/shared/sourceamplitudeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceamplitudeputrequest.go
@@ -7,3 +7,24 @@ type SourceAmplitudePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAmplitudePutRequest) GetConfiguration() SourceAmplitudeUpdate {
+ if o == nil {
+ return SourceAmplitudeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAmplitudePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAmplitudePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceamplitudeupdate.go b/internal/sdk/pkg/models/shared/sourceamplitudeupdate.go
old mode 100755
new mode 100644
index 300712106..01da17fea
--- a/internal/sdk/pkg/models/shared/sourceamplitudeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceamplitudeupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -39,11 +40,57 @@ type SourceAmplitudeUpdate struct {
// Amplitude API Key. See the setup guide for more information on how to obtain this key.
APIKey string `json:"api_key"`
// Amplitude data region server
- DataRegion *SourceAmplitudeUpdateDataRegion `json:"data_region,omitempty"`
+ DataRegion *SourceAmplitudeUpdateDataRegion `default:"Standard Server" json:"data_region"`
// According to Considerations too big time range in request can cause a timeout error. In this case, set shorter time interval in hours.
- RequestTimeRange *int64 `json:"request_time_range,omitempty"`
+ RequestTimeRange *int64 `default:"24" json:"request_time_range"`
// Amplitude Secret Key. See the setup guide for more information on how to obtain this key.
SecretKey string `json:"secret_key"`
// UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceAmplitudeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAmplitudeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAmplitudeUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceAmplitudeUpdate) GetDataRegion() *SourceAmplitudeUpdateDataRegion {
+ if o == nil {
+ return nil
+ }
+ return o.DataRegion
+}
+
+func (o *SourceAmplitudeUpdate) GetRequestTimeRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestTimeRange
+}
+
+func (o *SourceAmplitudeUpdate) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceAmplitudeUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceapifydataset.go b/internal/sdk/pkg/models/shared/sourceapifydataset.go
old mode 100755
new mode 100644
index ac5137d45..546dfa902
--- a/internal/sdk/pkg/models/shared/sourceapifydataset.go
+++ b/internal/sdk/pkg/models/shared/sourceapifydataset.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,7 +37,43 @@ type SourceApifyDataset struct {
Clean *bool `json:"clean,omitempty"`
// ID of the dataset you would like to load to Airbyte.
DatasetID *string `json:"datasetId,omitempty"`
- SourceType SourceApifyDatasetApifyDataset `json:"sourceType"`
+ sourceType SourceApifyDatasetApifyDataset `const:"apify-dataset" json:"sourceType"`
// Your application's Client Secret. You can find this value on the console integrations tab after you login.
Token string `json:"token"`
}
+
+func (s SourceApifyDataset) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceApifyDataset) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceApifyDataset) GetClean() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Clean
+}
+
+func (o *SourceApifyDataset) GetDatasetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetID
+}
+
+func (o *SourceApifyDataset) GetSourceType() SourceApifyDatasetApifyDataset {
+ return SourceApifyDatasetApifyDatasetApifyDataset
+}
+
+func (o *SourceApifyDataset) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourceapifydatasetcreaterequest.go b/internal/sdk/pkg/models/shared/sourceapifydatasetcreaterequest.go
old mode 100755
new mode 100644
index 07a166215..7e4889603
--- a/internal/sdk/pkg/models/shared/sourceapifydatasetcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceapifydatasetcreaterequest.go
@@ -9,3 +9,31 @@ type SourceApifyDatasetCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceApifyDatasetCreateRequest) GetConfiguration() SourceApifyDataset {
+ if o == nil {
+ return SourceApifyDataset{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceApifyDatasetCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceApifyDatasetCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceApifyDatasetCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceapifydatasetputrequest.go b/internal/sdk/pkg/models/shared/sourceapifydatasetputrequest.go
old mode 100755
new mode 100644
index c6e66d240..2309617a7
--- a/internal/sdk/pkg/models/shared/sourceapifydatasetputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceapifydatasetputrequest.go
@@ -7,3 +7,24 @@ type SourceApifyDatasetPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceApifyDatasetPutRequest) GetConfiguration() SourceApifyDatasetUpdate {
+ if o == nil {
+ return SourceApifyDatasetUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceApifyDatasetPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceApifyDatasetPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceapifydatasetupdate.go b/internal/sdk/pkg/models/shared/sourceapifydatasetupdate.go
old mode 100755
new mode 100644
index 750eddd04..22b66ffcf
--- a/internal/sdk/pkg/models/shared/sourceapifydatasetupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceapifydatasetupdate.go
@@ -10,3 +10,24 @@ type SourceApifyDatasetUpdate struct {
// Your application's Client Secret. You can find this value on the console integrations tab after you login.
Token string `json:"token"`
}
+
+func (o *SourceApifyDatasetUpdate) GetClean() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Clean
+}
+
+func (o *SourceApifyDatasetUpdate) GetDatasetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetID
+}
+
+func (o *SourceApifyDatasetUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourceappfollow.go b/internal/sdk/pkg/models/shared/sourceappfollow.go
old mode 100755
new mode 100644
index e5fd9602e..31ad60af0
--- a/internal/sdk/pkg/models/shared/sourceappfollow.go
+++ b/internal/sdk/pkg/models/shared/sourceappfollow.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceAppfollowAppfollow) UnmarshalJSON(data []byte) error {
type SourceAppfollow struct {
// API Key provided by Appfollow
APISecret *string `json:"api_secret,omitempty"`
- SourceType SourceAppfollowAppfollow `json:"sourceType"`
+ sourceType SourceAppfollowAppfollow `const:"appfollow" json:"sourceType"`
+}
+
+func (s SourceAppfollow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAppfollow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAppfollow) GetAPISecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APISecret
+}
+
+func (o *SourceAppfollow) GetSourceType() SourceAppfollowAppfollow {
+ return SourceAppfollowAppfollowAppfollow
}
diff --git a/internal/sdk/pkg/models/shared/sourceappfollowcreaterequest.go b/internal/sdk/pkg/models/shared/sourceappfollowcreaterequest.go
old mode 100755
new mode 100644
index 226e71d8f..a169dc0ba
--- a/internal/sdk/pkg/models/shared/sourceappfollowcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceappfollowcreaterequest.go
@@ -9,3 +9,31 @@ type SourceAppfollowCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAppfollowCreateRequest) GetConfiguration() SourceAppfollow {
+ if o == nil {
+ return SourceAppfollow{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAppfollowCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAppfollowCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAppfollowCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceappfollowputrequest.go b/internal/sdk/pkg/models/shared/sourceappfollowputrequest.go
old mode 100755
new mode 100644
index 926e11394..9d8b57a69
--- a/internal/sdk/pkg/models/shared/sourceappfollowputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceappfollowputrequest.go
@@ -7,3 +7,24 @@ type SourceAppfollowPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAppfollowPutRequest) GetConfiguration() SourceAppfollowUpdate {
+ if o == nil {
+ return SourceAppfollowUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAppfollowPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAppfollowPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceappfollowupdate.go b/internal/sdk/pkg/models/shared/sourceappfollowupdate.go
old mode 100755
new mode 100644
index 3808d89c3..baeab5ebb
--- a/internal/sdk/pkg/models/shared/sourceappfollowupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceappfollowupdate.go
@@ -6,3 +6,10 @@ type SourceAppfollowUpdate struct {
// API Key provided by Appfollow
APISecret *string `json:"api_secret,omitempty"`
}
+
+func (o *SourceAppfollowUpdate) GetAPISecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APISecret
+}
diff --git a/internal/sdk/pkg/models/shared/sourceasana.go b/internal/sdk/pkg/models/shared/sourceasana.go
old mode 100755
new mode 100644
index ced0f41a3..4476d19d2
--- a/internal/sdk/pkg/models/shared/sourceasana.go
+++ b/internal/sdk/pkg/models/shared/sourceasana.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,33 @@ func (e *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCr
// SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken - Choose how to authenticate to Github
type SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
// PAT Credentials
- OptionTitle *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle `json:"option_title,omitempty"`
+ optionTitle *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle `const:"PAT Credentials" json:"option_title,omitempty"`
// Asana Personal Access Token (generate yours here).
PersonalAccessToken string `json:"personal_access_token"`
}
+func (s SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetOptionTitle() *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle {
+ return SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitlePatCredentials.ToPointer()
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.PersonalAccessToken
+}
+
// SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle - OAuth Credentials
type SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle string
@@ -72,10 +94,46 @@ type SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth struct {
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
// OAuth Credentials
- OptionTitle *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle `json:"option_title,omitempty"`
+ optionTitle *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle `const:"OAuth Credentials" json:"option_title,omitempty"`
RefreshToken string `json:"refresh_token"`
}
+func (s SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) GetOptionTitle() *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle {
+ return SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitleOAuthCredentials.ToPointer()
+}
+
+func (o *SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceAsanaAuthenticationMechanismType string
const (
@@ -109,21 +167,16 @@ func CreateSourceAsanaAuthenticationMechanismSourceAsanaAuthenticationMechanismA
}
func (u *SourceAsanaAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken := new(SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true, true); err == nil {
u.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken = sourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken
u.Type = SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken
return nil
}
sourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth := new(SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth, "", true, true); err == nil {
u.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth = sourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth
u.Type = SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth
return nil
@@ -133,15 +186,15 @@ func (u *SourceAsanaAuthenticationMechanism) UnmarshalJSON(data []byte) error {
}
func (u SourceAsanaAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- return json.Marshal(u.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken)
+ if u.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
+ return utils.MarshalJSON(u.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth, "", true)
}
- if u.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
- return json.Marshal(u.SourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth)
+ if u.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAsanaAsana string
@@ -171,5 +224,27 @@ func (e *SourceAsanaAsana) UnmarshalJSON(data []byte) error {
type SourceAsana struct {
// Choose how to authenticate to Github
Credentials *SourceAsanaAuthenticationMechanism `json:"credentials,omitempty"`
- SourceType *SourceAsanaAsana `json:"sourceType,omitempty"`
+ sourceType *SourceAsanaAsana `const:"asana" json:"sourceType,omitempty"`
+}
+
+func (s SourceAsana) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAsana) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAsana) GetCredentials() *SourceAsanaAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceAsana) GetSourceType() *SourceAsanaAsana {
+ return SourceAsanaAsanaAsana.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourceasanacreaterequest.go b/internal/sdk/pkg/models/shared/sourceasanacreaterequest.go
old mode 100755
new mode 100644
index d209f9578..0dfd9871e
--- a/internal/sdk/pkg/models/shared/sourceasanacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceasanacreaterequest.go
@@ -9,3 +9,31 @@ type SourceAsanaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAsanaCreateRequest) GetConfiguration() SourceAsana {
+ if o == nil {
+ return SourceAsana{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAsanaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAsanaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAsanaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceasanaputrequest.go b/internal/sdk/pkg/models/shared/sourceasanaputrequest.go
old mode 100755
new mode 100644
index 150b49d1f..9b041f7e1
--- a/internal/sdk/pkg/models/shared/sourceasanaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceasanaputrequest.go
@@ -7,3 +7,24 @@ type SourceAsanaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAsanaPutRequest) GetConfiguration() SourceAsanaUpdate {
+ if o == nil {
+ return SourceAsanaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAsanaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAsanaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceasanaupdate.go b/internal/sdk/pkg/models/shared/sourceasanaupdate.go
old mode 100755
new mode 100644
index 0ef1dc6b2..35ff0215f
--- a/internal/sdk/pkg/models/shared/sourceasanaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceasanaupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,33 @@ func (e *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessT
// SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken - Choose how to authenticate to Github
type SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
// PAT Credentials
- OptionTitle *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle `json:"option_title,omitempty"`
+ optionTitle *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle `const:"PAT Credentials" json:"option_title,omitempty"`
// Asana Personal Access Token (generate yours here).
PersonalAccessToken string `json:"personal_access_token"`
}
+func (s SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetOptionTitle() *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitle {
+ return SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenCredentialsTitlePatCredentials.ToPointer()
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.PersonalAccessToken
+}
+
// SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle - OAuth Credentials
type SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle string
@@ -72,10 +94,46 @@ type SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth struct {
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
// OAuth Credentials
- OptionTitle *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle `json:"option_title,omitempty"`
+ optionTitle *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle `const:"OAuth Credentials" json:"option_title,omitempty"`
RefreshToken string `json:"refresh_token"`
}
+func (s SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) GetOptionTitle() *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitle {
+ return SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauthCredentialsTitleOAuthCredentials.ToPointer()
+}
+
+func (o *SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceAsanaUpdateAuthenticationMechanismType string
const (
@@ -109,21 +167,16 @@ func CreateSourceAsanaUpdateAuthenticationMechanismSourceAsanaUpdateAuthenticati
}
func (u *SourceAsanaUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken := new(SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true, true); err == nil {
u.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken = sourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
u.Type = SourceAsanaUpdateAuthenticationMechanismTypeSourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
return nil
}
sourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth := new(SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth, "", true, true); err == nil {
u.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth = sourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth
u.Type = SourceAsanaUpdateAuthenticationMechanismTypeSourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth
return nil
@@ -133,18 +186,25 @@ func (u *SourceAsanaUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) er
}
func (u SourceAsanaUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- return json.Marshal(u.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken)
+ if u.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
+ return utils.MarshalJSON(u.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth, "", true)
}
- if u.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth != nil {
- return json.Marshal(u.SourceAsanaUpdateAuthenticationMechanismAuthenticateViaAsanaOauth)
+ if u.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceAsanaUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAsanaUpdate struct {
// Choose how to authenticate to Github
Credentials *SourceAsanaUpdateAuthenticationMechanism `json:"credentials,omitempty"`
}
+
+func (o *SourceAsanaUpdate) GetCredentials() *SourceAsanaUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourceauth0.go b/internal/sdk/pkg/models/shared/sourceauth0.go
old mode 100755
new mode 100644
index ee9c68f65..89b3b1a6d
--- a/internal/sdk/pkg/models/shared/sourceauth0.go
+++ b/internal/sdk/pkg/models/shared/sourceauth0.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethod) U
type SourceAuth0AuthenticationMethodOAuth2AccessToken struct {
// Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
AccessToken string `json:"access_token"`
- AuthType SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethod `json:"auth_type"`
+ authType SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethod `const:"oauth2_access_token" json:"auth_type"`
+}
+
+func (s SourceAuth0AuthenticationMethodOAuth2AccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0AuthenticationMethodOAuth2AccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2AccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2AccessToken) GetAuthType() SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethod {
+ return SourceAuth0AuthenticationMethodOAuth2AccessTokenAuthenticationMethodOauth2AccessToken
}
type SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod string
@@ -66,13 +88,49 @@ func (e *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticat
type SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication struct {
// The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
Audience string `json:"audience"`
- AuthType SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod `json:"auth_type"`
+ authType SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod `const:"oauth2_confidential_application" json:"auth_type"`
// Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
ClientID string `json:"client_id"`
// Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
ClientSecret string `json:"client_secret"`
}
+func (s SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) GetAudience() string {
+ if o == nil {
+ return ""
+ }
+ return o.Audience
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) GetAuthType() SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod {
+ return SourceAuth0AuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethodOauth2ConfidentialApplication
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceAuth0AuthenticationMethodType string
const (
@@ -106,21 +164,16 @@ func CreateSourceAuth0AuthenticationMethodSourceAuth0AuthenticationMethodOAuth2A
}
func (u *SourceAuth0AuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAuth0AuthenticationMethodOAuth2AccessToken := new(SourceAuth0AuthenticationMethodOAuth2AccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAuth0AuthenticationMethodOAuth2AccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAuth0AuthenticationMethodOAuth2AccessToken, "", true, true); err == nil {
u.SourceAuth0AuthenticationMethodOAuth2AccessToken = sourceAuth0AuthenticationMethodOAuth2AccessToken
u.Type = SourceAuth0AuthenticationMethodTypeSourceAuth0AuthenticationMethodOAuth2AccessToken
return nil
}
sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication := new(SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication, "", true, true); err == nil {
u.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication = sourceAuth0AuthenticationMethodOAuth2ConfidentialApplication
u.Type = SourceAuth0AuthenticationMethodTypeSourceAuth0AuthenticationMethodOAuth2ConfidentialApplication
return nil
@@ -130,15 +183,15 @@ func (u *SourceAuth0AuthenticationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceAuth0AuthenticationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceAuth0AuthenticationMethodOAuth2AccessToken != nil {
- return json.Marshal(u.SourceAuth0AuthenticationMethodOAuth2AccessToken)
+ if u.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication != nil {
+ return utils.MarshalJSON(u.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication, "", true)
}
- if u.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication != nil {
- return json.Marshal(u.SourceAuth0AuthenticationMethodOAuth2ConfidentialApplication)
+ if u.SourceAuth0AuthenticationMethodOAuth2AccessToken != nil {
+ return utils.MarshalJSON(u.SourceAuth0AuthenticationMethodOAuth2AccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAuth0Auth0 string
@@ -169,7 +222,43 @@ type SourceAuth0 struct {
// The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN`
BaseURL string `json:"base_url"`
Credentials SourceAuth0AuthenticationMethod `json:"credentials"`
- SourceType SourceAuth0Auth0 `json:"sourceType"`
+ sourceType SourceAuth0Auth0 `const:"auth0" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- StartDate *string `json:"start_date,omitempty"`
+ StartDate *string `default:"2023-08-05T00:43:59.244Z" json:"start_date"`
+}
+
+func (s SourceAuth0) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0) GetBaseURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.BaseURL
+}
+
+func (o *SourceAuth0) GetCredentials() SourceAuth0AuthenticationMethod {
+ if o == nil {
+ return SourceAuth0AuthenticationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceAuth0) GetSourceType() SourceAuth0Auth0 {
+ return SourceAuth0Auth0Auth0
+}
+
+func (o *SourceAuth0) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceauth0createrequest.go b/internal/sdk/pkg/models/shared/sourceauth0createrequest.go
old mode 100755
new mode 100644
index 91e72e6bc..73faf2b8d
--- a/internal/sdk/pkg/models/shared/sourceauth0createrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceauth0createrequest.go
@@ -9,3 +9,31 @@ type SourceAuth0CreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAuth0CreateRequest) GetConfiguration() SourceAuth0 {
+ if o == nil {
+ return SourceAuth0{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAuth0CreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAuth0CreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAuth0CreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceauth0putrequest.go b/internal/sdk/pkg/models/shared/sourceauth0putrequest.go
old mode 100755
new mode 100644
index f47f23e7a..a1e174176
--- a/internal/sdk/pkg/models/shared/sourceauth0putrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceauth0putrequest.go
@@ -7,3 +7,24 @@ type SourceAuth0PutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAuth0PutRequest) GetConfiguration() SourceAuth0Update {
+ if o == nil {
+ return SourceAuth0Update{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAuth0PutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAuth0PutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceauth0update.go b/internal/sdk/pkg/models/shared/sourceauth0update.go
old mode 100755
new mode 100644
index 6b35171d2..60888754b
--- a/internal/sdk/pkg/models/shared/sourceauth0update.go
+++ b/internal/sdk/pkg/models/shared/sourceauth0update.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMet
type SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken struct {
// Also called API Access Token The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes.
AccessToken string `json:"access_token"`
- AuthType SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMethod `json:"auth_type"`
+ authType SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMethod `const:"oauth2_access_token" json:"auth_type"`
+}
+
+func (s SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken) GetAuthType() SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMethod {
+ return SourceAuth0UpdateAuthenticationMethodOAuth2AccessTokenAuthenticationMethodOauth2AccessToken
}
type SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod string
@@ -66,13 +88,49 @@ func (e *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthe
type SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication struct {
// The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab
Audience string `json:"audience"`
- AuthType SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod `json:"auth_type"`
+ authType SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod `const:"oauth2_confidential_application" json:"auth_type"`
// Your application's Client ID. You can find this value on the application's settings tab after you login the admin portal.
ClientID string `json:"client_id"`
// Your application's Client Secret. You can find this value on the application's settings tab after you login the admin portal.
ClientSecret string `json:"client_secret"`
}
+func (s SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) GetAudience() string {
+ if o == nil {
+ return ""
+ }
+ return o.Audience
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) GetAuthType() SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethod {
+ return SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplicationAuthenticationMethodOauth2ConfidentialApplication
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceAuth0UpdateAuthenticationMethodType string
const (
@@ -106,21 +164,16 @@ func CreateSourceAuth0UpdateAuthenticationMethodSourceAuth0UpdateAuthenticationM
}
func (u *SourceAuth0UpdateAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken := new(SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken, "", true, true); err == nil {
u.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken = sourceAuth0UpdateAuthenticationMethodOAuth2AccessToken
u.Type = SourceAuth0UpdateAuthenticationMethodTypeSourceAuth0UpdateAuthenticationMethodOAuth2AccessToken
return nil
}
sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication := new(SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication, "", true, true); err == nil {
u.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication = sourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication
u.Type = SourceAuth0UpdateAuthenticationMethodTypeSourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication
return nil
@@ -130,15 +183,15 @@ func (u *SourceAuth0UpdateAuthenticationMethod) UnmarshalJSON(data []byte) error
}
func (u SourceAuth0UpdateAuthenticationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken != nil {
- return json.Marshal(u.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken)
+ if u.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication != nil {
+ return utils.MarshalJSON(u.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication, "", true)
}
- if u.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication != nil {
- return json.Marshal(u.SourceAuth0UpdateAuthenticationMethodOAuth2ConfidentialApplication)
+ if u.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken != nil {
+ return utils.MarshalJSON(u.SourceAuth0UpdateAuthenticationMethodOAuth2AccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAuth0Update struct {
@@ -146,5 +199,37 @@ type SourceAuth0Update struct {
BaseURL string `json:"base_url"`
Credentials SourceAuth0UpdateAuthenticationMethod `json:"credentials"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
- StartDate *string `json:"start_date,omitempty"`
+ StartDate *string `default:"2023-08-05T00:43:59.244Z" json:"start_date"`
+}
+
+func (s SourceAuth0Update) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAuth0Update) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAuth0Update) GetBaseURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.BaseURL
+}
+
+func (o *SourceAuth0Update) GetCredentials() SourceAuth0UpdateAuthenticationMethod {
+ if o == nil {
+ return SourceAuth0UpdateAuthenticationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceAuth0Update) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceawscloudtrail.go b/internal/sdk/pkg/models/shared/sourceawscloudtrail.go
old mode 100755
new mode 100644
index 63815d2aa..4d35c4d8b
--- a/internal/sdk/pkg/models/shared/sourceawscloudtrail.go
+++ b/internal/sdk/pkg/models/shared/sourceawscloudtrail.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -39,7 +40,50 @@ type SourceAwsCloudtrail struct {
AwsRegionName string `json:"aws_region_name"`
// AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
AwsSecretKey string `json:"aws_secret_key"`
- SourceType SourceAwsCloudtrailAwsCloudtrail `json:"sourceType"`
+ sourceType SourceAwsCloudtrailAwsCloudtrail `const:"aws-cloudtrail" json:"sourceType"`
// The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- StartDate types.Date `json:"start_date"`
+ StartDate *types.Date `default:"1970-01-01" json:"start_date"`
+}
+
+func (s SourceAwsCloudtrail) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAwsCloudtrail) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAwsCloudtrail) GetAwsKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeyID
+}
+
+func (o *SourceAwsCloudtrail) GetAwsRegionName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsRegionName
+}
+
+func (o *SourceAwsCloudtrail) GetAwsSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsSecretKey
+}
+
+func (o *SourceAwsCloudtrail) GetSourceType() SourceAwsCloudtrailAwsCloudtrail {
+ return SourceAwsCloudtrailAwsCloudtrailAwsCloudtrail
+}
+
+func (o *SourceAwsCloudtrail) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceawscloudtrailcreaterequest.go b/internal/sdk/pkg/models/shared/sourceawscloudtrailcreaterequest.go
old mode 100755
new mode 100644
index 3cc0b1399..28fa08bba
--- a/internal/sdk/pkg/models/shared/sourceawscloudtrailcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceawscloudtrailcreaterequest.go
@@ -9,3 +9,31 @@ type SourceAwsCloudtrailCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAwsCloudtrailCreateRequest) GetConfiguration() SourceAwsCloudtrail {
+ if o == nil {
+ return SourceAwsCloudtrail{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAwsCloudtrailCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAwsCloudtrailCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAwsCloudtrailCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceawscloudtrailputrequest.go b/internal/sdk/pkg/models/shared/sourceawscloudtrailputrequest.go
old mode 100755
new mode 100644
index 31fbf24eb..bce01c2fa
--- a/internal/sdk/pkg/models/shared/sourceawscloudtrailputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceawscloudtrailputrequest.go
@@ -7,3 +7,24 @@ type SourceAwsCloudtrailPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAwsCloudtrailPutRequest) GetConfiguration() SourceAwsCloudtrailUpdate {
+ if o == nil {
+ return SourceAwsCloudtrailUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAwsCloudtrailPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAwsCloudtrailPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceawscloudtrailupdate.go b/internal/sdk/pkg/models/shared/sourceawscloudtrailupdate.go
old mode 100755
new mode 100644
index d77845da3..bdf16eabe
--- a/internal/sdk/pkg/models/shared/sourceawscloudtrailupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceawscloudtrailupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceAwsCloudtrailUpdate struct {
@@ -14,5 +15,44 @@ type SourceAwsCloudtrailUpdate struct {
// AWS CloudTrail Access Key ID. See the docs for more information on how to obtain this key.
AwsSecretKey string `json:"aws_secret_key"`
// The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD.
- StartDate types.Date `json:"start_date"`
+ StartDate *types.Date `default:"1970-01-01" json:"start_date"`
+}
+
+func (s SourceAwsCloudtrailUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAwsCloudtrailUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAwsCloudtrailUpdate) GetAwsKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsKeyID
+}
+
+func (o *SourceAwsCloudtrailUpdate) GetAwsRegionName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsRegionName
+}
+
+func (o *SourceAwsCloudtrailUpdate) GetAwsSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AwsSecretKey
+}
+
+func (o *SourceAwsCloudtrailUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstorage.go b/internal/sdk/pkg/models/shared/sourceazureblobstorage.go
old mode 100755
new mode 100644
index 0add41315..e15e54f78
--- a/internal/sdk/pkg/models/shared/sourceazureblobstorage.go
+++ b/internal/sdk/pkg/models/shared/sourceazureblobstorage.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatTyp
// SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON - Input data format
type SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ formatType SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatType `const:"JSONL" json:"format_type"`
+}
+
+func (s SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ return SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSONFormatTypeJsonl
}
type SourceAzureBlobStorageInputFormatType string
@@ -60,12 +75,9 @@ func CreateSourceAzureBlobStorageInputFormatSourceAzureBlobStorageInputFormatJSO
}
func (u *SourceAzureBlobStorageInputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON = sourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON
u.Type = SourceAzureBlobStorageInputFormatTypeSourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON
return nil
@@ -76,10 +88,10 @@ func (u *SourceAzureBlobStorageInputFormat) UnmarshalJSON(data []byte) error {
func (u SourceAzureBlobStorageInputFormat) MarshalJSON() ([]byte, error) {
if u.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.SourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAzureBlobStorageAzureBlobStorage string
@@ -116,10 +128,74 @@ type SourceAzureBlobStorage struct {
// The name of the Azure blob storage container.
AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpoint *string `json:"azure_blob_storage_endpoint,omitempty"`
+ AzureBlobStorageEndpoint *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint"`
// The Azure blob storage blobs to scan for inferring the schema, useful on large amounts of data with consistent structure
AzureBlobStorageSchemaInferenceLimit *int64 `json:"azure_blob_storage_schema_inference_limit,omitempty"`
// Input data format
Format SourceAzureBlobStorageInputFormat `json:"format"`
- SourceType SourceAzureBlobStorageAzureBlobStorage `json:"sourceType"`
+ sourceType SourceAzureBlobStorageAzureBlobStorage `const:"azure-blob-storage" json:"sourceType"`
+}
+
+func (s SourceAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageAccountKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountKey
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageBlobsPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageBlobsPrefix
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageContainerName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpoint
+}
+
+func (o *SourceAzureBlobStorage) GetAzureBlobStorageSchemaInferenceLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageSchemaInferenceLimit
+}
+
+func (o *SourceAzureBlobStorage) GetFormat() SourceAzureBlobStorageInputFormat {
+ if o == nil {
+ return SourceAzureBlobStorageInputFormat{}
+ }
+ return o.Format
+}
+
+func (o *SourceAzureBlobStorage) GetSourceType() SourceAzureBlobStorageAzureBlobStorage {
+ return SourceAzureBlobStorageAzureBlobStorageAzureBlobStorage
}
diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstoragecreaterequest.go b/internal/sdk/pkg/models/shared/sourceazureblobstoragecreaterequest.go
old mode 100755
new mode 100644
index 567c09282..38e9ee511
--- a/internal/sdk/pkg/models/shared/sourceazureblobstoragecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceazureblobstoragecreaterequest.go
@@ -9,3 +9,31 @@ type SourceAzureBlobStorageCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAzureBlobStorageCreateRequest) GetConfiguration() SourceAzureBlobStorage {
+ if o == nil {
+ return SourceAzureBlobStorage{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAzureBlobStorageCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAzureBlobStorageCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAzureBlobStorageCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstorageputrequest.go b/internal/sdk/pkg/models/shared/sourceazureblobstorageputrequest.go
old mode 100755
new mode 100644
index daf47b6e5..314e04c39
--- a/internal/sdk/pkg/models/shared/sourceazureblobstorageputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceazureblobstorageputrequest.go
@@ -7,3 +7,24 @@ type SourceAzureBlobStoragePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAzureBlobStoragePutRequest) GetConfiguration() SourceAzureBlobStorageUpdate {
+ if o == nil {
+ return SourceAzureBlobStorageUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAzureBlobStoragePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAzureBlobStoragePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go b/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go
old mode 100755
new mode 100644
index 8165b4e49..bbda3ad6a
--- a/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFor
// SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON - Input data format
type SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON struct {
- FormatType SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFormatType `json:"format_type"`
+ formatType SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFormatType `const:"JSONL" json:"format_type"`
+}
+
+func (s SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON) GetFormatType() SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFormatType {
+ return SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSONFormatTypeJsonl
}
type SourceAzureBlobStorageUpdateInputFormatType string
@@ -60,12 +75,9 @@ func CreateSourceAzureBlobStorageUpdateInputFormatSourceAzureBlobStorageUpdateIn
}
func (u *SourceAzureBlobStorageUpdateInputFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON, "", true, true); err == nil {
u.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON = sourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON
u.Type = SourceAzureBlobStorageUpdateInputFormatTypeSourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON
return nil
@@ -76,10 +88,10 @@ func (u *SourceAzureBlobStorageUpdateInputFormat) UnmarshalJSON(data []byte) err
func (u SourceAzureBlobStorageUpdateInputFormat) MarshalJSON() ([]byte, error) {
if u.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON != nil {
- return json.Marshal(u.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON)
+ return utils.MarshalJSON(u.SourceAzureBlobStorageUpdateInputFormatJSONLinesNewlineDelimitedJSON, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceAzureBlobStorageUpdate struct {
@@ -92,9 +104,69 @@ type SourceAzureBlobStorageUpdate struct {
// The name of the Azure blob storage container.
AzureBlobStorageContainerName string `json:"azure_blob_storage_container_name"`
// This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example.
- AzureBlobStorageEndpoint *string `json:"azure_blob_storage_endpoint,omitempty"`
+ AzureBlobStorageEndpoint *string `default:"blob.core.windows.net" json:"azure_blob_storage_endpoint"`
// The Azure blob storage blobs to scan for inferring the schema, useful on large amounts of data with consistent structure
AzureBlobStorageSchemaInferenceLimit *int64 `json:"azure_blob_storage_schema_inference_limit,omitempty"`
// Input data format
Format SourceAzureBlobStorageUpdateInputFormat `json:"format"`
}
+
+func (s SourceAzureBlobStorageUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureBlobStorageUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageAccountKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountKey
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageAccountName
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageBlobsPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageBlobsPrefix
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageContainerName() string {
+ if o == nil {
+ return ""
+ }
+ return o.AzureBlobStorageContainerName
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageEndpoint
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetAzureBlobStorageSchemaInferenceLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AzureBlobStorageSchemaInferenceLimit
+}
+
+func (o *SourceAzureBlobStorageUpdate) GetFormat() SourceAzureBlobStorageUpdateInputFormat {
+ if o == nil {
+ return SourceAzureBlobStorageUpdateInputFormat{}
+ }
+ return o.Format
+}
diff --git a/internal/sdk/pkg/models/shared/sourceazuretable.go b/internal/sdk/pkg/models/shared/sourceazuretable.go
old mode 100755
new mode 100644
index f6d5f1a86..0ac9834d5
--- a/internal/sdk/pkg/models/shared/sourceazuretable.go
+++ b/internal/sdk/pkg/models/shared/sourceazuretable.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,11 +33,47 @@ func (e *SourceAzureTableAzureTable) UnmarshalJSON(data []byte) error {
}
type SourceAzureTable struct {
- SourceType SourceAzureTableAzureTable `json:"sourceType"`
+ sourceType SourceAzureTableAzureTable `const:"azure-table" json:"sourceType"`
// Azure Table Storage Access Key. See the docs for more information on how to obtain this key.
StorageAccessKey string `json:"storage_access_key"`
// The name of your storage account.
StorageAccountName string `json:"storage_account_name"`
// Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix
- StorageEndpointSuffix *string `json:"storage_endpoint_suffix,omitempty"`
+ StorageEndpointSuffix *string `default:"core.windows.net" json:"storage_endpoint_suffix"`
+}
+
+func (s SourceAzureTable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureTable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureTable) GetSourceType() SourceAzureTableAzureTable {
+ return SourceAzureTableAzureTableAzureTable
+}
+
+func (o *SourceAzureTable) GetStorageAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccessKey
+}
+
+func (o *SourceAzureTable) GetStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccountName
+}
+
+func (o *SourceAzureTable) GetStorageEndpointSuffix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StorageEndpointSuffix
}
diff --git a/internal/sdk/pkg/models/shared/sourceazuretablecreaterequest.go b/internal/sdk/pkg/models/shared/sourceazuretablecreaterequest.go
old mode 100755
new mode 100644
index 2904be1ca..90947e046
--- a/internal/sdk/pkg/models/shared/sourceazuretablecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceazuretablecreaterequest.go
@@ -9,3 +9,31 @@ type SourceAzureTableCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAzureTableCreateRequest) GetConfiguration() SourceAzureTable {
+ if o == nil {
+ return SourceAzureTable{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAzureTableCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAzureTableCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceAzureTableCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceazuretableputrequest.go b/internal/sdk/pkg/models/shared/sourceazuretableputrequest.go
old mode 100755
new mode 100644
index bb4d4f61a..ef288356f
--- a/internal/sdk/pkg/models/shared/sourceazuretableputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceazuretableputrequest.go
@@ -7,3 +7,24 @@ type SourceAzureTablePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceAzureTablePutRequest) GetConfiguration() SourceAzureTableUpdate {
+ if o == nil {
+ return SourceAzureTableUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceAzureTablePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceAzureTablePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceazuretableupdate.go b/internal/sdk/pkg/models/shared/sourceazuretableupdate.go
old mode 100755
new mode 100644
index 8d3a0cd52..30f70b1b4
--- a/internal/sdk/pkg/models/shared/sourceazuretableupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceazuretableupdate.go
@@ -2,11 +2,47 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceAzureTableUpdate struct {
// Azure Table Storage Access Key. See the docs for more information on how to obtain this key.
StorageAccessKey string `json:"storage_access_key"`
// The name of your storage account.
StorageAccountName string `json:"storage_account_name"`
// Azure Table Storage service account URL suffix. See the docs for more information on how to obtain endpoint suffix
- StorageEndpointSuffix *string `json:"storage_endpoint_suffix,omitempty"`
+ StorageEndpointSuffix *string `default:"core.windows.net" json:"storage_endpoint_suffix"`
+}
+
+func (s SourceAzureTableUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceAzureTableUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceAzureTableUpdate) GetStorageAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccessKey
+}
+
+func (o *SourceAzureTableUpdate) GetStorageAccountName() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccountName
+}
+
+func (o *SourceAzureTableUpdate) GetStorageEndpointSuffix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StorageEndpointSuffix
}
diff --git a/internal/sdk/pkg/models/shared/sourcebamboohr.go b/internal/sdk/pkg/models/shared/sourcebamboohr.go
old mode 100755
new mode 100644
index 21c4660d2..5d91b541b
--- a/internal/sdk/pkg/models/shared/sourcebamboohr.go
+++ b/internal/sdk/pkg/models/shared/sourcebamboohr.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,10 +36,53 @@ type SourceBambooHr struct {
// Api key of bamboo hr
APIKey string `json:"api_key"`
// Comma-separated list of fields to include in custom reports.
- CustomReportsFields *string `json:"custom_reports_fields,omitempty"`
+ CustomReportsFields *string `default:"" json:"custom_reports_fields"`
// If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names.
- CustomReportsIncludeDefaultFields *bool `json:"custom_reports_include_default_fields,omitempty"`
- SourceType SourceBambooHrBambooHr `json:"sourceType"`
+ CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"`
+ sourceType SourceBambooHrBambooHr `const:"bamboo-hr" json:"sourceType"`
// Sub Domain of bamboo hr
Subdomain string `json:"subdomain"`
}
+
+func (s SourceBambooHr) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBambooHr) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBambooHr) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceBambooHr) GetCustomReportsFields() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsFields
+}
+
+func (o *SourceBambooHr) GetCustomReportsIncludeDefaultFields() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsIncludeDefaultFields
+}
+
+func (o *SourceBambooHr) GetSourceType() SourceBambooHrBambooHr {
+ return SourceBambooHrBambooHrBambooHr
+}
+
+func (o *SourceBambooHr) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebamboohrcreaterequest.go b/internal/sdk/pkg/models/shared/sourcebamboohrcreaterequest.go
old mode 100755
new mode 100644
index c0d68bc67..85d63d222
--- a/internal/sdk/pkg/models/shared/sourcebamboohrcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebamboohrcreaterequest.go
@@ -9,3 +9,31 @@ type SourceBambooHrCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBambooHrCreateRequest) GetConfiguration() SourceBambooHr {
+ if o == nil {
+ return SourceBambooHr{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBambooHrCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBambooHrCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBambooHrCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebamboohrputrequest.go b/internal/sdk/pkg/models/shared/sourcebamboohrputrequest.go
old mode 100755
new mode 100644
index 22526c97a..1fbf842c0
--- a/internal/sdk/pkg/models/shared/sourcebamboohrputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebamboohrputrequest.go
@@ -7,3 +7,24 @@ type SourceBambooHrPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBambooHrPutRequest) GetConfiguration() SourceBambooHrUpdate {
+ if o == nil {
+ return SourceBambooHrUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBambooHrPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBambooHrPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebamboohrupdate.go b/internal/sdk/pkg/models/shared/sourcebamboohrupdate.go
old mode 100755
new mode 100644
index 1afb0c1f3..95a1d3a32
--- a/internal/sdk/pkg/models/shared/sourcebamboohrupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebamboohrupdate.go
@@ -2,13 +2,56 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceBambooHrUpdate struct {
// Api key of bamboo hr
APIKey string `json:"api_key"`
// Comma-separated list of fields to include in custom reports.
- CustomReportsFields *string `json:"custom_reports_fields,omitempty"`
+ CustomReportsFields *string `default:"" json:"custom_reports_fields"`
// If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names.
- CustomReportsIncludeDefaultFields *bool `json:"custom_reports_include_default_fields,omitempty"`
+ CustomReportsIncludeDefaultFields *bool `default:"true" json:"custom_reports_include_default_fields"`
// Sub Domain of bamboo hr
Subdomain string `json:"subdomain"`
}
+
+func (s SourceBambooHrUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBambooHrUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBambooHrUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceBambooHrUpdate) GetCustomReportsFields() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsFields
+}
+
+func (o *SourceBambooHrUpdate) GetCustomReportsIncludeDefaultFields() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsIncludeDefaultFields
+}
+
+func (o *SourceBambooHrUpdate) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigcommerce.go b/internal/sdk/pkg/models/shared/sourcebigcommerce.go
old mode 100755
new mode 100644
index 5c13554bc..cdfc51578
--- a/internal/sdk/pkg/models/shared/sourcebigcommerce.go
+++ b/internal/sdk/pkg/models/shared/sourcebigcommerce.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,9 +35,45 @@ func (e *SourceBigcommerceBigcommerce) UnmarshalJSON(data []byte) error {
type SourceBigcommerce struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- SourceType SourceBigcommerceBigcommerce `json:"sourceType"`
+ sourceType SourceBigcommerceBigcommerce `const:"bigcommerce" json:"sourceType"`
// The date you would like to replicate data. Format: YYYY-MM-DD.
StartDate string `json:"start_date"`
// The hash code of the store. For https://api.bigcommerce.com/stores/HASH_CODE/v3/, The store's hash code is 'HASH_CODE'.
StoreHash string `json:"store_hash"`
}
+
+func (s SourceBigcommerce) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBigcommerce) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBigcommerce) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceBigcommerce) GetSourceType() SourceBigcommerceBigcommerce {
+ return SourceBigcommerceBigcommerceBigcommerce
+}
+
+func (o *SourceBigcommerce) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceBigcommerce) GetStoreHash() string {
+ if o == nil {
+ return ""
+ }
+ return o.StoreHash
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigcommercecreaterequest.go b/internal/sdk/pkg/models/shared/sourcebigcommercecreaterequest.go
old mode 100755
new mode 100644
index e1f05ee10..b036fdd85
--- a/internal/sdk/pkg/models/shared/sourcebigcommercecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebigcommercecreaterequest.go
@@ -9,3 +9,31 @@ type SourceBigcommerceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBigcommerceCreateRequest) GetConfiguration() SourceBigcommerce {
+ if o == nil {
+ return SourceBigcommerce{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBigcommerceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBigcommerceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBigcommerceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigcommerceputrequest.go b/internal/sdk/pkg/models/shared/sourcebigcommerceputrequest.go
old mode 100755
new mode 100644
index 5976fbfa6..9548962fd
--- a/internal/sdk/pkg/models/shared/sourcebigcommerceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebigcommerceputrequest.go
@@ -7,3 +7,24 @@ type SourceBigcommercePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBigcommercePutRequest) GetConfiguration() SourceBigcommerceUpdate {
+ if o == nil {
+ return SourceBigcommerceUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBigcommercePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBigcommercePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigcommerceupdate.go b/internal/sdk/pkg/models/shared/sourcebigcommerceupdate.go
old mode 100755
new mode 100644
index f9a229a53..1ef650d25
--- a/internal/sdk/pkg/models/shared/sourcebigcommerceupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebigcommerceupdate.go
@@ -10,3 +10,24 @@ type SourceBigcommerceUpdate struct {
// The hash code of the store. For https://api.bigcommerce.com/stores/HASH_CODE/v3/, The store's hash code is 'HASH_CODE'.
StoreHash string `json:"store_hash"`
}
+
+func (o *SourceBigcommerceUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceBigcommerceUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceBigcommerceUpdate) GetStoreHash() string {
+ if o == nil {
+ return ""
+ }
+ return o.StoreHash
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigquery.go b/internal/sdk/pkg/models/shared/sourcebigquery.go
old mode 100755
new mode 100644
index 50eb0dc5a..6a592d861
--- a/internal/sdk/pkg/models/shared/sourcebigquery.go
+++ b/internal/sdk/pkg/models/shared/sourcebigquery.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceBigquery struct {
DatasetID *string `json:"dataset_id,omitempty"`
// The GCP project ID for the project containing the target BigQuery dataset.
ProjectID string `json:"project_id"`
- SourceType SourceBigqueryBigquery `json:"sourceType"`
+ sourceType SourceBigqueryBigquery `const:"bigquery" json:"sourceType"`
+}
+
+func (s SourceBigquery) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBigquery) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBigquery) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceBigquery) GetDatasetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetID
+}
+
+func (o *SourceBigquery) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *SourceBigquery) GetSourceType() SourceBigqueryBigquery {
+ return SourceBigqueryBigqueryBigquery
}
diff --git a/internal/sdk/pkg/models/shared/sourcebigquerycreaterequest.go b/internal/sdk/pkg/models/shared/sourcebigquerycreaterequest.go
old mode 100755
new mode 100644
index 72e32f97d..79d57155c
--- a/internal/sdk/pkg/models/shared/sourcebigquerycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebigquerycreaterequest.go
@@ -9,3 +9,31 @@ type SourceBigqueryCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBigqueryCreateRequest) GetConfiguration() SourceBigquery {
+ if o == nil {
+ return SourceBigquery{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBigqueryCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBigqueryCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBigqueryCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigqueryputrequest.go b/internal/sdk/pkg/models/shared/sourcebigqueryputrequest.go
old mode 100755
new mode 100644
index e32b3216d..ab02dcf51
--- a/internal/sdk/pkg/models/shared/sourcebigqueryputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebigqueryputrequest.go
@@ -7,3 +7,24 @@ type SourceBigqueryPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBigqueryPutRequest) GetConfiguration() SourceBigqueryUpdate {
+ if o == nil {
+ return SourceBigqueryUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBigqueryPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBigqueryPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebigqueryupdate.go b/internal/sdk/pkg/models/shared/sourcebigqueryupdate.go
old mode 100755
new mode 100644
index bca927573..f600a88ea
--- a/internal/sdk/pkg/models/shared/sourcebigqueryupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebigqueryupdate.go
@@ -10,3 +10,24 @@ type SourceBigqueryUpdate struct {
// The GCP project ID for the project containing the target BigQuery dataset.
ProjectID string `json:"project_id"`
}
+
+func (o *SourceBigqueryUpdate) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceBigqueryUpdate) GetDatasetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DatasetID
+}
+
+func (o *SourceBigqueryUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebingads.go b/internal/sdk/pkg/models/shared/sourcebingads.go
old mode 100755
new mode 100644
index 21172e114..f85932888
--- a/internal/sdk/pkg/models/shared/sourcebingads.go
+++ b/internal/sdk/pkg/models/shared/sourcebingads.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -57,20 +58,88 @@ func (e *SourceBingAdsBingAds) UnmarshalJSON(data []byte) error {
}
type SourceBingAds struct {
- AuthMethod *SourceBingAdsAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceBingAdsAuthMethod `const:"oauth2.0" json:"auth_method,omitempty"`
// The Client ID of your Microsoft Advertising developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Advertising developer application.
- ClientSecret *string `json:"client_secret,omitempty"`
+ ClientSecret *string `default:"" json:"client_secret"`
// Developer token associated with user. See more info in the docs.
DeveloperToken string `json:"developer_token"`
// Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode.
- LookbackWindow *int64 `json:"lookback_window,omitempty"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
// The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.
- ReportsStartDate types.Date `json:"reports_start_date"`
- SourceType SourceBingAdsBingAds `json:"sourceType"`
+ ReportsStartDate *types.Date `default:"2020-01-01" json:"reports_start_date"`
+ sourceType SourceBingAdsBingAds `const:"bing-ads" json:"sourceType"`
// The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.
- TenantID *string `json:"tenant_id,omitempty"`
+ TenantID *string `default:"common" json:"tenant_id"`
+}
+
+func (s SourceBingAds) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBingAds) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBingAds) GetAuthMethod() *SourceBingAdsAuthMethod {
+ return SourceBingAdsAuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceBingAds) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceBingAds) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceBingAds) GetDeveloperToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeveloperToken
+}
+
+func (o *SourceBingAds) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceBingAds) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceBingAds) GetReportsStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.ReportsStartDate
+}
+
+func (o *SourceBingAds) GetSourceType() SourceBingAdsBingAds {
+ return SourceBingAdsBingAdsBingAds
+}
+
+func (o *SourceBingAds) GetTenantID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TenantID
}
diff --git a/internal/sdk/pkg/models/shared/sourcebingadscreaterequest.go b/internal/sdk/pkg/models/shared/sourcebingadscreaterequest.go
old mode 100755
new mode 100644
index 5c9e63592..14713d58f
--- a/internal/sdk/pkg/models/shared/sourcebingadscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebingadscreaterequest.go
@@ -9,3 +9,31 @@ type SourceBingAdsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBingAdsCreateRequest) GetConfiguration() SourceBingAds {
+ if o == nil {
+ return SourceBingAds{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBingAdsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBingAdsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBingAdsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebingadsputrequest.go b/internal/sdk/pkg/models/shared/sourcebingadsputrequest.go
old mode 100755
new mode 100644
index 4c0b88770..42f8c9ac8
--- a/internal/sdk/pkg/models/shared/sourcebingadsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebingadsputrequest.go
@@ -7,3 +7,24 @@ type SourceBingAdsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBingAdsPutRequest) GetConfiguration() SourceBingAdsUpdate {
+ if o == nil {
+ return SourceBingAdsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBingAdsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBingAdsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebingadsupdate.go b/internal/sdk/pkg/models/shared/sourcebingadsupdate.go
old mode 100755
new mode 100644
index 4675a0b6a..44334a984
--- a/internal/sdk/pkg/models/shared/sourcebingadsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebingadsupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,19 +34,83 @@ func (e *SourceBingAdsUpdateAuthMethod) UnmarshalJSON(data []byte) error {
}
type SourceBingAdsUpdate struct {
- AuthMethod *SourceBingAdsUpdateAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceBingAdsUpdateAuthMethod `const:"oauth2.0" json:"auth_method,omitempty"`
// The Client ID of your Microsoft Advertising developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Advertising developer application.
- ClientSecret *string `json:"client_secret,omitempty"`
+ ClientSecret *string `default:"" json:"client_secret"`
// Developer token associated with user. See more info in the docs.
DeveloperToken string `json:"developer_token"`
// Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode.
- LookbackWindow *int64 `json:"lookback_window,omitempty"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
// The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format.
- ReportsStartDate types.Date `json:"reports_start_date"`
+ ReportsStartDate *types.Date `default:"2020-01-01" json:"reports_start_date"`
// The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value.
- TenantID *string `json:"tenant_id,omitempty"`
+ TenantID *string `default:"common" json:"tenant_id"`
+}
+
+func (s SourceBingAdsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBingAdsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBingAdsUpdate) GetAuthMethod() *SourceBingAdsUpdateAuthMethod {
+ return SourceBingAdsUpdateAuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceBingAdsUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceBingAdsUpdate) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceBingAdsUpdate) GetDeveloperToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeveloperToken
+}
+
+func (o *SourceBingAdsUpdate) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceBingAdsUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceBingAdsUpdate) GetReportsStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.ReportsStartDate
+}
+
+func (o *SourceBingAdsUpdate) GetTenantID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TenantID
}
diff --git a/internal/sdk/pkg/models/shared/sourcebraintree.go b/internal/sdk/pkg/models/shared/sourcebraintree.go
old mode 100755
new mode 100644
index 3cec98607..6006da317
--- a/internal/sdk/pkg/models/shared/sourcebraintree.go
+++ b/internal/sdk/pkg/models/shared/sourcebraintree.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -75,7 +76,57 @@ type SourceBraintree struct {
PrivateKey string `json:"private_key"`
// Braintree Public Key. See the docs for more information on how to obtain this key.
PublicKey string `json:"public_key"`
- SourceType SourceBraintreeBraintree `json:"sourceType"`
+ sourceType SourceBraintreeBraintree `const:"braintree" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceBraintree) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBraintree) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBraintree) GetEnvironment() SourceBraintreeEnvironment {
+ if o == nil {
+ return SourceBraintreeEnvironment("")
+ }
+ return o.Environment
+}
+
+func (o *SourceBraintree) GetMerchantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.MerchantID
+}
+
+func (o *SourceBraintree) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceBraintree) GetPublicKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PublicKey
+}
+
+func (o *SourceBraintree) GetSourceType() SourceBraintreeBraintree {
+ return SourceBraintreeBraintreeBraintree
+}
+
+func (o *SourceBraintree) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebraintreecreaterequest.go b/internal/sdk/pkg/models/shared/sourcebraintreecreaterequest.go
old mode 100755
new mode 100644
index 19a2ec179..1bc5202bb
--- a/internal/sdk/pkg/models/shared/sourcebraintreecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebraintreecreaterequest.go
@@ -9,3 +9,31 @@ type SourceBraintreeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBraintreeCreateRequest) GetConfiguration() SourceBraintree {
+ if o == nil {
+ return SourceBraintree{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBraintreeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBraintreeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBraintreeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebraintreeputrequest.go b/internal/sdk/pkg/models/shared/sourcebraintreeputrequest.go
old mode 100755
new mode 100644
index 967613ca3..6c460046c
--- a/internal/sdk/pkg/models/shared/sourcebraintreeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebraintreeputrequest.go
@@ -7,3 +7,24 @@ type SourceBraintreePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBraintreePutRequest) GetConfiguration() SourceBraintreeUpdate {
+ if o == nil {
+ return SourceBraintreeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBraintreePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBraintreePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebraintreeupdate.go b/internal/sdk/pkg/models/shared/sourcebraintreeupdate.go
old mode 100755
new mode 100644
index 968b54df0..c0052408b
--- a/internal/sdk/pkg/models/shared/sourcebraintreeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebraintreeupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -54,3 +55,49 @@ type SourceBraintreeUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceBraintreeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBraintreeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBraintreeUpdate) GetEnvironment() SourceBraintreeUpdateEnvironment {
+ if o == nil {
+ return SourceBraintreeUpdateEnvironment("")
+ }
+ return o.Environment
+}
+
+func (o *SourceBraintreeUpdate) GetMerchantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.MerchantID
+}
+
+func (o *SourceBraintreeUpdate) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceBraintreeUpdate) GetPublicKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PublicKey
+}
+
+func (o *SourceBraintreeUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebraze.go b/internal/sdk/pkg/models/shared/sourcebraze.go
old mode 100755
new mode 100644
index 0cbefba3c..7041ac113
--- a/internal/sdk/pkg/models/shared/sourcebraze.go
+++ b/internal/sdk/pkg/models/shared/sourcebraze.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,9 +36,45 @@ func (e *SourceBrazeBraze) UnmarshalJSON(data []byte) error {
type SourceBraze struct {
// Braze REST API key
APIKey string `json:"api_key"`
- SourceType SourceBrazeBraze `json:"sourceType"`
+ sourceType SourceBrazeBraze `const:"braze" json:"sourceType"`
// Rows after this date will be synced
StartDate types.Date `json:"start_date"`
// Braze REST API endpoint
URL string `json:"url"`
}
+
+func (s SourceBraze) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBraze) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBraze) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceBraze) GetSourceType() SourceBrazeBraze {
+ return SourceBrazeBrazeBraze
+}
+
+func (o *SourceBraze) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceBraze) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebrazecreaterequest.go b/internal/sdk/pkg/models/shared/sourcebrazecreaterequest.go
old mode 100755
new mode 100644
index 9e9b5a92a..31d7cbabc
--- a/internal/sdk/pkg/models/shared/sourcebrazecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebrazecreaterequest.go
@@ -9,3 +9,31 @@ type SourceBrazeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBrazeCreateRequest) GetConfiguration() SourceBraze {
+ if o == nil {
+ return SourceBraze{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBrazeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBrazeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceBrazeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebrazeputrequest.go b/internal/sdk/pkg/models/shared/sourcebrazeputrequest.go
old mode 100755
new mode 100644
index 9e52d21b4..2f9e30115
--- a/internal/sdk/pkg/models/shared/sourcebrazeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcebrazeputrequest.go
@@ -7,3 +7,24 @@ type SourceBrazePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceBrazePutRequest) GetConfiguration() SourceBrazeUpdate {
+ if o == nil {
+ return SourceBrazeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceBrazePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceBrazePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcebrazeupdate.go b/internal/sdk/pkg/models/shared/sourcebrazeupdate.go
old mode 100755
new mode 100644
index 00230ae67..bac930e2e
--- a/internal/sdk/pkg/models/shared/sourcebrazeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcebrazeupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceBrazeUpdate struct {
@@ -14,3 +15,35 @@ type SourceBrazeUpdate struct {
// Braze REST API endpoint
URL string `json:"url"`
}
+
+func (s SourceBrazeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceBrazeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceBrazeUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceBrazeUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceBrazeUpdate) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechargebee.go b/internal/sdk/pkg/models/shared/sourcechargebee.go
old mode 100755
new mode 100644
index 872dfe814..75dbd4d8d
--- a/internal/sdk/pkg/models/shared/sourcechargebee.go
+++ b/internal/sdk/pkg/models/shared/sourcechargebee.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -67,7 +68,50 @@ type SourceChargebee struct {
Site string `json:"site"`
// Chargebee API Key. See the docs for more information on how to obtain this key.
SiteAPIKey string `json:"site_api_key"`
- SourceType SourceChargebeeChargebee `json:"sourceType"`
+ sourceType SourceChargebeeChargebee `const:"chargebee" json:"sourceType"`
// UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceChargebee) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceChargebee) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceChargebee) GetProductCatalog() SourceChargebeeProductCatalog {
+ if o == nil {
+ return SourceChargebeeProductCatalog("")
+ }
+ return o.ProductCatalog
+}
+
+func (o *SourceChargebee) GetSite() string {
+ if o == nil {
+ return ""
+ }
+ return o.Site
+}
+
+func (o *SourceChargebee) GetSiteAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SiteAPIKey
+}
+
+func (o *SourceChargebee) GetSourceType() SourceChargebeeChargebee {
+ return SourceChargebeeChargebeeChargebee
+}
+
+func (o *SourceChargebee) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechargebeecreaterequest.go b/internal/sdk/pkg/models/shared/sourcechargebeecreaterequest.go
old mode 100755
new mode 100644
index c714ac002..8d26f32ed
--- a/internal/sdk/pkg/models/shared/sourcechargebeecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcechargebeecreaterequest.go
@@ -9,3 +9,31 @@ type SourceChargebeeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceChargebeeCreateRequest) GetConfiguration() SourceChargebee {
+ if o == nil {
+ return SourceChargebee{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceChargebeeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceChargebeeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceChargebeeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechargebeeputrequest.go b/internal/sdk/pkg/models/shared/sourcechargebeeputrequest.go
old mode 100755
new mode 100644
index 02e8d3d4e..a85af0e70
--- a/internal/sdk/pkg/models/shared/sourcechargebeeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcechargebeeputrequest.go
@@ -7,3 +7,24 @@ type SourceChargebeePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceChargebeePutRequest) GetConfiguration() SourceChargebeeUpdate {
+ if o == nil {
+ return SourceChargebeeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceChargebeePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceChargebeePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechargebeeupdate.go b/internal/sdk/pkg/models/shared/sourcechargebeeupdate.go
old mode 100755
new mode 100644
index 8cbf8e1ec..6e06fd152
--- a/internal/sdk/pkg/models/shared/sourcechargebeeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcechargebeeupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -46,3 +47,42 @@ type SourceChargebeeUpdate struct {
// UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceChargebeeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceChargebeeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceChargebeeUpdate) GetProductCatalog() SourceChargebeeUpdateProductCatalog {
+ if o == nil {
+ return SourceChargebeeUpdateProductCatalog("")
+ }
+ return o.ProductCatalog
+}
+
+func (o *SourceChargebeeUpdate) GetSite() string {
+ if o == nil {
+ return ""
+ }
+ return o.Site
+}
+
+func (o *SourceChargebeeUpdate) GetSiteAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SiteAPIKey
+}
+
+func (o *SourceChargebeeUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechartmogul.go b/internal/sdk/pkg/models/shared/sourcechartmogul.go
old mode 100755
new mode 100644
index f37cd4061..6bc074c58
--- a/internal/sdk/pkg/models/shared/sourcechartmogul.go
+++ b/internal/sdk/pkg/models/shared/sourcechartmogul.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -70,8 +71,44 @@ type SourceChartmogul struct {
// Your Chartmogul API key. See the docs for info on how to obtain this.
APIKey string `json:"api_key"`
// Some APIs such as Metrics require intervals to cluster data.
- Interval SourceChartmogulInterval `json:"interval"`
- SourceType SourceChartmogulChartmogul `json:"sourceType"`
+ Interval *SourceChartmogulInterval `default:"month" json:"interval"`
+ sourceType SourceChartmogulChartmogul `const:"chartmogul" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceChartmogul) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceChartmogul) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceChartmogul) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceChartmogul) GetInterval() *SourceChartmogulInterval {
+ if o == nil {
+ return nil
+ }
+ return o.Interval
+}
+
+func (o *SourceChartmogul) GetSourceType() SourceChartmogulChartmogul {
+ return SourceChartmogulChartmogulChartmogul
+}
+
+func (o *SourceChartmogul) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechartmogulcreaterequest.go b/internal/sdk/pkg/models/shared/sourcechartmogulcreaterequest.go
old mode 100755
new mode 100644
index c592001c9..0ca2a39f5
--- a/internal/sdk/pkg/models/shared/sourcechartmogulcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcechartmogulcreaterequest.go
@@ -9,3 +9,31 @@ type SourceChartmogulCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceChartmogulCreateRequest) GetConfiguration() SourceChartmogul {
+ if o == nil {
+ return SourceChartmogul{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceChartmogulCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceChartmogulCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceChartmogulCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechartmogulputrequest.go b/internal/sdk/pkg/models/shared/sourcechartmogulputrequest.go
old mode 100755
new mode 100644
index 9dbe400c8..68b040914
--- a/internal/sdk/pkg/models/shared/sourcechartmogulputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcechartmogulputrequest.go
@@ -7,3 +7,24 @@ type SourceChartmogulPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceChartmogulPutRequest) GetConfiguration() SourceChartmogulUpdate {
+ if o == nil {
+ return SourceChartmogulUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceChartmogulPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceChartmogulPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcechartmogulupdate.go b/internal/sdk/pkg/models/shared/sourcechartmogulupdate.go
old mode 100755
new mode 100644
index c7ff9b9a6..9d014dca9
--- a/internal/sdk/pkg/models/shared/sourcechartmogulupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcechartmogulupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -46,7 +47,39 @@ type SourceChartmogulUpdate struct {
// Your Chartmogul API key. See the docs for info on how to obtain this.
APIKey string `json:"api_key"`
// Some APIs such as Metrics require intervals to cluster data.
- Interval SourceChartmogulUpdateInterval `json:"interval"`
+ Interval *SourceChartmogulUpdateInterval `default:"month" json:"interval"`
// UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceChartmogulUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceChartmogulUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceChartmogulUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceChartmogulUpdate) GetInterval() *SourceChartmogulUpdateInterval {
+ if o == nil {
+ return nil
+ }
+ return o.Interval
+}
+
+func (o *SourceChartmogulUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickhouse.go b/internal/sdk/pkg/models/shared/sourceclickhouse.go
old mode 100755
new mode 100644
index d9da7fb78..a7f1a2ef5
--- a/internal/sdk/pkg/models/shared/sourceclickhouse.go
+++ b/internal/sdk/pkg/models/shared/sourceclickhouse.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -63,15 +63,58 @@ type SourceClickhouseSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceClickhouseSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceClickhouseSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceClickhouseSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -104,13 +147,56 @@ type SourceClickhouseSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceClickhouseSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceClickhouseSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod string
@@ -139,7 +225,22 @@ func (e *SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data
// SourceClickhouseSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceClickhouseSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceClickhouseSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceClickhouseSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceClickhouseSSHTunnelMethodType string
@@ -186,30 +287,23 @@ func CreateSourceClickhouseSSHTunnelMethodSourceClickhouseSSHTunnelMethodPasswor
}
func (u *SourceClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceClickhouseSSHTunnelMethodNoTunnel := new(SourceClickhouseSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceClickhouseSSHTunnelMethodNoTunnel = sourceClickhouseSSHTunnelMethodNoTunnel
u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHTunnelMethodNoTunnel
return nil
}
sourceClickhouseSSHTunnelMethodSSHKeyAuthentication := new(SourceClickhouseSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication = sourceClickhouseSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceClickhouseSSHTunnelMethodPasswordAuthentication := new(SourceClickhouseSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceClickhouseSSHTunnelMethodPasswordAuthentication = sourceClickhouseSSHTunnelMethodPasswordAuthentication
u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHTunnelMethodPasswordAuthentication
return nil
@@ -220,18 +314,18 @@ func (u *SourceClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceClickhouseSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceClickhouseSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceClickhouseSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceClickhouseSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceClickhouseSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceClickhouseSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceClickhouseSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceClickhouseSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceClickhouse struct {
@@ -242,10 +336,67 @@ type SourceClickhouse struct {
// The password associated with this username.
Password *string `json:"password,omitempty"`
// The port of the database.
- Port int64 `json:"port"`
- SourceType SourceClickhouseClickhouse `json:"sourceType"`
+ Port *int64 `default:"8123" json:"port"`
+ sourceType SourceClickhouseClickhouse `const:"clickhouse" json:"sourceType"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *SourceClickhouseSSHTunnelMethod `json:"tunnel_method,omitempty"`
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceClickhouse) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouse) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouse) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceClickhouse) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceClickhouse) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceClickhouse) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceClickhouse) GetSourceType() SourceClickhouseClickhouse {
+ return SourceClickhouseClickhouseClickhouse
+}
+
+func (o *SourceClickhouse) GetTunnelMethod() *SourceClickhouseSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceClickhouse) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickhousecreaterequest.go b/internal/sdk/pkg/models/shared/sourceclickhousecreaterequest.go
old mode 100755
new mode 100644
index 9ce0eced8..fb1678985
--- a/internal/sdk/pkg/models/shared/sourceclickhousecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclickhousecreaterequest.go
@@ -9,3 +9,31 @@ type SourceClickhouseCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClickhouseCreateRequest) GetConfiguration() SourceClickhouse {
+ if o == nil {
+ return SourceClickhouse{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClickhouseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClickhouseCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceClickhouseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickhouseputrequest.go b/internal/sdk/pkg/models/shared/sourceclickhouseputrequest.go
old mode 100755
new mode 100644
index 8ea3664bd..ffeb3cac6
--- a/internal/sdk/pkg/models/shared/sourceclickhouseputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclickhouseputrequest.go
@@ -7,3 +7,24 @@ type SourceClickhousePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClickhousePutRequest) GetConfiguration() SourceClickhouseUpdate {
+ if o == nil {
+ return SourceClickhouseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClickhousePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClickhousePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go b/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go
old mode 100755
new mode 100644
index c883607e3..1e3fea109
--- a/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,15 +39,58 @@ type SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceClickhouseUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -80,13 +123,56 @@ type SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -115,7 +201,22 @@ func (e *SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSO
// SourceClickhouseUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceClickhouseUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceClickhouseUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceClickhouseUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceClickhouseUpdateSSHTunnelMethodType string
@@ -162,30 +263,23 @@ func CreateSourceClickhouseUpdateSSHTunnelMethodSourceClickhouseUpdateSSHTunnelM
}
func (u *SourceClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceClickhouseUpdateSSHTunnelMethodNoTunnel := new(SourceClickhouseUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceClickhouseUpdateSSHTunnelMethodNoTunnel = sourceClickhouseUpdateSSHTunnelMethodNoTunnel
u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHTunnelMethodNoTunnel
return nil
}
sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication = sourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication := new(SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication = sourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -196,18 +290,18 @@ func (u *SourceClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error
func (u SourceClickhouseUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceClickhouseUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceClickhouseUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceClickhouseUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceClickhouseUpdate struct {
@@ -218,9 +312,62 @@ type SourceClickhouseUpdate struct {
// The password associated with this username.
Password *string `json:"password,omitempty"`
// The port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"8123" json:"port"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *SourceClickhouseUpdateSSHTunnelMethod `json:"tunnel_method,omitempty"`
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceClickhouseUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickhouseUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickhouseUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceClickhouseUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceClickhouseUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceClickhouseUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceClickhouseUpdate) GetTunnelMethod() *SourceClickhouseUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceClickhouseUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickupapi.go b/internal/sdk/pkg/models/shared/sourceclickupapi.go
old mode 100755
new mode 100644
index 8a98142ed..0555b63c6
--- a/internal/sdk/pkg/models/shared/sourceclickupapi.go
+++ b/internal/sdk/pkg/models/shared/sourceclickupapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -37,12 +38,69 @@ type SourceClickupAPI struct {
// The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here.
FolderID *string `json:"folder_id,omitempty"`
// Include or exclude closed tasks. By default, they are excluded. See here.
- IncludeClosedTasks *bool `json:"include_closed_tasks,omitempty"`
+ IncludeClosedTasks *bool `default:"false" json:"include_closed_tasks"`
// The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here.
ListID *string `json:"list_id,omitempty"`
- SourceType SourceClickupAPIClickupAPI `json:"sourceType"`
+ sourceType SourceClickupAPIClickupAPI `const:"clickup-api" json:"sourceType"`
// The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here.
SpaceID *string `json:"space_id,omitempty"`
// The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here.
TeamID *string `json:"team_id,omitempty"`
}
+
+func (s SourceClickupAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickupAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickupAPI) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceClickupAPI) GetFolderID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderID
+}
+
+func (o *SourceClickupAPI) GetIncludeClosedTasks() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeClosedTasks
+}
+
+func (o *SourceClickupAPI) GetListID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ListID
+}
+
+func (o *SourceClickupAPI) GetSourceType() SourceClickupAPIClickupAPI {
+ return SourceClickupAPIClickupAPIClickupAPI
+}
+
+func (o *SourceClickupAPI) GetSpaceID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SpaceID
+}
+
+func (o *SourceClickupAPI) GetTeamID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TeamID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickupapicreaterequest.go b/internal/sdk/pkg/models/shared/sourceclickupapicreaterequest.go
old mode 100755
new mode 100644
index 53b805807..524ceba7d
--- a/internal/sdk/pkg/models/shared/sourceclickupapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclickupapicreaterequest.go
@@ -9,3 +9,31 @@ type SourceClickupAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClickupAPICreateRequest) GetConfiguration() SourceClickupAPI {
+ if o == nil {
+ return SourceClickupAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClickupAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClickupAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceClickupAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickupapiputrequest.go b/internal/sdk/pkg/models/shared/sourceclickupapiputrequest.go
old mode 100755
new mode 100644
index 5ae4f6b4e..b75af12c8
--- a/internal/sdk/pkg/models/shared/sourceclickupapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclickupapiputrequest.go
@@ -7,3 +7,24 @@ type SourceClickupAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClickupAPIPutRequest) GetConfiguration() SourceClickupAPIUpdate {
+ if o == nil {
+ return SourceClickupAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClickupAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClickupAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclickupapiupdate.go b/internal/sdk/pkg/models/shared/sourceclickupapiupdate.go
old mode 100755
new mode 100644
index e2115c537..cda71cfaa
--- a/internal/sdk/pkg/models/shared/sourceclickupapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceclickupapiupdate.go
@@ -2,13 +2,17 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceClickupAPIUpdate struct {
// Every ClickUp API call required authentication. This field is your personal API token. See here.
APIToken string `json:"api_token"`
// The ID of your folder in your space. Retrieve it from the `/space/{space_id}/folder` of the ClickUp API. See here.
FolderID *string `json:"folder_id,omitempty"`
// Include or exclude closed tasks. By default, they are excluded. See here.
- IncludeClosedTasks *bool `json:"include_closed_tasks,omitempty"`
+ IncludeClosedTasks *bool `default:"false" json:"include_closed_tasks"`
// The ID of your list in your folder. Retrieve it from the `/folder/{folder_id}/list` of the ClickUp API. See here.
ListID *string `json:"list_id,omitempty"`
// The ID of your space in your workspace. Retrieve it from the `/team/{team_id}/space` of the ClickUp API. See here.
@@ -16,3 +20,56 @@ type SourceClickupAPIUpdate struct {
// The ID of your team in ClickUp. Retrieve it from the `/team` of the ClickUp API. See here.
TeamID *string `json:"team_id,omitempty"`
}
+
+func (s SourceClickupAPIUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClickupAPIUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClickupAPIUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceClickupAPIUpdate) GetFolderID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderID
+}
+
+func (o *SourceClickupAPIUpdate) GetIncludeClosedTasks() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeClosedTasks
+}
+
+func (o *SourceClickupAPIUpdate) GetListID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ListID
+}
+
+func (o *SourceClickupAPIUpdate) GetSpaceID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SpaceID
+}
+
+func (o *SourceClickupAPIUpdate) GetTeamID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TeamID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclockify.go b/internal/sdk/pkg/models/shared/sourceclockify.go
old mode 100755
new mode 100644
index 0b00420e4..03b22cecf
--- a/internal/sdk/pkg/models/shared/sourceclockify.go
+++ b/internal/sdk/pkg/models/shared/sourceclockify.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,8 +36,44 @@ type SourceClockify struct {
// You can get your api access_key here This API is Case Sensitive.
APIKey string `json:"api_key"`
// The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify.
- APIURL *string `json:"api_url,omitempty"`
- SourceType SourceClockifyClockify `json:"sourceType"`
+ APIURL *string `default:"https://api.clockify.me" json:"api_url"`
+ sourceType SourceClockifyClockify `const:"clockify" json:"sourceType"`
// WorkSpace Id
WorkspaceID string `json:"workspace_id"`
}
+
+func (s SourceClockify) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClockify) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClockify) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceClockify) GetAPIURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIURL
+}
+
+func (o *SourceClockify) GetSourceType() SourceClockifyClockify {
+ return SourceClockifyClockifyClockify
+}
+
+func (o *SourceClockify) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclockifycreaterequest.go b/internal/sdk/pkg/models/shared/sourceclockifycreaterequest.go
old mode 100755
new mode 100644
index 534a4507c..ae4424a9d
--- a/internal/sdk/pkg/models/shared/sourceclockifycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclockifycreaterequest.go
@@ -9,3 +9,31 @@ type SourceClockifyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClockifyCreateRequest) GetConfiguration() SourceClockify {
+ if o == nil {
+ return SourceClockify{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClockifyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClockifyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceClockifyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclockifyputrequest.go b/internal/sdk/pkg/models/shared/sourceclockifyputrequest.go
old mode 100755
new mode 100644
index 56fdecd0f..dc04b5710
--- a/internal/sdk/pkg/models/shared/sourceclockifyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclockifyputrequest.go
@@ -7,3 +7,24 @@ type SourceClockifyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceClockifyPutRequest) GetConfiguration() SourceClockifyUpdate {
+ if o == nil {
+ return SourceClockifyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceClockifyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceClockifyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclockifyupdate.go b/internal/sdk/pkg/models/shared/sourceclockifyupdate.go
old mode 100755
new mode 100644
index 79a1aaca9..3b0078da0
--- a/internal/sdk/pkg/models/shared/sourceclockifyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceclockifyupdate.go
@@ -2,11 +2,47 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceClockifyUpdate struct {
// You can get your api access_key here This API is Case Sensitive.
APIKey string `json:"api_key"`
// The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify.
- APIURL *string `json:"api_url,omitempty"`
+ APIURL *string `default:"https://api.clockify.me" json:"api_url"`
// WorkSpace Id
WorkspaceID string `json:"workspace_id"`
}
+
+func (s SourceClockifyUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceClockifyUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceClockifyUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceClockifyUpdate) GetAPIURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIURL
+}
+
+func (o *SourceClockifyUpdate) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclosecom.go b/internal/sdk/pkg/models/shared/sourceclosecom.go
old mode 100755
new mode 100644
index dbbde85ae..74a159707
--- a/internal/sdk/pkg/models/shared/sourceclosecom.go
+++ b/internal/sdk/pkg/models/shared/sourceclosecom.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,7 +36,36 @@ func (e *SourceCloseComCloseCom) UnmarshalJSON(data []byte) error {
type SourceCloseCom struct {
// Close.com API key (usually starts with 'api_'; find yours here).
APIKey string `json:"api_key"`
- SourceType SourceCloseComCloseCom `json:"sourceType"`
+ sourceType SourceCloseComCloseCom `const:"close-com" json:"sourceType"`
// The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceCloseCom) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCloseCom) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCloseCom) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCloseCom) GetSourceType() SourceCloseComCloseCom {
+ return SourceCloseComCloseComCloseCom
+}
+
+func (o *SourceCloseCom) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceclosecomcreaterequest.go b/internal/sdk/pkg/models/shared/sourceclosecomcreaterequest.go
old mode 100755
new mode 100644
index 8049ddd74..2a985018f
--- a/internal/sdk/pkg/models/shared/sourceclosecomcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclosecomcreaterequest.go
@@ -9,3 +9,31 @@ type SourceCloseComCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCloseComCreateRequest) GetConfiguration() SourceCloseCom {
+ if o == nil {
+ return SourceCloseCom{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCloseComCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCloseComCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceCloseComCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclosecomputrequest.go b/internal/sdk/pkg/models/shared/sourceclosecomputrequest.go
old mode 100755
new mode 100644
index 2119abcfc..d6e7f72b8
--- a/internal/sdk/pkg/models/shared/sourceclosecomputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceclosecomputrequest.go
@@ -7,3 +7,24 @@ type SourceCloseComPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCloseComPutRequest) GetConfiguration() SourceCloseComUpdate {
+ if o == nil {
+ return SourceCloseComUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCloseComPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCloseComPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceclosecomupdate.go b/internal/sdk/pkg/models/shared/sourceclosecomupdate.go
old mode 100755
new mode 100644
index 59b8a0589..fe7105bdf
--- a/internal/sdk/pkg/models/shared/sourceclosecomupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceclosecomupdate.go
@@ -4,11 +4,37 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceCloseComUpdate struct {
// Close.com API key (usually starts with 'api_'; find yours here).
APIKey string `json:"api_key"`
// The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceCloseComUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCloseComUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCloseComUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCloseComUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcecoda.go b/internal/sdk/pkg/models/shared/sourcecoda.go
old mode 100755
new mode 100644
index afab7ae92..82745cc9d
--- a/internal/sdk/pkg/models/shared/sourcecoda.go
+++ b/internal/sdk/pkg/models/shared/sourcecoda.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceCodaCoda) UnmarshalJSON(data []byte) error {
type SourceCoda struct {
// Bearer token
AuthToken string `json:"auth_token"`
- SourceType SourceCodaCoda `json:"sourceType"`
+ sourceType SourceCodaCoda `const:"coda" json:"sourceType"`
+}
+
+func (s SourceCoda) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCoda) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCoda) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceCoda) GetSourceType() SourceCodaCoda {
+ return SourceCodaCodaCoda
}
diff --git a/internal/sdk/pkg/models/shared/sourcecodacreaterequest.go b/internal/sdk/pkg/models/shared/sourcecodacreaterequest.go
old mode 100755
new mode 100644
index f71c078c5..a6c99e87c
--- a/internal/sdk/pkg/models/shared/sourcecodacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecodacreaterequest.go
@@ -9,3 +9,31 @@ type SourceCodaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCodaCreateRequest) GetConfiguration() SourceCoda {
+ if o == nil {
+ return SourceCoda{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCodaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCodaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceCodaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecodaputrequest.go b/internal/sdk/pkg/models/shared/sourcecodaputrequest.go
old mode 100755
new mode 100644
index 88c7c4f6e..4eb694aed
--- a/internal/sdk/pkg/models/shared/sourcecodaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecodaputrequest.go
@@ -7,3 +7,24 @@ type SourceCodaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCodaPutRequest) GetConfiguration() SourceCodaUpdate {
+ if o == nil {
+ return SourceCodaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCodaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCodaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecodaupdate.go b/internal/sdk/pkg/models/shared/sourcecodaupdate.go
old mode 100755
new mode 100644
index d8a4c709c..511ecb08d
--- a/internal/sdk/pkg/models/shared/sourcecodaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcecodaupdate.go
@@ -6,3 +6,10 @@ type SourceCodaUpdate struct {
// Bearer token
AuthToken string `json:"auth_token"`
}
+
+func (o *SourceCodaUpdate) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinapi.go b/internal/sdk/pkg/models/shared/sourcecoinapi.go
old mode 100755
new mode 100644
index 7680fb313..5fd0a353c
--- a/internal/sdk/pkg/models/shared/sourcecoinapi.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -69,15 +70,15 @@ type SourceCoinAPI struct {
EndDate *string `json:"end_date,omitempty"`
// The environment to use. Either sandbox or production.
//
- Environment SourceCoinAPIEnvironment `json:"environment"`
+ Environment *SourceCoinAPIEnvironment `default:"sandbox" json:"environment"`
// The maximum number of elements to return. If not supplied, the default
// is 100. For numbers larger than 100, each 100 items is counted as one
// request for pricing purposes. Maximum value is 100000.
//
- Limit *int64 `json:"limit,omitempty"`
+ Limit *int64 `default:"100" json:"limit"`
// The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get
Period string `json:"period"`
- SourceType SourceCoinAPICoinAPI `json:"sourceType"`
+ sourceType SourceCoinAPICoinAPI `const:"coin-api" json:"sourceType"`
// The start date in ISO 8601 format.
StartDate string `json:"start_date"`
// The symbol ID to use. See the documentation for a list.
@@ -85,3 +86,67 @@ type SourceCoinAPI struct {
//
SymbolID string `json:"symbol_id"`
}
+
+func (s SourceCoinAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCoinAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCoinAPI) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCoinAPI) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceCoinAPI) GetEnvironment() *SourceCoinAPIEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.Environment
+}
+
+func (o *SourceCoinAPI) GetLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *SourceCoinAPI) GetPeriod() string {
+ if o == nil {
+ return ""
+ }
+ return o.Period
+}
+
+func (o *SourceCoinAPI) GetSourceType() SourceCoinAPICoinAPI {
+ return SourceCoinAPICoinAPICoinAPI
+}
+
+func (o *SourceCoinAPI) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceCoinAPI) GetSymbolID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SymbolID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcecoinapicreaterequest.go
old mode 100755
new mode 100644
index b0ce0a896..bac898205
--- a/internal/sdk/pkg/models/shared/sourcecoinapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinapicreaterequest.go
@@ -9,3 +9,31 @@ type SourceCoinAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCoinAPICreateRequest) GetConfiguration() SourceCoinAPI {
+ if o == nil {
+ return SourceCoinAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCoinAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCoinAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceCoinAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinapiputrequest.go b/internal/sdk/pkg/models/shared/sourcecoinapiputrequest.go
old mode 100755
new mode 100644
index 484ad1707..263b669f7
--- a/internal/sdk/pkg/models/shared/sourcecoinapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinapiputrequest.go
@@ -7,3 +7,24 @@ type SourceCoinAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCoinAPIPutRequest) GetConfiguration() SourceCoinAPIUpdate {
+ if o == nil {
+ return SourceCoinAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCoinAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCoinAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinapiupdate.go b/internal/sdk/pkg/models/shared/sourcecoinapiupdate.go
old mode 100755
new mode 100644
index 621577036..29fc9953f
--- a/internal/sdk/pkg/models/shared/sourcecoinapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinapiupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -45,12 +46,12 @@ type SourceCoinAPIUpdate struct {
EndDate *string `json:"end_date,omitempty"`
// The environment to use. Either sandbox or production.
//
- Environment SourceCoinAPIUpdateEnvironment `json:"environment"`
+ Environment *SourceCoinAPIUpdateEnvironment `default:"sandbox" json:"environment"`
// The maximum number of elements to return. If not supplied, the default
// is 100. For numbers larger than 100, each 100 items is counted as one
// request for pricing purposes. Maximum value is 100000.
//
- Limit *int64 `json:"limit,omitempty"`
+ Limit *int64 `default:"100" json:"limit"`
// The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get
Period string `json:"period"`
// The start date in ISO 8601 format.
@@ -60,3 +61,63 @@ type SourceCoinAPIUpdate struct {
//
SymbolID string `json:"symbol_id"`
}
+
+func (s SourceCoinAPIUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCoinAPIUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCoinAPIUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCoinAPIUpdate) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceCoinAPIUpdate) GetEnvironment() *SourceCoinAPIUpdateEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.Environment
+}
+
+func (o *SourceCoinAPIUpdate) GetLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *SourceCoinAPIUpdate) GetPeriod() string {
+ if o == nil {
+ return ""
+ }
+ return o.Period
+}
+
+func (o *SourceCoinAPIUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceCoinAPIUpdate) GetSymbolID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SymbolID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinmarketcap.go b/internal/sdk/pkg/models/shared/sourcecoinmarketcap.go
old mode 100755
new mode 100644
index b3b9c772c..3b3ddde39
--- a/internal/sdk/pkg/models/shared/sourcecoinmarketcap.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinmarketcap.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -64,7 +65,43 @@ type SourceCoinmarketcap struct {
APIKey string `json:"api_key"`
// /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See here.
DataType SourceCoinmarketcapDataType `json:"data_type"`
- SourceType SourceCoinmarketcapCoinmarketcap `json:"sourceType"`
+ sourceType SourceCoinmarketcapCoinmarketcap `const:"coinmarketcap" json:"sourceType"`
// Cryptocurrency symbols. (only used for quotes stream)
Symbols []string `json:"symbols,omitempty"`
}
+
+func (s SourceCoinmarketcap) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceCoinmarketcap) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceCoinmarketcap) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCoinmarketcap) GetDataType() SourceCoinmarketcapDataType {
+ if o == nil {
+ return SourceCoinmarketcapDataType("")
+ }
+ return o.DataType
+}
+
+func (o *SourceCoinmarketcap) GetSourceType() SourceCoinmarketcapCoinmarketcap {
+ return SourceCoinmarketcapCoinmarketcapCoinmarketcap
+}
+
+func (o *SourceCoinmarketcap) GetSymbols() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Symbols
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinmarketcapcreaterequest.go b/internal/sdk/pkg/models/shared/sourcecoinmarketcapcreaterequest.go
old mode 100755
new mode 100644
index 9745afc31..5b5bd8f6f
--- a/internal/sdk/pkg/models/shared/sourcecoinmarketcapcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinmarketcapcreaterequest.go
@@ -9,3 +9,31 @@ type SourceCoinmarketcapCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCoinmarketcapCreateRequest) GetConfiguration() SourceCoinmarketcap {
+ if o == nil {
+ return SourceCoinmarketcap{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCoinmarketcapCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCoinmarketcapCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceCoinmarketcapCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinmarketcapputrequest.go b/internal/sdk/pkg/models/shared/sourcecoinmarketcapputrequest.go
old mode 100755
new mode 100644
index 6e6836070..33aefb71d
--- a/internal/sdk/pkg/models/shared/sourcecoinmarketcapputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinmarketcapputrequest.go
@@ -7,3 +7,24 @@ type SourceCoinmarketcapPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCoinmarketcapPutRequest) GetConfiguration() SourceCoinmarketcapUpdate {
+ if o == nil {
+ return SourceCoinmarketcapUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceCoinmarketcapPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCoinmarketcapPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecoinmarketcapupdate.go b/internal/sdk/pkg/models/shared/sourcecoinmarketcapupdate.go
old mode 100755
new mode 100644
index bb38d0ed8..903ef6861
--- a/internal/sdk/pkg/models/shared/sourcecoinmarketcapupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcecoinmarketcapupdate.go
@@ -43,3 +43,24 @@ type SourceCoinmarketcapUpdate struct {
// Cryptocurrency symbols. (only used for quotes stream)
Symbols []string `json:"symbols,omitempty"`
}
+
+func (o *SourceCoinmarketcapUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceCoinmarketcapUpdate) GetDataType() SourceCoinmarketcapUpdateDataType {
+ if o == nil {
+ return SourceCoinmarketcapUpdateDataType("")
+ }
+ return o.DataType
+}
+
+func (o *SourceCoinmarketcapUpdate) GetSymbols() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Symbols
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfigcat.go b/internal/sdk/pkg/models/shared/sourceconfigcat.go
old mode 100755
new mode 100644
index 3a063229a..1d820b368
--- a/internal/sdk/pkg/models/shared/sourceconfigcat.go
+++ b/internal/sdk/pkg/models/shared/sourceconfigcat.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *SourceConfigcatConfigcat) UnmarshalJSON(data []byte) error {
type SourceConfigcat struct {
// Basic auth password. See here.
Password string `json:"password"`
- SourceType SourceConfigcatConfigcat `json:"sourceType"`
+ sourceType SourceConfigcatConfigcat `const:"configcat" json:"sourceType"`
// Basic auth user name. See here.
Username string `json:"username"`
}
+
+func (s SourceConfigcat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceConfigcat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceConfigcat) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceConfigcat) GetSourceType() SourceConfigcatConfigcat {
+ return SourceConfigcatConfigcatConfigcat
+}
+
+func (o *SourceConfigcat) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfigcatcreaterequest.go b/internal/sdk/pkg/models/shared/sourceconfigcatcreaterequest.go
old mode 100755
new mode 100644
index 2e78f6bef..42517d030
--- a/internal/sdk/pkg/models/shared/sourceconfigcatcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconfigcatcreaterequest.go
@@ -9,3 +9,31 @@ type SourceConfigcatCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConfigcatCreateRequest) GetConfiguration() SourceConfigcat {
+ if o == nil {
+ return SourceConfigcat{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConfigcatCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConfigcatCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceConfigcatCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfigcatputrequest.go b/internal/sdk/pkg/models/shared/sourceconfigcatputrequest.go
old mode 100755
new mode 100644
index 1032cf218..d828eeac1
--- a/internal/sdk/pkg/models/shared/sourceconfigcatputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconfigcatputrequest.go
@@ -7,3 +7,24 @@ type SourceConfigcatPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConfigcatPutRequest) GetConfiguration() SourceConfigcatUpdate {
+ if o == nil {
+ return SourceConfigcatUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConfigcatPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConfigcatPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfigcatupdate.go b/internal/sdk/pkg/models/shared/sourceconfigcatupdate.go
old mode 100755
new mode 100644
index e8610ab33..7d4f2416c
--- a/internal/sdk/pkg/models/shared/sourceconfigcatupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceconfigcatupdate.go
@@ -8,3 +8,17 @@ type SourceConfigcatUpdate struct {
// Basic auth user name. See here.
Username string `json:"username"`
}
+
+func (o *SourceConfigcatUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceConfigcatUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfluence.go b/internal/sdk/pkg/models/shared/sourceconfluence.go
old mode 100755
new mode 100644
index 81df49216..4b29e130f
--- a/internal/sdk/pkg/models/shared/sourceconfluence.go
+++ b/internal/sdk/pkg/models/shared/sourceconfluence.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceConfluence struct {
DomainName string `json:"domain_name"`
// Your Confluence login email
Email string `json:"email"`
- SourceType SourceConfluenceConfluence `json:"sourceType"`
+ sourceType SourceConfluenceConfluence `const:"confluence" json:"sourceType"`
+}
+
+func (s SourceConfluence) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceConfluence) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceConfluence) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceConfluence) GetDomainName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainName
+}
+
+func (o *SourceConfluence) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceConfluence) GetSourceType() SourceConfluenceConfluence {
+ return SourceConfluenceConfluenceConfluence
}
diff --git a/internal/sdk/pkg/models/shared/sourceconfluencecreaterequest.go b/internal/sdk/pkg/models/shared/sourceconfluencecreaterequest.go
old mode 100755
new mode 100644
index 550fb26ad..5104ece03
--- a/internal/sdk/pkg/models/shared/sourceconfluencecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconfluencecreaterequest.go
@@ -9,3 +9,31 @@ type SourceConfluenceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConfluenceCreateRequest) GetConfiguration() SourceConfluence {
+ if o == nil {
+ return SourceConfluence{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConfluenceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConfluenceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceConfluenceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfluenceputrequest.go b/internal/sdk/pkg/models/shared/sourceconfluenceputrequest.go
old mode 100755
new mode 100644
index 36cb08f7e..4c8586cf6
--- a/internal/sdk/pkg/models/shared/sourceconfluenceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconfluenceputrequest.go
@@ -7,3 +7,24 @@ type SourceConfluencePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConfluencePutRequest) GetConfiguration() SourceConfluenceUpdate {
+ if o == nil {
+ return SourceConfluenceUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConfluencePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConfluencePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconfluenceupdate.go b/internal/sdk/pkg/models/shared/sourceconfluenceupdate.go
old mode 100755
new mode 100644
index f93a84b39..60f8f36c9
--- a/internal/sdk/pkg/models/shared/sourceconfluenceupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceconfluenceupdate.go
@@ -10,3 +10,24 @@ type SourceConfluenceUpdate struct {
// Your Confluence login email
Email string `json:"email"`
}
+
+func (o *SourceConfluenceUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceConfluenceUpdate) GetDomainName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainName
+}
+
+func (o *SourceConfluenceUpdate) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconvex.go b/internal/sdk/pkg/models/shared/sourceconvex.go
old mode 100755
new mode 100644
index 3d125af8d..678647f96
--- a/internal/sdk/pkg/models/shared/sourceconvex.go
+++ b/internal/sdk/pkg/models/shared/sourceconvex.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,5 +36,34 @@ type SourceConvex struct {
// API access key used to retrieve data from Convex.
AccessKey string `json:"access_key"`
DeploymentURL string `json:"deployment_url"`
- SourceType SourceConvexConvex `json:"sourceType"`
+ sourceType SourceConvexConvex `const:"convex" json:"sourceType"`
+}
+
+func (s SourceConvex) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceConvex) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceConvex) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourceConvex) GetDeploymentURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeploymentURL
+}
+
+func (o *SourceConvex) GetSourceType() SourceConvexConvex {
+ return SourceConvexConvexConvex
}
diff --git a/internal/sdk/pkg/models/shared/sourceconvexcreaterequest.go b/internal/sdk/pkg/models/shared/sourceconvexcreaterequest.go
old mode 100755
new mode 100644
index 991a2f494..577e28dd3
--- a/internal/sdk/pkg/models/shared/sourceconvexcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconvexcreaterequest.go
@@ -9,3 +9,31 @@ type SourceConvexCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConvexCreateRequest) GetConfiguration() SourceConvex {
+ if o == nil {
+ return SourceConvex{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConvexCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConvexCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceConvexCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconvexputrequest.go b/internal/sdk/pkg/models/shared/sourceconvexputrequest.go
old mode 100755
new mode 100644
index cd4693941..2eb2a809a
--- a/internal/sdk/pkg/models/shared/sourceconvexputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceconvexputrequest.go
@@ -7,3 +7,24 @@ type SourceConvexPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceConvexPutRequest) GetConfiguration() SourceConvexUpdate {
+ if o == nil {
+ return SourceConvexUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceConvexPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceConvexPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceconvexupdate.go b/internal/sdk/pkg/models/shared/sourceconvexupdate.go
old mode 100755
new mode 100644
index b8b50d057..2f5c44297
--- a/internal/sdk/pkg/models/shared/sourceconvexupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceconvexupdate.go
@@ -7,3 +7,17 @@ type SourceConvexUpdate struct {
AccessKey string `json:"access_key"`
DeploymentURL string `json:"deployment_url"`
}
+
+func (o *SourceConvexUpdate) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourceConvexUpdate) GetDeploymentURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeploymentURL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcecreaterequest.go b/internal/sdk/pkg/models/shared/sourcecreaterequest.go
old mode 100755
new mode 100644
index 015c00358..1fc19fc58
--- a/internal/sdk/pkg/models/shared/sourcecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcecreaterequest.go
@@ -10,3 +10,31 @@ type SourceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceCreateRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *SourceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedatascope.go b/internal/sdk/pkg/models/shared/sourcedatascope.go
old mode 100755
new mode 100644
index 34d102733..9adbee7a1
--- a/internal/sdk/pkg/models/shared/sourcedatascope.go
+++ b/internal/sdk/pkg/models/shared/sourcedatascope.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *SourceDatascopeDatascope) UnmarshalJSON(data []byte) error {
type SourceDatascope struct {
// API Key
APIKey string `json:"api_key"`
- SourceType SourceDatascopeDatascope `json:"sourceType"`
+ sourceType SourceDatascopeDatascope `const:"datascope" json:"sourceType"`
// Start date for the data to be replicated
StartDate string `json:"start_date"`
}
+
+func (s SourceDatascope) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDatascope) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDatascope) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDatascope) GetSourceType() SourceDatascopeDatascope {
+ return SourceDatascopeDatascopeDatascope
+}
+
+func (o *SourceDatascope) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedatascopecreaterequest.go b/internal/sdk/pkg/models/shared/sourcedatascopecreaterequest.go
old mode 100755
new mode 100644
index 2c9cf5659..9f70123e8
--- a/internal/sdk/pkg/models/shared/sourcedatascopecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedatascopecreaterequest.go
@@ -9,3 +9,31 @@ type SourceDatascopeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDatascopeCreateRequest) GetConfiguration() SourceDatascope {
+ if o == nil {
+ return SourceDatascope{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDatascopeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDatascopeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDatascopeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedatascopeputrequest.go b/internal/sdk/pkg/models/shared/sourcedatascopeputrequest.go
old mode 100755
new mode 100644
index 1ffde54e8..cb5cf925b
--- a/internal/sdk/pkg/models/shared/sourcedatascopeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedatascopeputrequest.go
@@ -7,3 +7,24 @@ type SourceDatascopePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDatascopePutRequest) GetConfiguration() SourceDatascopeUpdate {
+ if o == nil {
+ return SourceDatascopeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDatascopePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDatascopePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedatascopeupdate.go b/internal/sdk/pkg/models/shared/sourcedatascopeupdate.go
old mode 100755
new mode 100644
index c66185765..1c9fd04e7
--- a/internal/sdk/pkg/models/shared/sourcedatascopeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedatascopeupdate.go
@@ -8,3 +8,17 @@ type SourceDatascopeUpdate struct {
// Start date for the data to be replicated
StartDate string `json:"start_date"`
}
+
+func (o *SourceDatascopeUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDatascopeUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedelighted.go b/internal/sdk/pkg/models/shared/sourcedelighted.go
old mode 100755
new mode 100644
index 22ffd297d..7e75802e4
--- a/internal/sdk/pkg/models/shared/sourcedelighted.go
+++ b/internal/sdk/pkg/models/shared/sourcedelighted.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -37,5 +38,34 @@ type SourceDelighted struct {
APIKey string `json:"api_key"`
// The date from which you'd like to replicate the data
Since time.Time `json:"since"`
- SourceType SourceDelightedDelighted `json:"sourceType"`
+ sourceType SourceDelightedDelighted `const:"delighted" json:"sourceType"`
+}
+
+func (s SourceDelighted) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDelighted) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDelighted) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDelighted) GetSince() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.Since
+}
+
+func (o *SourceDelighted) GetSourceType() SourceDelightedDelighted {
+ return SourceDelightedDelightedDelighted
}
diff --git a/internal/sdk/pkg/models/shared/sourcedelightedcreaterequest.go b/internal/sdk/pkg/models/shared/sourcedelightedcreaterequest.go
old mode 100755
new mode 100644
index 09d7ee4dd..f3693ef8e
--- a/internal/sdk/pkg/models/shared/sourcedelightedcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedelightedcreaterequest.go
@@ -9,3 +9,31 @@ type SourceDelightedCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDelightedCreateRequest) GetConfiguration() SourceDelighted {
+ if o == nil {
+ return SourceDelighted{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDelightedCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDelightedCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDelightedCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedelightedputrequest.go b/internal/sdk/pkg/models/shared/sourcedelightedputrequest.go
old mode 100755
new mode 100644
index c2b0b58d7..62f899701
--- a/internal/sdk/pkg/models/shared/sourcedelightedputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedelightedputrequest.go
@@ -7,3 +7,24 @@ type SourceDelightedPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDelightedPutRequest) GetConfiguration() SourceDelightedUpdate {
+ if o == nil {
+ return SourceDelightedUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDelightedPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDelightedPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedelightedupdate.go b/internal/sdk/pkg/models/shared/sourcedelightedupdate.go
old mode 100755
new mode 100644
index 7d332d5c4..ca9601311
--- a/internal/sdk/pkg/models/shared/sourcedelightedupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedelightedupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,3 +13,28 @@ type SourceDelightedUpdate struct {
// The date from which you'd like to replicate the data
Since time.Time `json:"since"`
}
+
+func (s SourceDelightedUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDelightedUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDelightedUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDelightedUpdate) GetSince() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.Since
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedixa.go b/internal/sdk/pkg/models/shared/sourcedixa.go
old mode 100755
new mode 100644
index 1eaf5faa6..8b3d75670
--- a/internal/sdk/pkg/models/shared/sourcedixa.go
+++ b/internal/sdk/pkg/models/shared/sourcedixa.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,8 +36,44 @@ type SourceDixa struct {
// Dixa API token
APIToken string `json:"api_token"`
// Number of days to batch into one request. Max 31.
- BatchSize *int64 `json:"batch_size,omitempty"`
- SourceType SourceDixaDixa `json:"sourceType"`
+ BatchSize *int64 `default:"31" json:"batch_size"`
+ sourceType SourceDixaDixa `const:"dixa" json:"sourceType"`
// The connector pulls records updated from this date onwards.
StartDate string `json:"start_date"`
}
+
+func (s SourceDixa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDixa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDixa) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceDixa) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *SourceDixa) GetSourceType() SourceDixaDixa {
+ return SourceDixaDixaDixa
+}
+
+func (o *SourceDixa) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedixacreaterequest.go b/internal/sdk/pkg/models/shared/sourcedixacreaterequest.go
old mode 100755
new mode 100644
index ca6b59a45..77cd05e80
--- a/internal/sdk/pkg/models/shared/sourcedixacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedixacreaterequest.go
@@ -9,3 +9,31 @@ type SourceDixaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDixaCreateRequest) GetConfiguration() SourceDixa {
+ if o == nil {
+ return SourceDixa{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDixaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDixaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDixaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedixaputrequest.go b/internal/sdk/pkg/models/shared/sourcedixaputrequest.go
old mode 100755
new mode 100644
index 824d5d121..38f711d90
--- a/internal/sdk/pkg/models/shared/sourcedixaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedixaputrequest.go
@@ -7,3 +7,24 @@ type SourceDixaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDixaPutRequest) GetConfiguration() SourceDixaUpdate {
+ if o == nil {
+ return SourceDixaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDixaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDixaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedixaupdate.go b/internal/sdk/pkg/models/shared/sourcedixaupdate.go
old mode 100755
new mode 100644
index 23e4418f5..0dfb33772
--- a/internal/sdk/pkg/models/shared/sourcedixaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedixaupdate.go
@@ -2,11 +2,47 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceDixaUpdate struct {
// Dixa API token
APIToken string `json:"api_token"`
// Number of days to batch into one request. Max 31.
- BatchSize *int64 `json:"batch_size,omitempty"`
+ BatchSize *int64 `default:"31" json:"batch_size"`
// The connector pulls records updated from this date onwards.
StartDate string `json:"start_date"`
}
+
+func (s SourceDixaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDixaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDixaUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceDixaUpdate) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *SourceDixaUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedockerhub.go b/internal/sdk/pkg/models/shared/sourcedockerhub.go
old mode 100755
new mode 100644
index 28617edb6..771e56c74
--- a/internal/sdk/pkg/models/shared/sourcedockerhub.go
+++ b/internal/sdk/pkg/models/shared/sourcedockerhub.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceDockerhubDockerhub) UnmarshalJSON(data []byte) error {
type SourceDockerhub struct {
// Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)
DockerUsername string `json:"docker_username"`
- SourceType SourceDockerhubDockerhub `json:"sourceType"`
+ sourceType SourceDockerhubDockerhub `const:"dockerhub" json:"sourceType"`
+}
+
+func (s SourceDockerhub) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDockerhub) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDockerhub) GetDockerUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.DockerUsername
+}
+
+func (o *SourceDockerhub) GetSourceType() SourceDockerhubDockerhub {
+ return SourceDockerhubDockerhubDockerhub
}
diff --git a/internal/sdk/pkg/models/shared/sourcedockerhubcreaterequest.go b/internal/sdk/pkg/models/shared/sourcedockerhubcreaterequest.go
old mode 100755
new mode 100644
index a230d6787..36fd45c7a
--- a/internal/sdk/pkg/models/shared/sourcedockerhubcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedockerhubcreaterequest.go
@@ -9,3 +9,31 @@ type SourceDockerhubCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDockerhubCreateRequest) GetConfiguration() SourceDockerhub {
+ if o == nil {
+ return SourceDockerhub{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDockerhubCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDockerhubCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDockerhubCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedockerhubputrequest.go b/internal/sdk/pkg/models/shared/sourcedockerhubputrequest.go
old mode 100755
new mode 100644
index 36d330631..68f1e7312
--- a/internal/sdk/pkg/models/shared/sourcedockerhubputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedockerhubputrequest.go
@@ -7,3 +7,24 @@ type SourceDockerhubPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDockerhubPutRequest) GetConfiguration() SourceDockerhubUpdate {
+ if o == nil {
+ return SourceDockerhubUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDockerhubPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDockerhubPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedockerhubupdate.go b/internal/sdk/pkg/models/shared/sourcedockerhubupdate.go
old mode 100755
new mode 100644
index a35aa52de..a7b4304c8
--- a/internal/sdk/pkg/models/shared/sourcedockerhubupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedockerhubupdate.go
@@ -6,3 +6,10 @@ type SourceDockerhubUpdate struct {
// Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call)
DockerUsername string `json:"docker_username"`
}
+
+func (o *SourceDockerhubUpdate) GetDockerUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.DockerUsername
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedremio.go b/internal/sdk/pkg/models/shared/sourcedremio.go
old mode 100755
new mode 100644
index c3707ac7b..8f0f329e7
--- a/internal/sdk/pkg/models/shared/sourcedremio.go
+++ b/internal/sdk/pkg/models/shared/sourcedremio.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,6 +36,35 @@ type SourceDremio struct {
// API Key that is generated when you authenticate to Dremio API
APIKey string `json:"api_key"`
// URL of your Dremio instance
- BaseURL string `json:"base_url"`
- SourceType SourceDremioDremio `json:"sourceType"`
+ BaseURL *string `default:"https://app.dremio.cloud" json:"base_url"`
+ sourceType SourceDremioDremio `const:"dremio" json:"sourceType"`
+}
+
+func (s SourceDremio) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDremio) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDremio) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDremio) GetBaseURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BaseURL
+}
+
+func (o *SourceDremio) GetSourceType() SourceDremioDremio {
+ return SourceDremioDremioDremio
}
diff --git a/internal/sdk/pkg/models/shared/sourcedremiocreaterequest.go b/internal/sdk/pkg/models/shared/sourcedremiocreaterequest.go
old mode 100755
new mode 100644
index 9b857241a..2db49d95c
--- a/internal/sdk/pkg/models/shared/sourcedremiocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedremiocreaterequest.go
@@ -9,3 +9,31 @@ type SourceDremioCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDremioCreateRequest) GetConfiguration() SourceDremio {
+ if o == nil {
+ return SourceDremio{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDremioCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDremioCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDremioCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedremioputrequest.go b/internal/sdk/pkg/models/shared/sourcedremioputrequest.go
old mode 100755
new mode 100644
index 2f35b6d19..5f21b67cc
--- a/internal/sdk/pkg/models/shared/sourcedremioputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedremioputrequest.go
@@ -7,3 +7,24 @@ type SourceDremioPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDremioPutRequest) GetConfiguration() SourceDremioUpdate {
+ if o == nil {
+ return SourceDremioUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDremioPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDremioPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedremioupdate.go b/internal/sdk/pkg/models/shared/sourcedremioupdate.go
old mode 100755
new mode 100644
index 48064785a..c9dc4401c
--- a/internal/sdk/pkg/models/shared/sourcedremioupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedremioupdate.go
@@ -2,9 +2,38 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceDremioUpdate struct {
// API Key that is generated when you authenticate to Dremio API
APIKey string `json:"api_key"`
// URL of your Dremio instance
- BaseURL string `json:"base_url"`
+ BaseURL *string `default:"https://app.dremio.cloud" json:"base_url"`
+}
+
+func (s SourceDremioUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDremioUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDremioUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceDremioUpdate) GetBaseURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BaseURL
}
diff --git a/internal/sdk/pkg/models/shared/sourcedynamodb.go b/internal/sdk/pkg/models/shared/sourcedynamodb.go
old mode 100755
new mode 100644
index 5fa433935..418e39d37
--- a/internal/sdk/pkg/models/shared/sourcedynamodb.go
+++ b/internal/sdk/pkg/models/shared/sourcedynamodb.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -135,12 +136,62 @@ type SourceDynamodb struct {
// The access key id to access Dynamodb. Airbyte requires read permissions to the database
AccessKeyID string `json:"access_key_id"`
// the URL of the Dynamodb database
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// The region of the Dynamodb database
- Region *SourceDynamodbDynamodbRegion `json:"region,omitempty"`
+ Region *SourceDynamodbDynamodbRegion `default:"" json:"region"`
// Comma separated reserved attribute names present in your tables
ReservedAttributeNames *string `json:"reserved_attribute_names,omitempty"`
// The corresponding secret to the access key id.
SecretAccessKey string `json:"secret_access_key"`
- SourceType SourceDynamodbDynamodb `json:"sourceType"`
+ sourceType SourceDynamodbDynamodb `const:"dynamodb" json:"sourceType"`
+}
+
+func (s SourceDynamodb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDynamodb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDynamodb) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *SourceDynamodb) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceDynamodb) GetRegion() *SourceDynamodbDynamodbRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceDynamodb) GetReservedAttributeNames() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReservedAttributeNames
+}
+
+func (o *SourceDynamodb) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
+
+func (o *SourceDynamodb) GetSourceType() SourceDynamodbDynamodb {
+ return SourceDynamodbDynamodbDynamodb
}
diff --git a/internal/sdk/pkg/models/shared/sourcedynamodbcreaterequest.go b/internal/sdk/pkg/models/shared/sourcedynamodbcreaterequest.go
old mode 100755
new mode 100644
index 2bcc703df..dec9bca55
--- a/internal/sdk/pkg/models/shared/sourcedynamodbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedynamodbcreaterequest.go
@@ -9,3 +9,31 @@ type SourceDynamodbCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDynamodbCreateRequest) GetConfiguration() SourceDynamodb {
+ if o == nil {
+ return SourceDynamodb{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDynamodbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDynamodbCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceDynamodbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedynamodbputrequest.go b/internal/sdk/pkg/models/shared/sourcedynamodbputrequest.go
old mode 100755
new mode 100644
index dfc8448b8..72ea3745e
--- a/internal/sdk/pkg/models/shared/sourcedynamodbputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcedynamodbputrequest.go
@@ -7,3 +7,24 @@ type SourceDynamodbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceDynamodbPutRequest) GetConfiguration() SourceDynamodbUpdate {
+ if o == nil {
+ return SourceDynamodbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceDynamodbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceDynamodbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcedynamodbupdate.go b/internal/sdk/pkg/models/shared/sourcedynamodbupdate.go
old mode 100755
new mode 100644
index 064074af1..0a4ed5af8
--- a/internal/sdk/pkg/models/shared/sourcedynamodbupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcedynamodbupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -111,11 +112,57 @@ type SourceDynamodbUpdate struct {
// The access key id to access Dynamodb. Airbyte requires read permissions to the database
AccessKeyID string `json:"access_key_id"`
// the URL of the Dynamodb database
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// The region of the Dynamodb database
- Region *SourceDynamodbUpdateDynamodbRegion `json:"region,omitempty"`
+ Region *SourceDynamodbUpdateDynamodbRegion `default:"" json:"region"`
// Comma separated reserved attribute names present in your tables
ReservedAttributeNames *string `json:"reserved_attribute_names,omitempty"`
// The corresponding secret to the access key id.
SecretAccessKey string `json:"secret_access_key"`
}
+
+func (s SourceDynamodbUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceDynamodbUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceDynamodbUpdate) GetAccessKeyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKeyID
+}
+
+func (o *SourceDynamodbUpdate) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceDynamodbUpdate) GetRegion() *SourceDynamodbUpdateDynamodbRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceDynamodbUpdate) GetReservedAttributeNames() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReservedAttributeNames
+}
+
+func (o *SourceDynamodbUpdate) GetSecretAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretAccessKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloud.go b/internal/sdk/pkg/models/shared/sourcee2etestcloud.go
old mode 100755
new mode 100644
index fa916fe3a..32600ee09
--- a/internal/sdk/pkg/models/shared/sourcee2etestcloud.go
+++ b/internal/sdk/pkg/models/shared/sourcee2etestcloud.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,8 +36,30 @@ func (e *SourceE2eTestCloudMockCatalogMultiSchemaType) UnmarshalJSON(data []byte
// SourceE2eTestCloudMockCatalogMultiSchema - A catalog with multiple data streams, each with a different schema.
type SourceE2eTestCloudMockCatalogMultiSchema struct {
// A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
- StreamSchemas string `json:"stream_schemas"`
- Type SourceE2eTestCloudMockCatalogMultiSchemaType `json:"type"`
+ StreamSchemas *string `default:"{ "stream1": { "type": "object", "properties": { "field1": { "type": "string" } } }, "stream2": { "type": "object", "properties": { "field1": { "type": "boolean" } } } }" json:"stream_schemas"`
+ type_ *SourceE2eTestCloudMockCatalogMultiSchemaType `const:"MULTI_STREAM" json:"type"`
+}
+
+func (s SourceE2eTestCloudMockCatalogMultiSchema) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloudMockCatalogMultiSchema) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloudMockCatalogMultiSchema) GetStreamSchemas() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamSchemas
+}
+
+func (o *SourceE2eTestCloudMockCatalogMultiSchema) GetType() *SourceE2eTestCloudMockCatalogMultiSchemaType {
+ return SourceE2eTestCloudMockCatalogMultiSchemaTypeMultiStream.ToPointer()
}
type SourceE2eTestCloudMockCatalogSingleSchemaType string
@@ -67,12 +89,48 @@ func (e *SourceE2eTestCloudMockCatalogSingleSchemaType) UnmarshalJSON(data []byt
// SourceE2eTestCloudMockCatalogSingleSchema - A catalog with one or multiple streams that share the same schema.
type SourceE2eTestCloudMockCatalogSingleSchema struct {
// Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
- StreamDuplication *int64 `json:"stream_duplication,omitempty"`
+ StreamDuplication *int64 `default:"1" json:"stream_duplication"`
// Name of the data stream.
- StreamName string `json:"stream_name"`
+ StreamName *string `default:"data_stream" json:"stream_name"`
// A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
- StreamSchema string `json:"stream_schema"`
- Type SourceE2eTestCloudMockCatalogSingleSchemaType `json:"type"`
+ StreamSchema *string `default:"{ "type": "object", "properties": { "column1": { "type": "string" } } }" json:"stream_schema"`
+ type_ *SourceE2eTestCloudMockCatalogSingleSchemaType `const:"SINGLE_STREAM" json:"type"`
+}
+
+func (s SourceE2eTestCloudMockCatalogSingleSchema) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloudMockCatalogSingleSchema) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloudMockCatalogSingleSchema) GetStreamDuplication() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.StreamDuplication
+}
+
+func (o *SourceE2eTestCloudMockCatalogSingleSchema) GetStreamName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamName
+}
+
+func (o *SourceE2eTestCloudMockCatalogSingleSchema) GetStreamSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamSchema
+}
+
+func (o *SourceE2eTestCloudMockCatalogSingleSchema) GetType() *SourceE2eTestCloudMockCatalogSingleSchemaType {
+ return SourceE2eTestCloudMockCatalogSingleSchemaTypeSingleStream.ToPointer()
}
type SourceE2eTestCloudMockCatalogType string
@@ -108,21 +166,16 @@ func CreateSourceE2eTestCloudMockCatalogSourceE2eTestCloudMockCatalogMultiSchema
}
func (u *SourceE2eTestCloudMockCatalog) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceE2eTestCloudMockCatalogMultiSchema := new(SourceE2eTestCloudMockCatalogMultiSchema)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceE2eTestCloudMockCatalogMultiSchema); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudMockCatalogMultiSchema, "", true, true); err == nil {
u.SourceE2eTestCloudMockCatalogMultiSchema = sourceE2eTestCloudMockCatalogMultiSchema
u.Type = SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudMockCatalogMultiSchema
return nil
}
sourceE2eTestCloudMockCatalogSingleSchema := new(SourceE2eTestCloudMockCatalogSingleSchema)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceE2eTestCloudMockCatalogSingleSchema); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudMockCatalogSingleSchema, "", true, true); err == nil {
u.SourceE2eTestCloudMockCatalogSingleSchema = sourceE2eTestCloudMockCatalogSingleSchema
u.Type = SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudMockCatalogSingleSchema
return nil
@@ -132,15 +185,15 @@ func (u *SourceE2eTestCloudMockCatalog) UnmarshalJSON(data []byte) error {
}
func (u SourceE2eTestCloudMockCatalog) MarshalJSON() ([]byte, error) {
- if u.SourceE2eTestCloudMockCatalogMultiSchema != nil {
- return json.Marshal(u.SourceE2eTestCloudMockCatalogMultiSchema)
+ if u.SourceE2eTestCloudMockCatalogSingleSchema != nil {
+ return utils.MarshalJSON(u.SourceE2eTestCloudMockCatalogSingleSchema, "", true)
}
- if u.SourceE2eTestCloudMockCatalogSingleSchema != nil {
- return json.Marshal(u.SourceE2eTestCloudMockCatalogSingleSchema)
+ if u.SourceE2eTestCloudMockCatalogMultiSchema != nil {
+ return utils.MarshalJSON(u.SourceE2eTestCloudMockCatalogMultiSchema, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceE2eTestCloudE2eTestCloud string
@@ -193,12 +246,59 @@ func (e *SourceE2eTestCloudType) UnmarshalJSON(data []byte) error {
type SourceE2eTestCloud struct {
// Number of records to emit per stream. Min 1. Max 100 billion.
- MaxMessages int64 `json:"max_messages"`
+ MaxMessages *int64 `default:"100" json:"max_messages"`
// Interval between messages in ms. Min 0 ms. Max 60000 ms (1 minute).
- MessageIntervalMs *int64 `json:"message_interval_ms,omitempty"`
+ MessageIntervalMs *int64 `default:"0" json:"message_interval_ms"`
MockCatalog SourceE2eTestCloudMockCatalog `json:"mock_catalog"`
// When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].
- Seed *int64 `json:"seed,omitempty"`
- SourceType SourceE2eTestCloudE2eTestCloud `json:"sourceType"`
- Type *SourceE2eTestCloudType `json:"type,omitempty"`
+ Seed *int64 `default:"0" json:"seed"`
+ sourceType SourceE2eTestCloudE2eTestCloud `const:"e2e-test-cloud" json:"sourceType"`
+ type_ *SourceE2eTestCloudType `const:"CONTINUOUS_FEED" json:"type"`
+}
+
+func (s SourceE2eTestCloud) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloud) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloud) GetMaxMessages() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxMessages
+}
+
+func (o *SourceE2eTestCloud) GetMessageIntervalMs() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MessageIntervalMs
+}
+
+func (o *SourceE2eTestCloud) GetMockCatalog() SourceE2eTestCloudMockCatalog {
+ if o == nil {
+ return SourceE2eTestCloudMockCatalog{}
+ }
+ return o.MockCatalog
+}
+
+func (o *SourceE2eTestCloud) GetSeed() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Seed
+}
+
+func (o *SourceE2eTestCloud) GetSourceType() SourceE2eTestCloudE2eTestCloud {
+ return SourceE2eTestCloudE2eTestCloudE2eTestCloud
+}
+
+func (o *SourceE2eTestCloud) GetType() *SourceE2eTestCloudType {
+ return SourceE2eTestCloudTypeContinuousFeed.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloudcreaterequest.go b/internal/sdk/pkg/models/shared/sourcee2etestcloudcreaterequest.go
old mode 100755
new mode 100644
index 6eb73aa41..bab3fbc6c
--- a/internal/sdk/pkg/models/shared/sourcee2etestcloudcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcee2etestcloudcreaterequest.go
@@ -9,3 +9,31 @@ type SourceE2eTestCloudCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceE2eTestCloudCreateRequest) GetConfiguration() SourceE2eTestCloud {
+ if o == nil {
+ return SourceE2eTestCloud{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceE2eTestCloudCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceE2eTestCloudCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceE2eTestCloudCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloudputrequest.go b/internal/sdk/pkg/models/shared/sourcee2etestcloudputrequest.go
old mode 100755
new mode 100644
index 4f02a0b73..6cb76ee72
--- a/internal/sdk/pkg/models/shared/sourcee2etestcloudputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcee2etestcloudputrequest.go
@@ -7,3 +7,24 @@ type SourceE2eTestCloudPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceE2eTestCloudPutRequest) GetConfiguration() SourceE2eTestCloudUpdate {
+ if o == nil {
+ return SourceE2eTestCloudUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceE2eTestCloudPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceE2eTestCloudPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go b/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go
old mode 100755
new mode 100644
index 314f387b3..5b03507ed
--- a/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,8 +36,30 @@ func (e *SourceE2eTestCloudUpdateMockCatalogMultiSchemaType) UnmarshalJSON(data
// SourceE2eTestCloudUpdateMockCatalogMultiSchema - A catalog with multiple data streams, each with a different schema.
type SourceE2eTestCloudUpdateMockCatalogMultiSchema struct {
// A Json object specifying multiple data streams and their schemas. Each key in this object is one stream name. Each value is the schema for that stream. The schema should be compatible with draft-07. See this doc for examples.
- StreamSchemas string `json:"stream_schemas"`
- Type SourceE2eTestCloudUpdateMockCatalogMultiSchemaType `json:"type"`
+ StreamSchemas *string `default:"{ "stream1": { "type": "object", "properties": { "field1": { "type": "string" } } }, "stream2": { "type": "object", "properties": { "field1": { "type": "boolean" } } } }" json:"stream_schemas"`
+ type_ *SourceE2eTestCloudUpdateMockCatalogMultiSchemaType `const:"MULTI_STREAM" json:"type"`
+}
+
+func (s SourceE2eTestCloudUpdateMockCatalogMultiSchema) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloudUpdateMockCatalogMultiSchema) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogMultiSchema) GetStreamSchemas() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamSchemas
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogMultiSchema) GetType() *SourceE2eTestCloudUpdateMockCatalogMultiSchemaType {
+ return SourceE2eTestCloudUpdateMockCatalogMultiSchemaTypeMultiStream.ToPointer()
}
type SourceE2eTestCloudUpdateMockCatalogSingleSchemaType string
@@ -67,12 +89,48 @@ func (e *SourceE2eTestCloudUpdateMockCatalogSingleSchemaType) UnmarshalJSON(data
// SourceE2eTestCloudUpdateMockCatalogSingleSchema - A catalog with one or multiple streams that share the same schema.
type SourceE2eTestCloudUpdateMockCatalogSingleSchema struct {
// Duplicate the stream for easy load testing. Each stream name will have a number suffix. For example, if the stream name is "ds", the duplicated streams will be "ds_0", "ds_1", etc.
- StreamDuplication *int64 `json:"stream_duplication,omitempty"`
+ StreamDuplication *int64 `default:"1" json:"stream_duplication"`
// Name of the data stream.
- StreamName string `json:"stream_name"`
+ StreamName *string `default:"data_stream" json:"stream_name"`
// A Json schema for the stream. The schema should be compatible with draft-07. See this doc for examples.
- StreamSchema string `json:"stream_schema"`
- Type SourceE2eTestCloudUpdateMockCatalogSingleSchemaType `json:"type"`
+ StreamSchema *string `default:"{ "type": "object", "properties": { "column1": { "type": "string" } } }" json:"stream_schema"`
+ type_ *SourceE2eTestCloudUpdateMockCatalogSingleSchemaType `const:"SINGLE_STREAM" json:"type"`
+}
+
+func (s SourceE2eTestCloudUpdateMockCatalogSingleSchema) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloudUpdateMockCatalogSingleSchema) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogSingleSchema) GetStreamDuplication() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.StreamDuplication
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogSingleSchema) GetStreamName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamName
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogSingleSchema) GetStreamSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamSchema
+}
+
+func (o *SourceE2eTestCloudUpdateMockCatalogSingleSchema) GetType() *SourceE2eTestCloudUpdateMockCatalogSingleSchemaType {
+ return SourceE2eTestCloudUpdateMockCatalogSingleSchemaTypeSingleStream.ToPointer()
}
type SourceE2eTestCloudUpdateMockCatalogType string
@@ -108,21 +166,16 @@ func CreateSourceE2eTestCloudUpdateMockCatalogSourceE2eTestCloudUpdateMockCatalo
}
func (u *SourceE2eTestCloudUpdateMockCatalog) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceE2eTestCloudUpdateMockCatalogMultiSchema := new(SourceE2eTestCloudUpdateMockCatalogMultiSchema)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceE2eTestCloudUpdateMockCatalogMultiSchema); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudUpdateMockCatalogMultiSchema, "", true, true); err == nil {
u.SourceE2eTestCloudUpdateMockCatalogMultiSchema = sourceE2eTestCloudUpdateMockCatalogMultiSchema
u.Type = SourceE2eTestCloudUpdateMockCatalogTypeSourceE2eTestCloudUpdateMockCatalogMultiSchema
return nil
}
sourceE2eTestCloudUpdateMockCatalogSingleSchema := new(SourceE2eTestCloudUpdateMockCatalogSingleSchema)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceE2eTestCloudUpdateMockCatalogSingleSchema); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudUpdateMockCatalogSingleSchema, "", true, true); err == nil {
u.SourceE2eTestCloudUpdateMockCatalogSingleSchema = sourceE2eTestCloudUpdateMockCatalogSingleSchema
u.Type = SourceE2eTestCloudUpdateMockCatalogTypeSourceE2eTestCloudUpdateMockCatalogSingleSchema
return nil
@@ -132,15 +185,15 @@ func (u *SourceE2eTestCloudUpdateMockCatalog) UnmarshalJSON(data []byte) error {
}
func (u SourceE2eTestCloudUpdateMockCatalog) MarshalJSON() ([]byte, error) {
- if u.SourceE2eTestCloudUpdateMockCatalogMultiSchema != nil {
- return json.Marshal(u.SourceE2eTestCloudUpdateMockCatalogMultiSchema)
+ if u.SourceE2eTestCloudUpdateMockCatalogSingleSchema != nil {
+ return utils.MarshalJSON(u.SourceE2eTestCloudUpdateMockCatalogSingleSchema, "", true)
}
- if u.SourceE2eTestCloudUpdateMockCatalogSingleSchema != nil {
- return json.Marshal(u.SourceE2eTestCloudUpdateMockCatalogSingleSchema)
+ if u.SourceE2eTestCloudUpdateMockCatalogMultiSchema != nil {
+ return utils.MarshalJSON(u.SourceE2eTestCloudUpdateMockCatalogMultiSchema, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceE2eTestCloudUpdateType string
@@ -169,11 +222,54 @@ func (e *SourceE2eTestCloudUpdateType) UnmarshalJSON(data []byte) error {
type SourceE2eTestCloudUpdate struct {
// Number of records to emit per stream. Min 1. Max 100 billion.
- MaxMessages int64 `json:"max_messages"`
+ MaxMessages *int64 `default:"100" json:"max_messages"`
// Interval between messages in ms. Min 0 ms. Max 60000 ms (1 minute).
- MessageIntervalMs *int64 `json:"message_interval_ms,omitempty"`
+ MessageIntervalMs *int64 `default:"0" json:"message_interval_ms"`
MockCatalog SourceE2eTestCloudUpdateMockCatalog `json:"mock_catalog"`
// When the seed is unspecified, the current time millis will be used as the seed. Range: [0, 1000000].
- Seed *int64 `json:"seed,omitempty"`
- Type *SourceE2eTestCloudUpdateType `json:"type,omitempty"`
+ Seed *int64 `default:"0" json:"seed"`
+ type_ *SourceE2eTestCloudUpdateType `const:"CONTINUOUS_FEED" json:"type"`
+}
+
+func (s SourceE2eTestCloudUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceE2eTestCloudUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceE2eTestCloudUpdate) GetMaxMessages() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxMessages
+}
+
+func (o *SourceE2eTestCloudUpdate) GetMessageIntervalMs() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MessageIntervalMs
+}
+
+func (o *SourceE2eTestCloudUpdate) GetMockCatalog() SourceE2eTestCloudUpdateMockCatalog {
+ if o == nil {
+ return SourceE2eTestCloudUpdateMockCatalog{}
+ }
+ return o.MockCatalog
+}
+
+func (o *SourceE2eTestCloudUpdate) GetSeed() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Seed
+}
+
+func (o *SourceE2eTestCloudUpdate) GetType() *SourceE2eTestCloudUpdateType {
+ return SourceE2eTestCloudUpdateTypeContinuousFeed.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourceemailoctopus.go b/internal/sdk/pkg/models/shared/sourceemailoctopus.go
old mode 100755
new mode 100644
index 7790bd5cb..67a02401c
--- a/internal/sdk/pkg/models/shared/sourceemailoctopus.go
+++ b/internal/sdk/pkg/models/shared/sourceemailoctopus.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceEmailoctopusEmailoctopus) UnmarshalJSON(data []byte) error {
type SourceEmailoctopus struct {
// EmailOctopus API Key. See the docs for information on how to generate this key.
APIKey string `json:"api_key"`
- SourceType SourceEmailoctopusEmailoctopus `json:"sourceType"`
+ sourceType SourceEmailoctopusEmailoctopus `const:"emailoctopus" json:"sourceType"`
+}
+
+func (s SourceEmailoctopus) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceEmailoctopus) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceEmailoctopus) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceEmailoctopus) GetSourceType() SourceEmailoctopusEmailoctopus {
+ return SourceEmailoctopusEmailoctopusEmailoctopus
}
diff --git a/internal/sdk/pkg/models/shared/sourceemailoctopuscreaterequest.go b/internal/sdk/pkg/models/shared/sourceemailoctopuscreaterequest.go
old mode 100755
new mode 100644
index 472d84359..752173088
--- a/internal/sdk/pkg/models/shared/sourceemailoctopuscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceemailoctopuscreaterequest.go
@@ -9,3 +9,31 @@ type SourceEmailoctopusCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceEmailoctopusCreateRequest) GetConfiguration() SourceEmailoctopus {
+ if o == nil {
+ return SourceEmailoctopus{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceEmailoctopusCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceEmailoctopusCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceEmailoctopusCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceemailoctopusputrequest.go b/internal/sdk/pkg/models/shared/sourceemailoctopusputrequest.go
old mode 100755
new mode 100644
index 0b95dce9f..b2dde5441
--- a/internal/sdk/pkg/models/shared/sourceemailoctopusputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceemailoctopusputrequest.go
@@ -7,3 +7,24 @@ type SourceEmailoctopusPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceEmailoctopusPutRequest) GetConfiguration() SourceEmailoctopusUpdate {
+ if o == nil {
+ return SourceEmailoctopusUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceEmailoctopusPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceEmailoctopusPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceemailoctopusupdate.go b/internal/sdk/pkg/models/shared/sourceemailoctopusupdate.go
old mode 100755
new mode 100644
index d5446868f..1a31b8f7b
--- a/internal/sdk/pkg/models/shared/sourceemailoctopusupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceemailoctopusupdate.go
@@ -6,3 +6,10 @@ type SourceEmailoctopusUpdate struct {
// EmailOctopus API Key. See the docs for information on how to generate this key.
APIKey string `json:"api_key"`
}
+
+func (o *SourceEmailoctopusUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceexchangerates.go b/internal/sdk/pkg/models/shared/sourceexchangerates.go
old mode 100755
new mode 100644
index 24f4ff33c..a4d11c22e
--- a/internal/sdk/pkg/models/shared/sourceexchangerates.go
+++ b/internal/sdk/pkg/models/shared/sourceexchangerates.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,8 +39,51 @@ type SourceExchangeRates struct {
// ISO reference currency. See here. Free plan doesn't support Source Currency Switching, default base currency is EUR
Base *string `json:"base,omitempty"`
// Ignore weekends? (Exchanges don't run on weekends)
- IgnoreWeekends *bool `json:"ignore_weekends,omitempty"`
- SourceType SourceExchangeRatesExchangeRates `json:"sourceType"`
+ IgnoreWeekends *bool `default:"true" json:"ignore_weekends"`
+ sourceType SourceExchangeRatesExchangeRates `const:"exchange-rates" json:"sourceType"`
// Start getting data from that date.
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceExchangeRates) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceExchangeRates) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceExchangeRates) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourceExchangeRates) GetBase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Base
+}
+
+func (o *SourceExchangeRates) GetIgnoreWeekends() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IgnoreWeekends
+}
+
+func (o *SourceExchangeRates) GetSourceType() SourceExchangeRatesExchangeRates {
+ return SourceExchangeRatesExchangeRatesExchangeRates
+}
+
+func (o *SourceExchangeRates) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceexchangeratescreaterequest.go b/internal/sdk/pkg/models/shared/sourceexchangeratescreaterequest.go
old mode 100755
new mode 100644
index 3d00826fe..d3939d7d4
--- a/internal/sdk/pkg/models/shared/sourceexchangeratescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceexchangeratescreaterequest.go
@@ -9,3 +9,31 @@ type SourceExchangeRatesCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceExchangeRatesCreateRequest) GetConfiguration() SourceExchangeRates {
+ if o == nil {
+ return SourceExchangeRates{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceExchangeRatesCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceExchangeRatesCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceExchangeRatesCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceexchangeratesputrequest.go b/internal/sdk/pkg/models/shared/sourceexchangeratesputrequest.go
old mode 100755
new mode 100644
index 4b268f339..5eb682f2a
--- a/internal/sdk/pkg/models/shared/sourceexchangeratesputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceexchangeratesputrequest.go
@@ -7,3 +7,24 @@ type SourceExchangeRatesPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceExchangeRatesPutRequest) GetConfiguration() SourceExchangeRatesUpdate {
+ if o == nil {
+ return SourceExchangeRatesUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceExchangeRatesPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceExchangeRatesPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceexchangeratesupdate.go b/internal/sdk/pkg/models/shared/sourceexchangeratesupdate.go
old mode 100755
new mode 100644
index f78ede509..0467f85bc
--- a/internal/sdk/pkg/models/shared/sourceexchangeratesupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceexchangeratesupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceExchangeRatesUpdate struct {
@@ -12,7 +13,46 @@ type SourceExchangeRatesUpdate struct {
// ISO reference currency. See here. Free plan doesn't support Source Currency Switching, default base currency is EUR
Base *string `json:"base,omitempty"`
// Ignore weekends? (Exchanges don't run on weekends)
- IgnoreWeekends *bool `json:"ignore_weekends,omitempty"`
+ IgnoreWeekends *bool `default:"true" json:"ignore_weekends"`
// Start getting data from that date.
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceExchangeRatesUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceExchangeRatesUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceExchangeRatesUpdate) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourceExchangeRatesUpdate) GetBase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Base
+}
+
+func (o *SourceExchangeRatesUpdate) GetIgnoreWeekends() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IgnoreWeekends
+}
+
+func (o *SourceExchangeRatesUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookmarketing.go b/internal/sdk/pkg/models/shared/sourcefacebookmarketing.go
old mode 100755
new mode 100644
index c6e88d854..45f8b1cbf
--- a/internal/sdk/pkg/models/shared/sourcefacebookmarketing.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookmarketing.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -666,7 +667,7 @@ type SourceFacebookMarketingInsightConfig struct {
// A list of chosen action_breakdowns for action_breakdowns
ActionBreakdowns []SourceFacebookMarketingInsightConfigValidActionBreakdowns `json:"action_breakdowns,omitempty"`
// Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd.
- ActionReportTime *SourceFacebookMarketingInsightConfigActionReportTime `json:"action_report_time,omitempty"`
+ ActionReportTime *SourceFacebookMarketingInsightConfigActionReportTime `default:"mixed" json:"action_report_time"`
// A list of chosen breakdowns for breakdowns
Breakdowns []SourceFacebookMarketingInsightConfigValidBreakdowns `json:"breakdowns,omitempty"`
// The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data.
@@ -674,15 +675,96 @@ type SourceFacebookMarketingInsightConfig struct {
// A list of chosen fields for fields parameter
Fields []SourceFacebookMarketingInsightConfigValidEnums `json:"fields,omitempty"`
// The attribution window
- InsightsLookbackWindow *int64 `json:"insights_lookback_window,omitempty"`
+ InsightsLookbackWindow *int64 `default:"28" json:"insights_lookback_window"`
// Chosen level for API
- Level *SourceFacebookMarketingInsightConfigLevel `json:"level,omitempty"`
+ Level *SourceFacebookMarketingInsightConfigLevel `default:"ad" json:"level"`
// The name value of insight
Name string `json:"name"`
// The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z.
StartDate *time.Time `json:"start_date,omitempty"`
// Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only).
- TimeIncrement *int64 `json:"time_increment,omitempty"`
+ TimeIncrement *int64 `default:"1" json:"time_increment"`
+}
+
+func (s SourceFacebookMarketingInsightConfig) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFacebookMarketingInsightConfig) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetActionBreakdowns() []SourceFacebookMarketingInsightConfigValidActionBreakdowns {
+ if o == nil {
+ return nil
+ }
+ return o.ActionBreakdowns
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetActionReportTime() *SourceFacebookMarketingInsightConfigActionReportTime {
+ if o == nil {
+ return nil
+ }
+ return o.ActionReportTime
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetBreakdowns() []SourceFacebookMarketingInsightConfigValidBreakdowns {
+ if o == nil {
+ return nil
+ }
+ return o.Breakdowns
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetFields() []SourceFacebookMarketingInsightConfigValidEnums {
+ if o == nil {
+ return nil
+ }
+ return o.Fields
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetInsightsLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InsightsLookbackWindow
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetLevel() *SourceFacebookMarketingInsightConfigLevel {
+ if o == nil {
+ return nil
+ }
+ return o.Level
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceFacebookMarketingInsightConfig) GetTimeIncrement() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TimeIncrement
}
type SourceFacebookMarketingFacebookMarketing string
@@ -715,7 +797,7 @@ type SourceFacebookMarketing struct {
// The Facebook Ad account ID to use when pulling data from the Facebook Marketing API. Open your Meta Ads Manager. The Ad account ID number is in the account dropdown menu or in your browser's address bar. See the docs for more information.
AccountID string `json:"account_id"`
// Allows action_breakdowns to be an empty list
- ActionBreakdownsAllowEmpty *bool `json:"action_breakdowns_allow_empty,omitempty"`
+ ActionBreakdownsAllowEmpty *bool `default:"true" json:"action_breakdowns_allow_empty"`
// The Client Id for your OAuth app
ClientID *string `json:"client_id,omitempty"`
// The Client Secret for your OAuth app
@@ -725,16 +807,122 @@ type SourceFacebookMarketing struct {
// The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data.
EndDate *time.Time `json:"end_date,omitempty"`
// Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative.
- FetchThumbnailImages *bool `json:"fetch_thumbnail_images,omitempty"`
+ FetchThumbnailImages *bool `default:"false" json:"fetch_thumbnail_images"`
// Set to active if you want to include data from deleted Campaigns, Ads, and AdSets.
- IncludeDeleted *bool `json:"include_deleted,omitempty"`
+ IncludeDeleted *bool `default:"false" json:"include_deleted"`
// The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here.
- InsightsLookbackWindow *int64 `json:"insights_lookback_window,omitempty"`
+ InsightsLookbackWindow *int64 `default:"28" json:"insights_lookback_window"`
// Maximum batch size used when sending batch requests to Facebook API. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
- MaxBatchSize *int64 `json:"max_batch_size,omitempty"`
+ MaxBatchSize *int64 `default:"50" json:"max_batch_size"`
// Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
- PageSize *int64 `json:"page_size,omitempty"`
- SourceType SourceFacebookMarketingFacebookMarketing `json:"sourceType"`
+ PageSize *int64 `default:"100" json:"page_size"`
+ sourceType SourceFacebookMarketingFacebookMarketing `const:"facebook-marketing" json:"sourceType"`
// The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceFacebookMarketing) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFacebookMarketing) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFacebookMarketing) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceFacebookMarketing) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceFacebookMarketing) GetActionBreakdownsAllowEmpty() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ActionBreakdownsAllowEmpty
+}
+
+func (o *SourceFacebookMarketing) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceFacebookMarketing) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceFacebookMarketing) GetCustomInsights() []SourceFacebookMarketingInsightConfig {
+ if o == nil {
+ return nil
+ }
+ return o.CustomInsights
+}
+
+func (o *SourceFacebookMarketing) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceFacebookMarketing) GetFetchThumbnailImages() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.FetchThumbnailImages
+}
+
+func (o *SourceFacebookMarketing) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *SourceFacebookMarketing) GetInsightsLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InsightsLookbackWindow
+}
+
+func (o *SourceFacebookMarketing) GetMaxBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxBatchSize
+}
+
+func (o *SourceFacebookMarketing) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
+}
+
+func (o *SourceFacebookMarketing) GetSourceType() SourceFacebookMarketingFacebookMarketing {
+ return SourceFacebookMarketingFacebookMarketingFacebookMarketing
+}
+
+func (o *SourceFacebookMarketing) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookmarketingcreaterequest.go b/internal/sdk/pkg/models/shared/sourcefacebookmarketingcreaterequest.go
old mode 100755
new mode 100644
index 2084a682a..472c36660
--- a/internal/sdk/pkg/models/shared/sourcefacebookmarketingcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookmarketingcreaterequest.go
@@ -9,3 +9,31 @@ type SourceFacebookMarketingCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFacebookMarketingCreateRequest) GetConfiguration() SourceFacebookMarketing {
+ if o == nil {
+ return SourceFacebookMarketing{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFacebookMarketingCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookMarketingCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFacebookMarketingCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookmarketingputrequest.go b/internal/sdk/pkg/models/shared/sourcefacebookmarketingputrequest.go
old mode 100755
new mode 100644
index b388642df..2e4fda540
--- a/internal/sdk/pkg/models/shared/sourcefacebookmarketingputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookmarketingputrequest.go
@@ -7,3 +7,24 @@ type SourceFacebookMarketingPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFacebookMarketingPutRequest) GetConfiguration() SourceFacebookMarketingUpdate {
+ if o == nil {
+ return SourceFacebookMarketingUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFacebookMarketingPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookMarketingPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookmarketingupdate.go b/internal/sdk/pkg/models/shared/sourcefacebookmarketingupdate.go
old mode 100755
new mode 100644
index c0a31b902..8239a6da5
--- a/internal/sdk/pkg/models/shared/sourcefacebookmarketingupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookmarketingupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -666,7 +667,7 @@ type SourceFacebookMarketingUpdateInsightConfig struct {
// A list of chosen action_breakdowns for action_breakdowns
ActionBreakdowns []SourceFacebookMarketingUpdateInsightConfigValidActionBreakdowns `json:"action_breakdowns,omitempty"`
// Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd.
- ActionReportTime *SourceFacebookMarketingUpdateInsightConfigActionReportTime `json:"action_report_time,omitempty"`
+ ActionReportTime *SourceFacebookMarketingUpdateInsightConfigActionReportTime `default:"mixed" json:"action_report_time"`
// A list of chosen breakdowns for breakdowns
Breakdowns []SourceFacebookMarketingUpdateInsightConfigValidBreakdowns `json:"breakdowns,omitempty"`
// The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data.
@@ -674,15 +675,96 @@ type SourceFacebookMarketingUpdateInsightConfig struct {
// A list of chosen fields for fields parameter
Fields []SourceFacebookMarketingUpdateInsightConfigValidEnums `json:"fields,omitempty"`
// The attribution window
- InsightsLookbackWindow *int64 `json:"insights_lookback_window,omitempty"`
+ InsightsLookbackWindow *int64 `default:"28" json:"insights_lookback_window"`
// Chosen level for API
- Level *SourceFacebookMarketingUpdateInsightConfigLevel `json:"level,omitempty"`
+ Level *SourceFacebookMarketingUpdateInsightConfigLevel `default:"ad" json:"level"`
// The name value of insight
Name string `json:"name"`
// The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z.
StartDate *time.Time `json:"start_date,omitempty"`
// Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only).
- TimeIncrement *int64 `json:"time_increment,omitempty"`
+ TimeIncrement *int64 `default:"1" json:"time_increment"`
+}
+
+func (s SourceFacebookMarketingUpdateInsightConfig) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFacebookMarketingUpdateInsightConfig) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetActionBreakdowns() []SourceFacebookMarketingUpdateInsightConfigValidActionBreakdowns {
+ if o == nil {
+ return nil
+ }
+ return o.ActionBreakdowns
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetActionReportTime() *SourceFacebookMarketingUpdateInsightConfigActionReportTime {
+ if o == nil {
+ return nil
+ }
+ return o.ActionReportTime
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetBreakdowns() []SourceFacebookMarketingUpdateInsightConfigValidBreakdowns {
+ if o == nil {
+ return nil
+ }
+ return o.Breakdowns
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetFields() []SourceFacebookMarketingUpdateInsightConfigValidEnums {
+ if o == nil {
+ return nil
+ }
+ return o.Fields
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetInsightsLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InsightsLookbackWindow
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetLevel() *SourceFacebookMarketingUpdateInsightConfigLevel {
+ if o == nil {
+ return nil
+ }
+ return o.Level
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceFacebookMarketingUpdateInsightConfig) GetTimeIncrement() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TimeIncrement
}
type SourceFacebookMarketingUpdate struct {
@@ -691,7 +773,7 @@ type SourceFacebookMarketingUpdate struct {
// The Facebook Ad account ID to use when pulling data from the Facebook Marketing API. Open your Meta Ads Manager. The Ad account ID number is in the account dropdown menu or in your browser's address bar. See the docs for more information.
AccountID string `json:"account_id"`
// Allows action_breakdowns to be an empty list
- ActionBreakdownsAllowEmpty *bool `json:"action_breakdowns_allow_empty,omitempty"`
+ ActionBreakdownsAllowEmpty *bool `default:"true" json:"action_breakdowns_allow_empty"`
// The Client Id for your OAuth app
ClientID *string `json:"client_id,omitempty"`
// The Client Secret for your OAuth app
@@ -701,15 +783,117 @@ type SourceFacebookMarketingUpdate struct {
// The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data.
EndDate *time.Time `json:"end_date,omitempty"`
// Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative.
- FetchThumbnailImages *bool `json:"fetch_thumbnail_images,omitempty"`
+ FetchThumbnailImages *bool `default:"false" json:"fetch_thumbnail_images"`
// Set to active if you want to include data from deleted Campaigns, Ads, and AdSets.
- IncludeDeleted *bool `json:"include_deleted,omitempty"`
+ IncludeDeleted *bool `default:"false" json:"include_deleted"`
// The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here.
- InsightsLookbackWindow *int64 `json:"insights_lookback_window,omitempty"`
+ InsightsLookbackWindow *int64 `default:"28" json:"insights_lookback_window"`
// Maximum batch size used when sending batch requests to Facebook API. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
- MaxBatchSize *int64 `json:"max_batch_size,omitempty"`
+ MaxBatchSize *int64 `default:"50" json:"max_batch_size"`
// Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases.
- PageSize *int64 `json:"page_size,omitempty"`
+ PageSize *int64 `default:"100" json:"page_size"`
// The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceFacebookMarketingUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFacebookMarketingUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFacebookMarketingUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceFacebookMarketingUpdate) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceFacebookMarketingUpdate) GetActionBreakdownsAllowEmpty() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ActionBreakdownsAllowEmpty
+}
+
+func (o *SourceFacebookMarketingUpdate) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceFacebookMarketingUpdate) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceFacebookMarketingUpdate) GetCustomInsights() []SourceFacebookMarketingUpdateInsightConfig {
+ if o == nil {
+ return nil
+ }
+ return o.CustomInsights
+}
+
+func (o *SourceFacebookMarketingUpdate) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceFacebookMarketingUpdate) GetFetchThumbnailImages() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.FetchThumbnailImages
+}
+
+func (o *SourceFacebookMarketingUpdate) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *SourceFacebookMarketingUpdate) GetInsightsLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InsightsLookbackWindow
+}
+
+func (o *SourceFacebookMarketingUpdate) GetMaxBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxBatchSize
+}
+
+func (o *SourceFacebookMarketingUpdate) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
+}
+
+func (o *SourceFacebookMarketingUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookpages.go b/internal/sdk/pkg/models/shared/sourcefacebookpages.go
old mode 100755
new mode 100644
index 4f3c0a622..ee2f580f8
--- a/internal/sdk/pkg/models/shared/sourcefacebookpages.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookpages.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceFacebookPages struct {
AccessToken string `json:"access_token"`
// Page ID
PageID string `json:"page_id"`
- SourceType SourceFacebookPagesFacebookPages `json:"sourceType"`
+ sourceType SourceFacebookPagesFacebookPages `const:"facebook-pages" json:"sourceType"`
+}
+
+func (s SourceFacebookPages) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFacebookPages) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFacebookPages) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceFacebookPages) GetPageID() string {
+ if o == nil {
+ return ""
+ }
+ return o.PageID
+}
+
+func (o *SourceFacebookPages) GetSourceType() SourceFacebookPagesFacebookPages {
+ return SourceFacebookPagesFacebookPagesFacebookPages
}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookpagescreaterequest.go b/internal/sdk/pkg/models/shared/sourcefacebookpagescreaterequest.go
old mode 100755
new mode 100644
index 2832b9fb4..7348e1769
--- a/internal/sdk/pkg/models/shared/sourcefacebookpagescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookpagescreaterequest.go
@@ -9,3 +9,31 @@ type SourceFacebookPagesCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFacebookPagesCreateRequest) GetConfiguration() SourceFacebookPages {
+ if o == nil {
+ return SourceFacebookPages{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFacebookPagesCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookPagesCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFacebookPagesCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookpagesputrequest.go b/internal/sdk/pkg/models/shared/sourcefacebookpagesputrequest.go
old mode 100755
new mode 100644
index 6dd315853..857effb0c
--- a/internal/sdk/pkg/models/shared/sourcefacebookpagesputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookpagesputrequest.go
@@ -7,3 +7,24 @@ type SourceFacebookPagesPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFacebookPagesPutRequest) GetConfiguration() SourceFacebookPagesUpdate {
+ if o == nil {
+ return SourceFacebookPagesUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFacebookPagesPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFacebookPagesPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefacebookpagesupdate.go b/internal/sdk/pkg/models/shared/sourcefacebookpagesupdate.go
old mode 100755
new mode 100644
index e820dd999..2b69ab87a
--- a/internal/sdk/pkg/models/shared/sourcefacebookpagesupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefacebookpagesupdate.go
@@ -8,3 +8,17 @@ type SourceFacebookPagesUpdate struct {
// Page ID
PageID string `json:"page_id"`
}
+
+func (o *SourceFacebookPagesUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceFacebookPagesUpdate) GetPageID() string {
+ if o == nil {
+ return ""
+ }
+ return o.PageID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefaker.go b/internal/sdk/pkg/models/shared/sourcefaker.go
old mode 100755
new mode 100644
index ab3f5a94a..ceb908ce1
--- a/internal/sdk/pkg/models/shared/sourcefaker.go
+++ b/internal/sdk/pkg/models/shared/sourcefaker.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,14 +34,64 @@ func (e *SourceFakerFaker) UnmarshalJSON(data []byte) error {
type SourceFaker struct {
// Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted.
- AlwaysUpdated *bool `json:"always_updated,omitempty"`
+ AlwaysUpdated *bool `default:"true" json:"always_updated"`
// How many users should be generated in total. This setting does not apply to the purchases or products stream.
- Count int64 `json:"count"`
+ Count *int64 `default:"1000" json:"count"`
// How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source.
- Parallelism *int64 `json:"parallelism,omitempty"`
+ Parallelism *int64 `default:"4" json:"parallelism"`
// How many fake records will be in each page (stream slice), before a state message is emitted?
- RecordsPerSlice *int64 `json:"records_per_slice,omitempty"`
+ RecordsPerSlice *int64 `default:"1000" json:"records_per_slice"`
// Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)
- Seed *int64 `json:"seed,omitempty"`
- SourceType SourceFakerFaker `json:"sourceType"`
+ Seed *int64 `default:"-1" json:"seed"`
+ sourceType SourceFakerFaker `const:"faker" json:"sourceType"`
+}
+
+func (s SourceFaker) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaker) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaker) GetAlwaysUpdated() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.AlwaysUpdated
+}
+
+func (o *SourceFaker) GetCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Count
+}
+
+func (o *SourceFaker) GetParallelism() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Parallelism
+}
+
+func (o *SourceFaker) GetRecordsPerSlice() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RecordsPerSlice
+}
+
+func (o *SourceFaker) GetSeed() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Seed
+}
+
+func (o *SourceFaker) GetSourceType() SourceFakerFaker {
+ return SourceFakerFakerFaker
}
diff --git a/internal/sdk/pkg/models/shared/sourcefakercreaterequest.go b/internal/sdk/pkg/models/shared/sourcefakercreaterequest.go
old mode 100755
new mode 100644
index 64bec2988..93adb8751
--- a/internal/sdk/pkg/models/shared/sourcefakercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefakercreaterequest.go
@@ -9,3 +9,31 @@ type SourceFakerCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFakerCreateRequest) GetConfiguration() SourceFaker {
+ if o == nil {
+ return SourceFaker{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFakerCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFakerCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFakerCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefakerputrequest.go b/internal/sdk/pkg/models/shared/sourcefakerputrequest.go
old mode 100755
new mode 100644
index d66843419..85af4f46d
--- a/internal/sdk/pkg/models/shared/sourcefakerputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefakerputrequest.go
@@ -7,3 +7,24 @@ type SourceFakerPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFakerPutRequest) GetConfiguration() SourceFakerUpdate {
+ if o == nil {
+ return SourceFakerUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFakerPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFakerPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefakerupdate.go b/internal/sdk/pkg/models/shared/sourcefakerupdate.go
old mode 100755
new mode 100644
index cdb5b5136..591bbc1df
--- a/internal/sdk/pkg/models/shared/sourcefakerupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefakerupdate.go
@@ -2,15 +2,65 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceFakerUpdate struct {
// Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted.
- AlwaysUpdated *bool `json:"always_updated,omitempty"`
+ AlwaysUpdated *bool `default:"true" json:"always_updated"`
// How many users should be generated in total. This setting does not apply to the purchases or products stream.
- Count int64 `json:"count"`
+ Count *int64 `default:"1000" json:"count"`
// How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source.
- Parallelism *int64 `json:"parallelism,omitempty"`
+ Parallelism *int64 `default:"4" json:"parallelism"`
// How many fake records will be in each page (stream slice), before a state message is emitted?
- RecordsPerSlice *int64 `json:"records_per_slice,omitempty"`
+ RecordsPerSlice *int64 `default:"1000" json:"records_per_slice"`
// Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random)
- Seed *int64 `json:"seed,omitempty"`
+ Seed *int64 `default:"-1" json:"seed"`
+}
+
+func (s SourceFakerUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFakerUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFakerUpdate) GetAlwaysUpdated() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.AlwaysUpdated
+}
+
+func (o *SourceFakerUpdate) GetCount() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Count
+}
+
+func (o *SourceFakerUpdate) GetParallelism() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Parallelism
+}
+
+func (o *SourceFakerUpdate) GetRecordsPerSlice() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RecordsPerSlice
+}
+
+func (o *SourceFakerUpdate) GetSeed() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Seed
}
diff --git a/internal/sdk/pkg/models/shared/sourcefauna.go b/internal/sdk/pkg/models/shared/sourcefauna.go
old mode 100755
new mode 100644
index 0bb41415e..c4103ada0
--- a/internal/sdk/pkg/models/shared/sourcefauna.go
+++ b/internal/sdk/pkg/models/shared/sourcefauna.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,8 +39,30 @@ func (e *SourceFaunaCollectionDeletionModeEnabledDeletionMode) UnmarshalJSON(dat
// Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.
type SourceFaunaCollectionDeletionModeEnabled struct {
// Name of the "deleted at" column.
- Column string `json:"column"`
- DeletionMode SourceFaunaCollectionDeletionModeEnabledDeletionMode `json:"deletion_mode"`
+ Column *string `default:"deleted_at" json:"column"`
+ deletionMode SourceFaunaCollectionDeletionModeEnabledDeletionMode `const:"deleted_field" json:"deletion_mode"`
+}
+
+func (s SourceFaunaCollectionDeletionModeEnabled) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaCollectionDeletionModeEnabled) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaCollectionDeletionModeEnabled) GetColumn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Column
+}
+
+func (o *SourceFaunaCollectionDeletionModeEnabled) GetDeletionMode() SourceFaunaCollectionDeletionModeEnabledDeletionMode {
+ return SourceFaunaCollectionDeletionModeEnabledDeletionModeDeletedField
}
type SourceFaunaCollectionDeletionModeDisabledDeletionMode string
@@ -72,7 +94,22 @@ func (e *SourceFaunaCollectionDeletionModeDisabledDeletionMode) UnmarshalJSON(da
// Disabled - Leave this feature disabled, and ignore deleted documents.
// Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.
type SourceFaunaCollectionDeletionModeDisabled struct {
- DeletionMode SourceFaunaCollectionDeletionModeDisabledDeletionMode `json:"deletion_mode"`
+ deletionMode SourceFaunaCollectionDeletionModeDisabledDeletionMode `const:"ignore" json:"deletion_mode"`
+}
+
+func (s SourceFaunaCollectionDeletionModeDisabled) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaCollectionDeletionModeDisabled) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaCollectionDeletionModeDisabled) GetDeletionMode() SourceFaunaCollectionDeletionModeDisabledDeletionMode {
+ return SourceFaunaCollectionDeletionModeDisabledDeletionModeIgnore
}
type SourceFaunaCollectionDeletionModeType string
@@ -108,21 +145,16 @@ func CreateSourceFaunaCollectionDeletionModeSourceFaunaCollectionDeletionModeEna
}
func (u *SourceFaunaCollectionDeletionMode) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceFaunaCollectionDeletionModeDisabled := new(SourceFaunaCollectionDeletionModeDisabled)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFaunaCollectionDeletionModeDisabled); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFaunaCollectionDeletionModeDisabled, "", true, true); err == nil {
u.SourceFaunaCollectionDeletionModeDisabled = sourceFaunaCollectionDeletionModeDisabled
u.Type = SourceFaunaCollectionDeletionModeTypeSourceFaunaCollectionDeletionModeDisabled
return nil
}
sourceFaunaCollectionDeletionModeEnabled := new(SourceFaunaCollectionDeletionModeEnabled)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFaunaCollectionDeletionModeEnabled); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFaunaCollectionDeletionModeEnabled, "", true, true); err == nil {
u.SourceFaunaCollectionDeletionModeEnabled = sourceFaunaCollectionDeletionModeEnabled
u.Type = SourceFaunaCollectionDeletionModeTypeSourceFaunaCollectionDeletionModeEnabled
return nil
@@ -133,14 +165,14 @@ func (u *SourceFaunaCollectionDeletionMode) UnmarshalJSON(data []byte) error {
func (u SourceFaunaCollectionDeletionMode) MarshalJSON() ([]byte, error) {
if u.SourceFaunaCollectionDeletionModeDisabled != nil {
- return json.Marshal(u.SourceFaunaCollectionDeletionModeDisabled)
+ return utils.MarshalJSON(u.SourceFaunaCollectionDeletionModeDisabled, "", true)
}
if u.SourceFaunaCollectionDeletionModeEnabled != nil {
- return json.Marshal(u.SourceFaunaCollectionDeletionModeEnabled)
+ return utils.MarshalJSON(u.SourceFaunaCollectionDeletionModeEnabled, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceFaunaCollection - Settings for the Fauna Collection.
@@ -153,7 +185,32 @@ type SourceFaunaCollection struct {
// The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail.
// Choose your page size based on how large the documents are.
// See the docs.
- PageSize int64 `json:"page_size"`
+ PageSize *int64 `default:"64" json:"page_size"`
+}
+
+func (s SourceFaunaCollection) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaCollection) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaCollection) GetDeletions() SourceFaunaCollectionDeletionMode {
+ if o == nil {
+ return SourceFaunaCollectionDeletionMode{}
+ }
+ return o.Deletions
+}
+
+func (o *SourceFaunaCollection) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
}
type SourceFaunaFauna string
@@ -184,12 +241,62 @@ type SourceFauna struct {
// Settings for the Fauna Collection.
Collection *SourceFaunaCollection `json:"collection,omitempty"`
// Domain of Fauna to query. Defaults db.fauna.com. See the docs.
- Domain string `json:"domain"`
+ Domain *string `default:"db.fauna.com" json:"domain"`
// Endpoint port.
- Port int64 `json:"port"`
+ Port *int64 `default:"443" json:"port"`
// URL scheme.
- Scheme string `json:"scheme"`
+ Scheme *string `default:"https" json:"scheme"`
// Fauna secret, used when authenticating with the database.
Secret string `json:"secret"`
- SourceType SourceFaunaFauna `json:"sourceType"`
+ sourceType SourceFaunaFauna `const:"fauna" json:"sourceType"`
+}
+
+func (s SourceFauna) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFauna) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFauna) GetCollection() *SourceFaunaCollection {
+ if o == nil {
+ return nil
+ }
+ return o.Collection
+}
+
+func (o *SourceFauna) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourceFauna) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFauna) GetScheme() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Scheme
+}
+
+func (o *SourceFauna) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
+
+func (o *SourceFauna) GetSourceType() SourceFaunaFauna {
+ return SourceFaunaFaunaFauna
}
diff --git a/internal/sdk/pkg/models/shared/sourcefaunacreaterequest.go b/internal/sdk/pkg/models/shared/sourcefaunacreaterequest.go
old mode 100755
new mode 100644
index 52ab377ff..aac2eaaf1
--- a/internal/sdk/pkg/models/shared/sourcefaunacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefaunacreaterequest.go
@@ -9,3 +9,31 @@ type SourceFaunaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFaunaCreateRequest) GetConfiguration() SourceFauna {
+ if o == nil {
+ return SourceFauna{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFaunaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFaunaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFaunaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefaunaputrequest.go b/internal/sdk/pkg/models/shared/sourcefaunaputrequest.go
old mode 100755
new mode 100644
index dfbe6a4ca..e1b2c0cdd
--- a/internal/sdk/pkg/models/shared/sourcefaunaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefaunaputrequest.go
@@ -7,3 +7,24 @@ type SourceFaunaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFaunaPutRequest) GetConfiguration() SourceFaunaUpdate {
+ if o == nil {
+ return SourceFaunaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFaunaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFaunaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefaunaupdate.go b/internal/sdk/pkg/models/shared/sourcefaunaupdate.go
old mode 100755
new mode 100644
index 59103b42c..b83dcb2ac
--- a/internal/sdk/pkg/models/shared/sourcefaunaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefaunaupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,8 +39,30 @@ func (e *SourceFaunaUpdateCollectionDeletionModeEnabledDeletionMode) UnmarshalJS
// Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.
type SourceFaunaUpdateCollectionDeletionModeEnabled struct {
// Name of the "deleted at" column.
- Column string `json:"column"`
- DeletionMode SourceFaunaUpdateCollectionDeletionModeEnabledDeletionMode `json:"deletion_mode"`
+ Column *string `default:"deleted_at" json:"column"`
+ deletionMode SourceFaunaUpdateCollectionDeletionModeEnabledDeletionMode `const:"deleted_field" json:"deletion_mode"`
+}
+
+func (s SourceFaunaUpdateCollectionDeletionModeEnabled) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaUpdateCollectionDeletionModeEnabled) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaUpdateCollectionDeletionModeEnabled) GetColumn() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Column
+}
+
+func (o *SourceFaunaUpdateCollectionDeletionModeEnabled) GetDeletionMode() SourceFaunaUpdateCollectionDeletionModeEnabledDeletionMode {
+ return SourceFaunaUpdateCollectionDeletionModeEnabledDeletionModeDeletedField
}
type SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode string
@@ -72,7 +94,22 @@ func (e *SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode) UnmarshalJ
// Disabled - Leave this feature disabled, and ignore deleted documents.
// Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted.
type SourceFaunaUpdateCollectionDeletionModeDisabled struct {
- DeletionMode SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode `json:"deletion_mode"`
+ deletionMode SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode `const:"ignore" json:"deletion_mode"`
+}
+
+func (s SourceFaunaUpdateCollectionDeletionModeDisabled) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaUpdateCollectionDeletionModeDisabled) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaUpdateCollectionDeletionModeDisabled) GetDeletionMode() SourceFaunaUpdateCollectionDeletionModeDisabledDeletionMode {
+ return SourceFaunaUpdateCollectionDeletionModeDisabledDeletionModeIgnore
}
type SourceFaunaUpdateCollectionDeletionModeType string
@@ -108,21 +145,16 @@ func CreateSourceFaunaUpdateCollectionDeletionModeSourceFaunaUpdateCollectionDel
}
func (u *SourceFaunaUpdateCollectionDeletionMode) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceFaunaUpdateCollectionDeletionModeDisabled := new(SourceFaunaUpdateCollectionDeletionModeDisabled)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFaunaUpdateCollectionDeletionModeDisabled); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFaunaUpdateCollectionDeletionModeDisabled, "", true, true); err == nil {
u.SourceFaunaUpdateCollectionDeletionModeDisabled = sourceFaunaUpdateCollectionDeletionModeDisabled
u.Type = SourceFaunaUpdateCollectionDeletionModeTypeSourceFaunaUpdateCollectionDeletionModeDisabled
return nil
}
sourceFaunaUpdateCollectionDeletionModeEnabled := new(SourceFaunaUpdateCollectionDeletionModeEnabled)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFaunaUpdateCollectionDeletionModeEnabled); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFaunaUpdateCollectionDeletionModeEnabled, "", true, true); err == nil {
u.SourceFaunaUpdateCollectionDeletionModeEnabled = sourceFaunaUpdateCollectionDeletionModeEnabled
u.Type = SourceFaunaUpdateCollectionDeletionModeTypeSourceFaunaUpdateCollectionDeletionModeEnabled
return nil
@@ -133,14 +165,14 @@ func (u *SourceFaunaUpdateCollectionDeletionMode) UnmarshalJSON(data []byte) err
func (u SourceFaunaUpdateCollectionDeletionMode) MarshalJSON() ([]byte, error) {
if u.SourceFaunaUpdateCollectionDeletionModeDisabled != nil {
- return json.Marshal(u.SourceFaunaUpdateCollectionDeletionModeDisabled)
+ return utils.MarshalJSON(u.SourceFaunaUpdateCollectionDeletionModeDisabled, "", true)
}
if u.SourceFaunaUpdateCollectionDeletionModeEnabled != nil {
- return json.Marshal(u.SourceFaunaUpdateCollectionDeletionModeEnabled)
+ return utils.MarshalJSON(u.SourceFaunaUpdateCollectionDeletionModeEnabled, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceFaunaUpdateCollection - Settings for the Fauna Collection.
@@ -153,18 +185,89 @@ type SourceFaunaUpdateCollection struct {
// The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail.
// Choose your page size based on how large the documents are.
// See the docs.
- PageSize int64 `json:"page_size"`
+ PageSize *int64 `default:"64" json:"page_size"`
+}
+
+func (s SourceFaunaUpdateCollection) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaUpdateCollection) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaUpdateCollection) GetDeletions() SourceFaunaUpdateCollectionDeletionMode {
+ if o == nil {
+ return SourceFaunaUpdateCollectionDeletionMode{}
+ }
+ return o.Deletions
+}
+
+func (o *SourceFaunaUpdateCollection) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
}
type SourceFaunaUpdate struct {
// Settings for the Fauna Collection.
Collection *SourceFaunaUpdateCollection `json:"collection,omitempty"`
// Domain of Fauna to query. Defaults db.fauna.com. See the docs.
- Domain string `json:"domain"`
+ Domain *string `default:"db.fauna.com" json:"domain"`
// Endpoint port.
- Port int64 `json:"port"`
+ Port *int64 `default:"443" json:"port"`
// URL scheme.
- Scheme string `json:"scheme"`
+ Scheme *string `default:"https" json:"scheme"`
// Fauna secret, used when authenticating with the database.
Secret string `json:"secret"`
}
+
+func (s SourceFaunaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFaunaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFaunaUpdate) GetCollection() *SourceFaunaUpdateCollection {
+ if o == nil {
+ return nil
+ }
+ return o.Collection
+}
+
+func (o *SourceFaunaUpdate) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourceFaunaUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFaunaUpdate) GetScheme() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Scheme
+}
+
+func (o *SourceFaunaUpdate) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefilesecure.go b/internal/sdk/pkg/models/shared/sourcefilesecure.go
old mode 100755
new mode 100644
index 0a32ef1f4..d29d5d022
--- a/internal/sdk/pkg/models/shared/sourcefilesecure.go
+++ b/internal/sdk/pkg/models/shared/sourcefilesecure.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -83,11 +83,54 @@ func (e *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorage) U
type SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorage `const:"SFTP" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) GetStorage() SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorage {
+ return SourceFileSecureStorageProviderSFTPSecureFileTransferProtocolStorageSftp
+}
+
+func (o *SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage string
const (
@@ -116,11 +159,54 @@ func (e *SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage) UnmarshalJ
type SourceFileSecureStorageProviderSCPSecureCopyProtocol struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage `const:"SCP" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureStorageProviderSCPSecureCopyProtocol) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderSCPSecureCopyProtocol) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderSCPSecureCopyProtocol) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureStorageProviderSCPSecureCopyProtocol) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureStorageProviderSCPSecureCopyProtocol) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureStorageProviderSCPSecureCopyProtocol) GetStorage() SourceFileSecureStorageProviderSCPSecureCopyProtocolStorage {
+ return SourceFileSecureStorageProviderSCPSecureCopyProtocolStorageScp
+}
+
+func (o *SourceFileSecureStorageProviderSCPSecureCopyProtocol) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureStorageProviderSSHSecureShellStorage string
const (
@@ -149,11 +235,54 @@ func (e *SourceFileSecureStorageProviderSSHSecureShellStorage) UnmarshalJSON(dat
type SourceFileSecureStorageProviderSSHSecureShell struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureStorageProviderSSHSecureShellStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureStorageProviderSSHSecureShellStorage `const:"SSH" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureStorageProviderSSHSecureShell) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderSSHSecureShell) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderSSHSecureShell) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureStorageProviderSSHSecureShell) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureStorageProviderSSHSecureShell) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureStorageProviderSSHSecureShell) GetStorage() SourceFileSecureStorageProviderSSHSecureShellStorage {
+ return SourceFileSecureStorageProviderSSHSecureShellStorageSSH
+}
+
+func (o *SourceFileSecureStorageProviderSSHSecureShell) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorage string
const (
@@ -184,11 +313,47 @@ type SourceFileSecureStorageProviderAzBlobAzureBlobStorage struct {
SasToken *string `json:"sas_token,omitempty"`
// To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.
SharedKey *string `json:"shared_key,omitempty"`
- Storage SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorage `json:"storage"`
+ storage SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorage `const:"AzBlob" json:"storage"`
// The globally unique name of the storage account that the desired blob sits within. See here for more details.
StorageAccount string `json:"storage_account"`
}
+func (s SourceFileSecureStorageProviderAzBlobAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderAzBlobAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderAzBlobAzureBlobStorage) GetSasToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SasToken
+}
+
+func (o *SourceFileSecureStorageProviderAzBlobAzureBlobStorage) GetSharedKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SharedKey
+}
+
+func (o *SourceFileSecureStorageProviderAzBlobAzureBlobStorage) GetStorage() SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorage {
+ return SourceFileSecureStorageProviderAzBlobAzureBlobStorageStorageAzBlob
+}
+
+func (o *SourceFileSecureStorageProviderAzBlobAzureBlobStorage) GetStorageAccount() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccount
+}
+
type SourceFileSecureStorageProviderS3AmazonWebServicesStorage string
const (
@@ -219,7 +384,36 @@ type SourceFileSecureStorageProviderS3AmazonWebServices struct {
AwsAccessKeyID *string `json:"aws_access_key_id,omitempty"`
// In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"`
- Storage SourceFileSecureStorageProviderS3AmazonWebServicesStorage `json:"storage"`
+ storage SourceFileSecureStorageProviderS3AmazonWebServicesStorage `const:"S3" json:"storage"`
+}
+
+func (s SourceFileSecureStorageProviderS3AmazonWebServices) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderS3AmazonWebServices) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderS3AmazonWebServices) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceFileSecureStorageProviderS3AmazonWebServices) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceFileSecureStorageProviderS3AmazonWebServices) GetStorage() SourceFileSecureStorageProviderS3AmazonWebServicesStorage {
+ return SourceFileSecureStorageProviderS3AmazonWebServicesStorageS3
}
type SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage string
@@ -250,7 +444,29 @@ func (e *SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage) UnmarshalJ
type SourceFileSecureStorageProviderGCSGoogleCloudStorage struct {
// In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
ServiceAccountJSON *string `json:"service_account_json,omitempty"`
- Storage SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage `json:"storage"`
+ storage SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage `const:"GCS" json:"storage"`
+}
+
+func (s SourceFileSecureStorageProviderGCSGoogleCloudStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderGCSGoogleCloudStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderGCSGoogleCloudStorage) GetServiceAccountJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ServiceAccountJSON
+}
+
+func (o *SourceFileSecureStorageProviderGCSGoogleCloudStorage) GetStorage() SourceFileSecureStorageProviderGCSGoogleCloudStorageStorage {
+ return SourceFileSecureStorageProviderGCSGoogleCloudStorageStorageGcs
}
type SourceFileSecureStorageProviderHTTPSPublicWebStorage string
@@ -279,9 +495,31 @@ func (e *SourceFileSecureStorageProviderHTTPSPublicWebStorage) UnmarshalJSON(dat
// SourceFileSecureStorageProviderHTTPSPublicWeb - The storage Provider or Location of the file(s) which should be replicated.
type SourceFileSecureStorageProviderHTTPSPublicWeb struct {
- Storage SourceFileSecureStorageProviderHTTPSPublicWebStorage `json:"storage"`
+ storage SourceFileSecureStorageProviderHTTPSPublicWebStorage `const:"HTTPS" json:"storage"`
// Add User-Agent to request
- UserAgent *bool `json:"user_agent,omitempty"`
+ UserAgent *bool `default:"false" json:"user_agent"`
+}
+
+func (s SourceFileSecureStorageProviderHTTPSPublicWeb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureStorageProviderHTTPSPublicWeb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureStorageProviderHTTPSPublicWeb) GetStorage() SourceFileSecureStorageProviderHTTPSPublicWebStorage {
+ return SourceFileSecureStorageProviderHTTPSPublicWebStorageHTTPS
+}
+
+func (o *SourceFileSecureStorageProviderHTTPSPublicWeb) GetUserAgent() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.UserAgent
}
type SourceFileSecureStorageProviderType string
@@ -372,66 +610,51 @@ func CreateSourceFileSecureStorageProviderSourceFileSecureStorageProviderSFTPSec
}
func (u *SourceFileSecureStorageProvider) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceFileSecureStorageProviderHTTPSPublicWeb := new(SourceFileSecureStorageProviderHTTPSPublicWeb)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderHTTPSPublicWeb); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderHTTPSPublicWeb, "", true, true); err == nil {
u.SourceFileSecureStorageProviderHTTPSPublicWeb = sourceFileSecureStorageProviderHTTPSPublicWeb
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderHTTPSPublicWeb
return nil
}
sourceFileSecureStorageProviderGCSGoogleCloudStorage := new(SourceFileSecureStorageProviderGCSGoogleCloudStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderGCSGoogleCloudStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderGCSGoogleCloudStorage, "", true, true); err == nil {
u.SourceFileSecureStorageProviderGCSGoogleCloudStorage = sourceFileSecureStorageProviderGCSGoogleCloudStorage
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderGCSGoogleCloudStorage
return nil
}
sourceFileSecureStorageProviderS3AmazonWebServices := new(SourceFileSecureStorageProviderS3AmazonWebServices)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderS3AmazonWebServices); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderS3AmazonWebServices, "", true, true); err == nil {
u.SourceFileSecureStorageProviderS3AmazonWebServices = sourceFileSecureStorageProviderS3AmazonWebServices
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderS3AmazonWebServices
return nil
}
sourceFileSecureStorageProviderAzBlobAzureBlobStorage := new(SourceFileSecureStorageProviderAzBlobAzureBlobStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderAzBlobAzureBlobStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderAzBlobAzureBlobStorage, "", true, true); err == nil {
u.SourceFileSecureStorageProviderAzBlobAzureBlobStorage = sourceFileSecureStorageProviderAzBlobAzureBlobStorage
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderAzBlobAzureBlobStorage
return nil
}
sourceFileSecureStorageProviderSSHSecureShell := new(SourceFileSecureStorageProviderSSHSecureShell)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderSSHSecureShell); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderSSHSecureShell, "", true, true); err == nil {
u.SourceFileSecureStorageProviderSSHSecureShell = sourceFileSecureStorageProviderSSHSecureShell
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderSSHSecureShell
return nil
}
sourceFileSecureStorageProviderSCPSecureCopyProtocol := new(SourceFileSecureStorageProviderSCPSecureCopyProtocol)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderSCPSecureCopyProtocol); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderSCPSecureCopyProtocol, "", true, true); err == nil {
u.SourceFileSecureStorageProviderSCPSecureCopyProtocol = sourceFileSecureStorageProviderSCPSecureCopyProtocol
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderSCPSecureCopyProtocol
return nil
}
sourceFileSecureStorageProviderSFTPSecureFileTransferProtocol := new(SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureStorageProviderSFTPSecureFileTransferProtocol); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureStorageProviderSFTPSecureFileTransferProtocol, "", true, true); err == nil {
u.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol = sourceFileSecureStorageProviderSFTPSecureFileTransferProtocol
u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureStorageProviderSFTPSecureFileTransferProtocol
return nil
@@ -442,34 +665,34 @@ func (u *SourceFileSecureStorageProvider) UnmarshalJSON(data []byte) error {
func (u SourceFileSecureStorageProvider) MarshalJSON() ([]byte, error) {
if u.SourceFileSecureStorageProviderHTTPSPublicWeb != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderHTTPSPublicWeb)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderHTTPSPublicWeb, "", true)
}
if u.SourceFileSecureStorageProviderGCSGoogleCloudStorage != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderGCSGoogleCloudStorage)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderGCSGoogleCloudStorage, "", true)
}
if u.SourceFileSecureStorageProviderS3AmazonWebServices != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderS3AmazonWebServices)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderS3AmazonWebServices, "", true)
}
if u.SourceFileSecureStorageProviderAzBlobAzureBlobStorage != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderAzBlobAzureBlobStorage)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderAzBlobAzureBlobStorage, "", true)
}
if u.SourceFileSecureStorageProviderSSHSecureShell != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderSSHSecureShell)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderSSHSecureShell, "", true)
}
if u.SourceFileSecureStorageProviderSCPSecureCopyProtocol != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderSCPSecureCopyProtocol)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderSCPSecureCopyProtocol, "", true)
}
if u.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol != nil {
- return json.Marshal(u.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol)
+ return utils.MarshalJSON(u.SourceFileSecureStorageProviderSFTPSecureFileTransferProtocol, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceFileSecureFileSecure string
@@ -500,12 +723,62 @@ type SourceFileSecure struct {
// The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only).
DatasetName string `json:"dataset_name"`
// The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs).
- Format SourceFileSecureFileFormat `json:"format"`
+ Format *SourceFileSecureFileFormat `default:"csv" json:"format"`
// The storage Provider or Location of the file(s) which should be replicated.
Provider SourceFileSecureStorageProvider `json:"provider"`
// This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.
ReaderOptions *string `json:"reader_options,omitempty"`
- SourceType SourceFileSecureFileSecure `json:"sourceType"`
+ sourceType SourceFileSecureFileSecure `const:"file-secure" json:"sourceType"`
// The URL path to access the file which should be replicated.
URL string `json:"url"`
}
+
+func (s SourceFileSecure) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecure) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecure) GetDatasetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetName
+}
+
+func (o *SourceFileSecure) GetFormat() *SourceFileSecureFileFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceFileSecure) GetProvider() SourceFileSecureStorageProvider {
+ if o == nil {
+ return SourceFileSecureStorageProvider{}
+ }
+ return o.Provider
+}
+
+func (o *SourceFileSecure) GetReaderOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReaderOptions
+}
+
+func (o *SourceFileSecure) GetSourceType() SourceFileSecureFileSecure {
+ return SourceFileSecureFileSecureFileSecure
+}
+
+func (o *SourceFileSecure) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefilesecurecreaterequest.go b/internal/sdk/pkg/models/shared/sourcefilesecurecreaterequest.go
old mode 100755
new mode 100644
index 9244320de..1ebd5f5ff
--- a/internal/sdk/pkg/models/shared/sourcefilesecurecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefilesecurecreaterequest.go
@@ -9,3 +9,31 @@ type SourceFileSecureCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFileSecureCreateRequest) GetConfiguration() SourceFileSecure {
+ if o == nil {
+ return SourceFileSecure{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFileSecureCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFileSecureCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFileSecureCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefilesecureputrequest.go b/internal/sdk/pkg/models/shared/sourcefilesecureputrequest.go
old mode 100755
new mode 100644
index a881b2c90..803c049ed
--- a/internal/sdk/pkg/models/shared/sourcefilesecureputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefilesecureputrequest.go
@@ -7,3 +7,24 @@ type SourceFileSecurePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFileSecurePutRequest) GetConfiguration() SourceFileSecureUpdate {
+ if o == nil {
+ return SourceFileSecureUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFileSecurePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFileSecurePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go b/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go
old mode 100755
new mode 100644
index 307221974..0ba11b1c7
--- a/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -83,11 +83,54 @@ func (e *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStor
type SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStorage `const:"SFTP" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) GetStorage() SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStorage {
+ return SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocolStorageSftp
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage string
const (
@@ -116,11 +159,54 @@ func (e *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage) Unma
type SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage `const:"SCP" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) GetStorage() SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorage {
+ return SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocolStorageScp
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureUpdateStorageProviderSSHSecureShellStorage string
const (
@@ -149,11 +235,54 @@ func (e *SourceFileSecureUpdateStorageProviderSSHSecureShellStorage) UnmarshalJS
type SourceFileSecureUpdateStorageProviderSSHSecureShell struct {
Host string `json:"host"`
Password *string `json:"password,omitempty"`
- Port *string `json:"port,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderSSHSecureShellStorage `json:"storage"`
+ Port *string `default:"22" json:"port"`
+ storage SourceFileSecureUpdateStorageProviderSSHSecureShellStorage `const:"SSH" json:"storage"`
User string `json:"user"`
}
+func (s SourceFileSecureUpdateStorageProviderSSHSecureShell) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderSSHSecureShell) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSSHSecureShell) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSSHSecureShell) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSSHSecureShell) GetPort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSSHSecureShell) GetStorage() SourceFileSecureUpdateStorageProviderSSHSecureShellStorage {
+ return SourceFileSecureUpdateStorageProviderSSHSecureShellStorageSSH
+}
+
+func (o *SourceFileSecureUpdateStorageProviderSSHSecureShell) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
+
type SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorage string
const (
@@ -184,11 +313,47 @@ type SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage struct {
SasToken *string `json:"sas_token,omitempty"`
// To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.
SharedKey *string `json:"shared_key,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorage `json:"storage"`
+ storage SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorage `const:"AzBlob" json:"storage"`
// The globally unique name of the storage account that the desired blob sits within. See here for more details.
StorageAccount string `json:"storage_account"`
}
+func (s SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) GetSasToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SasToken
+}
+
+func (o *SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) GetSharedKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SharedKey
+}
+
+func (o *SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) GetStorage() SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorage {
+ return SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorageStorageAzBlob
+}
+
+func (o *SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage) GetStorageAccount() string {
+ if o == nil {
+ return ""
+ }
+ return o.StorageAccount
+}
+
type SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorage string
const (
@@ -219,7 +384,36 @@ type SourceFileSecureUpdateStorageProviderS3AmazonWebServices struct {
AwsAccessKeyID *string `json:"aws_access_key_id,omitempty"`
// In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.
AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorage `json:"storage"`
+ storage SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorage `const:"S3" json:"storage"`
+}
+
+func (s SourceFileSecureUpdateStorageProviderS3AmazonWebServices) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderS3AmazonWebServices) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderS3AmazonWebServices) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceFileSecureUpdateStorageProviderS3AmazonWebServices) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceFileSecureUpdateStorageProviderS3AmazonWebServices) GetStorage() SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorage {
+ return SourceFileSecureUpdateStorageProviderS3AmazonWebServicesStorageS3
}
type SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage string
@@ -250,7 +444,29 @@ func (e *SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage) Unma
type SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage struct {
// In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described here. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary.
ServiceAccountJSON *string `json:"service_account_json,omitempty"`
- Storage SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage `json:"storage"`
+ storage SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage `const:"GCS" json:"storage"`
+}
+
+func (s SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage) GetServiceAccountJSON() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ServiceAccountJSON
+}
+
+func (o *SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage) GetStorage() SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorage {
+ return SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorageStorageGcs
}
type SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage string
@@ -279,9 +495,31 @@ func (e *SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage) UnmarshalJS
// SourceFileSecureUpdateStorageProviderHTTPSPublicWeb - The storage Provider or Location of the file(s) which should be replicated.
type SourceFileSecureUpdateStorageProviderHTTPSPublicWeb struct {
- Storage SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage `json:"storage"`
+ storage SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage `const:"HTTPS" json:"storage"`
// Add User-Agent to request
- UserAgent *bool `json:"user_agent,omitempty"`
+ UserAgent *bool `default:"false" json:"user_agent"`
+}
+
+func (s SourceFileSecureUpdateStorageProviderHTTPSPublicWeb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdateStorageProviderHTTPSPublicWeb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdateStorageProviderHTTPSPublicWeb) GetStorage() SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorage {
+ return SourceFileSecureUpdateStorageProviderHTTPSPublicWebStorageHTTPS
+}
+
+func (o *SourceFileSecureUpdateStorageProviderHTTPSPublicWeb) GetUserAgent() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.UserAgent
}
type SourceFileSecureUpdateStorageProviderType string
@@ -372,66 +610,51 @@ func CreateSourceFileSecureUpdateStorageProviderSourceFileSecureUpdateStoragePro
}
func (u *SourceFileSecureUpdateStorageProvider) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceFileSecureUpdateStorageProviderHTTPSPublicWeb := new(SourceFileSecureUpdateStorageProviderHTTPSPublicWeb)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderHTTPSPublicWeb); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderHTTPSPublicWeb, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb = sourceFileSecureUpdateStorageProviderHTTPSPublicWeb
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderHTTPSPublicWeb
return nil
}
sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage := new(SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage = sourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage
return nil
}
sourceFileSecureUpdateStorageProviderS3AmazonWebServices := new(SourceFileSecureUpdateStorageProviderS3AmazonWebServices)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderS3AmazonWebServices); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderS3AmazonWebServices, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderS3AmazonWebServices = sourceFileSecureUpdateStorageProviderS3AmazonWebServices
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderS3AmazonWebServices
return nil
}
sourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage := new(SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage = sourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage
return nil
}
sourceFileSecureUpdateStorageProviderSSHSecureShell := new(SourceFileSecureUpdateStorageProviderSSHSecureShell)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderSSHSecureShell); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderSSHSecureShell, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderSSHSecureShell = sourceFileSecureUpdateStorageProviderSSHSecureShell
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderSSHSecureShell
return nil
}
sourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol := new(SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol = sourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol
return nil
}
sourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol := new(SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol, "", true, true); err == nil {
u.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol = sourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol
u.Type = SourceFileSecureUpdateStorageProviderTypeSourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol
return nil
@@ -442,41 +665,41 @@ func (u *SourceFileSecureUpdateStorageProvider) UnmarshalJSON(data []byte) error
func (u SourceFileSecureUpdateStorageProvider) MarshalJSON() ([]byte, error) {
if u.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderHTTPSPublicWeb, "", true)
}
if u.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderGCSGoogleCloudStorage, "", true)
}
if u.SourceFileSecureUpdateStorageProviderS3AmazonWebServices != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderS3AmazonWebServices)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderS3AmazonWebServices, "", true)
}
if u.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderAzBlobAzureBlobStorage, "", true)
}
if u.SourceFileSecureUpdateStorageProviderSSHSecureShell != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderSSHSecureShell)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderSSHSecureShell, "", true)
}
if u.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderSCPSecureCopyProtocol, "", true)
}
if u.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol != nil {
- return json.Marshal(u.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol)
+ return utils.MarshalJSON(u.SourceFileSecureUpdateStorageProviderSFTPSecureFileTransferProtocol, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceFileSecureUpdate struct {
// The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only).
DatasetName string `json:"dataset_name"`
// The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs).
- Format SourceFileSecureUpdateFileFormat `json:"format"`
+ Format *SourceFileSecureUpdateFileFormat `default:"csv" json:"format"`
// The storage Provider or Location of the file(s) which should be replicated.
Provider SourceFileSecureUpdateStorageProvider `json:"provider"`
// This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.
@@ -484,3 +707,49 @@ type SourceFileSecureUpdate struct {
// The URL path to access the file which should be replicated.
URL string `json:"url"`
}
+
+func (s SourceFileSecureUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFileSecureUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFileSecureUpdate) GetDatasetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetName
+}
+
+func (o *SourceFileSecureUpdate) GetFormat() *SourceFileSecureUpdateFileFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceFileSecureUpdate) GetProvider() SourceFileSecureUpdateStorageProvider {
+ if o == nil {
+ return SourceFileSecureUpdateStorageProvider{}
+ }
+ return o.Provider
+}
+
+func (o *SourceFileSecureUpdate) GetReaderOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReaderOptions
+}
+
+func (o *SourceFileSecureUpdate) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefirebolt.go b/internal/sdk/pkg/models/shared/sourcefirebolt.go
old mode 100755
new mode 100644
index 915858968..5f1e36ebb
--- a/internal/sdk/pkg/models/shared/sourcefirebolt.go
+++ b/internal/sdk/pkg/models/shared/sourcefirebolt.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -42,7 +43,64 @@ type SourceFirebolt struct {
Host *string `json:"host,omitempty"`
// Firebolt password.
Password string `json:"password"`
- SourceType SourceFireboltFirebolt `json:"sourceType"`
+ sourceType SourceFireboltFirebolt `const:"firebolt" json:"sourceType"`
// Firebolt email address you use to login.
Username string `json:"username"`
}
+
+func (s SourceFirebolt) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFirebolt) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFirebolt) GetAccount() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Account
+}
+
+func (o *SourceFirebolt) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceFirebolt) GetEngine() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Engine
+}
+
+func (o *SourceFirebolt) GetHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Host
+}
+
+func (o *SourceFirebolt) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceFirebolt) GetSourceType() SourceFireboltFirebolt {
+ return SourceFireboltFireboltFirebolt
+}
+
+func (o *SourceFirebolt) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefireboltcreaterequest.go b/internal/sdk/pkg/models/shared/sourcefireboltcreaterequest.go
old mode 100755
new mode 100644
index 820f56912..19b9da5d7
--- a/internal/sdk/pkg/models/shared/sourcefireboltcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefireboltcreaterequest.go
@@ -9,3 +9,31 @@ type SourceFireboltCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFireboltCreateRequest) GetConfiguration() SourceFirebolt {
+ if o == nil {
+ return SourceFirebolt{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFireboltCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFireboltCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFireboltCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefireboltputrequest.go b/internal/sdk/pkg/models/shared/sourcefireboltputrequest.go
old mode 100755
new mode 100644
index e3190d460..a8bcb310e
--- a/internal/sdk/pkg/models/shared/sourcefireboltputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefireboltputrequest.go
@@ -7,3 +7,24 @@ type SourceFireboltPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFireboltPutRequest) GetConfiguration() SourceFireboltUpdate {
+ if o == nil {
+ return SourceFireboltUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFireboltPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFireboltPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefireboltupdate.go b/internal/sdk/pkg/models/shared/sourcefireboltupdate.go
old mode 100755
new mode 100644
index b235f97f9..5d90e8c07
--- a/internal/sdk/pkg/models/shared/sourcefireboltupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefireboltupdate.go
@@ -16,3 +16,45 @@ type SourceFireboltUpdate struct {
// Firebolt email address you use to login.
Username string `json:"username"`
}
+
+func (o *SourceFireboltUpdate) GetAccount() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Account
+}
+
+func (o *SourceFireboltUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceFireboltUpdate) GetEngine() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Engine
+}
+
+func (o *SourceFireboltUpdate) GetHost() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Host
+}
+
+func (o *SourceFireboltUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceFireboltUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshcaller.go b/internal/sdk/pkg/models/shared/sourcefreshcaller.go
old mode 100755
new mode 100644
index fb7dc5be4..e68d0611e
--- a/internal/sdk/pkg/models/shared/sourcefreshcaller.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshcaller.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,9 +40,59 @@ type SourceFreshcaller struct {
Domain string `json:"domain"`
// The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.
RequestsPerMinute *int64 `json:"requests_per_minute,omitempty"`
- SourceType SourceFreshcallerFreshcaller `json:"sourceType"`
+ sourceType SourceFreshcallerFreshcaller `const:"freshcaller" json:"sourceType"`
// UTC date and time. Any data created after this date will be replicated.
StartDate time.Time `json:"start_date"`
// Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched
SyncLagMinutes *int64 `json:"sync_lag_minutes,omitempty"`
}
+
+func (s SourceFreshcaller) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFreshcaller) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFreshcaller) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshcaller) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceFreshcaller) GetRequestsPerMinute() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerMinute
+}
+
+func (o *SourceFreshcaller) GetSourceType() SourceFreshcallerFreshcaller {
+ return SourceFreshcallerFreshcallerFreshcaller
+}
+
+func (o *SourceFreshcaller) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceFreshcaller) GetSyncLagMinutes() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SyncLagMinutes
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshcallercreaterequest.go b/internal/sdk/pkg/models/shared/sourcefreshcallercreaterequest.go
old mode 100755
new mode 100644
index d75de3bec..2165137e0
--- a/internal/sdk/pkg/models/shared/sourcefreshcallercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshcallercreaterequest.go
@@ -9,3 +9,31 @@ type SourceFreshcallerCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshcallerCreateRequest) GetConfiguration() SourceFreshcaller {
+ if o == nil {
+ return SourceFreshcaller{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshcallerCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshcallerCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFreshcallerCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshcallerputrequest.go b/internal/sdk/pkg/models/shared/sourcefreshcallerputrequest.go
old mode 100755
new mode 100644
index 5dde81ca0..8f03f8c1d
--- a/internal/sdk/pkg/models/shared/sourcefreshcallerputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshcallerputrequest.go
@@ -7,3 +7,24 @@ type SourceFreshcallerPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshcallerPutRequest) GetConfiguration() SourceFreshcallerUpdate {
+ if o == nil {
+ return SourceFreshcallerUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshcallerPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshcallerPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshcallerupdate.go b/internal/sdk/pkg/models/shared/sourcefreshcallerupdate.go
old mode 100755
new mode 100644
index 0348cca15..15230e32e
--- a/internal/sdk/pkg/models/shared/sourcefreshcallerupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshcallerupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -18,3 +19,49 @@ type SourceFreshcallerUpdate struct {
// Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched
SyncLagMinutes *int64 `json:"sync_lag_minutes,omitempty"`
}
+
+func (s SourceFreshcallerUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFreshcallerUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFreshcallerUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshcallerUpdate) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceFreshcallerUpdate) GetRequestsPerMinute() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerMinute
+}
+
+func (o *SourceFreshcallerUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceFreshcallerUpdate) GetSyncLagMinutes() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SyncLagMinutes
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshdesk.go b/internal/sdk/pkg/models/shared/sourcefreshdesk.go
old mode 100755
new mode 100644
index f2bd23eb5..ec00062c5
--- a/internal/sdk/pkg/models/shared/sourcefreshdesk.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshdesk.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,7 +40,50 @@ type SourceFreshdesk struct {
Domain string `json:"domain"`
// The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account.
RequestsPerMinute *int64 `json:"requests_per_minute,omitempty"`
- SourceType SourceFreshdeskFreshdesk `json:"sourceType"`
+ sourceType SourceFreshdeskFreshdesk `const:"freshdesk" json:"sourceType"`
// UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceFreshdesk) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFreshdesk) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFreshdesk) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshdesk) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceFreshdesk) GetRequestsPerMinute() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerMinute
+}
+
+func (o *SourceFreshdesk) GetSourceType() SourceFreshdeskFreshdesk {
+ return SourceFreshdeskFreshdeskFreshdesk
+}
+
+func (o *SourceFreshdesk) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshdeskcreaterequest.go b/internal/sdk/pkg/models/shared/sourcefreshdeskcreaterequest.go
old mode 100755
new mode 100644
index c52f63d89..887fb04dd
--- a/internal/sdk/pkg/models/shared/sourcefreshdeskcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshdeskcreaterequest.go
@@ -9,3 +9,31 @@ type SourceFreshdeskCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshdeskCreateRequest) GetConfiguration() SourceFreshdesk {
+ if o == nil {
+ return SourceFreshdesk{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshdeskCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshdeskCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFreshdeskCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshdeskputrequest.go b/internal/sdk/pkg/models/shared/sourcefreshdeskputrequest.go
old mode 100755
new mode 100644
index 2e2a06652..449b87b7d
--- a/internal/sdk/pkg/models/shared/sourcefreshdeskputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshdeskputrequest.go
@@ -7,3 +7,24 @@ type SourceFreshdeskPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshdeskPutRequest) GetConfiguration() SourceFreshdeskUpdate {
+ if o == nil {
+ return SourceFreshdeskUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshdeskPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshdeskPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshdeskupdate.go b/internal/sdk/pkg/models/shared/sourcefreshdeskupdate.go
old mode 100755
new mode 100644
index 3093ea638..cfa3e8af2
--- a/internal/sdk/pkg/models/shared/sourcefreshdeskupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshdeskupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceFreshdeskUpdate struct {
// UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceFreshdeskUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFreshdeskUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFreshdeskUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshdeskUpdate) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceFreshdeskUpdate) GetRequestsPerMinute() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerMinute
+}
+
+func (o *SourceFreshdeskUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshsales.go b/internal/sdk/pkg/models/shared/sourcefreshsales.go
old mode 100755
new mode 100644
index 7dc19e6dd..4c1405104
--- a/internal/sdk/pkg/models/shared/sourcefreshsales.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshsales.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceFreshsales struct {
APIKey string `json:"api_key"`
// The Name of your Freshsales domain
DomainName string `json:"domain_name"`
- SourceType SourceFreshsalesFreshsales `json:"sourceType"`
+ sourceType SourceFreshsalesFreshsales `const:"freshsales" json:"sourceType"`
+}
+
+func (s SourceFreshsales) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceFreshsales) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceFreshsales) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshsales) GetDomainName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainName
+}
+
+func (o *SourceFreshsales) GetSourceType() SourceFreshsalesFreshsales {
+ return SourceFreshsalesFreshsalesFreshsales
}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshsalescreaterequest.go b/internal/sdk/pkg/models/shared/sourcefreshsalescreaterequest.go
old mode 100755
new mode 100644
index d1541cc01..f1646c298
--- a/internal/sdk/pkg/models/shared/sourcefreshsalescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshsalescreaterequest.go
@@ -9,3 +9,31 @@ type SourceFreshsalesCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshsalesCreateRequest) GetConfiguration() SourceFreshsales {
+ if o == nil {
+ return SourceFreshsales{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshsalesCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshsalesCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceFreshsalesCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshsalesputrequest.go b/internal/sdk/pkg/models/shared/sourcefreshsalesputrequest.go
old mode 100755
new mode 100644
index 420fb7b2d..1f7102df1
--- a/internal/sdk/pkg/models/shared/sourcefreshsalesputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshsalesputrequest.go
@@ -7,3 +7,24 @@ type SourceFreshsalesPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceFreshsalesPutRequest) GetConfiguration() SourceFreshsalesUpdate {
+ if o == nil {
+ return SourceFreshsalesUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceFreshsalesPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceFreshsalesPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcefreshsalesupdate.go b/internal/sdk/pkg/models/shared/sourcefreshsalesupdate.go
old mode 100755
new mode 100644
index b2157624b..35a6c3387
--- a/internal/sdk/pkg/models/shared/sourcefreshsalesupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcefreshsalesupdate.go
@@ -8,3 +8,17 @@ type SourceFreshsalesUpdate struct {
// The Name of your Freshsales domain
DomainName string `json:"domain_name"`
}
+
+func (o *SourceFreshsalesUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceFreshsalesUpdate) GetDomainName() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainName
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegainsightpx.go b/internal/sdk/pkg/models/shared/sourcegainsightpx.go
old mode 100755
new mode 100644
index 33fe990c5..9c8a313dd
--- a/internal/sdk/pkg/models/shared/sourcegainsightpx.go
+++ b/internal/sdk/pkg/models/shared/sourcegainsightpx.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceGainsightPxGainsightPx) UnmarshalJSON(data []byte) error {
type SourceGainsightPx struct {
// The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)
APIKey string `json:"api_key"`
- SourceType SourceGainsightPxGainsightPx `json:"sourceType"`
+ sourceType SourceGainsightPxGainsightPx `const:"gainsight-px" json:"sourceType"`
+}
+
+func (s SourceGainsightPx) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGainsightPx) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGainsightPx) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGainsightPx) GetSourceType() SourceGainsightPxGainsightPx {
+ return SourceGainsightPxGainsightPxGainsightPx
}
diff --git a/internal/sdk/pkg/models/shared/sourcegainsightpxcreaterequest.go b/internal/sdk/pkg/models/shared/sourcegainsightpxcreaterequest.go
old mode 100755
new mode 100644
index 06792190b..37ca89705
--- a/internal/sdk/pkg/models/shared/sourcegainsightpxcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegainsightpxcreaterequest.go
@@ -9,3 +9,31 @@ type SourceGainsightPxCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGainsightPxCreateRequest) GetConfiguration() SourceGainsightPx {
+ if o == nil {
+ return SourceGainsightPx{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGainsightPxCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGainsightPxCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGainsightPxCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegainsightpxputrequest.go b/internal/sdk/pkg/models/shared/sourcegainsightpxputrequest.go
old mode 100755
new mode 100644
index f6a5d3ae6..90538ef3e
--- a/internal/sdk/pkg/models/shared/sourcegainsightpxputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegainsightpxputrequest.go
@@ -7,3 +7,24 @@ type SourceGainsightPxPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGainsightPxPutRequest) GetConfiguration() SourceGainsightPxUpdate {
+ if o == nil {
+ return SourceGainsightPxUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGainsightPxPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGainsightPxPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegainsightpxupdate.go b/internal/sdk/pkg/models/shared/sourcegainsightpxupdate.go
old mode 100755
new mode 100644
index 07ab98b25..0b6f98091
--- a/internal/sdk/pkg/models/shared/sourcegainsightpxupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegainsightpxupdate.go
@@ -6,3 +6,10 @@ type SourceGainsightPxUpdate struct {
// The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys)
APIKey string `json:"api_key"`
}
+
+func (o *SourceGainsightPxUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegcs.go b/internal/sdk/pkg/models/shared/sourcegcs.go
old mode 100755
new mode 100644
index a71a3d77f..d17fd2094
--- a/internal/sdk/pkg/models/shared/sourcegcs.go
+++ b/internal/sdk/pkg/models/shared/sourcegcs.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceGcs struct {
GcsPath string `json:"gcs_path"`
// Enter your Google Cloud service account key in JSON format
ServiceAccount string `json:"service_account"`
- SourceType SourceGcsGcs `json:"sourceType"`
+ sourceType SourceGcsGcs `const:"gcs" json:"sourceType"`
+}
+
+func (s SourceGcs) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGcs) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGcs) GetGcsBucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucket
+}
+
+func (o *SourceGcs) GetGcsPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsPath
+}
+
+func (o *SourceGcs) GetServiceAccount() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccount
+}
+
+func (o *SourceGcs) GetSourceType() SourceGcsGcs {
+ return SourceGcsGcsGcs
}
diff --git a/internal/sdk/pkg/models/shared/sourcegcscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegcscreaterequest.go
old mode 100755
new mode 100644
index 121f607c5..26f6143b8
--- a/internal/sdk/pkg/models/shared/sourcegcscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegcscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGcsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGcsCreateRequest) GetConfiguration() SourceGcs {
+ if o == nil {
+ return SourceGcs{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGcsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGcsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGcsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegcsputrequest.go b/internal/sdk/pkg/models/shared/sourcegcsputrequest.go
old mode 100755
new mode 100644
index 7cf65563b..82ea1a2ae
--- a/internal/sdk/pkg/models/shared/sourcegcsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegcsputrequest.go
@@ -7,3 +7,24 @@ type SourceGcsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGcsPutRequest) GetConfiguration() SourceGcsUpdate {
+ if o == nil {
+ return SourceGcsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGcsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGcsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegcsupdate.go b/internal/sdk/pkg/models/shared/sourcegcsupdate.go
old mode 100755
new mode 100644
index fa05e9170..cf90e5bbf
--- a/internal/sdk/pkg/models/shared/sourcegcsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegcsupdate.go
@@ -10,3 +10,24 @@ type SourceGcsUpdate struct {
// Enter your Google Cloud service account key in JSON format
ServiceAccount string `json:"service_account"`
}
+
+func (o *SourceGcsUpdate) GetGcsBucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsBucket
+}
+
+func (o *SourceGcsUpdate) GetGcsPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.GcsPath
+}
+
+func (o *SourceGcsUpdate) GetServiceAccount() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccount
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegetlago.go b/internal/sdk/pkg/models/shared/sourcegetlago.go
old mode 100755
new mode 100644
index 31965e3ff..7d6b93d48
--- a/internal/sdk/pkg/models/shared/sourcegetlago.go
+++ b/internal/sdk/pkg/models/shared/sourcegetlago.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceGetlagoGetlago) UnmarshalJSON(data []byte) error {
type SourceGetlago struct {
// Your API Key. See here.
APIKey string `json:"api_key"`
- SourceType SourceGetlagoGetlago `json:"sourceType"`
+ sourceType SourceGetlagoGetlago `const:"getlago" json:"sourceType"`
+}
+
+func (s SourceGetlago) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGetlago) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGetlago) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGetlago) GetSourceType() SourceGetlagoGetlago {
+ return SourceGetlagoGetlagoGetlago
}
diff --git a/internal/sdk/pkg/models/shared/sourcegetlagocreaterequest.go b/internal/sdk/pkg/models/shared/sourcegetlagocreaterequest.go
old mode 100755
new mode 100644
index 7faa3f002..a48029627
--- a/internal/sdk/pkg/models/shared/sourcegetlagocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegetlagocreaterequest.go
@@ -9,3 +9,31 @@ type SourceGetlagoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGetlagoCreateRequest) GetConfiguration() SourceGetlago {
+ if o == nil {
+ return SourceGetlago{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGetlagoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGetlagoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGetlagoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegetlagoputrequest.go b/internal/sdk/pkg/models/shared/sourcegetlagoputrequest.go
old mode 100755
new mode 100644
index fa3de88db..1b536121e
--- a/internal/sdk/pkg/models/shared/sourcegetlagoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegetlagoputrequest.go
@@ -7,3 +7,24 @@ type SourceGetlagoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGetlagoPutRequest) GetConfiguration() SourceGetlagoUpdate {
+ if o == nil {
+ return SourceGetlagoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGetlagoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGetlagoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegetlagoupdate.go b/internal/sdk/pkg/models/shared/sourcegetlagoupdate.go
old mode 100755
new mode 100644
index cbcac5210..016c69d65
--- a/internal/sdk/pkg/models/shared/sourcegetlagoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegetlagoupdate.go
@@ -6,3 +6,10 @@ type SourceGetlagoUpdate struct {
// Your API Key. See here.
APIKey string `json:"api_key"`
}
+
+func (o *SourceGetlagoUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegithub.go b/internal/sdk/pkg/models/shared/sourcegithub.go
old mode 100755
new mode 100644
index 152dca92f..988301335
--- a/internal/sdk/pkg/models/shared/sourcegithub.go
+++ b/internal/sdk/pkg/models/shared/sourcegithub.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGithubAuthenticationPersonalAccessTokenOptionTitle) UnmarshalJSON
// SourceGithubAuthenticationPersonalAccessToken - Choose how to authenticate to GitHub
type SourceGithubAuthenticationPersonalAccessToken struct {
- OptionTitle *SourceGithubAuthenticationPersonalAccessTokenOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceGithubAuthenticationPersonalAccessTokenOptionTitle `const:"PAT Credentials" json:"option_title,omitempty"`
// Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
PersonalAccessToken string `json:"personal_access_token"`
}
+func (s SourceGithubAuthenticationPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithubAuthenticationPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithubAuthenticationPersonalAccessToken) GetOptionTitle() *SourceGithubAuthenticationPersonalAccessTokenOptionTitle {
+ return SourceGithubAuthenticationPersonalAccessTokenOptionTitlePatCredentials.ToPointer()
+}
+
+func (o *SourceGithubAuthenticationPersonalAccessToken) GetPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.PersonalAccessToken
+}
+
type SourceGithubAuthenticationOAuthOptionTitle string
const (
@@ -73,7 +95,43 @@ type SourceGithubAuthenticationOAuth struct {
ClientID *string `json:"client_id,omitempty"`
// OAuth Client secret
ClientSecret *string `json:"client_secret,omitempty"`
- OptionTitle *SourceGithubAuthenticationOAuthOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceGithubAuthenticationOAuthOptionTitle `const:"OAuth Credentials" json:"option_title,omitempty"`
+}
+
+func (s SourceGithubAuthenticationOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithubAuthenticationOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithubAuthenticationOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGithubAuthenticationOAuth) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceGithubAuthenticationOAuth) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGithubAuthenticationOAuth) GetOptionTitle() *SourceGithubAuthenticationOAuthOptionTitle {
+ return SourceGithubAuthenticationOAuthOptionTitleOAuthCredentials.ToPointer()
}
type SourceGithubAuthenticationType string
@@ -109,21 +167,16 @@ func CreateSourceGithubAuthenticationSourceGithubAuthenticationPersonalAccessTok
}
func (u *SourceGithubAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGithubAuthenticationPersonalAccessToken := new(SourceGithubAuthenticationPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGithubAuthenticationPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGithubAuthenticationPersonalAccessToken, "", true, true); err == nil {
u.SourceGithubAuthenticationPersonalAccessToken = sourceGithubAuthenticationPersonalAccessToken
u.Type = SourceGithubAuthenticationTypeSourceGithubAuthenticationPersonalAccessToken
return nil
}
sourceGithubAuthenticationOAuth := new(SourceGithubAuthenticationOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGithubAuthenticationOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGithubAuthenticationOAuth, "", true, true); err == nil {
u.SourceGithubAuthenticationOAuth = sourceGithubAuthenticationOAuth
u.Type = SourceGithubAuthenticationTypeSourceGithubAuthenticationOAuth
return nil
@@ -133,15 +186,15 @@ func (u *SourceGithubAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceGithubAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceGithubAuthenticationPersonalAccessToken != nil {
- return json.Marshal(u.SourceGithubAuthenticationPersonalAccessToken)
+ if u.SourceGithubAuthenticationOAuth != nil {
+ return utils.MarshalJSON(u.SourceGithubAuthenticationOAuth, "", true)
}
- if u.SourceGithubAuthenticationOAuth != nil {
- return json.Marshal(u.SourceGithubAuthenticationOAuth)
+ if u.SourceGithubAuthenticationPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceGithubAuthenticationPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGithubGithub string
@@ -177,7 +230,57 @@ type SourceGithub struct {
Repository string `json:"repository"`
// The GitHub API allows for a maximum of 5000 requests per hour (15000 for Github Enterprise). You can specify a lower value to limit your use of the API quota.
RequestsPerHour *int64 `json:"requests_per_hour,omitempty"`
- SourceType SourceGithubGithub `json:"sourceType"`
+ sourceType SourceGithubGithub `const:"github" json:"sourceType"`
// The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceGithub) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithub) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithub) GetBranch() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Branch
+}
+
+func (o *SourceGithub) GetCredentials() *SourceGithubAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGithub) GetRepository() string {
+ if o == nil {
+ return ""
+ }
+ return o.Repository
+}
+
+func (o *SourceGithub) GetRequestsPerHour() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerHour
+}
+
+func (o *SourceGithub) GetSourceType() SourceGithubGithub {
+ return SourceGithubGithubGithub
+}
+
+func (o *SourceGithub) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegithubcreaterequest.go b/internal/sdk/pkg/models/shared/sourcegithubcreaterequest.go
old mode 100755
new mode 100644
index 7377759e0..4d56813d7
--- a/internal/sdk/pkg/models/shared/sourcegithubcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegithubcreaterequest.go
@@ -9,3 +9,31 @@ type SourceGithubCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGithubCreateRequest) GetConfiguration() SourceGithub {
+ if o == nil {
+ return SourceGithub{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGithubCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGithubCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGithubCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegithubputrequest.go b/internal/sdk/pkg/models/shared/sourcegithubputrequest.go
old mode 100755
new mode 100644
index dc5e37878..44362b20d
--- a/internal/sdk/pkg/models/shared/sourcegithubputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegithubputrequest.go
@@ -7,3 +7,24 @@ type SourceGithubPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGithubPutRequest) GetConfiguration() SourceGithubUpdate {
+ if o == nil {
+ return SourceGithubUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGithubPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGithubPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegithubupdate.go b/internal/sdk/pkg/models/shared/sourcegithubupdate.go
old mode 100755
new mode 100644
index 9f08a7a53..0b1f6f7e5
--- a/internal/sdk/pkg/models/shared/sourcegithubupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegithubupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle) Unmarsh
// SourceGithubUpdateAuthenticationPersonalAccessToken - Choose how to authenticate to GitHub
type SourceGithubUpdateAuthenticationPersonalAccessToken struct {
- OptionTitle *SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle `const:"PAT Credentials" json:"option_title,omitempty"`
// Log into GitHub and then generate a personal access token. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with ","
PersonalAccessToken string `json:"personal_access_token"`
}
+func (s SourceGithubUpdateAuthenticationPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithubUpdateAuthenticationPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithubUpdateAuthenticationPersonalAccessToken) GetOptionTitle() *SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitle {
+ return SourceGithubUpdateAuthenticationPersonalAccessTokenOptionTitlePatCredentials.ToPointer()
+}
+
+func (o *SourceGithubUpdateAuthenticationPersonalAccessToken) GetPersonalAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.PersonalAccessToken
+}
+
type SourceGithubUpdateAuthenticationOAuthOptionTitle string
const (
@@ -73,7 +95,43 @@ type SourceGithubUpdateAuthenticationOAuth struct {
ClientID *string `json:"client_id,omitempty"`
// OAuth Client secret
ClientSecret *string `json:"client_secret,omitempty"`
- OptionTitle *SourceGithubUpdateAuthenticationOAuthOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceGithubUpdateAuthenticationOAuthOptionTitle `const:"OAuth Credentials" json:"option_title,omitempty"`
+}
+
+func (s SourceGithubUpdateAuthenticationOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithubUpdateAuthenticationOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithubUpdateAuthenticationOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGithubUpdateAuthenticationOAuth) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceGithubUpdateAuthenticationOAuth) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGithubUpdateAuthenticationOAuth) GetOptionTitle() *SourceGithubUpdateAuthenticationOAuthOptionTitle {
+ return SourceGithubUpdateAuthenticationOAuthOptionTitleOAuthCredentials.ToPointer()
}
type SourceGithubUpdateAuthenticationType string
@@ -109,21 +167,16 @@ func CreateSourceGithubUpdateAuthenticationSourceGithubUpdateAuthenticationPerso
}
func (u *SourceGithubUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGithubUpdateAuthenticationPersonalAccessToken := new(SourceGithubUpdateAuthenticationPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGithubUpdateAuthenticationPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGithubUpdateAuthenticationPersonalAccessToken, "", true, true); err == nil {
u.SourceGithubUpdateAuthenticationPersonalAccessToken = sourceGithubUpdateAuthenticationPersonalAccessToken
u.Type = SourceGithubUpdateAuthenticationTypeSourceGithubUpdateAuthenticationPersonalAccessToken
return nil
}
sourceGithubUpdateAuthenticationOAuth := new(SourceGithubUpdateAuthenticationOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGithubUpdateAuthenticationOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGithubUpdateAuthenticationOAuth, "", true, true); err == nil {
u.SourceGithubUpdateAuthenticationOAuth = sourceGithubUpdateAuthenticationOAuth
u.Type = SourceGithubUpdateAuthenticationTypeSourceGithubUpdateAuthenticationOAuth
return nil
@@ -133,15 +186,15 @@ func (u *SourceGithubUpdateAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceGithubUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceGithubUpdateAuthenticationPersonalAccessToken != nil {
- return json.Marshal(u.SourceGithubUpdateAuthenticationPersonalAccessToken)
+ if u.SourceGithubUpdateAuthenticationOAuth != nil {
+ return utils.MarshalJSON(u.SourceGithubUpdateAuthenticationOAuth, "", true)
}
- if u.SourceGithubUpdateAuthenticationOAuth != nil {
- return json.Marshal(u.SourceGithubUpdateAuthenticationOAuth)
+ if u.SourceGithubUpdateAuthenticationPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceGithubUpdateAuthenticationPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGithubUpdate struct {
@@ -156,3 +209,49 @@ type SourceGithubUpdate struct {
// The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the docs for more info
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceGithubUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGithubUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGithubUpdate) GetBranch() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Branch
+}
+
+func (o *SourceGithubUpdate) GetCredentials() *SourceGithubUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGithubUpdate) GetRepository() string {
+ if o == nil {
+ return ""
+ }
+ return o.Repository
+}
+
+func (o *SourceGithubUpdate) GetRequestsPerHour() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.RequestsPerHour
+}
+
+func (o *SourceGithubUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegitlab.go b/internal/sdk/pkg/models/shared/sourcegitlab.go
old mode 100755
new mode 100644
index a8dcf47da..72cf9e854
--- a/internal/sdk/pkg/models/shared/sourcegitlab.go
+++ b/internal/sdk/pkg/models/shared/sourcegitlab.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceGitlabAuthorizationMethodPrivateTokenAuthType) UnmarshalJSON(data
type SourceGitlabAuthorizationMethodPrivateToken struct {
// Log into your Gitlab account and then generate a personal Access Token.
AccessToken string `json:"access_token"`
- AuthType *SourceGitlabAuthorizationMethodPrivateTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceGitlabAuthorizationMethodPrivateTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceGitlabAuthorizationMethodPrivateToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlabAuthorizationMethodPrivateToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlabAuthorizationMethodPrivateToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGitlabAuthorizationMethodPrivateToken) GetAuthType() *SourceGitlabAuthorizationMethodPrivateTokenAuthType {
+ return SourceGitlabAuthorizationMethodPrivateTokenAuthTypeAccessToken.ToPointer()
}
type SourceGitlabAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceGitlabAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data []by
type SourceGitlabAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceGitlabAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceGitlabAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API ID of the Gitlab developer application.
ClientID string `json:"client_id"`
// The API Secret the Gitlab developer application.
@@ -78,6 +100,56 @@ type SourceGitlabAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceGitlabAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlabAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetAuthType() *SourceGitlabAuthorizationMethodOAuth20AuthType {
+ return SourceGitlabAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceGitlabAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceGitlabAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceGitlabAuthorizationMethodSourceGitlabAuthorizationMethodPrivate
}
func (u *SourceGitlabAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGitlabAuthorizationMethodPrivateToken := new(SourceGitlabAuthorizationMethodPrivateToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGitlabAuthorizationMethodPrivateToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGitlabAuthorizationMethodPrivateToken, "", true, true); err == nil {
u.SourceGitlabAuthorizationMethodPrivateToken = sourceGitlabAuthorizationMethodPrivateToken
u.Type = SourceGitlabAuthorizationMethodTypeSourceGitlabAuthorizationMethodPrivateToken
return nil
}
sourceGitlabAuthorizationMethodOAuth20 := new(SourceGitlabAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGitlabAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGitlabAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceGitlabAuthorizationMethodOAuth20 = sourceGitlabAuthorizationMethodOAuth20
u.Type = SourceGitlabAuthorizationMethodTypeSourceGitlabAuthorizationMethodOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceGitlabAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceGitlabAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceGitlabAuthorizationMethodPrivateToken != nil {
- return json.Marshal(u.SourceGitlabAuthorizationMethodPrivateToken)
+ if u.SourceGitlabAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceGitlabAuthorizationMethodOAuth20, "", true)
}
- if u.SourceGitlabAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceGitlabAuthorizationMethodOAuth20)
+ if u.SourceGitlabAuthorizationMethodPrivateToken != nil {
+ return utils.MarshalJSON(u.SourceGitlabAuthorizationMethodPrivateToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGitlabGitlab string
@@ -172,13 +239,63 @@ func (e *SourceGitlabGitlab) UnmarshalJSON(data []byte) error {
type SourceGitlab struct {
// Please enter your basic URL from GitLab instance.
- APIURL *string `json:"api_url,omitempty"`
+ APIURL *string `default:"gitlab.com" json:"api_url"`
Credentials SourceGitlabAuthorizationMethod `json:"credentials"`
// Space-delimited list of groups. e.g. airbyte.io.
Groups *string `json:"groups,omitempty"`
// Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab.
Projects *string `json:"projects,omitempty"`
- SourceType SourceGitlabGitlab `json:"sourceType"`
+ sourceType SourceGitlabGitlab `const:"gitlab" json:"sourceType"`
// The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceGitlab) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlab) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlab) GetAPIURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIURL
+}
+
+func (o *SourceGitlab) GetCredentials() SourceGitlabAuthorizationMethod {
+ if o == nil {
+ return SourceGitlabAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGitlab) GetGroups() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Groups
+}
+
+func (o *SourceGitlab) GetProjects() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Projects
+}
+
+func (o *SourceGitlab) GetSourceType() SourceGitlabGitlab {
+ return SourceGitlabGitlabGitlab
+}
+
+func (o *SourceGitlab) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegitlabcreaterequest.go b/internal/sdk/pkg/models/shared/sourcegitlabcreaterequest.go
old mode 100755
new mode 100644
index e58e300b8..decede49e
--- a/internal/sdk/pkg/models/shared/sourcegitlabcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegitlabcreaterequest.go
@@ -9,3 +9,31 @@ type SourceGitlabCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGitlabCreateRequest) GetConfiguration() SourceGitlab {
+ if o == nil {
+ return SourceGitlab{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGitlabCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGitlabCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGitlabCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegitlabputrequest.go b/internal/sdk/pkg/models/shared/sourcegitlabputrequest.go
old mode 100755
new mode 100644
index b90614f7c..66732e516
--- a/internal/sdk/pkg/models/shared/sourcegitlabputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegitlabputrequest.go
@@ -7,3 +7,24 @@ type SourceGitlabPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGitlabPutRequest) GetConfiguration() SourceGitlabUpdate {
+ if o == nil {
+ return SourceGitlabUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGitlabPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGitlabPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegitlabupdate.go b/internal/sdk/pkg/models/shared/sourcegitlabupdate.go
old mode 100755
new mode 100644
index 6cf89870f..de064ae08
--- a/internal/sdk/pkg/models/shared/sourcegitlabupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegitlabupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType) UnmarshalJSO
type SourceGitlabUpdateAuthorizationMethodPrivateToken struct {
// Log into your Gitlab account and then generate a personal Access Token.
AccessToken string `json:"access_token"`
- AuthType *SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceGitlabUpdateAuthorizationMethodPrivateToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlabUpdateAuthorizationMethodPrivateToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodPrivateToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodPrivateToken) GetAuthType() *SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthType {
+ return SourceGitlabUpdateAuthorizationMethodPrivateTokenAuthTypeAccessToken.ToPointer()
}
type SourceGitlabUpdateAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceGitlabUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON(dat
type SourceGitlabUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceGitlabUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceGitlabUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API ID of the Gitlab developer application.
ClientID string `json:"client_id"`
// The API Secret the Gitlab developer application.
@@ -78,6 +100,56 @@ type SourceGitlabUpdateAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceGitlabUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlabUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetAuthType() *SourceGitlabUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceGitlabUpdateAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceGitlabUpdateAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceGitlabUpdateAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceGitlabUpdateAuthorizationMethodSourceGitlabUpdateAuthorizationM
}
func (u *SourceGitlabUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGitlabUpdateAuthorizationMethodPrivateToken := new(SourceGitlabUpdateAuthorizationMethodPrivateToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGitlabUpdateAuthorizationMethodPrivateToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGitlabUpdateAuthorizationMethodPrivateToken, "", true, true); err == nil {
u.SourceGitlabUpdateAuthorizationMethodPrivateToken = sourceGitlabUpdateAuthorizationMethodPrivateToken
u.Type = SourceGitlabUpdateAuthorizationMethodTypeSourceGitlabUpdateAuthorizationMethodPrivateToken
return nil
}
sourceGitlabUpdateAuthorizationMethodOAuth20 := new(SourceGitlabUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGitlabUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGitlabUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceGitlabUpdateAuthorizationMethodOAuth20 = sourceGitlabUpdateAuthorizationMethodOAuth20
u.Type = SourceGitlabUpdateAuthorizationMethodTypeSourceGitlabUpdateAuthorizationMethodOAuth20
return nil
@@ -135,20 +202,20 @@ func (u *SourceGitlabUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error
}
func (u SourceGitlabUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceGitlabUpdateAuthorizationMethodPrivateToken != nil {
- return json.Marshal(u.SourceGitlabUpdateAuthorizationMethodPrivateToken)
+ if u.SourceGitlabUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceGitlabUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceGitlabUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceGitlabUpdateAuthorizationMethodOAuth20)
+ if u.SourceGitlabUpdateAuthorizationMethodPrivateToken != nil {
+ return utils.MarshalJSON(u.SourceGitlabUpdateAuthorizationMethodPrivateToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGitlabUpdate struct {
// Please enter your basic URL from GitLab instance.
- APIURL *string `json:"api_url,omitempty"`
+ APIURL *string `default:"gitlab.com" json:"api_url"`
Credentials SourceGitlabUpdateAuthorizationMethod `json:"credentials"`
// Space-delimited list of groups. e.g. airbyte.io.
Groups *string `json:"groups,omitempty"`
@@ -157,3 +224,49 @@ type SourceGitlabUpdate struct {
// The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceGitlabUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGitlabUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGitlabUpdate) GetAPIURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIURL
+}
+
+func (o *SourceGitlabUpdate) GetCredentials() SourceGitlabUpdateAuthorizationMethod {
+ if o == nil {
+ return SourceGitlabUpdateAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGitlabUpdate) GetGroups() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Groups
+}
+
+func (o *SourceGitlabUpdate) GetProjects() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Projects
+}
+
+func (o *SourceGitlabUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceglassfrog.go b/internal/sdk/pkg/models/shared/sourceglassfrog.go
old mode 100755
new mode 100644
index 17254d680..596d5e275
--- a/internal/sdk/pkg/models/shared/sourceglassfrog.go
+++ b/internal/sdk/pkg/models/shared/sourceglassfrog.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceGlassfrogGlassfrog) UnmarshalJSON(data []byte) error {
type SourceGlassfrog struct {
// API key provided by Glassfrog
APIKey string `json:"api_key"`
- SourceType SourceGlassfrogGlassfrog `json:"sourceType"`
+ sourceType SourceGlassfrogGlassfrog `const:"glassfrog" json:"sourceType"`
+}
+
+func (s SourceGlassfrog) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGlassfrog) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGlassfrog) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGlassfrog) GetSourceType() SourceGlassfrogGlassfrog {
+ return SourceGlassfrogGlassfrogGlassfrog
}
diff --git a/internal/sdk/pkg/models/shared/sourceglassfrogcreaterequest.go b/internal/sdk/pkg/models/shared/sourceglassfrogcreaterequest.go
old mode 100755
new mode 100644
index 7ff3c660e..36d14d104
--- a/internal/sdk/pkg/models/shared/sourceglassfrogcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceglassfrogcreaterequest.go
@@ -9,3 +9,31 @@ type SourceGlassfrogCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGlassfrogCreateRequest) GetConfiguration() SourceGlassfrog {
+ if o == nil {
+ return SourceGlassfrog{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGlassfrogCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGlassfrogCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGlassfrogCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceglassfrogputrequest.go b/internal/sdk/pkg/models/shared/sourceglassfrogputrequest.go
old mode 100755
new mode 100644
index 7bedcd583..08e16a3e3
--- a/internal/sdk/pkg/models/shared/sourceglassfrogputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceglassfrogputrequest.go
@@ -7,3 +7,24 @@ type SourceGlassfrogPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGlassfrogPutRequest) GetConfiguration() SourceGlassfrogUpdate {
+ if o == nil {
+ return SourceGlassfrogUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGlassfrogPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGlassfrogPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceglassfrogupdate.go b/internal/sdk/pkg/models/shared/sourceglassfrogupdate.go
old mode 100755
new mode 100644
index 69e240799..d90e5997b
--- a/internal/sdk/pkg/models/shared/sourceglassfrogupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceglassfrogupdate.go
@@ -6,3 +6,10 @@ type SourceGlassfrogUpdate struct {
// API key provided by Glassfrog
APIKey string `json:"api_key"`
}
+
+func (o *SourceGlassfrogUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegnews.go b/internal/sdk/pkg/models/shared/sourcegnews.go
old mode 100755
new mode 100644
index 04bda8a84..572e416f5
--- a/internal/sdk/pkg/models/shared/sourcegnews.go
+++ b/internal/sdk/pkg/models/shared/sourcegnews.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -400,7 +401,7 @@ type SourceGnews struct {
// - publishedAt = sort by publication date, the articles with the most recent publication date are returned first
// - relevance = sort by best match to keywords, the articles with the best match are returned first
Sortby *SourceGnewsSortBy `json:"sortby,omitempty"`
- SourceType SourceGnewsGnews `json:"sourceType"`
+ sourceType SourceGnewsGnews `const:"gnews" json:"sourceType"`
// This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC)
StartDate *string `json:"start_date,omitempty"`
// This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by
@@ -421,3 +422,95 @@ type SourceGnews struct {
// This parameter allows you to change the category for the request.
TopHeadlinesTopic *SourceGnewsTopHeadlinesTopic `json:"top_headlines_topic,omitempty"`
}
+
+func (s SourceGnews) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGnews) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGnews) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGnews) GetCountry() *SourceGnewsCountry {
+ if o == nil {
+ return nil
+ }
+ return o.Country
+}
+
+func (o *SourceGnews) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGnews) GetIn() []SourceGnewsIn {
+ if o == nil {
+ return nil
+ }
+ return o.In
+}
+
+func (o *SourceGnews) GetLanguage() *SourceGnewsLanguage {
+ if o == nil {
+ return nil
+ }
+ return o.Language
+}
+
+func (o *SourceGnews) GetNullable() []SourceGnewsNullable {
+ if o == nil {
+ return nil
+ }
+ return o.Nullable
+}
+
+func (o *SourceGnews) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceGnews) GetSortby() *SourceGnewsSortBy {
+ if o == nil {
+ return nil
+ }
+ return o.Sortby
+}
+
+func (o *SourceGnews) GetSourceType() SourceGnewsGnews {
+ return SourceGnewsGnewsGnews
+}
+
+func (o *SourceGnews) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceGnews) GetTopHeadlinesQuery() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TopHeadlinesQuery
+}
+
+func (o *SourceGnews) GetTopHeadlinesTopic() *SourceGnewsTopHeadlinesTopic {
+ if o == nil {
+ return nil
+ }
+ return o.TopHeadlinesTopic
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegnewscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegnewscreaterequest.go
old mode 100755
new mode 100644
index 0756a9d19..67467914e
--- a/internal/sdk/pkg/models/shared/sourcegnewscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegnewscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGnewsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGnewsCreateRequest) GetConfiguration() SourceGnews {
+ if o == nil {
+ return SourceGnews{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGnewsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGnewsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGnewsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegnewsputrequest.go b/internal/sdk/pkg/models/shared/sourcegnewsputrequest.go
old mode 100755
new mode 100644
index 54e679c58..e7ad9f0d2
--- a/internal/sdk/pkg/models/shared/sourcegnewsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegnewsputrequest.go
@@ -7,3 +7,24 @@ type SourceGnewsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGnewsPutRequest) GetConfiguration() SourceGnewsUpdate {
+ if o == nil {
+ return SourceGnewsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGnewsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGnewsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegnewsupdate.go b/internal/sdk/pkg/models/shared/sourcegnewsupdate.go
old mode 100755
new mode 100644
index 36814783d..c8b308f1a
--- a/internal/sdk/pkg/models/shared/sourcegnewsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegnewsupdate.go
@@ -396,3 +396,80 @@ type SourceGnewsUpdate struct {
// This parameter allows you to change the category for the request.
TopHeadlinesTopic *SourceGnewsUpdateTopHeadlinesTopic `json:"top_headlines_topic,omitempty"`
}
+
+func (o *SourceGnewsUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGnewsUpdate) GetCountry() *SourceGnewsUpdateCountry {
+ if o == nil {
+ return nil
+ }
+ return o.Country
+}
+
+func (o *SourceGnewsUpdate) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGnewsUpdate) GetIn() []SourceGnewsUpdateIn {
+ if o == nil {
+ return nil
+ }
+ return o.In
+}
+
+func (o *SourceGnewsUpdate) GetLanguage() *SourceGnewsUpdateLanguage {
+ if o == nil {
+ return nil
+ }
+ return o.Language
+}
+
+func (o *SourceGnewsUpdate) GetNullable() []SourceGnewsUpdateNullable {
+ if o == nil {
+ return nil
+ }
+ return o.Nullable
+}
+
+func (o *SourceGnewsUpdate) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceGnewsUpdate) GetSortby() *SourceGnewsUpdateSortBy {
+ if o == nil {
+ return nil
+ }
+ return o.Sortby
+}
+
+func (o *SourceGnewsUpdate) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceGnewsUpdate) GetTopHeadlinesQuery() *string {
+ if o == nil {
+ return nil
+ }
+ return o.TopHeadlinesQuery
+}
+
+func (o *SourceGnewsUpdate) GetTopHeadlinesTopic() *SourceGnewsUpdateTopHeadlinesTopic {
+ if o == nil {
+ return nil
+ }
+ return o.TopHeadlinesTopic
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleads.go b/internal/sdk/pkg/models/shared/sourcegoogleads.go
old mode 100755
new mode 100644
index d0d401ed9..7d08888a7
--- a/internal/sdk/pkg/models/shared/sourcegoogleads.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleads.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -21,6 +22,41 @@ type SourceGoogleAdsGoogleCredentials struct {
RefreshToken string `json:"refresh_token"`
}
+func (o *SourceGoogleAdsGoogleCredentials) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAdsGoogleCredentials) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAdsGoogleCredentials) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAdsGoogleCredentials) GetDeveloperToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeveloperToken
+}
+
+func (o *SourceGoogleAdsGoogleCredentials) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAdsCustomQueries struct {
// A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to Google's documentation.
Query string `json:"query"`
@@ -28,6 +64,20 @@ type SourceGoogleAdsCustomQueries struct {
TableName string `json:"table_name"`
}
+func (o *SourceGoogleAdsCustomQueries) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceGoogleAdsCustomQueries) GetTableName() string {
+ if o == nil {
+ return ""
+ }
+ return o.TableName
+}
+
type SourceGoogleAdsGoogleAds string
const (
@@ -54,7 +104,7 @@ func (e *SourceGoogleAdsGoogleAds) UnmarshalJSON(data []byte) error {
type SourceGoogleAds struct {
// A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see Google's documentation.
- ConversionWindowDays *int64 `json:"conversion_window_days,omitempty"`
+ ConversionWindowDays *int64 `default:"14" json:"conversion_window_days"`
Credentials SourceGoogleAdsGoogleCredentials `json:"credentials"`
CustomQueries []SourceGoogleAdsCustomQueries `json:"custom_queries,omitempty"`
// Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our documentation.
@@ -63,7 +113,71 @@ type SourceGoogleAds struct {
EndDate *types.Date `json:"end_date,omitempty"`
// If your access to the customer account is through a manager account, this field is required, and must be set to the 10-digit customer ID of the manager account. For more information about this field, refer to Google's documentation.
LoginCustomerID *string `json:"login_customer_id,omitempty"`
- SourceType SourceGoogleAdsGoogleAds `json:"sourceType"`
+ sourceType SourceGoogleAdsGoogleAds `const:"google-ads" json:"sourceType"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set)
StartDate *types.Date `json:"start_date,omitempty"`
}
+
+func (s SourceGoogleAds) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAds) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAds) GetConversionWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ConversionWindowDays
+}
+
+func (o *SourceGoogleAds) GetCredentials() SourceGoogleAdsGoogleCredentials {
+ if o == nil {
+ return SourceGoogleAdsGoogleCredentials{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAds) GetCustomQueries() []SourceGoogleAdsCustomQueries {
+ if o == nil {
+ return nil
+ }
+ return o.CustomQueries
+}
+
+func (o *SourceGoogleAds) GetCustomerID() string {
+ if o == nil {
+ return ""
+ }
+ return o.CustomerID
+}
+
+func (o *SourceGoogleAds) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGoogleAds) GetLoginCustomerID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LoginCustomerID
+}
+
+func (o *SourceGoogleAds) GetSourceType() SourceGoogleAdsGoogleAds {
+ return SourceGoogleAdsGoogleAdsGoogleAds
+}
+
+func (o *SourceGoogleAds) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleadscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegoogleadscreaterequest.go
old mode 100755
new mode 100644
index e4db2238f..53c4cce1b
--- a/internal/sdk/pkg/models/shared/sourcegoogleadscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleadscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleAdsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAdsCreateRequest) GetConfiguration() SourceGoogleAds {
+ if o == nil {
+ return SourceGoogleAds{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAdsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAdsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleAdsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleadsputrequest.go b/internal/sdk/pkg/models/shared/sourcegoogleadsputrequest.go
old mode 100755
new mode 100644
index d63194028..584ef4f8d
--- a/internal/sdk/pkg/models/shared/sourcegoogleadsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleadsputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleAdsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAdsPutRequest) GetConfiguration() SourceGoogleAdsUpdate {
+ if o == nil {
+ return SourceGoogleAdsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAdsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAdsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleadsupdate.go b/internal/sdk/pkg/models/shared/sourcegoogleadsupdate.go
old mode 100755
new mode 100644
index 8da356740..13c47372c
--- a/internal/sdk/pkg/models/shared/sourcegoogleadsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleadsupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceGoogleAdsUpdateGoogleCredentials struct {
@@ -19,6 +20,41 @@ type SourceGoogleAdsUpdateGoogleCredentials struct {
RefreshToken string `json:"refresh_token"`
}
+func (o *SourceGoogleAdsUpdateGoogleCredentials) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAdsUpdateGoogleCredentials) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAdsUpdateGoogleCredentials) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAdsUpdateGoogleCredentials) GetDeveloperToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.DeveloperToken
+}
+
+func (o *SourceGoogleAdsUpdateGoogleCredentials) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAdsUpdateCustomQueries struct {
// A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to Google's documentation.
Query string `json:"query"`
@@ -26,9 +62,23 @@ type SourceGoogleAdsUpdateCustomQueries struct {
TableName string `json:"table_name"`
}
+func (o *SourceGoogleAdsUpdateCustomQueries) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceGoogleAdsUpdateCustomQueries) GetTableName() string {
+ if o == nil {
+ return ""
+ }
+ return o.TableName
+}
+
type SourceGoogleAdsUpdate struct {
// A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see Google's documentation.
- ConversionWindowDays *int64 `json:"conversion_window_days,omitempty"`
+ ConversionWindowDays *int64 `default:"14" json:"conversion_window_days"`
Credentials SourceGoogleAdsUpdateGoogleCredentials `json:"credentials"`
CustomQueries []SourceGoogleAdsUpdateCustomQueries `json:"custom_queries,omitempty"`
// Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our documentation.
@@ -40,3 +90,63 @@ type SourceGoogleAdsUpdate struct {
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set)
StartDate *types.Date `json:"start_date,omitempty"`
}
+
+func (s SourceGoogleAdsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAdsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAdsUpdate) GetConversionWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ConversionWindowDays
+}
+
+func (o *SourceGoogleAdsUpdate) GetCredentials() SourceGoogleAdsUpdateGoogleCredentials {
+ if o == nil {
+ return SourceGoogleAdsUpdateGoogleCredentials{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAdsUpdate) GetCustomQueries() []SourceGoogleAdsUpdateCustomQueries {
+ if o == nil {
+ return nil
+ }
+ return o.CustomQueries
+}
+
+func (o *SourceGoogleAdsUpdate) GetCustomerID() string {
+ if o == nil {
+ return ""
+ }
+ return o.CustomerID
+}
+
+func (o *SourceGoogleAdsUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGoogleAdsUpdate) GetLoginCustomerID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LoginCustomerID
+}
+
+func (o *SourceGoogleAdsUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go
old mode 100755
new mode 100644
index 7ce86a4bd..82f15651f
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationA
// SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication - Credentials for the service
type SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication struct {
- AuthType *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type,omitempty"`
// The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
CredentialsJSON string `json:"credentials_json"`
}
+func (s SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthenticationAuthTypeService.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
type SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType string
const (
@@ -69,7 +91,7 @@ func (e *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthTy
type SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Google Analytics developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Google Analytics developer application.
@@ -78,6 +100,49 @@ type SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) GetAuthType() *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthType {
+ return SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAnalyticsDataAPICredentialsType string
const (
@@ -111,21 +176,16 @@ func CreateSourceGoogleAnalyticsDataAPICredentialsSourceGoogleAnalyticsDataAPICr
}
func (u *SourceGoogleAnalyticsDataAPICredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication = sourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication
u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication
return nil
}
sourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth, "", true, true); err == nil {
u.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth = sourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth
u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth
return nil
@@ -135,15 +195,15 @@ func (u *SourceGoogleAnalyticsDataAPICredentials) UnmarshalJSON(data []byte) err
}
func (u SourceGoogleAnalyticsDataAPICredentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication)
+ if u.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth, "", true)
}
- if u.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth != nil {
- return json.Marshal(u.SourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth)
+ if u.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI string
@@ -179,7 +239,57 @@ type SourceGoogleAnalyticsDataAPI struct {
DateRangesStartDate types.Date `json:"date_ranges_start_date"`
// The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.
PropertyID string `json:"property_id"`
- SourceType SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI `json:"sourceType"`
+ sourceType SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI `const:"google-analytics-data-api" json:"sourceType"`
// The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"1" json:"window_in_days"`
+}
+
+func (s SourceGoogleAnalyticsDataAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetCredentials() *SourceGoogleAnalyticsDataAPICredentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetDateRangesStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.DateRangesStartDate
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetPropertyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.PropertyID
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetSourceType() SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI {
+ return SourceGoogleAnalyticsDataAPIGoogleAnalyticsDataAPIGoogleAnalyticsDataAPI
+}
+
+func (o *SourceGoogleAnalyticsDataAPI) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapicreaterequest.go
old mode 100755
new mode 100644
index 936d00b85..034affefd
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapicreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleAnalyticsDataAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAnalyticsDataAPICreateRequest) GetConfiguration() SourceGoogleAnalyticsDataAPI {
+ if o == nil {
+ return SourceGoogleAnalyticsDataAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAnalyticsDataAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAnalyticsDataAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleAnalyticsDataAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiputrequest.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiputrequest.go
old mode 100755
new mode 100644
index f037ee121..1666eec08
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleAnalyticsDataAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAnalyticsDataAPIPutRequest) GetConfiguration() SourceGoogleAnalyticsDataAPIUpdate {
+ if o == nil {
+ return SourceGoogleAnalyticsDataAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAnalyticsDataAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAnalyticsDataAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go
old mode 100755
new mode 100644
index 9cbd8b504..589037877
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentic
// SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication - Credentials for the service
type SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication struct {
- AuthType *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type,omitempty"`
// The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to the setup guide.
CredentialsJSON string `json:"credentials_json"`
}
+func (s SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthenticationAuthTypeService.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
type SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType string
const (
@@ -69,7 +91,7 @@ func (e *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth
type SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Google Analytics developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Google Analytics developer application.
@@ -78,6 +100,49 @@ type SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth str
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) GetAuthType() *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthType {
+ return SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAnalyticsDataAPIUpdateCredentialsType string
const (
@@ -111,21 +176,16 @@ func CreateSourceGoogleAnalyticsDataAPIUpdateCredentialsSourceGoogleAnalyticsDat
}
func (u *SourceGoogleAnalyticsDataAPIUpdateCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication = sourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication
u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication
return nil
}
sourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth, "", true, true); err == nil {
u.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth = sourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth
u.Type = SourceGoogleAnalyticsDataAPIUpdateCredentialsTypeSourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth
return nil
@@ -135,15 +195,15 @@ func (u *SourceGoogleAnalyticsDataAPIUpdateCredentials) UnmarshalJSON(data []byt
}
func (u SourceGoogleAnalyticsDataAPIUpdateCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication)
+ if u.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth, "", true)
}
- if u.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth != nil {
- return json.Marshal(u.SourceGoogleAnalyticsDataAPIUpdateCredentialsAuthenticateViaGoogleOauth)
+ if u.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIUpdateCredentialsServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleAnalyticsDataAPIUpdate struct {
@@ -156,5 +216,51 @@ type SourceGoogleAnalyticsDataAPIUpdate struct {
// The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the Google Analytics documentation to locate your property ID.
PropertyID string `json:"property_id"`
// The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in the documentation.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"1" json:"window_in_days"`
+}
+
+func (s SourceGoogleAnalyticsDataAPIUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsDataAPIUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdate) GetCredentials() *SourceGoogleAnalyticsDataAPIUpdateCredentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdate) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdate) GetDateRangesStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.DateRangesStartDate
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdate) GetPropertyID() string {
+ if o == nil {
+ return ""
+ }
+ return o.PropertyID
+}
+
+func (o *SourceGoogleAnalyticsDataAPIUpdate) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go
old mode 100755
new mode 100644
index 7a376a55d..933eb45c0
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthTy
// SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication - Credentials for the service
type SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication struct {
- AuthType *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type,omitempty"`
// The JSON key of the service account to use for authorization
CredentialsJSON string `json:"credentials_json"`
}
+func (s SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthenticationAuthTypeService.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
type SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType string
const (
@@ -69,7 +91,7 @@ func (e *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType) U
type SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Google Analytics developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Google Analytics developer application.
@@ -78,6 +100,49 @@ type SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) GetAuthType() *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthType {
+ return SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAnalyticsV4CredentialsType string
const (
@@ -111,21 +176,16 @@ func CreateSourceGoogleAnalyticsV4CredentialsSourceGoogleAnalyticsV4CredentialsS
}
func (u *SourceGoogleAnalyticsV4Credentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication = sourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication
u.Type = SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication
return nil
}
sourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth, "", true, true); err == nil {
u.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth = sourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth
u.Type = SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth
return nil
@@ -135,15 +195,15 @@ func (u *SourceGoogleAnalyticsV4Credentials) UnmarshalJSON(data []byte) error {
}
func (u SourceGoogleAnalyticsV4Credentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication)
+ if u.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth, "", true)
}
- if u.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth != nil {
- return json.Marshal(u.SourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth)
+ if u.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleAnalyticsV4GoogleAnalyticsV4 string
@@ -175,11 +235,61 @@ type SourceGoogleAnalyticsV4 struct {
Credentials *SourceGoogleAnalyticsV4Credentials `json:"credentials,omitempty"`
// A JSON array describing the custom reports you want to sync from Google Analytics. See the docs for more information about the exact format you can use to fill out this field.
CustomReports *string `json:"custom_reports,omitempty"`
- SourceType SourceGoogleAnalyticsV4GoogleAnalyticsV4 `json:"sourceType"`
+ sourceType SourceGoogleAnalyticsV4GoogleAnalyticsV4 `const:"google-analytics-v4" json:"sourceType"`
// The date in the format YYYY-MM-DD. Any data before this date will not be replicated.
StartDate types.Date `json:"start_date"`
// The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer.
ViewID string `json:"view_id"`
// The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"1" json:"window_in_days"`
+}
+
+func (s SourceGoogleAnalyticsV4) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4) GetCredentials() *SourceGoogleAnalyticsV4Credentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAnalyticsV4) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleAnalyticsV4) GetSourceType() SourceGoogleAnalyticsV4GoogleAnalyticsV4 {
+ return SourceGoogleAnalyticsV4GoogleAnalyticsV4GoogleAnalyticsV4
+}
+
+func (o *SourceGoogleAnalyticsV4) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceGoogleAnalyticsV4) GetViewID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ViewID
+}
+
+func (o *SourceGoogleAnalyticsV4) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4createrequest.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4createrequest.go
old mode 100755
new mode 100644
index ffde30a8d..4ae9d6e27
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4createrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4createrequest.go
@@ -9,3 +9,31 @@ type SourceGoogleAnalyticsV4CreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAnalyticsV4CreateRequest) GetConfiguration() SourceGoogleAnalyticsV4 {
+ if o == nil {
+ return SourceGoogleAnalyticsV4{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAnalyticsV4CreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAnalyticsV4CreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleAnalyticsV4CreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4putrequest.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4putrequest.go
old mode 100755
new mode 100644
index be06730b3..8674d290b
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4putrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4putrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleAnalyticsV4PutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleAnalyticsV4PutRequest) GetConfiguration() SourceGoogleAnalyticsV4Update {
+ if o == nil {
+ return SourceGoogleAnalyticsV4Update{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleAnalyticsV4PutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleAnalyticsV4PutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go
old mode 100755
new mode 100644
index 3889f22a0..7beba224e
--- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication
// SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication - Credentials for the service
type SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication struct {
- AuthType *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type,omitempty"`
// The JSON key of the service account to use for authorization
CredentialsJSON string `json:"credentials_json"`
}
+func (s SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication) GetAuthType() *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthenticationAuthTypeService.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
type SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType string
const (
@@ -69,7 +91,7 @@ func (e *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthT
type SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType `json:"auth_type,omitempty"`
+ authType *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Google Analytics developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Google Analytics developer application.
@@ -78,6 +100,49 @@ type SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) GetAuthType() *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthType {
+ return SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleAnalyticsV4UpdateCredentialsType string
const (
@@ -111,21 +176,16 @@ func CreateSourceGoogleAnalyticsV4UpdateCredentialsSourceGoogleAnalyticsV4Update
}
func (u *SourceGoogleAnalyticsV4UpdateCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication = sourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication
u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication
return nil
}
sourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth, "", true, true); err == nil {
u.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth = sourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth
u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth
return nil
@@ -135,15 +195,15 @@ func (u *SourceGoogleAnalyticsV4UpdateCredentials) UnmarshalJSON(data []byte) er
}
func (u SourceGoogleAnalyticsV4UpdateCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication)
+ if u.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth, "", true)
}
- if u.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth != nil {
- return json.Marshal(u.SourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth)
+ if u.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleAnalyticsV4Update struct {
@@ -156,5 +216,51 @@ type SourceGoogleAnalyticsV4Update struct {
// The ID for the Google Analytics View you want to fetch data from. This can be found from the Google Analytics Account Explorer.
ViewID string `json:"view_id"`
// The time increment used by the connector when requesting data from the Google Analytics API. More information is available in the the docs. The bigger this value is, the faster the sync will be, but the more likely that sampling will be applied to your data, potentially causing inaccuracies in the returned results. We recommend setting this to 1 unless you have a hard requirement to make the sync faster at the expense of accuracy. The minimum allowed value for this field is 1, and the maximum is 364.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"1" json:"window_in_days"`
+}
+
+func (s SourceGoogleAnalyticsV4Update) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleAnalyticsV4Update) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleAnalyticsV4Update) GetCredentials() *SourceGoogleAnalyticsV4UpdateCredentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleAnalyticsV4Update) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleAnalyticsV4Update) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceGoogleAnalyticsV4Update) GetViewID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ViewID
+}
+
+func (o *SourceGoogleAnalyticsV4Update) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectory.go b/internal/sdk/pkg/models/shared/sourcegoogledirectory.go
old mode 100755
new mode 100644
index d794413b5..dff901936
--- a/internal/sdk/pkg/models/shared/sourcegoogledirectory.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogledirectory.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,11 +39,40 @@ type SourceGoogleDirectoryGoogleCredentialsServiceAccountKey struct {
// The contents of the JSON service account key. See the docs for more information on how to generate this key.
CredentialsJSON string `json:"credentials_json"`
// Authentication Scenario
- CredentialsTitle *SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitle `json:"credentials_title,omitempty"`
+ credentialsTitle *SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitle `const:"Service accounts" json:"credentials_title,omitempty"`
// The email of the user, which has permissions to access the Google Workspace Admin APIs.
Email string `json:"email"`
}
+func (s SourceGoogleDirectoryGoogleCredentialsServiceAccountKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleDirectoryGoogleCredentialsServiceAccountKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsServiceAccountKey) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsServiceAccountKey) GetCredentialsTitle() *SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitle {
+ return SourceGoogleDirectoryGoogleCredentialsServiceAccountKeyCredentialsTitleServiceAccounts.ToPointer()
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsServiceAccountKey) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
// SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle - Authentication Scenario
type SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle string
@@ -76,11 +105,47 @@ type SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth struct {
// The Client Secret of the developer application.
ClientSecret string `json:"client_secret"`
// Authentication Scenario
- CredentialsTitle *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle `json:"credentials_title,omitempty"`
+ credentialsTitle *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle `const:"Web server app" json:"credentials_title,omitempty"`
// The Token for obtaining a new access token.
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) GetCredentialsTitle() *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle {
+ return SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuthCredentialsTitleWebServerApp.ToPointer()
+}
+
+func (o *SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleDirectoryGoogleCredentialsType string
const (
@@ -114,21 +179,16 @@ func CreateSourceGoogleDirectoryGoogleCredentialsSourceGoogleDirectoryGoogleCred
}
func (u *SourceGoogleDirectoryGoogleCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleDirectoryGoogleCredentialsServiceAccountKey := new(SourceGoogleDirectoryGoogleCredentialsServiceAccountKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleDirectoryGoogleCredentialsServiceAccountKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleDirectoryGoogleCredentialsServiceAccountKey, "", true, true); err == nil {
u.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey = sourceGoogleDirectoryGoogleCredentialsServiceAccountKey
u.Type = SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectoryGoogleCredentialsServiceAccountKey
return nil
}
sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth := new(SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth, "", true, true); err == nil {
u.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth = sourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth
u.Type = SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth
return nil
@@ -138,15 +198,15 @@ func (u *SourceGoogleDirectoryGoogleCredentials) UnmarshalJSON(data []byte) erro
}
func (u SourceGoogleDirectoryGoogleCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey != nil {
- return json.Marshal(u.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey)
+ if u.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth, "", true)
}
- if u.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth != nil {
- return json.Marshal(u.SourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth)
+ if u.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey != nil {
+ return utils.MarshalJSON(u.SourceGoogleDirectoryGoogleCredentialsServiceAccountKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleDirectoryGoogleDirectory string
@@ -176,5 +236,27 @@ func (e *SourceGoogleDirectoryGoogleDirectory) UnmarshalJSON(data []byte) error
type SourceGoogleDirectory struct {
// Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios.
Credentials *SourceGoogleDirectoryGoogleCredentials `json:"credentials,omitempty"`
- SourceType SourceGoogleDirectoryGoogleDirectory `json:"sourceType"`
+ sourceType SourceGoogleDirectoryGoogleDirectory `const:"google-directory" json:"sourceType"`
+}
+
+func (s SourceGoogleDirectory) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleDirectory) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleDirectory) GetCredentials() *SourceGoogleDirectoryGoogleCredentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleDirectory) GetSourceType() SourceGoogleDirectoryGoogleDirectory {
+ return SourceGoogleDirectoryGoogleDirectoryGoogleDirectory
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectorycreaterequest.go b/internal/sdk/pkg/models/shared/sourcegoogledirectorycreaterequest.go
old mode 100755
new mode 100644
index 0683f8e59..7c2fd6317
--- a/internal/sdk/pkg/models/shared/sourcegoogledirectorycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogledirectorycreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleDirectoryCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleDirectoryCreateRequest) GetConfiguration() SourceGoogleDirectory {
+ if o == nil {
+ return SourceGoogleDirectory{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleDirectoryCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleDirectoryCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleDirectoryCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectoryputrequest.go b/internal/sdk/pkg/models/shared/sourcegoogledirectoryputrequest.go
old mode 100755
new mode 100644
index 7069e3c24..37e306e6f
--- a/internal/sdk/pkg/models/shared/sourcegoogledirectoryputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogledirectoryputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleDirectoryPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleDirectoryPutRequest) GetConfiguration() SourceGoogleDirectoryUpdate {
+ if o == nil {
+ return SourceGoogleDirectoryUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleDirectoryPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleDirectoryPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go b/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go
old mode 100755
new mode 100644
index cc2e16331..b6b4fe683
--- a/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -39,11 +39,40 @@ type SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey struct {
// The contents of the JSON service account key. See the docs for more information on how to generate this key.
CredentialsJSON string `json:"credentials_json"`
// Authentication Scenario
- CredentialsTitle *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitle `json:"credentials_title,omitempty"`
+ credentialsTitle *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitle `const:"Service accounts" json:"credentials_title,omitempty"`
// The email of the user, which has permissions to access the Google Workspace Admin APIs.
Email string `json:"email"`
}
+func (s SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey) GetCredentialsTitle() *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitle {
+ return SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKeyCredentialsTitleServiceAccounts.ToPointer()
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
// SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle - Authentication Scenario
type SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle string
@@ -76,11 +105,47 @@ type SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth struct {
// The Client Secret of the developer application.
ClientSecret string `json:"client_secret"`
// Authentication Scenario
- CredentialsTitle *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle `json:"credentials_title,omitempty"`
+ credentialsTitle *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle `const:"Web server app" json:"credentials_title,omitempty"`
// The Token for obtaining a new access token.
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) GetCredentialsTitle() *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitle {
+ return SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuthCredentialsTitleWebServerApp.ToPointer()
+}
+
+func (o *SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleDirectoryUpdateGoogleCredentialsType string
const (
@@ -114,21 +179,16 @@ func CreateSourceGoogleDirectoryUpdateGoogleCredentialsSourceGoogleDirectoryUpda
}
func (u *SourceGoogleDirectoryUpdateGoogleCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey := new(SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey, "", true, true); err == nil {
u.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey = sourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey
u.Type = SourceGoogleDirectoryUpdateGoogleCredentialsTypeSourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey
return nil
}
sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth := new(SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth, "", true, true); err == nil {
u.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth = sourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth
u.Type = SourceGoogleDirectoryUpdateGoogleCredentialsTypeSourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth
return nil
@@ -138,18 +198,25 @@ func (u *SourceGoogleDirectoryUpdateGoogleCredentials) UnmarshalJSON(data []byte
}
func (u SourceGoogleDirectoryUpdateGoogleCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey != nil {
- return json.Marshal(u.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey)
+ if u.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth, "", true)
}
- if u.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth != nil {
- return json.Marshal(u.SourceGoogleDirectoryUpdateGoogleCredentialsSignInViaGoogleOAuth)
+ if u.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey != nil {
+ return utils.MarshalJSON(u.SourceGoogleDirectoryUpdateGoogleCredentialsServiceAccountKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleDirectoryUpdate struct {
// Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application and Service accounts scenarios.
Credentials *SourceGoogleDirectoryUpdateGoogleCredentials `json:"credentials,omitempty"`
}
+
+func (o *SourceGoogleDirectoryUpdate) GetCredentials() *SourceGoogleDirectoryUpdateGoogleCredentials {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsights.go b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsights.go
old mode 100755
new mode 100644
index e956e6e02..ccfc56a12
--- a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsights.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsights.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -99,9 +100,52 @@ type SourceGooglePagespeedInsights struct {
APIKey *string `json:"api_key,omitempty"`
// Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo".
Categories []SourceGooglePagespeedInsightsCategories `json:"categories"`
- SourceType SourceGooglePagespeedInsightsGooglePagespeedInsights `json:"sourceType"`
+ sourceType SourceGooglePagespeedInsightsGooglePagespeedInsights `const:"google-pagespeed-insights" json:"sourceType"`
// The analyses strategy to use. Either "desktop" or "mobile".
Strategies []SourceGooglePagespeedInsightsStrategies `json:"strategies"`
// The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain
Urls []string `json:"urls"`
}
+
+func (s SourceGooglePagespeedInsights) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGooglePagespeedInsights) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGooglePagespeedInsights) GetAPIKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIKey
+}
+
+func (o *SourceGooglePagespeedInsights) GetCategories() []SourceGooglePagespeedInsightsCategories {
+ if o == nil {
+ return []SourceGooglePagespeedInsightsCategories{}
+ }
+ return o.Categories
+}
+
+func (o *SourceGooglePagespeedInsights) GetSourceType() SourceGooglePagespeedInsightsGooglePagespeedInsights {
+ return SourceGooglePagespeedInsightsGooglePagespeedInsightsGooglePagespeedInsights
+}
+
+func (o *SourceGooglePagespeedInsights) GetStrategies() []SourceGooglePagespeedInsightsStrategies {
+ if o == nil {
+ return []SourceGooglePagespeedInsightsStrategies{}
+ }
+ return o.Strategies
+}
+
+func (o *SourceGooglePagespeedInsights) GetUrls() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.Urls
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightscreaterequest.go
old mode 100755
new mode 100644
index 281736516..1f456af5a
--- a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGooglePagespeedInsightsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGooglePagespeedInsightsCreateRequest) GetConfiguration() SourceGooglePagespeedInsights {
+ if o == nil {
+ return SourceGooglePagespeedInsights{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGooglePagespeedInsightsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGooglePagespeedInsightsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGooglePagespeedInsightsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsputrequest.go b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsputrequest.go
old mode 100755
new mode 100644
index fa504b269..2a9ceaa5f
--- a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsputrequest.go
@@ -7,3 +7,24 @@ type SourceGooglePagespeedInsightsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGooglePagespeedInsightsPutRequest) GetConfiguration() SourceGooglePagespeedInsightsUpdate {
+ if o == nil {
+ return SourceGooglePagespeedInsightsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGooglePagespeedInsightsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGooglePagespeedInsightsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsupdate.go b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsupdate.go
old mode 100755
new mode 100644
index 88e7c88b8..1daf347d6
--- a/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglepagespeedinsightsupdate.go
@@ -80,3 +80,31 @@ type SourceGooglePagespeedInsightsUpdate struct {
// The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain
Urls []string `json:"urls"`
}
+
+func (o *SourceGooglePagespeedInsightsUpdate) GetAPIKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIKey
+}
+
+func (o *SourceGooglePagespeedInsightsUpdate) GetCategories() []SourceGooglePagespeedInsightsUpdateCategories {
+ if o == nil {
+ return []SourceGooglePagespeedInsightsUpdateCategories{}
+ }
+ return o.Categories
+}
+
+func (o *SourceGooglePagespeedInsightsUpdate) GetStrategies() []SourceGooglePagespeedInsightsUpdateStrategies {
+ if o == nil {
+ return []SourceGooglePagespeedInsightsUpdateStrategies{}
+ }
+ return o.Strategies
+}
+
+func (o *SourceGooglePagespeedInsightsUpdate) GetUrls() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.Urls
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go
old mode 100755
new mode 100644
index 7c9e662f0..40187dbf8
--- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticat
}
type SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication struct {
- AuthType SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type"`
// The email of the user which has permissions to access the Google Workspace Admin APIs.
Email string `json:"email"`
// The JSON key of the service account to use for authorization. Read more here.
ServiceAccountInfo string `json:"service_account_info"`
}
+func (s SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication) GetAuthType() SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthenticationAuthTypeService
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication) GetServiceAccountInfo() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccountInfo
+}
+
type SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType string
const (
@@ -69,7 +98,7 @@ func (e *SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType) UnmarshalJSON
type SourceGoogleSearchConsoleAuthenticationTypeOAuth struct {
// Access token for making authenticated requests. Read more here.
AccessToken *string `json:"access_token,omitempty"`
- AuthType SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType `json:"auth_type"`
+ authType SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType `const:"Client" json:"auth_type"`
// The client ID of your Google Search Console developer application. Read more here.
ClientID string `json:"client_id"`
// The client secret of your Google Search Console developer application. Read more here.
@@ -78,6 +107,49 @@ type SourceGoogleSearchConsoleAuthenticationTypeOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleSearchConsoleAuthenticationTypeOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsoleAuthenticationTypeOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeOAuth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeOAuth) GetAuthType() SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthType {
+ return SourceGoogleSearchConsoleAuthenticationTypeOAuthAuthTypeClient
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleSearchConsoleAuthenticationTypeOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleSearchConsoleAuthenticationTypeType string
const (
@@ -111,21 +183,16 @@ func CreateSourceGoogleSearchConsoleAuthenticationTypeSourceGoogleSearchConsoleA
}
func (u *SourceGoogleSearchConsoleAuthenticationType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication := new(SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication = sourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication
u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication
return nil
}
sourceGoogleSearchConsoleAuthenticationTypeOAuth := new(SourceGoogleSearchConsoleAuthenticationTypeOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSearchConsoleAuthenticationTypeOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleAuthenticationTypeOAuth, "", true, true); err == nil {
u.SourceGoogleSearchConsoleAuthenticationTypeOAuth = sourceGoogleSearchConsoleAuthenticationTypeOAuth
u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleAuthenticationTypeOAuth
return nil
@@ -135,15 +202,15 @@ func (u *SourceGoogleSearchConsoleAuthenticationType) UnmarshalJSON(data []byte)
}
func (u SourceGoogleSearchConsoleAuthenticationType) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication)
+ if u.SourceGoogleSearchConsoleAuthenticationTypeOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleSearchConsoleAuthenticationTypeOAuth, "", true)
}
- if u.SourceGoogleSearchConsoleAuthenticationTypeOAuth != nil {
- return json.Marshal(u.SourceGoogleSearchConsoleAuthenticationTypeOAuth)
+ if u.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceGoogleSearchConsoleCustomReportConfigValidEnums - An enumeration of dimensions.
@@ -190,6 +257,20 @@ type SourceGoogleSearchConsoleCustomReportConfig struct {
Name string `json:"name"`
}
+func (o *SourceGoogleSearchConsoleCustomReportConfig) GetDimensions() []SourceGoogleSearchConsoleCustomReportConfigValidEnums {
+ if o == nil {
+ return []SourceGoogleSearchConsoleCustomReportConfigValidEnums{}
+ }
+ return o.Dimensions
+}
+
+func (o *SourceGoogleSearchConsoleCustomReportConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
// SourceGoogleSearchConsoleDataFreshness - If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation.
type SourceGoogleSearchConsoleDataFreshness string
@@ -249,12 +330,76 @@ type SourceGoogleSearchConsole struct {
// You can add your Custom Analytics report by creating one.
CustomReportsArray []SourceGoogleSearchConsoleCustomReportConfig `json:"custom_reports_array,omitempty"`
// If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation.
- DataState *SourceGoogleSearchConsoleDataFreshness `json:"data_state,omitempty"`
+ DataState *SourceGoogleSearchConsoleDataFreshness `default:"final" json:"data_state"`
// UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward.
EndDate *types.Date `json:"end_date,omitempty"`
// The URLs of the website property attached to your GSC account. Learn more about properties here.
SiteUrls []string `json:"site_urls"`
- SourceType SourceGoogleSearchConsoleGoogleSearchConsole `json:"sourceType"`
+ sourceType SourceGoogleSearchConsoleGoogleSearchConsole `const:"google-search-console" json:"sourceType"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceGoogleSearchConsole) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsole) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsole) GetAuthorization() SourceGoogleSearchConsoleAuthenticationType {
+ if o == nil {
+ return SourceGoogleSearchConsoleAuthenticationType{}
+ }
+ return o.Authorization
+}
+
+func (o *SourceGoogleSearchConsole) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleSearchConsole) GetCustomReportsArray() []SourceGoogleSearchConsoleCustomReportConfig {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsArray
+}
+
+func (o *SourceGoogleSearchConsole) GetDataState() *SourceGoogleSearchConsoleDataFreshness {
+ if o == nil {
+ return nil
+ }
+ return o.DataState
+}
+
+func (o *SourceGoogleSearchConsole) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGoogleSearchConsole) GetSiteUrls() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.SiteUrls
+}
+
+func (o *SourceGoogleSearchConsole) GetSourceType() SourceGoogleSearchConsoleGoogleSearchConsole {
+ return SourceGoogleSearchConsoleGoogleSearchConsoleGoogleSearchConsole
+}
+
+func (o *SourceGoogleSearchConsole) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsolecreaterequest.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsolecreaterequest.go
old mode 100755
new mode 100644
index c1eb08057..0301a0a7a
--- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsolecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsolecreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleSearchConsoleCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleSearchConsoleCreateRequest) GetConfiguration() SourceGoogleSearchConsole {
+ if o == nil {
+ return SourceGoogleSearchConsole{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleSearchConsoleCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleSearchConsoleCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleSearchConsoleCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleputrequest.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleputrequest.go
old mode 100755
new mode 100644
index af1449419..471aec515
--- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleSearchConsolePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleSearchConsolePutRequest) GetConfiguration() SourceGoogleSearchConsoleUpdate {
+ if o == nil {
+ return SourceGoogleSearchConsoleUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleSearchConsolePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleSearchConsolePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go
old mode 100755
new mode 100644
index cd5ebed57..a19a4e42f
--- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,13 +35,42 @@ func (e *SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthe
}
type SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication struct {
- AuthType SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type"`
// The email of the user which has permissions to access the Google Workspace Admin APIs.
Email string `json:"email"`
// The JSON key of the service account to use for authorization. Read more here.
ServiceAccountInfo string `json:"service_account_info"`
}
+func (s SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication) GetAuthType() SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthenticationAuthTypeService
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication) GetServiceAccountInfo() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccountInfo
+}
+
type SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType string
const (
@@ -69,7 +98,7 @@ func (e *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType) Unmarsh
type SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth struct {
// Access token for making authenticated requests. Read more here.
AccessToken *string `json:"access_token,omitempty"`
- AuthType SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType `json:"auth_type"`
+ authType SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType `const:"Client" json:"auth_type"`
// The client ID of your Google Search Console developer application. Read more here.
ClientID string `json:"client_id"`
// The client secret of your Google Search Console developer application. Read more here.
@@ -78,6 +107,49 @@ type SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) GetAuthType() SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthType {
+ return SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuthAuthTypeClient
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleSearchConsoleUpdateAuthenticationTypeType string
const (
@@ -111,21 +183,16 @@ func CreateSourceGoogleSearchConsoleUpdateAuthenticationTypeSourceGoogleSearchCo
}
func (u *SourceGoogleSearchConsoleUpdateAuthenticationType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication := new(SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication = sourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication
u.Type = SourceGoogleSearchConsoleUpdateAuthenticationTypeTypeSourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication
return nil
}
sourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth := new(SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth, "", true, true); err == nil {
u.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth = sourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth
u.Type = SourceGoogleSearchConsoleUpdateAuthenticationTypeTypeSourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth
return nil
@@ -135,15 +202,15 @@ func (u *SourceGoogleSearchConsoleUpdateAuthenticationType) UnmarshalJSON(data [
}
func (u SourceGoogleSearchConsoleUpdateAuthenticationType) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication)
+ if u.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth, "", true)
}
- if u.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth != nil {
- return json.Marshal(u.SourceGoogleSearchConsoleUpdateAuthenticationTypeOAuth)
+ if u.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleSearchConsoleUpdateAuthenticationTypeServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceGoogleSearchConsoleUpdateCustomReportConfigValidEnums - An enumeration of dimensions.
@@ -190,6 +257,20 @@ type SourceGoogleSearchConsoleUpdateCustomReportConfig struct {
Name string `json:"name"`
}
+func (o *SourceGoogleSearchConsoleUpdateCustomReportConfig) GetDimensions() []SourceGoogleSearchConsoleUpdateCustomReportConfigValidEnums {
+ if o == nil {
+ return []SourceGoogleSearchConsoleUpdateCustomReportConfigValidEnums{}
+ }
+ return o.Dimensions
+}
+
+func (o *SourceGoogleSearchConsoleUpdateCustomReportConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
// SourceGoogleSearchConsoleUpdateDataFreshness - If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation.
type SourceGoogleSearchConsoleUpdateDataFreshness string
@@ -225,11 +306,71 @@ type SourceGoogleSearchConsoleUpdate struct {
// You can add your Custom Analytics report by creating one.
CustomReportsArray []SourceGoogleSearchConsoleUpdateCustomReportConfig `json:"custom_reports_array,omitempty"`
// If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation.
- DataState *SourceGoogleSearchConsoleUpdateDataFreshness `json:"data_state,omitempty"`
+ DataState *SourceGoogleSearchConsoleUpdateDataFreshness `default:"final" json:"data_state"`
// UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward.
EndDate *types.Date `json:"end_date,omitempty"`
// The URLs of the website property attached to your GSC account. Learn more about properties here.
SiteUrls []string `json:"site_urls"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceGoogleSearchConsoleUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSearchConsoleUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetAuthorization() SourceGoogleSearchConsoleUpdateAuthenticationType {
+ if o == nil {
+ return SourceGoogleSearchConsoleUpdateAuthenticationType{}
+ }
+ return o.Authorization
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetCustomReports() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReports
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetCustomReportsArray() []SourceGoogleSearchConsoleUpdateCustomReportConfig {
+ if o == nil {
+ return nil
+ }
+ return o.CustomReportsArray
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetDataState() *SourceGoogleSearchConsoleUpdateDataFreshness {
+ if o == nil {
+ return nil
+ }
+ return o.DataState
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetSiteUrls() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.SiteUrls
+}
+
+func (o *SourceGoogleSearchConsoleUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheets.go b/internal/sdk/pkg/models/shared/sourcegooglesheets.go
old mode 100755
new mode 100644
index b2b5941e8..7d5d0e681
--- a/internal/sdk/pkg/models/shared/sourcegooglesheets.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesheets.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,11 +35,33 @@ func (e *SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthType
// SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication - Credentials for connecting to the Google Sheets API
type SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication struct {
- AuthType SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type"`
// The JSON key of the service account to use for authorization. Read more here.
ServiceAccountInfo string `json:"service_account_info"`
}
+func (s SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication) GetAuthType() SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleSheetsAuthenticationServiceAccountKeyAuthenticationAuthTypeService
+}
+
+func (o *SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication) GetServiceAccountInfo() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccountInfo
+}
+
type SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType string
const (
@@ -66,7 +88,7 @@ func (e *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType) Unm
// SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth - Credentials for connecting to the Google Sheets API
type SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth struct {
- AuthType SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType `json:"auth_type"`
+ authType SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType `const:"Client" json:"auth_type"`
// Enter your Google application's Client ID. See Google's documentation for more information.
ClientID string `json:"client_id"`
// Enter your Google application's Client Secret. See Google's documentation for more information.
@@ -75,6 +97,42 @@ type SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) GetAuthType() SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthType {
+ return SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuthAuthTypeClient
+}
+
+func (o *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleSheetsAuthenticationType string
const (
@@ -108,21 +166,16 @@ func CreateSourceGoogleSheetsAuthenticationSourceGoogleSheetsAuthenticationServi
}
func (u *SourceGoogleSheetsAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication := new(SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication = sourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication
u.Type = SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication
return nil
}
sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth := new(SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth, "", true, true); err == nil {
u.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth = sourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth
u.Type = SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth
return nil
@@ -132,15 +185,15 @@ func (u *SourceGoogleSheetsAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceGoogleSheetsAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication)
+ if u.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth, "", true)
}
- if u.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth != nil {
- return json.Marshal(u.SourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth)
+ if u.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleSheetsGoogleSheets string
@@ -171,8 +224,44 @@ type SourceGoogleSheets struct {
// Credentials for connecting to the Google Sheets API
Credentials SourceGoogleSheetsAuthentication `json:"credentials"`
// Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based.
- NamesConversion *bool `json:"names_conversion,omitempty"`
- SourceType SourceGoogleSheetsGoogleSheets `json:"sourceType"`
+ NamesConversion *bool `default:"false" json:"names_conversion"`
+ sourceType SourceGoogleSheetsGoogleSheets `const:"google-sheets" json:"sourceType"`
// Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.
SpreadsheetID string `json:"spreadsheet_id"`
}
+
+func (s SourceGoogleSheets) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheets) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheets) GetCredentials() SourceGoogleSheetsAuthentication {
+ if o == nil {
+ return SourceGoogleSheetsAuthentication{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleSheets) GetNamesConversion() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NamesConversion
+}
+
+func (o *SourceGoogleSheets) GetSourceType() SourceGoogleSheetsGoogleSheets {
+ return SourceGoogleSheetsGoogleSheetsGoogleSheets
+}
+
+func (o *SourceGoogleSheets) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheetscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegooglesheetscreaterequest.go
old mode 100755
new mode 100644
index 3eef2454f..5333d6c5c
--- a/internal/sdk/pkg/models/shared/sourcegooglesheetscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesheetscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleSheetsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleSheetsCreateRequest) GetConfiguration() SourceGoogleSheets {
+ if o == nil {
+ return SourceGoogleSheets{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleSheetsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleSheetsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleSheetsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheetsputrequest.go b/internal/sdk/pkg/models/shared/sourcegooglesheetsputrequest.go
old mode 100755
new mode 100644
index f614731ae..7e85c788d
--- a/internal/sdk/pkg/models/shared/sourcegooglesheetsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesheetsputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleSheetsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleSheetsPutRequest) GetConfiguration() SourceGoogleSheetsUpdate {
+ if o == nil {
+ return SourceGoogleSheetsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleSheetsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleSheetsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go b/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go
old mode 100755
new mode 100644
index 88fb73b21..1d74c5c9e
--- a/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,11 +35,33 @@ func (e *SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAu
// SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication - Credentials for connecting to the Google Sheets API
type SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication struct {
- AuthType SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAuthType `const:"Service" json:"auth_type"`
// The JSON key of the service account to use for authorization. Read more here.
ServiceAccountInfo string `json:"service_account_info"`
}
+func (s SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication) GetAuthType() SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAuthType {
+ return SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthenticationAuthTypeService
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication) GetServiceAccountInfo() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceAccountInfo
+}
+
type SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthType string
const (
@@ -66,7 +88,7 @@ func (e *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthTyp
// SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth - Credentials for connecting to the Google Sheets API
type SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth struct {
- AuthType SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthType `json:"auth_type"`
+ authType SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthType `const:"Client" json:"auth_type"`
// Enter your Google application's Client ID. See Google's documentation for more information.
ClientID string `json:"client_id"`
// Enter your Google application's Client Secret. See Google's documentation for more information.
@@ -75,6 +97,42 @@ type SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) GetAuthType() SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthType {
+ return SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuthAuthTypeClient
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceGoogleSheetsUpdateAuthenticationType string
const (
@@ -108,21 +166,16 @@ func CreateSourceGoogleSheetsUpdateAuthenticationSourceGoogleSheetsUpdateAuthent
}
func (u *SourceGoogleSheetsUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication := new(SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication, "", true, true); err == nil {
u.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication = sourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication
u.Type = SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication
return nil
}
sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth := new(SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth, "", true, true); err == nil {
u.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth = sourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth
u.Type = SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth
return nil
@@ -132,22 +185,54 @@ func (u *SourceGoogleSheetsUpdateAuthentication) UnmarshalJSON(data []byte) erro
}
func (u SourceGoogleSheetsUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication != nil {
- return json.Marshal(u.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication)
+ if u.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth != nil {
+ return utils.MarshalJSON(u.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth, "", true)
}
- if u.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth != nil {
- return json.Marshal(u.SourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth)
+ if u.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication != nil {
+ return utils.MarshalJSON(u.SourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceGoogleSheetsUpdate struct {
// Credentials for connecting to the Google Sheets API
Credentials SourceGoogleSheetsUpdateAuthentication `json:"credentials"`
// Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based.
- NamesConversion *bool `json:"names_conversion,omitempty"`
+ NamesConversion *bool `default:"false" json:"names_conversion"`
// Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.
SpreadsheetID string `json:"spreadsheet_id"`
}
+
+func (s SourceGoogleSheetsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleSheetsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleSheetsUpdate) GetCredentials() SourceGoogleSheetsUpdateAuthentication {
+ if o == nil {
+ return SourceGoogleSheetsUpdateAuthentication{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceGoogleSheetsUpdate) GetNamesConversion() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NamesConversion
+}
+
+func (o *SourceGoogleSheetsUpdate) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglewebfonts.go b/internal/sdk/pkg/models/shared/sourcegooglewebfonts.go
old mode 100755
new mode 100644
index f982f198d..e6036768f
--- a/internal/sdk/pkg/models/shared/sourcegooglewebfonts.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglewebfonts.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -40,5 +41,48 @@ type SourceGoogleWebfonts struct {
PrettyPrint *string `json:"prettyPrint,omitempty"`
// Optional, to find how to sort
Sort *string `json:"sort,omitempty"`
- SourceType SourceGoogleWebfontsGoogleWebfonts `json:"sourceType"`
+ sourceType SourceGoogleWebfontsGoogleWebfonts `const:"google-webfonts" json:"sourceType"`
+}
+
+func (s SourceGoogleWebfonts) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleWebfonts) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleWebfonts) GetAlt() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Alt
+}
+
+func (o *SourceGoogleWebfonts) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGoogleWebfonts) GetPrettyPrint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrettyPrint
+}
+
+func (o *SourceGoogleWebfonts) GetSort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
+
+func (o *SourceGoogleWebfonts) GetSourceType() SourceGoogleWebfontsGoogleWebfonts {
+ return SourceGoogleWebfontsGoogleWebfontsGoogleWebfonts
}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglewebfontscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegooglewebfontscreaterequest.go
old mode 100755
new mode 100644
index 89395ebee..02d7e7a6d
--- a/internal/sdk/pkg/models/shared/sourcegooglewebfontscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglewebfontscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleWebfontsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleWebfontsCreateRequest) GetConfiguration() SourceGoogleWebfonts {
+ if o == nil {
+ return SourceGoogleWebfonts{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleWebfontsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleWebfontsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleWebfontsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglewebfontsputrequest.go b/internal/sdk/pkg/models/shared/sourcegooglewebfontsputrequest.go
old mode 100755
new mode 100644
index fe344e9cc..992c5f753
--- a/internal/sdk/pkg/models/shared/sourcegooglewebfontsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglewebfontsputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleWebfontsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleWebfontsPutRequest) GetConfiguration() SourceGoogleWebfontsUpdate {
+ if o == nil {
+ return SourceGoogleWebfontsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleWebfontsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleWebfontsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegooglewebfontsupdate.go b/internal/sdk/pkg/models/shared/sourcegooglewebfontsupdate.go
old mode 100755
new mode 100644
index f03ff5d57..5c4a4659e
--- a/internal/sdk/pkg/models/shared/sourcegooglewebfontsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegooglewebfontsupdate.go
@@ -12,3 +12,31 @@ type SourceGoogleWebfontsUpdate struct {
// Optional, to find how to sort
Sort *string `json:"sort,omitempty"`
}
+
+func (o *SourceGoogleWebfontsUpdate) GetAlt() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Alt
+}
+
+func (o *SourceGoogleWebfontsUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGoogleWebfontsUpdate) GetPrettyPrint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrettyPrint
+}
+
+func (o *SourceGoogleWebfontsUpdate) GetSort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreports.go b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreports.go
old mode 100755
new mode 100644
index 25892c4d6..fb8b54e49
--- a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreports.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreports.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceGoogleWorkspaceAdminReports struct {
Email string `json:"email"`
// Sets the range of time shown in the report. Reports API allows from up to 180 days ago.
Lookback *int64 `json:"lookback,omitempty"`
- SourceType SourceGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReports `json:"sourceType"`
+ sourceType SourceGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReports `const:"google-workspace-admin-reports" json:"sourceType"`
+}
+
+func (s SourceGoogleWorkspaceAdminReports) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGoogleWorkspaceAdminReports) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGoogleWorkspaceAdminReports) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceGoogleWorkspaceAdminReports) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceGoogleWorkspaceAdminReports) GetLookback() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Lookback
+}
+
+func (o *SourceGoogleWorkspaceAdminReports) GetSourceType() SourceGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReports {
+ return SourceGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReportsGoogleWorkspaceAdminReports
}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportscreaterequest.go b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportscreaterequest.go
old mode 100755
new mode 100644
index a92453ad1..478f3b3b9
--- a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportscreaterequest.go
@@ -9,3 +9,31 @@ type SourceGoogleWorkspaceAdminReportsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleWorkspaceAdminReportsCreateRequest) GetConfiguration() SourceGoogleWorkspaceAdminReports {
+ if o == nil {
+ return SourceGoogleWorkspaceAdminReports{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsputrequest.go b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsputrequest.go
old mode 100755
new mode 100644
index b7a2b701c..b7c02b800
--- a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsputrequest.go
@@ -7,3 +7,24 @@ type SourceGoogleWorkspaceAdminReportsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGoogleWorkspaceAdminReportsPutRequest) GetConfiguration() SourceGoogleWorkspaceAdminReportsUpdate {
+ if o == nil {
+ return SourceGoogleWorkspaceAdminReportsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsupdate.go b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsupdate.go
old mode 100755
new mode 100644
index 9c7abe673..1ca63880e
--- a/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegoogleworkspaceadminreportsupdate.go
@@ -10,3 +10,24 @@ type SourceGoogleWorkspaceAdminReportsUpdate struct {
// Sets the range of time shown in the report. Reports API allows from up to 180 days ago.
Lookback *int64 `json:"lookback,omitempty"`
}
+
+func (o *SourceGoogleWorkspaceAdminReportsUpdate) GetCredentialsJSON() string {
+ if o == nil {
+ return ""
+ }
+ return o.CredentialsJSON
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsUpdate) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceGoogleWorkspaceAdminReportsUpdate) GetLookback() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Lookback
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegreenhouse.go b/internal/sdk/pkg/models/shared/sourcegreenhouse.go
old mode 100755
new mode 100644
index 291d7de32..1cc324e8b
--- a/internal/sdk/pkg/models/shared/sourcegreenhouse.go
+++ b/internal/sdk/pkg/models/shared/sourcegreenhouse.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceGreenhouseGreenhouse) UnmarshalJSON(data []byte) error {
type SourceGreenhouse struct {
// Greenhouse API Key. See the docs for more information on how to generate this key.
APIKey string `json:"api_key"`
- SourceType SourceGreenhouseGreenhouse `json:"sourceType"`
+ sourceType SourceGreenhouseGreenhouse `const:"greenhouse" json:"sourceType"`
+}
+
+func (s SourceGreenhouse) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGreenhouse) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGreenhouse) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGreenhouse) GetSourceType() SourceGreenhouseGreenhouse {
+ return SourceGreenhouseGreenhouseGreenhouse
}
diff --git a/internal/sdk/pkg/models/shared/sourcegreenhousecreaterequest.go b/internal/sdk/pkg/models/shared/sourcegreenhousecreaterequest.go
old mode 100755
new mode 100644
index 98103be85..ffbd7abd4
--- a/internal/sdk/pkg/models/shared/sourcegreenhousecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegreenhousecreaterequest.go
@@ -9,3 +9,31 @@ type SourceGreenhouseCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGreenhouseCreateRequest) GetConfiguration() SourceGreenhouse {
+ if o == nil {
+ return SourceGreenhouse{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGreenhouseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGreenhouseCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGreenhouseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegreenhouseputrequest.go b/internal/sdk/pkg/models/shared/sourcegreenhouseputrequest.go
old mode 100755
new mode 100644
index 8d3667ce6..71c2bc58a
--- a/internal/sdk/pkg/models/shared/sourcegreenhouseputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegreenhouseputrequest.go
@@ -7,3 +7,24 @@ type SourceGreenhousePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGreenhousePutRequest) GetConfiguration() SourceGreenhouseUpdate {
+ if o == nil {
+ return SourceGreenhouseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGreenhousePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGreenhousePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegreenhouseupdate.go b/internal/sdk/pkg/models/shared/sourcegreenhouseupdate.go
old mode 100755
new mode 100644
index fd4f82397..8a11ad8e2
--- a/internal/sdk/pkg/models/shared/sourcegreenhouseupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegreenhouseupdate.go
@@ -6,3 +6,10 @@ type SourceGreenhouseUpdate struct {
// Greenhouse API Key. See the docs for more information on how to generate this key.
APIKey string `json:"api_key"`
}
+
+func (o *SourceGreenhouseUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegridly.go b/internal/sdk/pkg/models/shared/sourcegridly.go
old mode 100755
new mode 100644
index f114a81fc..e629f8348
--- a/internal/sdk/pkg/models/shared/sourcegridly.go
+++ b/internal/sdk/pkg/models/shared/sourcegridly.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,5 +36,34 @@ type SourceGridly struct {
APIKey string `json:"api_key"`
// ID of a grid, or can be ID of a branch
GridID string `json:"grid_id"`
- SourceType SourceGridlyGridly `json:"sourceType"`
+ sourceType SourceGridlyGridly `const:"gridly" json:"sourceType"`
+}
+
+func (s SourceGridly) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceGridly) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceGridly) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGridly) GetGridID() string {
+ if o == nil {
+ return ""
+ }
+ return o.GridID
+}
+
+func (o *SourceGridly) GetSourceType() SourceGridlyGridly {
+ return SourceGridlyGridlyGridly
}
diff --git a/internal/sdk/pkg/models/shared/sourcegridlycreaterequest.go b/internal/sdk/pkg/models/shared/sourcegridlycreaterequest.go
old mode 100755
new mode 100644
index 90ab7fe0a..b1d127957
--- a/internal/sdk/pkg/models/shared/sourcegridlycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegridlycreaterequest.go
@@ -9,3 +9,31 @@ type SourceGridlyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGridlyCreateRequest) GetConfiguration() SourceGridly {
+ if o == nil {
+ return SourceGridly{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGridlyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGridlyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceGridlyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegridlyputrequest.go b/internal/sdk/pkg/models/shared/sourcegridlyputrequest.go
old mode 100755
new mode 100644
index c038856d6..dc31b852e
--- a/internal/sdk/pkg/models/shared/sourcegridlyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcegridlyputrequest.go
@@ -7,3 +7,24 @@ type SourceGridlyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceGridlyPutRequest) GetConfiguration() SourceGridlyUpdate {
+ if o == nil {
+ return SourceGridlyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceGridlyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceGridlyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcegridlyupdate.go b/internal/sdk/pkg/models/shared/sourcegridlyupdate.go
old mode 100755
new mode 100644
index 490bc109a..7b1c1a927
--- a/internal/sdk/pkg/models/shared/sourcegridlyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcegridlyupdate.go
@@ -7,3 +7,17 @@ type SourceGridlyUpdate struct {
// ID of a grid, or can be ID of a branch
GridID string `json:"grid_id"`
}
+
+func (o *SourceGridlyUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceGridlyUpdate) GetGridID() string {
+ if o == nil {
+ return ""
+ }
+ return o.GridID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceharvest.go b/internal/sdk/pkg/models/shared/sourceharvest.go
old mode 100755
new mode 100644
index 81c717acf..b17fcc920
--- a/internal/sdk/pkg/models/shared/sourceharvest.go
+++ b/internal/sdk/pkg/models/shared/sourceharvest.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,56 +36,39 @@ func (e *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken
// SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken - Choose how to authenticate to Harvest.
type SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// Log into Harvest and then create new personal access token.
APIToken string `json:"api_token"`
- AuthType *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType `json:"auth_type,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ authType *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType `const:"Token" json:"auth_type,omitempty"`
}
-type _SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken
-
-func (c *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(bs []byte) error {
- data := _SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken(data)
- additionalFields := make(map[string]interface{})
+func (s SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "auth_type")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- return json.Marshal(out)
+func (o *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAuthType() *SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType {
+ return SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthTypeToken.ToPointer()
}
type SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType string
@@ -114,62 +97,57 @@ func (e *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType
// SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth - Choose how to authenticate to Harvest.
type SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth struct {
- AuthType *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType `json:"auth_type,omitempty"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ authType *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Harvest developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Harvest developer application.
ClientSecret string `json:"client_secret"`
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth
-
-func (c *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) UnmarshalJSON(bs []byte) error {
- data := _SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth(c))
- if err != nil {
- return nil, err
+func (o *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
+func (o *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) GetAuthType() *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType {
+ return SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuthAuthTypeClient.ToPointer()
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
}
type SourceHarvestAuthenticationMechanismType string
@@ -205,21 +183,16 @@ func CreateSourceHarvestAuthenticationMechanismSourceHarvestAuthenticationMechan
}
func (u *SourceHarvestAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken := new(SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true, true); err == nil {
u.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken = sourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken
u.Type = SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken
return nil
}
sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth := new(SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth, "", true, true); err == nil {
u.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth = sourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth
u.Type = SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth
return nil
@@ -229,15 +202,15 @@ func (u *SourceHarvestAuthenticationMechanism) UnmarshalJSON(data []byte) error
}
func (u SourceHarvestAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- return json.Marshal(u.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken)
+ if u.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
+ return utils.MarshalJSON(u.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth, "", true)
}
- if u.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
- return json.Marshal(u.SourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth)
+ if u.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceHarvestHarvest string
@@ -273,5 +246,48 @@ type SourceHarvest struct {
ReplicationEndDate *time.Time `json:"replication_end_date,omitempty"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
ReplicationStartDate time.Time `json:"replication_start_date"`
- SourceType SourceHarvestHarvest `json:"sourceType"`
+ sourceType SourceHarvestHarvest `const:"harvest" json:"sourceType"`
+}
+
+func (s SourceHarvest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHarvest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHarvest) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceHarvest) GetCredentials() *SourceHarvestAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceHarvest) GetReplicationEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationEndDate
+}
+
+func (o *SourceHarvest) GetReplicationStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.ReplicationStartDate
+}
+
+func (o *SourceHarvest) GetSourceType() SourceHarvestHarvest {
+ return SourceHarvestHarvestHarvest
}
diff --git a/internal/sdk/pkg/models/shared/sourceharvestcreaterequest.go b/internal/sdk/pkg/models/shared/sourceharvestcreaterequest.go
old mode 100755
new mode 100644
index c2de3745e..57d9919c3
--- a/internal/sdk/pkg/models/shared/sourceharvestcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceharvestcreaterequest.go
@@ -9,3 +9,31 @@ type SourceHarvestCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHarvestCreateRequest) GetConfiguration() SourceHarvest {
+ if o == nil {
+ return SourceHarvest{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHarvestCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHarvestCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceHarvestCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceharvestputrequest.go b/internal/sdk/pkg/models/shared/sourceharvestputrequest.go
old mode 100755
new mode 100644
index bb8146b30..2e2f0316f
--- a/internal/sdk/pkg/models/shared/sourceharvestputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceharvestputrequest.go
@@ -7,3 +7,24 @@ type SourceHarvestPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHarvestPutRequest) GetConfiguration() SourceHarvestUpdate {
+ if o == nil {
+ return SourceHarvestUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHarvestPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHarvestPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceharvestupdate.go b/internal/sdk/pkg/models/shared/sourceharvestupdate.go
old mode 100755
new mode 100644
index bc5a19c06..7681b71f2
--- a/internal/sdk/pkg/models/shared/sourceharvestupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceharvestupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,56 +36,39 @@ func (e *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAcces
// SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken - Choose how to authenticate to Harvest.
type SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// Log into Harvest and then create new personal access token.
APIToken string `json:"api_token"`
- AuthType *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType `json:"auth_type,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ authType *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType `const:"Token" json:"auth_type,omitempty"`
}
-type _SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
-
-func (c *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(bs []byte) error {
- data := _SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "auth_type")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- return json.Marshal(out)
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken) GetAuthType() *SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthType {
+ return SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessTokenAuthTypeToken.ToPointer()
}
type SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType string
@@ -114,62 +97,57 @@ func (e *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAu
// SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth - Choose how to authenticate to Harvest.
type SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth struct {
- AuthType *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType `json:"auth_type,omitempty"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ authType *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Harvest developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Harvest developer application.
ClientSecret string `json:"client_secret"`
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth
-func (c *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) UnmarshalJSON(bs []byte) error {
- data := _SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth(c))
- if err != nil {
- return nil, err
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) GetAuthType() *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthType {
+ return SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuthAuthTypeClient.ToPointer()
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
}
type SourceHarvestUpdateAuthenticationMechanismType string
@@ -205,21 +183,16 @@ func CreateSourceHarvestUpdateAuthenticationMechanismSourceHarvestUpdateAuthenti
}
func (u *SourceHarvestUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken := new(SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true, true); err == nil {
u.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken = sourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
u.Type = SourceHarvestUpdateAuthenticationMechanismTypeSourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken
return nil
}
sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth := new(SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth, "", true, true); err == nil {
u.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth = sourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth
u.Type = SourceHarvestUpdateAuthenticationMechanismTypeSourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth
return nil
@@ -229,15 +202,15 @@ func (u *SourceHarvestUpdateAuthenticationMechanism) UnmarshalJSON(data []byte)
}
func (u SourceHarvestUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
- return json.Marshal(u.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken)
+ if u.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
+ return utils.MarshalJSON(u.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth, "", true)
}
- if u.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth != nil {
- return json.Marshal(u.SourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth)
+ if u.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken != nil {
+ return utils.MarshalJSON(u.SourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceHarvestUpdate struct {
@@ -250,3 +223,42 @@ type SourceHarvestUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
ReplicationStartDate time.Time `json:"replication_start_date"`
}
+
+func (s SourceHarvestUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHarvestUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHarvestUpdate) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceHarvestUpdate) GetCredentials() *SourceHarvestUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceHarvestUpdate) GetReplicationEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationEndDate
+}
+
+func (o *SourceHarvestUpdate) GetReplicationStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.ReplicationStartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubplanner.go b/internal/sdk/pkg/models/shared/sourcehubplanner.go
old mode 100755
new mode 100644
index 230cb7d00..9714fab2d
--- a/internal/sdk/pkg/models/shared/sourcehubplanner.go
+++ b/internal/sdk/pkg/models/shared/sourcehubplanner.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceHubplannerHubplanner) UnmarshalJSON(data []byte) error {
type SourceHubplanner struct {
// Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.
APIKey string `json:"api_key"`
- SourceType SourceHubplannerHubplanner `json:"sourceType"`
+ sourceType SourceHubplannerHubplanner `const:"hubplanner" json:"sourceType"`
+}
+
+func (s SourceHubplanner) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubplanner) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubplanner) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceHubplanner) GetSourceType() SourceHubplannerHubplanner {
+ return SourceHubplannerHubplannerHubplanner
}
diff --git a/internal/sdk/pkg/models/shared/sourcehubplannercreaterequest.go b/internal/sdk/pkg/models/shared/sourcehubplannercreaterequest.go
old mode 100755
new mode 100644
index 43eff1535..2485519a9
--- a/internal/sdk/pkg/models/shared/sourcehubplannercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcehubplannercreaterequest.go
@@ -9,3 +9,31 @@ type SourceHubplannerCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHubplannerCreateRequest) GetConfiguration() SourceHubplanner {
+ if o == nil {
+ return SourceHubplanner{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHubplannerCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHubplannerCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceHubplannerCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubplannerputrequest.go b/internal/sdk/pkg/models/shared/sourcehubplannerputrequest.go
old mode 100755
new mode 100644
index 8dbbf52f4..86e2b5bf8
--- a/internal/sdk/pkg/models/shared/sourcehubplannerputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcehubplannerputrequest.go
@@ -7,3 +7,24 @@ type SourceHubplannerPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHubplannerPutRequest) GetConfiguration() SourceHubplannerUpdate {
+ if o == nil {
+ return SourceHubplannerUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHubplannerPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHubplannerPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubplannerupdate.go b/internal/sdk/pkg/models/shared/sourcehubplannerupdate.go
old mode 100755
new mode 100644
index eaf4fbc3c..cc16f0b8c
--- a/internal/sdk/pkg/models/shared/sourcehubplannerupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcehubplannerupdate.go
@@ -6,3 +6,10 @@ type SourceHubplannerUpdate struct {
// Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details.
APIKey string `json:"api_key"`
}
+
+func (o *SourceHubplannerUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubspot.go b/internal/sdk/pkg/models/shared/sourcehubspot.go
old mode 100755
new mode 100644
index edd2dffda..4b221e483
--- a/internal/sdk/pkg/models/shared/sourcehubspot.go
+++ b/internal/sdk/pkg/models/shared/sourcehubspot.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,7 +40,29 @@ type SourceHubspotAuthenticationPrivateApp struct {
// HubSpot Access token. See the Hubspot docs if you need help finding this token.
AccessToken string `json:"access_token"`
// Name of the credentials set
- CredentialsTitle SourceHubspotAuthenticationPrivateAppAuthType `json:"credentials_title"`
+ credentialsTitle SourceHubspotAuthenticationPrivateAppAuthType `const:"Private App Credentials" json:"credentials_title"`
+}
+
+func (s SourceHubspotAuthenticationPrivateApp) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspotAuthenticationPrivateApp) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspotAuthenticationPrivateApp) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceHubspotAuthenticationPrivateApp) GetCredentialsTitle() SourceHubspotAuthenticationPrivateAppAuthType {
+ return SourceHubspotAuthenticationPrivateAppAuthTypePrivateAppCredentials
}
// SourceHubspotAuthenticationOAuthAuthType - Name of the credentials
@@ -75,11 +97,47 @@ type SourceHubspotAuthenticationOAuth struct {
// The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
ClientSecret string `json:"client_secret"`
// Name of the credentials
- CredentialsTitle SourceHubspotAuthenticationOAuthAuthType `json:"credentials_title"`
+ credentialsTitle SourceHubspotAuthenticationOAuthAuthType `const:"OAuth Credentials" json:"credentials_title"`
// Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
RefreshToken string `json:"refresh_token"`
}
+func (s SourceHubspotAuthenticationOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspotAuthenticationOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspotAuthenticationOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceHubspotAuthenticationOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceHubspotAuthenticationOAuth) GetCredentialsTitle() SourceHubspotAuthenticationOAuthAuthType {
+ return SourceHubspotAuthenticationOAuthAuthTypeOAuthCredentials
+}
+
+func (o *SourceHubspotAuthenticationOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceHubspotAuthenticationType string
const (
@@ -113,21 +171,16 @@ func CreateSourceHubspotAuthenticationSourceHubspotAuthenticationPrivateApp(sour
}
func (u *SourceHubspotAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceHubspotAuthenticationPrivateApp := new(SourceHubspotAuthenticationPrivateApp)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHubspotAuthenticationPrivateApp); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHubspotAuthenticationPrivateApp, "", true, true); err == nil {
u.SourceHubspotAuthenticationPrivateApp = sourceHubspotAuthenticationPrivateApp
u.Type = SourceHubspotAuthenticationTypeSourceHubspotAuthenticationPrivateApp
return nil
}
sourceHubspotAuthenticationOAuth := new(SourceHubspotAuthenticationOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHubspotAuthenticationOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHubspotAuthenticationOAuth, "", true, true); err == nil {
u.SourceHubspotAuthenticationOAuth = sourceHubspotAuthenticationOAuth
u.Type = SourceHubspotAuthenticationTypeSourceHubspotAuthenticationOAuth
return nil
@@ -137,15 +190,15 @@ func (u *SourceHubspotAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceHubspotAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceHubspotAuthenticationPrivateApp != nil {
- return json.Marshal(u.SourceHubspotAuthenticationPrivateApp)
+ if u.SourceHubspotAuthenticationOAuth != nil {
+ return utils.MarshalJSON(u.SourceHubspotAuthenticationOAuth, "", true)
}
- if u.SourceHubspotAuthenticationOAuth != nil {
- return json.Marshal(u.SourceHubspotAuthenticationOAuth)
+ if u.SourceHubspotAuthenticationPrivateApp != nil {
+ return utils.MarshalJSON(u.SourceHubspotAuthenticationPrivateApp, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceHubspotHubspot string
@@ -175,7 +228,36 @@ func (e *SourceHubspotHubspot) UnmarshalJSON(data []byte) error {
type SourceHubspot struct {
// Choose how to authenticate to HubSpot.
Credentials SourceHubspotAuthentication `json:"credentials"`
- SourceType SourceHubspotHubspot `json:"sourceType"`
+ sourceType SourceHubspotHubspot `const:"hubspot" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceHubspot) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspot) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspot) GetCredentials() SourceHubspotAuthentication {
+ if o == nil {
+ return SourceHubspotAuthentication{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceHubspot) GetSourceType() SourceHubspotHubspot {
+ return SourceHubspotHubspotHubspot
+}
+
+func (o *SourceHubspot) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubspotcreaterequest.go b/internal/sdk/pkg/models/shared/sourcehubspotcreaterequest.go
old mode 100755
new mode 100644
index 2148a5023..35bab7605
--- a/internal/sdk/pkg/models/shared/sourcehubspotcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcehubspotcreaterequest.go
@@ -9,3 +9,31 @@ type SourceHubspotCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHubspotCreateRequest) GetConfiguration() SourceHubspot {
+ if o == nil {
+ return SourceHubspot{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHubspotCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHubspotCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceHubspotCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubspotputrequest.go b/internal/sdk/pkg/models/shared/sourcehubspotputrequest.go
old mode 100755
new mode 100644
index d6acbf8d2..51221fe09
--- a/internal/sdk/pkg/models/shared/sourcehubspotputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcehubspotputrequest.go
@@ -7,3 +7,24 @@ type SourceHubspotPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceHubspotPutRequest) GetConfiguration() SourceHubspotUpdate {
+ if o == nil {
+ return SourceHubspotUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceHubspotPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceHubspotPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcehubspotupdate.go b/internal/sdk/pkg/models/shared/sourcehubspotupdate.go
old mode 100755
new mode 100644
index b754f54f8..c35fbcb5a
--- a/internal/sdk/pkg/models/shared/sourcehubspotupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcehubspotupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,7 +40,29 @@ type SourceHubspotUpdateAuthenticationPrivateApp struct {
// HubSpot Access token. See the Hubspot docs if you need help finding this token.
AccessToken string `json:"access_token"`
// Name of the credentials set
- CredentialsTitle SourceHubspotUpdateAuthenticationPrivateAppAuthType `json:"credentials_title"`
+ credentialsTitle SourceHubspotUpdateAuthenticationPrivateAppAuthType `const:"Private App Credentials" json:"credentials_title"`
+}
+
+func (s SourceHubspotUpdateAuthenticationPrivateApp) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspotUpdateAuthenticationPrivateApp) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspotUpdateAuthenticationPrivateApp) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceHubspotUpdateAuthenticationPrivateApp) GetCredentialsTitle() SourceHubspotUpdateAuthenticationPrivateAppAuthType {
+ return SourceHubspotUpdateAuthenticationPrivateAppAuthTypePrivateAppCredentials
}
// SourceHubspotUpdateAuthenticationOAuthAuthType - Name of the credentials
@@ -75,11 +97,47 @@ type SourceHubspotUpdateAuthenticationOAuth struct {
// The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret.
ClientSecret string `json:"client_secret"`
// Name of the credentials
- CredentialsTitle SourceHubspotUpdateAuthenticationOAuthAuthType `json:"credentials_title"`
+ credentialsTitle SourceHubspotUpdateAuthenticationOAuthAuthType `const:"OAuth Credentials" json:"credentials_title"`
// Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token.
RefreshToken string `json:"refresh_token"`
}
+func (s SourceHubspotUpdateAuthenticationOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspotUpdateAuthenticationOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspotUpdateAuthenticationOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceHubspotUpdateAuthenticationOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceHubspotUpdateAuthenticationOAuth) GetCredentialsTitle() SourceHubspotUpdateAuthenticationOAuthAuthType {
+ return SourceHubspotUpdateAuthenticationOAuthAuthTypeOAuthCredentials
+}
+
+func (o *SourceHubspotUpdateAuthenticationOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceHubspotUpdateAuthenticationType string
const (
@@ -113,21 +171,16 @@ func CreateSourceHubspotUpdateAuthenticationSourceHubspotUpdateAuthenticationPri
}
func (u *SourceHubspotUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceHubspotUpdateAuthenticationPrivateApp := new(SourceHubspotUpdateAuthenticationPrivateApp)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHubspotUpdateAuthenticationPrivateApp); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHubspotUpdateAuthenticationPrivateApp, "", true, true); err == nil {
u.SourceHubspotUpdateAuthenticationPrivateApp = sourceHubspotUpdateAuthenticationPrivateApp
u.Type = SourceHubspotUpdateAuthenticationTypeSourceHubspotUpdateAuthenticationPrivateApp
return nil
}
sourceHubspotUpdateAuthenticationOAuth := new(SourceHubspotUpdateAuthenticationOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceHubspotUpdateAuthenticationOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceHubspotUpdateAuthenticationOAuth, "", true, true); err == nil {
u.SourceHubspotUpdateAuthenticationOAuth = sourceHubspotUpdateAuthenticationOAuth
u.Type = SourceHubspotUpdateAuthenticationTypeSourceHubspotUpdateAuthenticationOAuth
return nil
@@ -137,15 +190,15 @@ func (u *SourceHubspotUpdateAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceHubspotUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceHubspotUpdateAuthenticationPrivateApp != nil {
- return json.Marshal(u.SourceHubspotUpdateAuthenticationPrivateApp)
+ if u.SourceHubspotUpdateAuthenticationOAuth != nil {
+ return utils.MarshalJSON(u.SourceHubspotUpdateAuthenticationOAuth, "", true)
}
- if u.SourceHubspotUpdateAuthenticationOAuth != nil {
- return json.Marshal(u.SourceHubspotUpdateAuthenticationOAuth)
+ if u.SourceHubspotUpdateAuthenticationPrivateApp != nil {
+ return utils.MarshalJSON(u.SourceHubspotUpdateAuthenticationPrivateApp, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceHubspotUpdate struct {
@@ -154,3 +207,28 @@ type SourceHubspotUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceHubspotUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceHubspotUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceHubspotUpdate) GetCredentials() SourceHubspotUpdateAuthentication {
+ if o == nil {
+ return SourceHubspotUpdateAuthentication{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceHubspotUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinsightly.go b/internal/sdk/pkg/models/shared/sourceinsightly.go
old mode 100755
new mode 100644
index 2f01f463f..7cf89bdb4
--- a/internal/sdk/pkg/models/shared/sourceinsightly.go
+++ b/internal/sdk/pkg/models/shared/sourceinsightly.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,9 +33,38 @@ func (e *SourceInsightlyInsightly) UnmarshalJSON(data []byte) error {
}
type SourceInsightly struct {
- SourceType SourceInsightlyInsightly `json:"sourceType"`
+ sourceType SourceInsightlyInsightly `const:"insightly" json:"sourceType"`
// The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams.
StartDate *string `json:"start_date"`
// Your Insightly API token.
Token *string `json:"token"`
}
+
+func (s SourceInsightly) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceInsightly) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceInsightly) GetSourceType() SourceInsightlyInsightly {
+ return SourceInsightlyInsightlyInsightly
+}
+
+func (o *SourceInsightly) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceInsightly) GetToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinsightlycreaterequest.go b/internal/sdk/pkg/models/shared/sourceinsightlycreaterequest.go
old mode 100755
new mode 100644
index 83693fb7a..472c086ca
--- a/internal/sdk/pkg/models/shared/sourceinsightlycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinsightlycreaterequest.go
@@ -9,3 +9,31 @@ type SourceInsightlyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInsightlyCreateRequest) GetConfiguration() SourceInsightly {
+ if o == nil {
+ return SourceInsightly{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInsightlyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInsightlyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceInsightlyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinsightlyputrequest.go b/internal/sdk/pkg/models/shared/sourceinsightlyputrequest.go
old mode 100755
new mode 100644
index c3dee3c1a..65bb12b71
--- a/internal/sdk/pkg/models/shared/sourceinsightlyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinsightlyputrequest.go
@@ -7,3 +7,24 @@ type SourceInsightlyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInsightlyPutRequest) GetConfiguration() SourceInsightlyUpdate {
+ if o == nil {
+ return SourceInsightlyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInsightlyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInsightlyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinsightlyupdate.go b/internal/sdk/pkg/models/shared/sourceinsightlyupdate.go
old mode 100755
new mode 100644
index 57e3a7dfb..055a205d7
--- a/internal/sdk/pkg/models/shared/sourceinsightlyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceinsightlyupdate.go
@@ -8,3 +8,17 @@ type SourceInsightlyUpdate struct {
// Your Insightly API token.
Token *string `json:"token"`
}
+
+func (o *SourceInsightlyUpdate) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceInsightlyUpdate) GetToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstagram.go b/internal/sdk/pkg/models/shared/sourceinstagram.go
old mode 100755
new mode 100644
index d372f1352..de8216521
--- a/internal/sdk/pkg/models/shared/sourceinstagram.go
+++ b/internal/sdk/pkg/models/shared/sourceinstagram.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,7 +40,50 @@ type SourceInstagram struct {
ClientID *string `json:"client_id,omitempty"`
// The Client Secret for your Oauth application
ClientSecret *string `json:"client_secret,omitempty"`
- SourceType SourceInstagramInstagram `json:"sourceType"`
+ sourceType SourceInstagramInstagram `const:"instagram" json:"sourceType"`
// The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceInstagram) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceInstagram) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceInstagram) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceInstagram) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceInstagram) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceInstagram) GetSourceType() SourceInstagramInstagram {
+ return SourceInstagramInstagramInstagram
+}
+
+func (o *SourceInstagram) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstagramcreaterequest.go b/internal/sdk/pkg/models/shared/sourceinstagramcreaterequest.go
old mode 100755
new mode 100644
index 6cf9cad52..cb6830005
--- a/internal/sdk/pkg/models/shared/sourceinstagramcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinstagramcreaterequest.go
@@ -9,3 +9,31 @@ type SourceInstagramCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInstagramCreateRequest) GetConfiguration() SourceInstagram {
+ if o == nil {
+ return SourceInstagram{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInstagramCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInstagramCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceInstagramCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstagramputrequest.go b/internal/sdk/pkg/models/shared/sourceinstagramputrequest.go
old mode 100755
new mode 100644
index 2535ebdfb..84d12130b
--- a/internal/sdk/pkg/models/shared/sourceinstagramputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinstagramputrequest.go
@@ -7,3 +7,24 @@ type SourceInstagramPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInstagramPutRequest) GetConfiguration() SourceInstagramUpdate {
+ if o == nil {
+ return SourceInstagramUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInstagramPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInstagramPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstagramupdate.go b/internal/sdk/pkg/models/shared/sourceinstagramupdate.go
old mode 100755
new mode 100644
index ba9e6ba1a..295c72a2f
--- a/internal/sdk/pkg/models/shared/sourceinstagramupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceinstagramupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceInstagramUpdate struct {
// The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceInstagramUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceInstagramUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceInstagramUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceInstagramUpdate) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceInstagramUpdate) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceInstagramUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstatus.go b/internal/sdk/pkg/models/shared/sourceinstatus.go
old mode 100755
new mode 100644
index 43f1f32fa..f4e68b524
--- a/internal/sdk/pkg/models/shared/sourceinstatus.go
+++ b/internal/sdk/pkg/models/shared/sourceinstatus.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceInstatusInstatus) UnmarshalJSON(data []byte) error {
type SourceInstatus struct {
// Instatus REST API key
APIKey string `json:"api_key"`
- SourceType SourceInstatusInstatus `json:"sourceType"`
+ sourceType SourceInstatusInstatus `const:"instatus" json:"sourceType"`
+}
+
+func (s SourceInstatus) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceInstatus) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceInstatus) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceInstatus) GetSourceType() SourceInstatusInstatus {
+ return SourceInstatusInstatusInstatus
}
diff --git a/internal/sdk/pkg/models/shared/sourceinstatuscreaterequest.go b/internal/sdk/pkg/models/shared/sourceinstatuscreaterequest.go
old mode 100755
new mode 100644
index 5c69321e4..b81cf7a46
--- a/internal/sdk/pkg/models/shared/sourceinstatuscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinstatuscreaterequest.go
@@ -9,3 +9,31 @@ type SourceInstatusCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInstatusCreateRequest) GetConfiguration() SourceInstatus {
+ if o == nil {
+ return SourceInstatus{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInstatusCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInstatusCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceInstatusCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstatusputrequest.go b/internal/sdk/pkg/models/shared/sourceinstatusputrequest.go
old mode 100755
new mode 100644
index f62b4179f..6d5e9e833
--- a/internal/sdk/pkg/models/shared/sourceinstatusputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceinstatusputrequest.go
@@ -7,3 +7,24 @@ type SourceInstatusPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceInstatusPutRequest) GetConfiguration() SourceInstatusUpdate {
+ if o == nil {
+ return SourceInstatusUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceInstatusPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceInstatusPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceinstatusupdate.go b/internal/sdk/pkg/models/shared/sourceinstatusupdate.go
old mode 100755
new mode 100644
index 2b714285e..e9fb2b07e
--- a/internal/sdk/pkg/models/shared/sourceinstatusupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceinstatusupdate.go
@@ -6,3 +6,10 @@ type SourceInstatusUpdate struct {
// Instatus REST API key
APIKey string `json:"api_key"`
}
+
+func (o *SourceInstatusUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceintercom.go b/internal/sdk/pkg/models/shared/sourceintercom.go
old mode 100755
new mode 100644
index 375394f1b..50bfa7647
--- a/internal/sdk/pkg/models/shared/sourceintercom.go
+++ b/internal/sdk/pkg/models/shared/sourceintercom.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,7 +40,50 @@ type SourceIntercom struct {
ClientID *string `json:"client_id,omitempty"`
// Client Secret for your Intercom application.
ClientSecret *string `json:"client_secret,omitempty"`
- SourceType SourceIntercomIntercom `json:"sourceType"`
+ sourceType SourceIntercomIntercom `const:"intercom" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceIntercom) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceIntercom) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceIntercom) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceIntercom) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceIntercom) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceIntercom) GetSourceType() SourceIntercomIntercom {
+ return SourceIntercomIntercomIntercom
+}
+
+func (o *SourceIntercom) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceintercomcreaterequest.go b/internal/sdk/pkg/models/shared/sourceintercomcreaterequest.go
old mode 100755
new mode 100644
index e6ae1bc17..1e4e466ad
--- a/internal/sdk/pkg/models/shared/sourceintercomcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceintercomcreaterequest.go
@@ -9,3 +9,31 @@ type SourceIntercomCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIntercomCreateRequest) GetConfiguration() SourceIntercom {
+ if o == nil {
+ return SourceIntercom{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIntercomCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIntercomCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceIntercomCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceintercomputrequest.go b/internal/sdk/pkg/models/shared/sourceintercomputrequest.go
old mode 100755
new mode 100644
index c038869ed..75636765a
--- a/internal/sdk/pkg/models/shared/sourceintercomputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceintercomputrequest.go
@@ -7,3 +7,24 @@ type SourceIntercomPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIntercomPutRequest) GetConfiguration() SourceIntercomUpdate {
+ if o == nil {
+ return SourceIntercomUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIntercomPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIntercomPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceintercomupdate.go b/internal/sdk/pkg/models/shared/sourceintercomupdate.go
old mode 100755
new mode 100644
index f9fe5214e..79a1caed0
--- a/internal/sdk/pkg/models/shared/sourceintercomupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceintercomupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceIntercomUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceIntercomUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceIntercomUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceIntercomUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceIntercomUpdate) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceIntercomUpdate) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceIntercomUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceip2whois.go b/internal/sdk/pkg/models/shared/sourceip2whois.go
old mode 100755
new mode 100644
index 0498f9193..64dc5e73d
--- a/internal/sdk/pkg/models/shared/sourceip2whois.go
+++ b/internal/sdk/pkg/models/shared/sourceip2whois.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceIp2whois struct {
APIKey *string `json:"api_key,omitempty"`
// Domain name. See here.
Domain *string `json:"domain,omitempty"`
- SourceType *SourceIp2whoisIp2whois `json:"sourceType,omitempty"`
+ sourceType *SourceIp2whoisIp2whois `const:"ip2whois" json:"sourceType,omitempty"`
+}
+
+func (s SourceIp2whois) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceIp2whois) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceIp2whois) GetAPIKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIKey
+}
+
+func (o *SourceIp2whois) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourceIp2whois) GetSourceType() *SourceIp2whoisIp2whois {
+ return SourceIp2whoisIp2whoisIp2whois.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourceip2whoiscreaterequest.go b/internal/sdk/pkg/models/shared/sourceip2whoiscreaterequest.go
old mode 100755
new mode 100644
index 41c469430..0cbdc6c5a
--- a/internal/sdk/pkg/models/shared/sourceip2whoiscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceip2whoiscreaterequest.go
@@ -9,3 +9,31 @@ type SourceIp2whoisCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIp2whoisCreateRequest) GetConfiguration() SourceIp2whois {
+ if o == nil {
+ return SourceIp2whois{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIp2whoisCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIp2whoisCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceIp2whoisCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceip2whoisputrequest.go b/internal/sdk/pkg/models/shared/sourceip2whoisputrequest.go
old mode 100755
new mode 100644
index dd0be5a64..9d4f64d74
--- a/internal/sdk/pkg/models/shared/sourceip2whoisputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceip2whoisputrequest.go
@@ -7,3 +7,24 @@ type SourceIp2whoisPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIp2whoisPutRequest) GetConfiguration() SourceIp2whoisUpdate {
+ if o == nil {
+ return SourceIp2whoisUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIp2whoisPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIp2whoisPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceip2whoisupdate.go b/internal/sdk/pkg/models/shared/sourceip2whoisupdate.go
old mode 100755
new mode 100644
index bb1616e82..fb3e85bd8
--- a/internal/sdk/pkg/models/shared/sourceip2whoisupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceip2whoisupdate.go
@@ -8,3 +8,17 @@ type SourceIp2whoisUpdate struct {
// Domain name. See here.
Domain *string `json:"domain,omitempty"`
}
+
+func (o *SourceIp2whoisUpdate) GetAPIKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.APIKey
+}
+
+func (o *SourceIp2whoisUpdate) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
diff --git a/internal/sdk/pkg/models/shared/sourceiterable.go b/internal/sdk/pkg/models/shared/sourceiterable.go
old mode 100755
new mode 100644
index cf9085b6c..badd62368
--- a/internal/sdk/pkg/models/shared/sourceiterable.go
+++ b/internal/sdk/pkg/models/shared/sourceiterable.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,36 @@ func (e *SourceIterableIterable) UnmarshalJSON(data []byte) error {
type SourceIterable struct {
// Iterable API Key. See the docs for more information on how to obtain this key.
APIKey string `json:"api_key"`
- SourceType SourceIterableIterable `json:"sourceType"`
+ sourceType SourceIterableIterable `const:"iterable" json:"sourceType"`
// The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceIterable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceIterable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceIterable) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceIterable) GetSourceType() SourceIterableIterable {
+ return SourceIterableIterableIterable
+}
+
+func (o *SourceIterable) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceiterablecreaterequest.go b/internal/sdk/pkg/models/shared/sourceiterablecreaterequest.go
old mode 100755
new mode 100644
index aa100742f..7ef9c03f8
--- a/internal/sdk/pkg/models/shared/sourceiterablecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceiterablecreaterequest.go
@@ -9,3 +9,31 @@ type SourceIterableCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIterableCreateRequest) GetConfiguration() SourceIterable {
+ if o == nil {
+ return SourceIterable{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIterableCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIterableCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceIterableCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceiterableputrequest.go b/internal/sdk/pkg/models/shared/sourceiterableputrequest.go
old mode 100755
new mode 100644
index 1da6460de..f526ba95d
--- a/internal/sdk/pkg/models/shared/sourceiterableputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceiterableputrequest.go
@@ -7,3 +7,24 @@ type SourceIterablePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceIterablePutRequest) GetConfiguration() SourceIterableUpdate {
+ if o == nil {
+ return SourceIterableUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceIterablePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceIterablePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceiterableupdate.go b/internal/sdk/pkg/models/shared/sourceiterableupdate.go
old mode 100755
new mode 100644
index 4ae48114f..be987ad95
--- a/internal/sdk/pkg/models/shared/sourceiterableupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceiterableupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,3 +13,28 @@ type SourceIterableUpdate struct {
// The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceIterableUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceIterableUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceIterableUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceIterableUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcejira.go b/internal/sdk/pkg/models/shared/sourcejira.go
old mode 100755
new mode 100644
index 9b1d6b720..caf8e63a9
--- a/internal/sdk/pkg/models/shared/sourcejira.go
+++ b/internal/sdk/pkg/models/shared/sourcejira.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -40,14 +41,85 @@ type SourceJira struct {
// The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth.
Email string `json:"email"`
// Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info.
- EnableExperimentalStreams *bool `json:"enable_experimental_streams,omitempty"`
+ EnableExperimentalStreams *bool `default:"false" json:"enable_experimental_streams"`
// Expand the changelog when replicating issues.
- ExpandIssueChangelog *bool `json:"expand_issue_changelog,omitempty"`
+ ExpandIssueChangelog *bool `default:"false" json:"expand_issue_changelog"`
// List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects.
Projects []string `json:"projects,omitempty"`
// Render issue fields in HTML format in addition to Jira JSON-like format.
- RenderFields *bool `json:"render_fields,omitempty"`
- SourceType SourceJiraJira `json:"sourceType"`
+ RenderFields *bool `default:"false" json:"render_fields"`
+ sourceType SourceJiraJira `const:"jira" json:"sourceType"`
// The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceJira) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceJira) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceJira) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceJira) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceJira) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceJira) GetEnableExperimentalStreams() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.EnableExperimentalStreams
+}
+
+func (o *SourceJira) GetExpandIssueChangelog() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ExpandIssueChangelog
+}
+
+func (o *SourceJira) GetProjects() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Projects
+}
+
+func (o *SourceJira) GetRenderFields() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.RenderFields
+}
+
+func (o *SourceJira) GetSourceType() SourceJiraJira {
+ return SourceJiraJiraJira
+}
+
+func (o *SourceJira) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcejiracreaterequest.go b/internal/sdk/pkg/models/shared/sourcejiracreaterequest.go
old mode 100755
new mode 100644
index 5758f0800..e571b4872
--- a/internal/sdk/pkg/models/shared/sourcejiracreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcejiracreaterequest.go
@@ -9,3 +9,31 @@ type SourceJiraCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceJiraCreateRequest) GetConfiguration() SourceJira {
+ if o == nil {
+ return SourceJira{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceJiraCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceJiraCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceJiraCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcejiraputrequest.go b/internal/sdk/pkg/models/shared/sourcejiraputrequest.go
old mode 100755
new mode 100644
index 3bbc1d2f8..c7ea04140
--- a/internal/sdk/pkg/models/shared/sourcejiraputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcejiraputrequest.go
@@ -7,3 +7,24 @@ type SourceJiraPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceJiraPutRequest) GetConfiguration() SourceJiraUpdate {
+ if o == nil {
+ return SourceJiraUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceJiraPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceJiraPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcejiraupdate.go b/internal/sdk/pkg/models/shared/sourcejiraupdate.go
old mode 100755
new mode 100644
index 449571b0a..7b3f5d0f0
--- a/internal/sdk/pkg/models/shared/sourcejiraupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcejiraupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -14,13 +15,80 @@ type SourceJiraUpdate struct {
// The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth.
Email string `json:"email"`
// Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info.
- EnableExperimentalStreams *bool `json:"enable_experimental_streams,omitempty"`
+ EnableExperimentalStreams *bool `default:"false" json:"enable_experimental_streams"`
// Expand the changelog when replicating issues.
- ExpandIssueChangelog *bool `json:"expand_issue_changelog,omitempty"`
+ ExpandIssueChangelog *bool `default:"false" json:"expand_issue_changelog"`
// List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects.
Projects []string `json:"projects,omitempty"`
// Render issue fields in HTML format in addition to Jira JSON-like format.
- RenderFields *bool `json:"render_fields,omitempty"`
+ RenderFields *bool `default:"false" json:"render_fields"`
// The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the documentation.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceJiraUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceJiraUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceJiraUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceJiraUpdate) GetDomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Domain
+}
+
+func (o *SourceJiraUpdate) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceJiraUpdate) GetEnableExperimentalStreams() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.EnableExperimentalStreams
+}
+
+func (o *SourceJiraUpdate) GetExpandIssueChangelog() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ExpandIssueChangelog
+}
+
+func (o *SourceJiraUpdate) GetProjects() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Projects
+}
+
+func (o *SourceJiraUpdate) GetRenderFields() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.RenderFields
+}
+
+func (o *SourceJiraUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcek6cloud.go b/internal/sdk/pkg/models/shared/sourcek6cloud.go
old mode 100755
new mode 100644
index 597f6c8fc..174ce8c44
--- a/internal/sdk/pkg/models/shared/sourcek6cloud.go
+++ b/internal/sdk/pkg/models/shared/sourcek6cloud.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceK6CloudK6Cloud) UnmarshalJSON(data []byte) error {
type SourceK6Cloud struct {
// Your API Token. See here. The key is case sensitive.
APIToken string `json:"api_token"`
- SourceType SourceK6CloudK6Cloud `json:"sourceType"`
+ sourceType SourceK6CloudK6Cloud `const:"k6-cloud" json:"sourceType"`
+}
+
+func (s SourceK6Cloud) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceK6Cloud) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceK6Cloud) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceK6Cloud) GetSourceType() SourceK6CloudK6Cloud {
+ return SourceK6CloudK6CloudK6Cloud
}
diff --git a/internal/sdk/pkg/models/shared/sourcek6cloudcreaterequest.go b/internal/sdk/pkg/models/shared/sourcek6cloudcreaterequest.go
old mode 100755
new mode 100644
index ad56678a5..121ff189d
--- a/internal/sdk/pkg/models/shared/sourcek6cloudcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcek6cloudcreaterequest.go
@@ -9,3 +9,31 @@ type SourceK6CloudCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceK6CloudCreateRequest) GetConfiguration() SourceK6Cloud {
+ if o == nil {
+ return SourceK6Cloud{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceK6CloudCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceK6CloudCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceK6CloudCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcek6cloudputrequest.go b/internal/sdk/pkg/models/shared/sourcek6cloudputrequest.go
old mode 100755
new mode 100644
index eb2177108..8cdef846b
--- a/internal/sdk/pkg/models/shared/sourcek6cloudputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcek6cloudputrequest.go
@@ -7,3 +7,24 @@ type SourceK6CloudPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceK6CloudPutRequest) GetConfiguration() SourceK6CloudUpdate {
+ if o == nil {
+ return SourceK6CloudUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceK6CloudPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceK6CloudPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcek6cloudupdate.go b/internal/sdk/pkg/models/shared/sourcek6cloudupdate.go
old mode 100755
new mode 100644
index 96a73f3b3..bc710ace5
--- a/internal/sdk/pkg/models/shared/sourcek6cloudupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcek6cloudupdate.go
@@ -6,3 +6,10 @@ type SourceK6CloudUpdate struct {
// Your API Token. See here. The key is case sensitive.
APIToken string `json:"api_token"`
}
+
+func (o *SourceK6CloudUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklarna.go b/internal/sdk/pkg/models/shared/sourceklarna.go
old mode 100755
new mode 100644
index b1b7278c9..252e34df2
--- a/internal/sdk/pkg/models/shared/sourceklarna.go
+++ b/internal/sdk/pkg/models/shared/sourceklarna.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -66,10 +67,53 @@ type SourceKlarna struct {
// A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication)
Password string `json:"password"`
// Propertie defining if connector is used against playground or production environment
- Playground bool `json:"playground"`
+ Playground *bool `default:"false" json:"playground"`
// Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'
Region SourceKlarnaRegion `json:"region"`
- SourceType SourceKlarnaKlarna `json:"sourceType"`
+ sourceType SourceKlarnaKlarna `const:"klarna" json:"sourceType"`
// Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)
Username string `json:"username"`
}
+
+func (s SourceKlarna) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKlarna) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKlarna) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceKlarna) GetPlayground() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Playground
+}
+
+func (o *SourceKlarna) GetRegion() SourceKlarnaRegion {
+ if o == nil {
+ return SourceKlarnaRegion("")
+ }
+ return o.Region
+}
+
+func (o *SourceKlarna) GetSourceType() SourceKlarnaKlarna {
+ return SourceKlarnaKlarnaKlarna
+}
+
+func (o *SourceKlarna) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklarnacreaterequest.go b/internal/sdk/pkg/models/shared/sourceklarnacreaterequest.go
old mode 100755
new mode 100644
index a9b019b58..3a0ecd9ea
--- a/internal/sdk/pkg/models/shared/sourceklarnacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceklarnacreaterequest.go
@@ -9,3 +9,31 @@ type SourceKlarnaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKlarnaCreateRequest) GetConfiguration() SourceKlarna {
+ if o == nil {
+ return SourceKlarna{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKlarnaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKlarnaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceKlarnaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklarnaputrequest.go b/internal/sdk/pkg/models/shared/sourceklarnaputrequest.go
old mode 100755
new mode 100644
index d4f7120ae..4bf122c6e
--- a/internal/sdk/pkg/models/shared/sourceklarnaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceklarnaputrequest.go
@@ -7,3 +7,24 @@ type SourceKlarnaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKlarnaPutRequest) GetConfiguration() SourceKlarnaUpdate {
+ if o == nil {
+ return SourceKlarnaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKlarnaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKlarnaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklarnaupdate.go b/internal/sdk/pkg/models/shared/sourceklarnaupdate.go
old mode 100755
new mode 100644
index 568788ba1..22169ad2b
--- a/internal/sdk/pkg/models/shared/sourceklarnaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceklarnaupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -42,9 +43,48 @@ type SourceKlarnaUpdate struct {
// A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication)
Password string `json:"password"`
// Propertie defining if connector is used against playground or production environment
- Playground bool `json:"playground"`
+ Playground *bool `default:"false" json:"playground"`
// Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'us', 'oc'
Region SourceKlarnaUpdateRegion `json:"region"`
// Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication)
Username string `json:"username"`
}
+
+func (s SourceKlarnaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKlarnaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKlarnaUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceKlarnaUpdate) GetPlayground() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Playground
+}
+
+func (o *SourceKlarnaUpdate) GetRegion() SourceKlarnaUpdateRegion {
+ if o == nil {
+ return SourceKlarnaUpdateRegion("")
+ }
+ return o.Region
+}
+
+func (o *SourceKlarnaUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklaviyo.go b/internal/sdk/pkg/models/shared/sourceklaviyo.go
old mode 100755
new mode 100644
index f7d941bdf..83383449a
--- a/internal/sdk/pkg/models/shared/sourceklaviyo.go
+++ b/internal/sdk/pkg/models/shared/sourceklaviyo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,36 @@ func (e *SourceKlaviyoKlaviyo) UnmarshalJSON(data []byte) error {
type SourceKlaviyo struct {
// Klaviyo API Key. See our docs if you need help finding this key.
APIKey string `json:"api_key"`
- SourceType SourceKlaviyoKlaviyo `json:"sourceType"`
+ sourceType SourceKlaviyoKlaviyo `const:"klaviyo" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceKlaviyo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKlaviyo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKlaviyo) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceKlaviyo) GetSourceType() SourceKlaviyoKlaviyo {
+ return SourceKlaviyoKlaviyoKlaviyo
+}
+
+func (o *SourceKlaviyo) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklaviyocreaterequest.go b/internal/sdk/pkg/models/shared/sourceklaviyocreaterequest.go
old mode 100755
new mode 100644
index 4b4ae3d49..c14094c7f
--- a/internal/sdk/pkg/models/shared/sourceklaviyocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceklaviyocreaterequest.go
@@ -9,3 +9,31 @@ type SourceKlaviyoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKlaviyoCreateRequest) GetConfiguration() SourceKlaviyo {
+ if o == nil {
+ return SourceKlaviyo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKlaviyoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKlaviyoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceKlaviyoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklaviyoputrequest.go b/internal/sdk/pkg/models/shared/sourceklaviyoputrequest.go
old mode 100755
new mode 100644
index 515e98c58..9acb470a4
--- a/internal/sdk/pkg/models/shared/sourceklaviyoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceklaviyoputrequest.go
@@ -7,3 +7,24 @@ type SourceKlaviyoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKlaviyoPutRequest) GetConfiguration() SourceKlaviyoUpdate {
+ if o == nil {
+ return SourceKlaviyoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKlaviyoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKlaviyoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceklaviyoupdate.go b/internal/sdk/pkg/models/shared/sourceklaviyoupdate.go
old mode 100755
new mode 100644
index a9ab14571..18c7d446b
--- a/internal/sdk/pkg/models/shared/sourceklaviyoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceklaviyoupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,3 +13,28 @@ type SourceKlaviyoUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceKlaviyoUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKlaviyoUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKlaviyoUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceKlaviyoUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekustomersinger.go b/internal/sdk/pkg/models/shared/sourcekustomersinger.go
old mode 100755
new mode 100644
index 92b39833e..8c1b63e69
--- a/internal/sdk/pkg/models/shared/sourcekustomersinger.go
+++ b/internal/sdk/pkg/models/shared/sourcekustomersinger.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *SourceKustomerSingerKustomerSinger) UnmarshalJSON(data []byte) error {
type SourceKustomerSinger struct {
// Kustomer API Token. See the docs on how to obtain this
APIToken string `json:"api_token"`
- SourceType SourceKustomerSingerKustomerSinger `json:"sourceType"`
+ sourceType SourceKustomerSingerKustomerSinger `const:"kustomer-singer" json:"sourceType"`
// The date from which you'd like to replicate the data
StartDate string `json:"start_date"`
}
+
+func (s SourceKustomerSinger) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKustomerSinger) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKustomerSinger) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceKustomerSinger) GetSourceType() SourceKustomerSingerKustomerSinger {
+ return SourceKustomerSingerKustomerSingerKustomerSinger
+}
+
+func (o *SourceKustomerSinger) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekustomersingercreaterequest.go b/internal/sdk/pkg/models/shared/sourcekustomersingercreaterequest.go
old mode 100755
new mode 100644
index 1101425e4..22186994e
--- a/internal/sdk/pkg/models/shared/sourcekustomersingercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcekustomersingercreaterequest.go
@@ -9,3 +9,31 @@ type SourceKustomerSingerCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKustomerSingerCreateRequest) GetConfiguration() SourceKustomerSinger {
+ if o == nil {
+ return SourceKustomerSinger{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKustomerSingerCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKustomerSingerCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceKustomerSingerCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekustomersingerputrequest.go b/internal/sdk/pkg/models/shared/sourcekustomersingerputrequest.go
old mode 100755
new mode 100644
index c9bc81237..130c0ddaa
--- a/internal/sdk/pkg/models/shared/sourcekustomersingerputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcekustomersingerputrequest.go
@@ -7,3 +7,24 @@ type SourceKustomerSingerPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKustomerSingerPutRequest) GetConfiguration() SourceKustomerSingerUpdate {
+ if o == nil {
+ return SourceKustomerSingerUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKustomerSingerPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKustomerSingerPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekustomersingerupdate.go b/internal/sdk/pkg/models/shared/sourcekustomersingerupdate.go
old mode 100755
new mode 100644
index f13c4e9c4..affca8d64
--- a/internal/sdk/pkg/models/shared/sourcekustomersingerupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcekustomersingerupdate.go
@@ -8,3 +8,17 @@ type SourceKustomerSingerUpdate struct {
// The date from which you'd like to replicate the data
StartDate string `json:"start_date"`
}
+
+func (o *SourceKustomerSingerUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceKustomerSingerUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekyve.go b/internal/sdk/pkg/models/shared/sourcekyve.go
old mode 100755
new mode 100644
index cade8b226..b11a81fdb
--- a/internal/sdk/pkg/models/shared/sourcekyve.go
+++ b/internal/sdk/pkg/models/shared/sourcekyve.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,12 +36,62 @@ type SourceKyve struct {
// The maximum amount of pages to go trough. Set to 'null' for all pages.
MaxPages *int64 `json:"max_pages,omitempty"`
// The pagesize for pagination, smaller numbers are used in integration tests.
- PageSize *int64 `json:"page_size,omitempty"`
+ PageSize *int64 `default:"100" json:"page_size"`
// The IDs of the KYVE storage pool you want to archive. (Comma separated)
PoolIds string `json:"pool_ids"`
- SourceType SourceKyveKyve `json:"sourceType"`
+ sourceType SourceKyveKyve `const:"kyve" json:"sourceType"`
// The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)
StartIds string `json:"start_ids"`
// URL to the KYVE Chain API.
- URLBase *string `json:"url_base,omitempty"`
+ URLBase *string `default:"https://api.korellia.kyve.network" json:"url_base"`
+}
+
+func (s SourceKyve) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKyve) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKyve) GetMaxPages() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPages
+}
+
+func (o *SourceKyve) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
+}
+
+func (o *SourceKyve) GetPoolIds() string {
+ if o == nil {
+ return ""
+ }
+ return o.PoolIds
+}
+
+func (o *SourceKyve) GetSourceType() SourceKyveKyve {
+ return SourceKyveKyveKyve
+}
+
+func (o *SourceKyve) GetStartIds() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartIds
+}
+
+func (o *SourceKyve) GetURLBase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.URLBase
}
diff --git a/internal/sdk/pkg/models/shared/sourcekyvecreaterequest.go b/internal/sdk/pkg/models/shared/sourcekyvecreaterequest.go
old mode 100755
new mode 100644
index a36767b3b..1d367988e
--- a/internal/sdk/pkg/models/shared/sourcekyvecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcekyvecreaterequest.go
@@ -9,3 +9,31 @@ type SourceKyveCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKyveCreateRequest) GetConfiguration() SourceKyve {
+ if o == nil {
+ return SourceKyve{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKyveCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKyveCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceKyveCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekyveputrequest.go b/internal/sdk/pkg/models/shared/sourcekyveputrequest.go
old mode 100755
new mode 100644
index 654f6e58e..5eef08f34
--- a/internal/sdk/pkg/models/shared/sourcekyveputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcekyveputrequest.go
@@ -7,3 +7,24 @@ type SourceKyvePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceKyvePutRequest) GetConfiguration() SourceKyveUpdate {
+ if o == nil {
+ return SourceKyveUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceKyvePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceKyvePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcekyveupdate.go b/internal/sdk/pkg/models/shared/sourcekyveupdate.go
old mode 100755
new mode 100644
index 774b0be67..601f15168
--- a/internal/sdk/pkg/models/shared/sourcekyveupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcekyveupdate.go
@@ -2,15 +2,65 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceKyveUpdate struct {
// The maximum amount of pages to go trough. Set to 'null' for all pages.
MaxPages *int64 `json:"max_pages,omitempty"`
// The pagesize for pagination, smaller numbers are used in integration tests.
- PageSize *int64 `json:"page_size,omitempty"`
+ PageSize *int64 `default:"100" json:"page_size"`
// The IDs of the KYVE storage pool you want to archive. (Comma separated)
PoolIds string `json:"pool_ids"`
// The start-id defines, from which bundle id the pipeline should start to extract the data (Comma separated)
StartIds string `json:"start_ids"`
// URL to the KYVE Chain API.
- URLBase *string `json:"url_base,omitempty"`
+ URLBase *string `default:"https://api.korellia.kyve.network" json:"url_base"`
+}
+
+func (s SourceKyveUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceKyveUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceKyveUpdate) GetMaxPages() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.MaxPages
+}
+
+func (o *SourceKyveUpdate) GetPageSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.PageSize
+}
+
+func (o *SourceKyveUpdate) GetPoolIds() string {
+ if o == nil {
+ return ""
+ }
+ return o.PoolIds
+}
+
+func (o *SourceKyveUpdate) GetStartIds() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartIds
+}
+
+func (o *SourceKyveUpdate) GetURLBase() *string {
+ if o == nil {
+ return nil
+ }
+ return o.URLBase
}
diff --git a/internal/sdk/pkg/models/shared/sourcelaunchdarkly.go b/internal/sdk/pkg/models/shared/sourcelaunchdarkly.go
old mode 100755
new mode 100644
index 79c2982b2..4a5eac3a1
--- a/internal/sdk/pkg/models/shared/sourcelaunchdarkly.go
+++ b/internal/sdk/pkg/models/shared/sourcelaunchdarkly.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceLaunchdarklyLaunchdarkly) UnmarshalJSON(data []byte) error {
type SourceLaunchdarkly struct {
// Your Access token. See here.
AccessToken string `json:"access_token"`
- SourceType SourceLaunchdarklyLaunchdarkly `json:"sourceType"`
+ sourceType SourceLaunchdarklyLaunchdarkly `const:"launchdarkly" json:"sourceType"`
+}
+
+func (s SourceLaunchdarkly) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLaunchdarkly) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLaunchdarkly) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceLaunchdarkly) GetSourceType() SourceLaunchdarklyLaunchdarkly {
+ return SourceLaunchdarklyLaunchdarklyLaunchdarkly
}
diff --git a/internal/sdk/pkg/models/shared/sourcelaunchdarklycreaterequest.go b/internal/sdk/pkg/models/shared/sourcelaunchdarklycreaterequest.go
old mode 100755
new mode 100644
index 2857579a8..4fad5fc96
--- a/internal/sdk/pkg/models/shared/sourcelaunchdarklycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelaunchdarklycreaterequest.go
@@ -9,3 +9,31 @@ type SourceLaunchdarklyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLaunchdarklyCreateRequest) GetConfiguration() SourceLaunchdarkly {
+ if o == nil {
+ return SourceLaunchdarkly{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLaunchdarklyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLaunchdarklyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLaunchdarklyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelaunchdarklyputrequest.go b/internal/sdk/pkg/models/shared/sourcelaunchdarklyputrequest.go
old mode 100755
new mode 100644
index 3df017408..9da60a2bd
--- a/internal/sdk/pkg/models/shared/sourcelaunchdarklyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelaunchdarklyputrequest.go
@@ -7,3 +7,24 @@ type SourceLaunchdarklyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLaunchdarklyPutRequest) GetConfiguration() SourceLaunchdarklyUpdate {
+ if o == nil {
+ return SourceLaunchdarklyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLaunchdarklyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLaunchdarklyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelaunchdarklyupdate.go b/internal/sdk/pkg/models/shared/sourcelaunchdarklyupdate.go
old mode 100755
new mode 100644
index 20308055e..de238ecd5
--- a/internal/sdk/pkg/models/shared/sourcelaunchdarklyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelaunchdarklyupdate.go
@@ -6,3 +6,10 @@ type SourceLaunchdarklyUpdate struct {
// Your Access token. See here.
AccessToken string `json:"access_token"`
}
+
+func (o *SourceLaunchdarklyUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelemlist.go b/internal/sdk/pkg/models/shared/sourcelemlist.go
old mode 100755
new mode 100644
index 1b132a68e..59fb3d9cd
--- a/internal/sdk/pkg/models/shared/sourcelemlist.go
+++ b/internal/sdk/pkg/models/shared/sourcelemlist.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceLemlistLemlist) UnmarshalJSON(data []byte) error {
type SourceLemlist struct {
// Lemlist API key,
APIKey string `json:"api_key"`
- SourceType SourceLemlistLemlist `json:"sourceType"`
+ sourceType SourceLemlistLemlist `const:"lemlist" json:"sourceType"`
+}
+
+func (s SourceLemlist) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLemlist) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLemlist) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceLemlist) GetSourceType() SourceLemlistLemlist {
+ return SourceLemlistLemlistLemlist
}
diff --git a/internal/sdk/pkg/models/shared/sourcelemlistcreaterequest.go b/internal/sdk/pkg/models/shared/sourcelemlistcreaterequest.go
old mode 100755
new mode 100644
index af51ce024..8c9767540
--- a/internal/sdk/pkg/models/shared/sourcelemlistcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelemlistcreaterequest.go
@@ -9,3 +9,31 @@ type SourceLemlistCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLemlistCreateRequest) GetConfiguration() SourceLemlist {
+ if o == nil {
+ return SourceLemlist{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLemlistCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLemlistCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLemlistCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelemlistputrequest.go b/internal/sdk/pkg/models/shared/sourcelemlistputrequest.go
old mode 100755
new mode 100644
index 2b784f31d..a48691503
--- a/internal/sdk/pkg/models/shared/sourcelemlistputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelemlistputrequest.go
@@ -7,3 +7,24 @@ type SourceLemlistPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLemlistPutRequest) GetConfiguration() SourceLemlistUpdate {
+ if o == nil {
+ return SourceLemlistUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLemlistPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLemlistPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelemlistupdate.go b/internal/sdk/pkg/models/shared/sourcelemlistupdate.go
old mode 100755
new mode 100644
index 8781739b8..a9dd0594f
--- a/internal/sdk/pkg/models/shared/sourcelemlistupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelemlistupdate.go
@@ -6,3 +6,10 @@ type SourceLemlistUpdate struct {
// Lemlist API key,
APIKey string `json:"api_key"`
}
+
+func (o *SourceLemlistUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceleverhiring.go b/internal/sdk/pkg/models/shared/sourceleverhiring.go
old mode 100755
new mode 100644
index 7cb461607..11aadb928
--- a/internal/sdk/pkg/models/shared/sourceleverhiring.go
+++ b/internal/sdk/pkg/models/shared/sourceleverhiring.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthT
type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey struct {
// The Api Key of your Lever Hiring account.
APIKey string `json:"api_key"`
- AuthType *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType `json:"auth_type,omitempty"`
+ authType *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType `const:"Api Key" json:"auth_type,omitempty"`
+}
+
+func (s SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey) GetAuthType() *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType {
+ return SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthTypeAPIKey.ToPointer()
}
type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType string
@@ -66,7 +88,7 @@ func (e *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthTy
// SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth - Choose how to authenticate to Lever Hiring.
type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth struct {
- AuthType *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType `json:"auth_type,omitempty"`
+ authType *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Lever Hiring developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your Lever Hiring developer application.
@@ -75,6 +97,42 @@ type SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) GetAuthType() *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthType {
+ return SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLeverHiringAuthenticationMechanismType string
const (
@@ -108,21 +166,16 @@ func CreateSourceLeverHiringAuthenticationMechanismSourceLeverHiringAuthenticati
}
func (u *SourceLeverHiringAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey := new(SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey, "", true, true); err == nil {
u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey = sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey
u.Type = SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey
return nil
}
sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth := new(SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth, "", true, true); err == nil {
u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth = sourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth
u.Type = SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth
return nil
@@ -132,15 +185,15 @@ func (u *SourceLeverHiringAuthenticationMechanism) UnmarshalJSON(data []byte) er
}
func (u SourceLeverHiringAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
- return json.Marshal(u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey)
+ if u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
+ return utils.MarshalJSON(u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth, "", true)
}
- if u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
- return json.Marshal(u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth)
+ if u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
+ return utils.MarshalJSON(u.SourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceLeverHiringEnvironment - The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.
@@ -199,8 +252,44 @@ type SourceLeverHiring struct {
// Choose how to authenticate to Lever Hiring.
Credentials *SourceLeverHiringAuthenticationMechanism `json:"credentials,omitempty"`
// The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.
- Environment *SourceLeverHiringEnvironment `json:"environment,omitempty"`
- SourceType SourceLeverHiringLeverHiring `json:"sourceType"`
+ Environment *SourceLeverHiringEnvironment `default:"Sandbox" json:"environment"`
+ sourceType SourceLeverHiringLeverHiring `const:"lever-hiring" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.
StartDate string `json:"start_date"`
}
+
+func (s SourceLeverHiring) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiring) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiring) GetCredentials() *SourceLeverHiringAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLeverHiring) GetEnvironment() *SourceLeverHiringEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.Environment
+}
+
+func (o *SourceLeverHiring) GetSourceType() SourceLeverHiringLeverHiring {
+ return SourceLeverHiringLeverHiringLeverHiring
+}
+
+func (o *SourceLeverHiring) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceleverhiringcreaterequest.go b/internal/sdk/pkg/models/shared/sourceleverhiringcreaterequest.go
old mode 100755
new mode 100644
index 45462f3de..6a390ec18
--- a/internal/sdk/pkg/models/shared/sourceleverhiringcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceleverhiringcreaterequest.go
@@ -9,3 +9,31 @@ type SourceLeverHiringCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLeverHiringCreateRequest) GetConfiguration() SourceLeverHiring {
+ if o == nil {
+ return SourceLeverHiring{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLeverHiringCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLeverHiringCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLeverHiringCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceleverhiringputrequest.go b/internal/sdk/pkg/models/shared/sourceleverhiringputrequest.go
old mode 100755
new mode 100644
index 0ddac21de..d9bda455e
--- a/internal/sdk/pkg/models/shared/sourceleverhiringputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceleverhiringputrequest.go
@@ -7,3 +7,24 @@ type SourceLeverHiringPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLeverHiringPutRequest) GetConfiguration() SourceLeverHiringUpdate {
+ if o == nil {
+ return SourceLeverHiringUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLeverHiringPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLeverHiringPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go b/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go
old mode 100755
new mode 100644
index 2e93832b9..6132bd53c
--- a/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKe
type SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey struct {
// The Api Key of your Lever Hiring account.
APIKey string `json:"api_key"`
- AuthType *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType `json:"auth_type,omitempty"`
+ authType *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType `const:"Api Key" json:"auth_type,omitempty"`
+}
+
+func (s SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey) GetAuthType() *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthType {
+ return SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKeyAuthTypeAPIKey.ToPointer()
}
type SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType string
@@ -66,7 +88,7 @@ func (e *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth
// SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth - Choose how to authenticate to Lever Hiring.
type SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth struct {
- AuthType *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType `json:"auth_type,omitempty"`
+ authType *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Lever Hiring developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your Lever Hiring developer application.
@@ -75,6 +97,42 @@ type SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth str
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) GetAuthType() *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthType {
+ return SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuthAuthTypeClient.ToPointer()
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLeverHiringUpdateAuthenticationMechanismType string
const (
@@ -108,21 +166,16 @@ func CreateSourceLeverHiringUpdateAuthenticationMechanismSourceLeverHiringUpdate
}
func (u *SourceLeverHiringUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey := new(SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey, "", true, true); err == nil {
u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey = sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey
u.Type = SourceLeverHiringUpdateAuthenticationMechanismTypeSourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey
return nil
}
sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth := new(SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth, "", true, true); err == nil {
u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth = sourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth
u.Type = SourceLeverHiringUpdateAuthenticationMechanismTypeSourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth
return nil
@@ -132,15 +185,15 @@ func (u *SourceLeverHiringUpdateAuthenticationMechanism) UnmarshalJSON(data []by
}
func (u SourceLeverHiringUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
- return json.Marshal(u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey)
+ if u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
+ return utils.MarshalJSON(u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth, "", true)
}
- if u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth != nil {
- return json.Marshal(u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverOAuth)
+ if u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey != nil {
+ return utils.MarshalJSON(u.SourceLeverHiringUpdateAuthenticationMechanismAuthenticateViaLeverAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceLeverHiringUpdateEnvironment - The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.
@@ -175,7 +228,39 @@ type SourceLeverHiringUpdate struct {
// Choose how to authenticate to Lever Hiring.
Credentials *SourceLeverHiringUpdateAuthenticationMechanism `json:"credentials,omitempty"`
// The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use.
- Environment *SourceLeverHiringUpdateEnvironment `json:"environment,omitempty"`
+ Environment *SourceLeverHiringUpdateEnvironment `default:"Sandbox" json:"environment"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues.
StartDate string `json:"start_date"`
}
+
+func (s SourceLeverHiringUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLeverHiringUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLeverHiringUpdate) GetCredentials() *SourceLeverHiringUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLeverHiringUpdate) GetEnvironment() *SourceLeverHiringUpdateEnvironment {
+ if o == nil {
+ return nil
+ }
+ return o.Environment
+}
+
+func (o *SourceLeverHiringUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinads.go b/internal/sdk/pkg/models/shared/sourcelinkedinads.go
old mode 100755
new mode 100644
index a397e7309..4fdf2ed42
--- a/internal/sdk/pkg/models/shared/sourcelinkedinads.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinads.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -139,6 +139,27 @@ type SourceLinkedinAdsAdAnalyticsReportConfiguration struct {
TimeGranularity SourceLinkedinAdsAdAnalyticsReportConfigurationTimeGranularity `json:"time_granularity"`
}
+func (o *SourceLinkedinAdsAdAnalyticsReportConfiguration) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinAdsAdAnalyticsReportConfiguration) GetPivotBy() SourceLinkedinAdsAdAnalyticsReportConfigurationPivotCategory {
+ if o == nil {
+ return SourceLinkedinAdsAdAnalyticsReportConfigurationPivotCategory("")
+ }
+ return o.PivotBy
+}
+
+func (o *SourceLinkedinAdsAdAnalyticsReportConfiguration) GetTimeGranularity() SourceLinkedinAdsAdAnalyticsReportConfigurationTimeGranularity {
+ if o == nil {
+ return SourceLinkedinAdsAdAnalyticsReportConfigurationTimeGranularity("")
+ }
+ return o.TimeGranularity
+}
+
type SourceLinkedinAdsAuthenticationAccessTokenAuthMethod string
const (
@@ -166,7 +187,29 @@ func (e *SourceLinkedinAdsAuthenticationAccessTokenAuthMethod) UnmarshalJSON(dat
type SourceLinkedinAdsAuthenticationAccessToken struct {
// The access token generated for your developer application. Refer to our documentation for more information.
AccessToken string `json:"access_token"`
- AuthMethod *SourceLinkedinAdsAuthenticationAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinAdsAuthenticationAccessTokenAuthMethod `const:"access_token" json:"auth_method,omitempty"`
+}
+
+func (s SourceLinkedinAdsAuthenticationAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAdsAuthenticationAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAdsAuthenticationAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceLinkedinAdsAuthenticationAccessToken) GetAuthMethod() *SourceLinkedinAdsAuthenticationAccessTokenAuthMethod {
+ return SourceLinkedinAdsAuthenticationAccessTokenAuthMethodAccessToken.ToPointer()
}
type SourceLinkedinAdsAuthenticationOAuth20AuthMethod string
@@ -194,7 +237,7 @@ func (e *SourceLinkedinAdsAuthenticationOAuth20AuthMethod) UnmarshalJSON(data []
}
type SourceLinkedinAdsAuthenticationOAuth20 struct {
- AuthMethod *SourceLinkedinAdsAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinAdsAuthenticationOAuth20AuthMethod `const:"oAuth2.0" json:"auth_method,omitempty"`
// The client ID of your developer application. Refer to our documentation for more information.
ClientID string `json:"client_id"`
// The client secret of your developer application. Refer to our documentation for more information.
@@ -203,6 +246,42 @@ type SourceLinkedinAdsAuthenticationOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLinkedinAdsAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAdsAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAdsAuthenticationOAuth20) GetAuthMethod() *SourceLinkedinAdsAuthenticationOAuth20AuthMethod {
+ return SourceLinkedinAdsAuthenticationOAuth20AuthMethodOAuth20.ToPointer()
+}
+
+func (o *SourceLinkedinAdsAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceLinkedinAdsAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLinkedinAdsAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLinkedinAdsAuthenticationType string
const (
@@ -236,21 +315,16 @@ func CreateSourceLinkedinAdsAuthenticationSourceLinkedinAdsAuthenticationAccessT
}
func (u *SourceLinkedinAdsAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLinkedinAdsAuthenticationAccessToken := new(SourceLinkedinAdsAuthenticationAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinAdsAuthenticationAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsAuthenticationAccessToken, "", true, true); err == nil {
u.SourceLinkedinAdsAuthenticationAccessToken = sourceLinkedinAdsAuthenticationAccessToken
u.Type = SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsAuthenticationAccessToken
return nil
}
sourceLinkedinAdsAuthenticationOAuth20 := new(SourceLinkedinAdsAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinAdsAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsAuthenticationOAuth20, "", true, true); err == nil {
u.SourceLinkedinAdsAuthenticationOAuth20 = sourceLinkedinAdsAuthenticationOAuth20
u.Type = SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsAuthenticationOAuth20
return nil
@@ -260,15 +334,15 @@ func (u *SourceLinkedinAdsAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceLinkedinAdsAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceLinkedinAdsAuthenticationAccessToken != nil {
- return json.Marshal(u.SourceLinkedinAdsAuthenticationAccessToken)
+ if u.SourceLinkedinAdsAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceLinkedinAdsAuthenticationOAuth20, "", true)
}
- if u.SourceLinkedinAdsAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceLinkedinAdsAuthenticationOAuth20)
+ if u.SourceLinkedinAdsAuthenticationAccessToken != nil {
+ return utils.MarshalJSON(u.SourceLinkedinAdsAuthenticationAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceLinkedinAdsLinkedinAds string
@@ -300,7 +374,50 @@ type SourceLinkedinAds struct {
AccountIds []int64 `json:"account_ids,omitempty"`
AdAnalyticsReports []SourceLinkedinAdsAdAnalyticsReportConfiguration `json:"ad_analytics_reports,omitempty"`
Credentials *SourceLinkedinAdsAuthentication `json:"credentials,omitempty"`
- SourceType SourceLinkedinAdsLinkedinAds `json:"sourceType"`
+ sourceType SourceLinkedinAdsLinkedinAds `const:"linkedin-ads" json:"sourceType"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceLinkedinAds) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAds) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAds) GetAccountIds() []int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AccountIds
+}
+
+func (o *SourceLinkedinAds) GetAdAnalyticsReports() []SourceLinkedinAdsAdAnalyticsReportConfiguration {
+ if o == nil {
+ return nil
+ }
+ return o.AdAnalyticsReports
+}
+
+func (o *SourceLinkedinAds) GetCredentials() *SourceLinkedinAdsAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLinkedinAds) GetSourceType() SourceLinkedinAdsLinkedinAds {
+ return SourceLinkedinAdsLinkedinAdsLinkedinAds
+}
+
+func (o *SourceLinkedinAds) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinadscreaterequest.go b/internal/sdk/pkg/models/shared/sourcelinkedinadscreaterequest.go
old mode 100755
new mode 100644
index 99a742bab..2b2470a89
--- a/internal/sdk/pkg/models/shared/sourcelinkedinadscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinadscreaterequest.go
@@ -9,3 +9,31 @@ type SourceLinkedinAdsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinkedinAdsCreateRequest) GetConfiguration() SourceLinkedinAds {
+ if o == nil {
+ return SourceLinkedinAds{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinkedinAdsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinAdsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLinkedinAdsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinadsputrequest.go b/internal/sdk/pkg/models/shared/sourcelinkedinadsputrequest.go
old mode 100755
new mode 100644
index 2bbdbf9a8..e5100c905
--- a/internal/sdk/pkg/models/shared/sourcelinkedinadsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinadsputrequest.go
@@ -7,3 +7,24 @@ type SourceLinkedinAdsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinkedinAdsPutRequest) GetConfiguration() SourceLinkedinAdsUpdate {
+ if o == nil {
+ return SourceLinkedinAdsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinkedinAdsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinAdsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go b/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go
old mode 100755
new mode 100644
index 27c2d63fc..47df5e15e
--- a/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -139,6 +139,27 @@ type SourceLinkedinAdsUpdateAdAnalyticsReportConfiguration struct {
TimeGranularity SourceLinkedinAdsUpdateAdAnalyticsReportConfigurationTimeGranularity `json:"time_granularity"`
}
+func (o *SourceLinkedinAdsUpdateAdAnalyticsReportConfiguration) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinAdsUpdateAdAnalyticsReportConfiguration) GetPivotBy() SourceLinkedinAdsUpdateAdAnalyticsReportConfigurationPivotCategory {
+ if o == nil {
+ return SourceLinkedinAdsUpdateAdAnalyticsReportConfigurationPivotCategory("")
+ }
+ return o.PivotBy
+}
+
+func (o *SourceLinkedinAdsUpdateAdAnalyticsReportConfiguration) GetTimeGranularity() SourceLinkedinAdsUpdateAdAnalyticsReportConfigurationTimeGranularity {
+ if o == nil {
+ return SourceLinkedinAdsUpdateAdAnalyticsReportConfigurationTimeGranularity("")
+ }
+ return o.TimeGranularity
+}
+
type SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod string
const (
@@ -166,7 +187,29 @@ func (e *SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod) UnmarshalJS
type SourceLinkedinAdsUpdateAuthenticationAccessToken struct {
// The access token generated for your developer application. Refer to our documentation for more information.
AccessToken string `json:"access_token"`
- AuthMethod *SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod `const:"access_token" json:"auth_method,omitempty"`
+}
+
+func (s SourceLinkedinAdsUpdateAuthenticationAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAdsUpdateAuthenticationAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationAccessToken) GetAuthMethod() *SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethod {
+ return SourceLinkedinAdsUpdateAuthenticationAccessTokenAuthMethodAccessToken.ToPointer()
}
type SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod string
@@ -194,7 +237,7 @@ func (e *SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod) UnmarshalJSON(d
}
type SourceLinkedinAdsUpdateAuthenticationOAuth20 struct {
- AuthMethod *SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod `const:"oAuth2.0" json:"auth_method,omitempty"`
// The client ID of your developer application. Refer to our documentation for more information.
ClientID string `json:"client_id"`
// The client secret of your developer application. Refer to our documentation for more information.
@@ -203,6 +246,42 @@ type SourceLinkedinAdsUpdateAuthenticationOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLinkedinAdsUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAdsUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationOAuth20) GetAuthMethod() *SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethod {
+ return SourceLinkedinAdsUpdateAuthenticationOAuth20AuthMethodOAuth20.ToPointer()
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLinkedinAdsUpdateAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLinkedinAdsUpdateAuthenticationType string
const (
@@ -236,21 +315,16 @@ func CreateSourceLinkedinAdsUpdateAuthenticationSourceLinkedinAdsUpdateAuthentic
}
func (u *SourceLinkedinAdsUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLinkedinAdsUpdateAuthenticationAccessToken := new(SourceLinkedinAdsUpdateAuthenticationAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinAdsUpdateAuthenticationAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsUpdateAuthenticationAccessToken, "", true, true); err == nil {
u.SourceLinkedinAdsUpdateAuthenticationAccessToken = sourceLinkedinAdsUpdateAuthenticationAccessToken
u.Type = SourceLinkedinAdsUpdateAuthenticationTypeSourceLinkedinAdsUpdateAuthenticationAccessToken
return nil
}
sourceLinkedinAdsUpdateAuthenticationOAuth20 := new(SourceLinkedinAdsUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinAdsUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceLinkedinAdsUpdateAuthenticationOAuth20 = sourceLinkedinAdsUpdateAuthenticationOAuth20
u.Type = SourceLinkedinAdsUpdateAuthenticationTypeSourceLinkedinAdsUpdateAuthenticationOAuth20
return nil
@@ -260,15 +334,15 @@ func (u *SourceLinkedinAdsUpdateAuthentication) UnmarshalJSON(data []byte) error
}
func (u SourceLinkedinAdsUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceLinkedinAdsUpdateAuthenticationAccessToken != nil {
- return json.Marshal(u.SourceLinkedinAdsUpdateAuthenticationAccessToken)
+ if u.SourceLinkedinAdsUpdateAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceLinkedinAdsUpdateAuthenticationOAuth20, "", true)
}
- if u.SourceLinkedinAdsUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceLinkedinAdsUpdateAuthenticationOAuth20)
+ if u.SourceLinkedinAdsUpdateAuthenticationAccessToken != nil {
+ return utils.MarshalJSON(u.SourceLinkedinAdsUpdateAuthenticationAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceLinkedinAdsUpdate struct {
@@ -279,3 +353,42 @@ type SourceLinkedinAdsUpdate struct {
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated.
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceLinkedinAdsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinAdsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinAdsUpdate) GetAccountIds() []int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AccountIds
+}
+
+func (o *SourceLinkedinAdsUpdate) GetAdAnalyticsReports() []SourceLinkedinAdsUpdateAdAnalyticsReportConfiguration {
+ if o == nil {
+ return nil
+ }
+ return o.AdAnalyticsReports
+}
+
+func (o *SourceLinkedinAdsUpdate) GetCredentials() *SourceLinkedinAdsUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLinkedinAdsUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpages.go b/internal/sdk/pkg/models/shared/sourcelinkedinpages.go
old mode 100755
new mode 100644
index d57609355..c4dd362cb
--- a/internal/sdk/pkg/models/shared/sourcelinkedinpages.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinpages.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceLinkedinPagesAuthenticationAccessTokenAuthMethod) UnmarshalJSON(d
type SourceLinkedinPagesAuthenticationAccessToken struct {
// The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
AccessToken string `json:"access_token"`
- AuthMethod *SourceLinkedinPagesAuthenticationAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinPagesAuthenticationAccessTokenAuthMethod `const:"access_token" json:"auth_method,omitempty"`
+}
+
+func (s SourceLinkedinPagesAuthenticationAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinPagesAuthenticationAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinPagesAuthenticationAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceLinkedinPagesAuthenticationAccessToken) GetAuthMethod() *SourceLinkedinPagesAuthenticationAccessTokenAuthMethod {
+ return SourceLinkedinPagesAuthenticationAccessTokenAuthMethodAccessToken.ToPointer()
}
type SourceLinkedinPagesAuthenticationOAuth20AuthMethod string
@@ -64,7 +86,7 @@ func (e *SourceLinkedinPagesAuthenticationOAuth20AuthMethod) UnmarshalJSON(data
}
type SourceLinkedinPagesAuthenticationOAuth20 struct {
- AuthMethod *SourceLinkedinPagesAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinPagesAuthenticationOAuth20AuthMethod `const:"oAuth2.0" json:"auth_method,omitempty"`
// The client ID of the LinkedIn developer application.
ClientID string `json:"client_id"`
// The client secret of the LinkedIn developer application.
@@ -73,6 +95,42 @@ type SourceLinkedinPagesAuthenticationOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLinkedinPagesAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinPagesAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinPagesAuthenticationOAuth20) GetAuthMethod() *SourceLinkedinPagesAuthenticationOAuth20AuthMethod {
+ return SourceLinkedinPagesAuthenticationOAuth20AuthMethodOAuth20.ToPointer()
+}
+
+func (o *SourceLinkedinPagesAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceLinkedinPagesAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLinkedinPagesAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLinkedinPagesAuthenticationType string
const (
@@ -106,21 +164,16 @@ func CreateSourceLinkedinPagesAuthenticationSourceLinkedinPagesAuthenticationAcc
}
func (u *SourceLinkedinPagesAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLinkedinPagesAuthenticationAccessToken := new(SourceLinkedinPagesAuthenticationAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinPagesAuthenticationAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesAuthenticationAccessToken, "", true, true); err == nil {
u.SourceLinkedinPagesAuthenticationAccessToken = sourceLinkedinPagesAuthenticationAccessToken
u.Type = SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesAuthenticationAccessToken
return nil
}
sourceLinkedinPagesAuthenticationOAuth20 := new(SourceLinkedinPagesAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinPagesAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesAuthenticationOAuth20, "", true, true); err == nil {
u.SourceLinkedinPagesAuthenticationOAuth20 = sourceLinkedinPagesAuthenticationOAuth20
u.Type = SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesAuthenticationOAuth20
return nil
@@ -130,15 +183,15 @@ func (u *SourceLinkedinPagesAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceLinkedinPagesAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceLinkedinPagesAuthenticationAccessToken != nil {
- return json.Marshal(u.SourceLinkedinPagesAuthenticationAccessToken)
+ if u.SourceLinkedinPagesAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceLinkedinPagesAuthenticationOAuth20, "", true)
}
- if u.SourceLinkedinPagesAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceLinkedinPagesAuthenticationOAuth20)
+ if u.SourceLinkedinPagesAuthenticationAccessToken != nil {
+ return utils.MarshalJSON(u.SourceLinkedinPagesAuthenticationAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceLinkedinPagesLinkedinPages string
@@ -169,5 +222,34 @@ type SourceLinkedinPages struct {
Credentials *SourceLinkedinPagesAuthentication `json:"credentials,omitempty"`
// Specify the Organization ID
OrgID string `json:"org_id"`
- SourceType SourceLinkedinPagesLinkedinPages `json:"sourceType"`
+ sourceType SourceLinkedinPagesLinkedinPages `const:"linkedin-pages" json:"sourceType"`
+}
+
+func (s SourceLinkedinPages) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinPages) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinPages) GetCredentials() *SourceLinkedinPagesAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLinkedinPages) GetOrgID() string {
+ if o == nil {
+ return ""
+ }
+ return o.OrgID
+}
+
+func (o *SourceLinkedinPages) GetSourceType() SourceLinkedinPagesLinkedinPages {
+ return SourceLinkedinPagesLinkedinPagesLinkedinPages
}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpagescreaterequest.go b/internal/sdk/pkg/models/shared/sourcelinkedinpagescreaterequest.go
old mode 100755
new mode 100644
index 80193e1c2..23b2b5b82
--- a/internal/sdk/pkg/models/shared/sourcelinkedinpagescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinpagescreaterequest.go
@@ -9,3 +9,31 @@ type SourceLinkedinPagesCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinkedinPagesCreateRequest) GetConfiguration() SourceLinkedinPages {
+ if o == nil {
+ return SourceLinkedinPages{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinkedinPagesCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinPagesCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLinkedinPagesCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpagesputrequest.go b/internal/sdk/pkg/models/shared/sourcelinkedinpagesputrequest.go
old mode 100755
new mode 100644
index 948253496..be23b2efe
--- a/internal/sdk/pkg/models/shared/sourcelinkedinpagesputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinpagesputrequest.go
@@ -7,3 +7,24 @@ type SourceLinkedinPagesPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinkedinPagesPutRequest) GetConfiguration() SourceLinkedinPagesUpdate {
+ if o == nil {
+ return SourceLinkedinPagesUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinkedinPagesPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinkedinPagesPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go b/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go
old mode 100755
new mode 100644
index d6272b51c..c7e3744e8
--- a/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod) Unmarshal
type SourceLinkedinPagesUpdateAuthenticationAccessToken struct {
// The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours.
AccessToken string `json:"access_token"`
- AuthMethod *SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod `const:"access_token" json:"auth_method,omitempty"`
+}
+
+func (s SourceLinkedinPagesUpdateAuthenticationAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinPagesUpdateAuthenticationAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationAccessToken) GetAuthMethod() *SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethod {
+ return SourceLinkedinPagesUpdateAuthenticationAccessTokenAuthMethodAccessToken.ToPointer()
}
type SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod string
@@ -64,7 +86,7 @@ func (e *SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod) UnmarshalJSON
}
type SourceLinkedinPagesUpdateAuthenticationOAuth20 struct {
- AuthMethod *SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod `json:"auth_method,omitempty"`
+ authMethod *SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod `const:"oAuth2.0" json:"auth_method,omitempty"`
// The client ID of the LinkedIn developer application.
ClientID string `json:"client_id"`
// The client secret of the LinkedIn developer application.
@@ -73,6 +95,42 @@ type SourceLinkedinPagesUpdateAuthenticationOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceLinkedinPagesUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinkedinPagesUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationOAuth20) GetAuthMethod() *SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethod {
+ return SourceLinkedinPagesUpdateAuthenticationOAuth20AuthMethodOAuth20.ToPointer()
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceLinkedinPagesUpdateAuthenticationOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceLinkedinPagesUpdateAuthenticationType string
const (
@@ -106,21 +164,16 @@ func CreateSourceLinkedinPagesUpdateAuthenticationSourceLinkedinPagesUpdateAuthe
}
func (u *SourceLinkedinPagesUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceLinkedinPagesUpdateAuthenticationAccessToken := new(SourceLinkedinPagesUpdateAuthenticationAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinPagesUpdateAuthenticationAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesUpdateAuthenticationAccessToken, "", true, true); err == nil {
u.SourceLinkedinPagesUpdateAuthenticationAccessToken = sourceLinkedinPagesUpdateAuthenticationAccessToken
u.Type = SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateAuthenticationAccessToken
return nil
}
sourceLinkedinPagesUpdateAuthenticationOAuth20 := new(SourceLinkedinPagesUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceLinkedinPagesUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceLinkedinPagesUpdateAuthenticationOAuth20 = sourceLinkedinPagesUpdateAuthenticationOAuth20
u.Type = SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateAuthenticationOAuth20
return nil
@@ -130,15 +183,15 @@ func (u *SourceLinkedinPagesUpdateAuthentication) UnmarshalJSON(data []byte) err
}
func (u SourceLinkedinPagesUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceLinkedinPagesUpdateAuthenticationAccessToken != nil {
- return json.Marshal(u.SourceLinkedinPagesUpdateAuthenticationAccessToken)
+ if u.SourceLinkedinPagesUpdateAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceLinkedinPagesUpdateAuthenticationOAuth20, "", true)
}
- if u.SourceLinkedinPagesUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceLinkedinPagesUpdateAuthenticationOAuth20)
+ if u.SourceLinkedinPagesUpdateAuthenticationAccessToken != nil {
+ return utils.MarshalJSON(u.SourceLinkedinPagesUpdateAuthenticationAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceLinkedinPagesUpdate struct {
@@ -146,3 +199,17 @@ type SourceLinkedinPagesUpdate struct {
// Specify the Organization ID
OrgID string `json:"org_id"`
}
+
+func (o *SourceLinkedinPagesUpdate) GetCredentials() *SourceLinkedinPagesUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceLinkedinPagesUpdate) GetOrgID() string {
+ if o == nil {
+ return ""
+ }
+ return o.OrgID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinnworks.go b/internal/sdk/pkg/models/shared/sourcelinnworks.go
old mode 100755
new mode 100644
index aec60ff9e..8b4d72fe6
--- a/internal/sdk/pkg/models/shared/sourcelinnworks.go
+++ b/internal/sdk/pkg/models/shared/sourcelinnworks.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -37,8 +38,51 @@ type SourceLinnworks struct {
ApplicationID string `json:"application_id"`
// Linnworks Application Secret
ApplicationSecret string `json:"application_secret"`
- SourceType SourceLinnworksLinnworks `json:"sourceType"`
+ sourceType SourceLinnworksLinnworks `const:"linnworks" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
Token string `json:"token"`
}
+
+func (s SourceLinnworks) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinnworks) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinnworks) GetApplicationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ApplicationID
+}
+
+func (o *SourceLinnworks) GetApplicationSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ApplicationSecret
+}
+
+func (o *SourceLinnworks) GetSourceType() SourceLinnworksLinnworks {
+ return SourceLinnworksLinnworksLinnworks
+}
+
+func (o *SourceLinnworks) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceLinnworks) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinnworkscreaterequest.go b/internal/sdk/pkg/models/shared/sourcelinnworkscreaterequest.go
old mode 100755
new mode 100644
index c8722ff2d..775b90d45
--- a/internal/sdk/pkg/models/shared/sourcelinnworkscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinnworkscreaterequest.go
@@ -9,3 +9,31 @@ type SourceLinnworksCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinnworksCreateRequest) GetConfiguration() SourceLinnworks {
+ if o == nil {
+ return SourceLinnworks{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinnworksCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinnworksCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLinnworksCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinnworksputrequest.go b/internal/sdk/pkg/models/shared/sourcelinnworksputrequest.go
old mode 100755
new mode 100644
index b7ceaf0a6..6a5ec6b73
--- a/internal/sdk/pkg/models/shared/sourcelinnworksputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelinnworksputrequest.go
@@ -7,3 +7,24 @@ type SourceLinnworksPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLinnworksPutRequest) GetConfiguration() SourceLinnworksUpdate {
+ if o == nil {
+ return SourceLinnworksUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLinnworksPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLinnworksPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelinnworksupdate.go b/internal/sdk/pkg/models/shared/sourcelinnworksupdate.go
old mode 100755
new mode 100644
index 4e9ede65e..7d5ca1103
--- a/internal/sdk/pkg/models/shared/sourcelinnworksupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelinnworksupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -15,3 +16,42 @@ type SourceLinnworksUpdate struct {
StartDate time.Time `json:"start_date"`
Token string `json:"token"`
}
+
+func (s SourceLinnworksUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLinnworksUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLinnworksUpdate) GetApplicationID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ApplicationID
+}
+
+func (o *SourceLinnworksUpdate) GetApplicationSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ApplicationSecret
+}
+
+func (o *SourceLinnworksUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceLinnworksUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelokalise.go b/internal/sdk/pkg/models/shared/sourcelokalise.go
old mode 100755
new mode 100644
index c5bf13db7..9fdc84b41
--- a/internal/sdk/pkg/models/shared/sourcelokalise.go
+++ b/internal/sdk/pkg/models/shared/sourcelokalise.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceLokalise struct {
APIKey string `json:"api_key"`
// Lokalise project ID. Available at Project Settings > General.
ProjectID string `json:"project_id"`
- SourceType SourceLokaliseLokalise `json:"sourceType"`
+ sourceType SourceLokaliseLokalise `const:"lokalise" json:"sourceType"`
+}
+
+func (s SourceLokalise) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceLokalise) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceLokalise) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceLokalise) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
+
+func (o *SourceLokalise) GetSourceType() SourceLokaliseLokalise {
+ return SourceLokaliseLokaliseLokalise
}
diff --git a/internal/sdk/pkg/models/shared/sourcelokalisecreaterequest.go b/internal/sdk/pkg/models/shared/sourcelokalisecreaterequest.go
old mode 100755
new mode 100644
index a4148de0f..1b6a62b06
--- a/internal/sdk/pkg/models/shared/sourcelokalisecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelokalisecreaterequest.go
@@ -9,3 +9,31 @@ type SourceLokaliseCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLokaliseCreateRequest) GetConfiguration() SourceLokalise {
+ if o == nil {
+ return SourceLokalise{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLokaliseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLokaliseCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceLokaliseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelokaliseputrequest.go b/internal/sdk/pkg/models/shared/sourcelokaliseputrequest.go
old mode 100755
new mode 100644
index 04a057c3e..b28aff4c7
--- a/internal/sdk/pkg/models/shared/sourcelokaliseputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcelokaliseputrequest.go
@@ -7,3 +7,24 @@ type SourceLokalisePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceLokalisePutRequest) GetConfiguration() SourceLokaliseUpdate {
+ if o == nil {
+ return SourceLokaliseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceLokalisePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceLokalisePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcelokaliseupdate.go b/internal/sdk/pkg/models/shared/sourcelokaliseupdate.go
old mode 100755
new mode 100644
index 2f83fa8ee..4a51aee99
--- a/internal/sdk/pkg/models/shared/sourcelokaliseupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcelokaliseupdate.go
@@ -8,3 +8,17 @@ type SourceLokaliseUpdate struct {
// Lokalise project ID. Available at Project Settings > General.
ProjectID string `json:"project_id"`
}
+
+func (o *SourceLokaliseUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceLokaliseUpdate) GetProjectID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailchimp.go b/internal/sdk/pkg/models/shared/sourcemailchimp.go
old mode 100755
new mode 100644
index 1bf0ec2a8..6cd03d31d
--- a/internal/sdk/pkg/models/shared/sourcemailchimp.go
+++ b/internal/sdk/pkg/models/shared/sourcemailchimp.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceMailchimpAuthenticationAPIKeyAuthType) UnmarshalJSON(data []byte)
type SourceMailchimpAuthenticationAPIKey struct {
// Mailchimp API Key. See the docs for information on how to generate this key.
Apikey string `json:"apikey"`
- AuthType SourceMailchimpAuthenticationAPIKeyAuthType `json:"auth_type"`
+ authType SourceMailchimpAuthenticationAPIKeyAuthType `const:"apikey" json:"auth_type"`
+}
+
+func (s SourceMailchimpAuthenticationAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailchimpAuthenticationAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailchimpAuthenticationAPIKey) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceMailchimpAuthenticationAPIKey) GetAuthType() SourceMailchimpAuthenticationAPIKeyAuthType {
+ return SourceMailchimpAuthenticationAPIKeyAuthTypeApikey
}
type SourceMailchimpAuthenticationOAuth20AuthType string
@@ -66,13 +88,49 @@ func (e *SourceMailchimpAuthenticationOAuth20AuthType) UnmarshalJSON(data []byte
type SourceMailchimpAuthenticationOAuth20 struct {
// An access token generated using the above client ID and secret.
AccessToken string `json:"access_token"`
- AuthType SourceMailchimpAuthenticationOAuth20AuthType `json:"auth_type"`
+ authType SourceMailchimpAuthenticationOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceMailchimpAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailchimpAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailchimpAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceMailchimpAuthenticationOAuth20) GetAuthType() SourceMailchimpAuthenticationOAuth20AuthType {
+ return SourceMailchimpAuthenticationOAuth20AuthTypeOauth20
+}
+
+func (o *SourceMailchimpAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceMailchimpAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
type SourceMailchimpAuthenticationType string
const (
@@ -106,21 +164,16 @@ func CreateSourceMailchimpAuthenticationSourceMailchimpAuthenticationAPIKey(sour
}
func (u *SourceMailchimpAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMailchimpAuthenticationAPIKey := new(SourceMailchimpAuthenticationAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMailchimpAuthenticationAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMailchimpAuthenticationAPIKey, "", true, true); err == nil {
u.SourceMailchimpAuthenticationAPIKey = sourceMailchimpAuthenticationAPIKey
u.Type = SourceMailchimpAuthenticationTypeSourceMailchimpAuthenticationAPIKey
return nil
}
sourceMailchimpAuthenticationOAuth20 := new(SourceMailchimpAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMailchimpAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMailchimpAuthenticationOAuth20, "", true, true); err == nil {
u.SourceMailchimpAuthenticationOAuth20 = sourceMailchimpAuthenticationOAuth20
u.Type = SourceMailchimpAuthenticationTypeSourceMailchimpAuthenticationOAuth20
return nil
@@ -130,15 +183,15 @@ func (u *SourceMailchimpAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceMailchimpAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceMailchimpAuthenticationAPIKey != nil {
- return json.Marshal(u.SourceMailchimpAuthenticationAPIKey)
+ if u.SourceMailchimpAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMailchimpAuthenticationOAuth20, "", true)
}
- if u.SourceMailchimpAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceMailchimpAuthenticationOAuth20)
+ if u.SourceMailchimpAuthenticationAPIKey != nil {
+ return utils.MarshalJSON(u.SourceMailchimpAuthenticationAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMailchimpMailchimp string
@@ -168,5 +221,34 @@ func (e *SourceMailchimpMailchimp) UnmarshalJSON(data []byte) error {
type SourceMailchimp struct {
CampaignID *string `json:"campaign_id,omitempty"`
Credentials *SourceMailchimpAuthentication `json:"credentials,omitempty"`
- SourceType SourceMailchimpMailchimp `json:"sourceType"`
+ sourceType SourceMailchimpMailchimp `const:"mailchimp" json:"sourceType"`
+}
+
+func (s SourceMailchimp) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailchimp) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailchimp) GetCampaignID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CampaignID
+}
+
+func (o *SourceMailchimp) GetCredentials() *SourceMailchimpAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMailchimp) GetSourceType() SourceMailchimpMailchimp {
+ return SourceMailchimpMailchimpMailchimp
}
diff --git a/internal/sdk/pkg/models/shared/sourcemailchimpcreaterequest.go b/internal/sdk/pkg/models/shared/sourcemailchimpcreaterequest.go
old mode 100755
new mode 100644
index 6e0a8dc45..0450c6f06
--- a/internal/sdk/pkg/models/shared/sourcemailchimpcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailchimpcreaterequest.go
@@ -9,3 +9,31 @@ type SourceMailchimpCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailchimpCreateRequest) GetConfiguration() SourceMailchimp {
+ if o == nil {
+ return SourceMailchimp{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailchimpCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailchimpCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMailchimpCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailchimpputrequest.go b/internal/sdk/pkg/models/shared/sourcemailchimpputrequest.go
old mode 100755
new mode 100644
index df35b9542..4fd63b3f3
--- a/internal/sdk/pkg/models/shared/sourcemailchimpputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailchimpputrequest.go
@@ -7,3 +7,24 @@ type SourceMailchimpPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailchimpPutRequest) GetConfiguration() SourceMailchimpUpdate {
+ if o == nil {
+ return SourceMailchimpUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailchimpPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailchimpPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go b/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go
old mode 100755
new mode 100644
index beaab7dda..12e8463da
--- a/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceMailchimpUpdateAuthenticationAPIKeyAuthType) UnmarshalJSON(data [
type SourceMailchimpUpdateAuthenticationAPIKey struct {
// Mailchimp API Key. See the docs for information on how to generate this key.
Apikey string `json:"apikey"`
- AuthType SourceMailchimpUpdateAuthenticationAPIKeyAuthType `json:"auth_type"`
+ authType SourceMailchimpUpdateAuthenticationAPIKeyAuthType `const:"apikey" json:"auth_type"`
+}
+
+func (s SourceMailchimpUpdateAuthenticationAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailchimpUpdateAuthenticationAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailchimpUpdateAuthenticationAPIKey) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceMailchimpUpdateAuthenticationAPIKey) GetAuthType() SourceMailchimpUpdateAuthenticationAPIKeyAuthType {
+ return SourceMailchimpUpdateAuthenticationAPIKeyAuthTypeApikey
}
type SourceMailchimpUpdateAuthenticationOAuth20AuthType string
@@ -66,13 +88,49 @@ func (e *SourceMailchimpUpdateAuthenticationOAuth20AuthType) UnmarshalJSON(data
type SourceMailchimpUpdateAuthenticationOAuth20 struct {
// An access token generated using the above client ID and secret.
AccessToken string `json:"access_token"`
- AuthType SourceMailchimpUpdateAuthenticationOAuth20AuthType `json:"auth_type"`
+ authType SourceMailchimpUpdateAuthenticationOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceMailchimpUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailchimpUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailchimpUpdateAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceMailchimpUpdateAuthenticationOAuth20) GetAuthType() SourceMailchimpUpdateAuthenticationOAuth20AuthType {
+ return SourceMailchimpUpdateAuthenticationOAuth20AuthTypeOauth20
+}
+
+func (o *SourceMailchimpUpdateAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceMailchimpUpdateAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
type SourceMailchimpUpdateAuthenticationType string
const (
@@ -106,21 +164,16 @@ func CreateSourceMailchimpUpdateAuthenticationSourceMailchimpUpdateAuthenticatio
}
func (u *SourceMailchimpUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMailchimpUpdateAuthenticationAPIKey := new(SourceMailchimpUpdateAuthenticationAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMailchimpUpdateAuthenticationAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMailchimpUpdateAuthenticationAPIKey, "", true, true); err == nil {
u.SourceMailchimpUpdateAuthenticationAPIKey = sourceMailchimpUpdateAuthenticationAPIKey
u.Type = SourceMailchimpUpdateAuthenticationTypeSourceMailchimpUpdateAuthenticationAPIKey
return nil
}
sourceMailchimpUpdateAuthenticationOAuth20 := new(SourceMailchimpUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMailchimpUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMailchimpUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceMailchimpUpdateAuthenticationOAuth20 = sourceMailchimpUpdateAuthenticationOAuth20
u.Type = SourceMailchimpUpdateAuthenticationTypeSourceMailchimpUpdateAuthenticationOAuth20
return nil
@@ -130,18 +183,32 @@ func (u *SourceMailchimpUpdateAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceMailchimpUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceMailchimpUpdateAuthenticationAPIKey != nil {
- return json.Marshal(u.SourceMailchimpUpdateAuthenticationAPIKey)
+ if u.SourceMailchimpUpdateAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMailchimpUpdateAuthenticationOAuth20, "", true)
}
- if u.SourceMailchimpUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceMailchimpUpdateAuthenticationOAuth20)
+ if u.SourceMailchimpUpdateAuthenticationAPIKey != nil {
+ return utils.MarshalJSON(u.SourceMailchimpUpdateAuthenticationAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMailchimpUpdate struct {
CampaignID *string `json:"campaign_id,omitempty"`
Credentials *SourceMailchimpUpdateAuthentication `json:"credentials,omitempty"`
}
+
+func (o *SourceMailchimpUpdate) GetCampaignID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.CampaignID
+}
+
+func (o *SourceMailchimpUpdate) GetCredentials() *SourceMailchimpUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailgun.go b/internal/sdk/pkg/models/shared/sourcemailgun.go
old mode 100755
new mode 100644
index a54eb2abd..256497c37
--- a/internal/sdk/pkg/models/shared/sourcemailgun.go
+++ b/internal/sdk/pkg/models/shared/sourcemailgun.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -34,10 +35,46 @@ func (e *SourceMailgunMailgun) UnmarshalJSON(data []byte) error {
type SourceMailgun struct {
// Domain region code. 'EU' or 'US' are possible values. The default is 'US'.
- DomainRegion *string `json:"domain_region,omitempty"`
+ DomainRegion *string `default:"US" json:"domain_region"`
// Primary account API key to access your Mailgun data.
PrivateKey string `json:"private_key"`
- SourceType SourceMailgunMailgun `json:"sourceType"`
+ sourceType SourceMailgunMailgun `const:"mailgun" json:"sourceType"`
// UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceMailgun) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailgun) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailgun) GetDomainRegion() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DomainRegion
+}
+
+func (o *SourceMailgun) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceMailgun) GetSourceType() SourceMailgunMailgun {
+ return SourceMailgunMailgunMailgun
+}
+
+func (o *SourceMailgun) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailguncreaterequest.go b/internal/sdk/pkg/models/shared/sourcemailguncreaterequest.go
old mode 100755
new mode 100644
index 0481153cf..9d26ec113
--- a/internal/sdk/pkg/models/shared/sourcemailguncreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailguncreaterequest.go
@@ -9,3 +9,31 @@ type SourceMailgunCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailgunCreateRequest) GetConfiguration() SourceMailgun {
+ if o == nil {
+ return SourceMailgun{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailgunCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailgunCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMailgunCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailgunputrequest.go b/internal/sdk/pkg/models/shared/sourcemailgunputrequest.go
old mode 100755
new mode 100644
index 12016dd59..386898287
--- a/internal/sdk/pkg/models/shared/sourcemailgunputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailgunputrequest.go
@@ -7,3 +7,24 @@ type SourceMailgunPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailgunPutRequest) GetConfiguration() SourceMailgunUpdate {
+ if o == nil {
+ return SourceMailgunUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailgunPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailgunPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailgunupdate.go b/internal/sdk/pkg/models/shared/sourcemailgunupdate.go
old mode 100755
new mode 100644
index 220f35bdc..b0ac0b22c
--- a/internal/sdk/pkg/models/shared/sourcemailgunupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemailgunupdate.go
@@ -3,14 +3,47 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
type SourceMailgunUpdate struct {
// Domain region code. 'EU' or 'US' are possible values. The default is 'US'.
- DomainRegion *string `json:"domain_region,omitempty"`
+ DomainRegion *string `default:"US" json:"domain_region"`
// Primary account API key to access your Mailgun data.
PrivateKey string `json:"private_key"`
// UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceMailgunUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailgunUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailgunUpdate) GetDomainRegion() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DomainRegion
+}
+
+func (o *SourceMailgunUpdate) GetPrivateKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceMailgunUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailjetsms.go b/internal/sdk/pkg/models/shared/sourcemailjetsms.go
old mode 100755
new mode 100644
index a42f40cb4..5cad3417a
--- a/internal/sdk/pkg/models/shared/sourcemailjetsms.go
+++ b/internal/sdk/pkg/models/shared/sourcemailjetsms.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,9 +35,45 @@ func (e *SourceMailjetSmsMailjetSms) UnmarshalJSON(data []byte) error {
type SourceMailjetSms struct {
// Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp.
EndDate *int64 `json:"end_date,omitempty"`
- SourceType SourceMailjetSmsMailjetSms `json:"sourceType"`
+ sourceType SourceMailjetSmsMailjetSms `const:"mailjet-sms" json:"sourceType"`
// Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp.
StartDate *int64 `json:"start_date,omitempty"`
// Your access token. See here.
Token string `json:"token"`
}
+
+func (s SourceMailjetSms) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMailjetSms) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMailjetSms) GetEndDate() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceMailjetSms) GetSourceType() SourceMailjetSmsMailjetSms {
+ return SourceMailjetSmsMailjetSmsMailjetSms
+}
+
+func (o *SourceMailjetSms) GetStartDate() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceMailjetSms) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailjetsmscreaterequest.go b/internal/sdk/pkg/models/shared/sourcemailjetsmscreaterequest.go
old mode 100755
new mode 100644
index b9c87b4e3..06242a8ff
--- a/internal/sdk/pkg/models/shared/sourcemailjetsmscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailjetsmscreaterequest.go
@@ -9,3 +9,31 @@ type SourceMailjetSmsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailjetSmsCreateRequest) GetConfiguration() SourceMailjetSms {
+ if o == nil {
+ return SourceMailjetSms{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailjetSmsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailjetSmsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMailjetSmsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailjetsmsputrequest.go b/internal/sdk/pkg/models/shared/sourcemailjetsmsputrequest.go
old mode 100755
new mode 100644
index a6957e590..7c4b4c5e0
--- a/internal/sdk/pkg/models/shared/sourcemailjetsmsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemailjetsmsputrequest.go
@@ -7,3 +7,24 @@ type SourceMailjetSmsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMailjetSmsPutRequest) GetConfiguration() SourceMailjetSmsUpdate {
+ if o == nil {
+ return SourceMailjetSmsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMailjetSmsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMailjetSmsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemailjetsmsupdate.go b/internal/sdk/pkg/models/shared/sourcemailjetsmsupdate.go
old mode 100755
new mode 100644
index 8b3c0a2e5..ba935d210
--- a/internal/sdk/pkg/models/shared/sourcemailjetsmsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemailjetsmsupdate.go
@@ -10,3 +10,24 @@ type SourceMailjetSmsUpdate struct {
// Your access token. See here.
Token string `json:"token"`
}
+
+func (o *SourceMailjetSmsUpdate) GetEndDate() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceMailjetSmsUpdate) GetStartDate() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceMailjetSmsUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemarketo.go b/internal/sdk/pkg/models/shared/sourcemarketo.go
old mode 100755
new mode 100644
index 5cd15e264..f3647aeb9
--- a/internal/sdk/pkg/models/shared/sourcemarketo.go
+++ b/internal/sdk/pkg/models/shared/sourcemarketo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,7 +40,50 @@ type SourceMarketo struct {
ClientSecret string `json:"client_secret"`
// Your Marketo Base URL. See the docs for info on how to obtain this.
DomainURL string `json:"domain_url"`
- SourceType SourceMarketoMarketo `json:"sourceType"`
+ sourceType SourceMarketoMarketo `const:"marketo" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceMarketo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMarketo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMarketo) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMarketo) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMarketo) GetDomainURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainURL
+}
+
+func (o *SourceMarketo) GetSourceType() SourceMarketoMarketo {
+ return SourceMarketoMarketoMarketo
+}
+
+func (o *SourceMarketo) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemarketocreaterequest.go b/internal/sdk/pkg/models/shared/sourcemarketocreaterequest.go
old mode 100755
new mode 100644
index df46f074b..f8cf321f4
--- a/internal/sdk/pkg/models/shared/sourcemarketocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemarketocreaterequest.go
@@ -9,3 +9,31 @@ type SourceMarketoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMarketoCreateRequest) GetConfiguration() SourceMarketo {
+ if o == nil {
+ return SourceMarketo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMarketoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMarketoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMarketoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemarketoputrequest.go b/internal/sdk/pkg/models/shared/sourcemarketoputrequest.go
old mode 100755
new mode 100644
index eb8250dfa..25799c60c
--- a/internal/sdk/pkg/models/shared/sourcemarketoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemarketoputrequest.go
@@ -7,3 +7,24 @@ type SourceMarketoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMarketoPutRequest) GetConfiguration() SourceMarketoUpdate {
+ if o == nil {
+ return SourceMarketoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMarketoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMarketoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemarketoupdate.go b/internal/sdk/pkg/models/shared/sourcemarketoupdate.go
old mode 100755
new mode 100644
index 8d1bb6d47..80353903f
--- a/internal/sdk/pkg/models/shared/sourcemarketoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemarketoupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceMarketoUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceMarketoUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMarketoUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMarketoUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMarketoUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMarketoUpdate) GetDomainURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainURL
+}
+
+func (o *SourceMarketoUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemetabase.go b/internal/sdk/pkg/models/shared/sourcemetabase.go
old mode 100755
new mode 100644
index 203448afe..263d7647a
--- a/internal/sdk/pkg/models/shared/sourcemetabase.go
+++ b/internal/sdk/pkg/models/shared/sourcemetabase.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -42,6 +43,49 @@ type SourceMetabase struct {
// ``` Then copy the value of the `id` field returned by a successful call to that API.
// Note that by default, sessions are good for 14 days and needs to be regenerated.
SessionToken *string `json:"session_token,omitempty"`
- SourceType SourceMetabaseMetabase `json:"sourceType"`
+ sourceType SourceMetabaseMetabase `const:"metabase" json:"sourceType"`
Username *string `json:"username,omitempty"`
}
+
+func (s SourceMetabase) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMetabase) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMetabase) GetInstanceAPIURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.InstanceAPIURL
+}
+
+func (o *SourceMetabase) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMetabase) GetSessionToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SessionToken
+}
+
+func (o *SourceMetabase) GetSourceType() SourceMetabaseMetabase {
+ return SourceMetabaseMetabaseMetabase
+}
+
+func (o *SourceMetabase) GetUsername() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemetabasecreaterequest.go b/internal/sdk/pkg/models/shared/sourcemetabasecreaterequest.go
old mode 100755
new mode 100644
index cda3432b7..4d4f5bfb2
--- a/internal/sdk/pkg/models/shared/sourcemetabasecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemetabasecreaterequest.go
@@ -9,3 +9,31 @@ type SourceMetabaseCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMetabaseCreateRequest) GetConfiguration() SourceMetabase {
+ if o == nil {
+ return SourceMetabase{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMetabaseCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMetabaseCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMetabaseCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemetabaseputrequest.go b/internal/sdk/pkg/models/shared/sourcemetabaseputrequest.go
old mode 100755
new mode 100644
index f6e9732a6..238a900c9
--- a/internal/sdk/pkg/models/shared/sourcemetabaseputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemetabaseputrequest.go
@@ -7,3 +7,24 @@ type SourceMetabasePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMetabasePutRequest) GetConfiguration() SourceMetabaseUpdate {
+ if o == nil {
+ return SourceMetabaseUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMetabasePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMetabasePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemetabaseupdate.go b/internal/sdk/pkg/models/shared/sourcemetabaseupdate.go
old mode 100755
new mode 100644
index a257e2a28..596366d81
--- a/internal/sdk/pkg/models/shared/sourcemetabaseupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemetabaseupdate.go
@@ -15,3 +15,31 @@ type SourceMetabaseUpdate struct {
SessionToken *string `json:"session_token,omitempty"`
Username *string `json:"username,omitempty"`
}
+
+func (o *SourceMetabaseUpdate) GetInstanceAPIURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.InstanceAPIURL
+}
+
+func (o *SourceMetabaseUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMetabaseUpdate) GetSessionToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SessionToken
+}
+
+func (o *SourceMetabaseUpdate) GetUsername() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go
old mode 100755
new mode 100644
index 86ce9798c..a622c387e
--- a/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go
+++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,7 @@ func (e *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuth
// SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft - Choose how to authenticate to Microsoft
type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft struct {
- AuthType *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthType `json:"auth_type,omitempty"`
+ authType *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthType `const:"Token" json:"auth_type"`
// The Client ID of your Microsoft Teams developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Teams developer application.
@@ -44,6 +44,42 @@ type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft struct
TenantID string `json:"tenant_id"`
}
+func (s SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) GetAuthType() *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthType {
+ return SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftAuthTypeToken.ToPointer()
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
+
type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType string
const (
@@ -70,7 +106,7 @@ func (e *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAut
// SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 - Choose how to authenticate to Microsoft
type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 struct {
- AuthType *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType `const:"Client" json:"auth_type"`
// The Client ID of your Microsoft Teams developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Teams developer application.
@@ -81,6 +117,49 @@ type SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
TenantID string `json:"tenant_id"`
}
+func (s SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetAuthType() *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType {
+ return SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthTypeClient.ToPointer()
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
+
type SourceMicrosoftTeamsAuthenticationMechanismType string
const (
@@ -114,21 +193,16 @@ func CreateSourceMicrosoftTeamsAuthenticationMechanismSourceMicrosoftTeamsAuthen
}
func (u *SourceMicrosoftTeamsAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft := new(SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft, "", true, true); err == nil {
u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft = sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft
u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft
return nil
}
sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 := new(SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20, "", true, true); err == nil {
u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 = sourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
return nil
@@ -138,15 +212,15 @@ func (u *SourceMicrosoftTeamsAuthenticationMechanism) UnmarshalJSON(data []byte)
}
func (u SourceMicrosoftTeamsAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft != nil {
- return json.Marshal(u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft)
+ if u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20, "", true)
}
- if u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
- return json.Marshal(u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20)
+ if u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft != nil {
+ return utils.MarshalJSON(u.SourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMicrosoftTeamsMicrosoftTeams string
@@ -178,5 +252,34 @@ type SourceMicrosoftTeams struct {
Credentials *SourceMicrosoftTeamsAuthenticationMechanism `json:"credentials,omitempty"`
// Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.
Period string `json:"period"`
- SourceType SourceMicrosoftTeamsMicrosoftTeams `json:"sourceType"`
+ sourceType SourceMicrosoftTeamsMicrosoftTeams `const:"microsoft-teams" json:"sourceType"`
+}
+
+func (s SourceMicrosoftTeams) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMicrosoftTeams) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMicrosoftTeams) GetCredentials() *SourceMicrosoftTeamsAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMicrosoftTeams) GetPeriod() string {
+ if o == nil {
+ return ""
+ }
+ return o.Period
+}
+
+func (o *SourceMicrosoftTeams) GetSourceType() SourceMicrosoftTeamsMicrosoftTeams {
+ return SourceMicrosoftTeamsMicrosoftTeamsMicrosoftTeams
}
diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteamscreaterequest.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteamscreaterequest.go
old mode 100755
new mode 100644
index 87f7830bc..968ea7fe6
--- a/internal/sdk/pkg/models/shared/sourcemicrosoftteamscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteamscreaterequest.go
@@ -9,3 +9,31 @@ type SourceMicrosoftTeamsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMicrosoftTeamsCreateRequest) GetConfiguration() SourceMicrosoftTeams {
+ if o == nil {
+ return SourceMicrosoftTeams{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMicrosoftTeamsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMicrosoftTeamsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMicrosoftTeamsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsputrequest.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsputrequest.go
old mode 100755
new mode 100644
index 6a44cac9f..e6e527ad9
--- a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsputrequest.go
@@ -7,3 +7,24 @@ type SourceMicrosoftTeamsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMicrosoftTeamsPutRequest) GetConfiguration() SourceMicrosoftTeamsUpdate {
+ if o == nil {
+ return SourceMicrosoftTeamsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMicrosoftTeamsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMicrosoftTeamsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go
old mode 100755
new mode 100644
index 510b700cd..5a6c7a088
--- a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,7 @@ func (e *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicroso
// SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft - Choose how to authenticate to Microsoft
type SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft struct {
- AuthType *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthType `json:"auth_type,omitempty"`
+ authType *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthType `const:"Token" json:"auth_type"`
// The Client ID of your Microsoft Teams developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Teams developer application.
@@ -44,6 +44,42 @@ type SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft s
TenantID string `json:"tenant_id"`
}
+func (s SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) GetAuthType() *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthType {
+ return SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftAuthTypeToken.ToPointer()
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
+
type SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType string
const (
@@ -70,7 +106,7 @@ func (e *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicroso
// SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 - Choose how to authenticate to Microsoft
type SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 struct {
- AuthType *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType `const:"Client" json:"auth_type"`
// The Client ID of your Microsoft Teams developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Microsoft Teams developer application.
@@ -81,6 +117,49 @@ type SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOA
TenantID string `json:"tenant_id"`
}
+func (s SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetAuthType() *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthType {
+ return SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20AuthTypeClient.ToPointer()
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
+
type SourceMicrosoftTeamsUpdateAuthenticationMechanismType string
const (
@@ -114,21 +193,16 @@ func CreateSourceMicrosoftTeamsUpdateAuthenticationMechanismSourceMicrosoftTeams
}
func (u *SourceMicrosoftTeamsUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft := new(SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft, "", true, true); err == nil {
u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft = sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft
u.Type = SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeSourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft
return nil
}
sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 := new(SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20, "", true, true); err == nil {
u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 = sourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
u.Type = SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeSourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20
return nil
@@ -138,15 +212,15 @@ func (u *SourceMicrosoftTeamsUpdateAuthenticationMechanism) UnmarshalJSON(data [
}
func (u SourceMicrosoftTeamsUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft != nil {
- return json.Marshal(u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft)
+ if u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20, "", true)
}
- if u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20 != nil {
- return json.Marshal(u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoftOAuth20)
+ if u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft != nil {
+ return utils.MarshalJSON(u.SourceMicrosoftTeamsUpdateAuthenticationMechanismAuthenticateViaMicrosoft, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMicrosoftTeamsUpdate struct {
@@ -155,3 +229,17 @@ type SourceMicrosoftTeamsUpdate struct {
// Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180.
Period string `json:"period"`
}
+
+func (o *SourceMicrosoftTeamsUpdate) GetCredentials() *SourceMicrosoftTeamsUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMicrosoftTeamsUpdate) GetPeriod() string {
+ if o == nil {
+ return ""
+ }
+ return o.Period
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemixpanel.go b/internal/sdk/pkg/models/shared/sourcemixpanel.go
old mode 100755
new mode 100644
index 6b993de7a..b0b0a10cb
--- a/internal/sdk/pkg/models/shared/sourcemixpanel.go
+++ b/internal/sdk/pkg/models/shared/sourcemixpanel.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle) Unmarshal
type SourceMixpanelAuthenticationWildcardProjectSecret struct {
// Mixpanel project secret. See the docs for more information on how to obtain this.
APISecret string `json:"api_secret"`
- OptionTitle *SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle `const:"Project Secret" json:"option_title,omitempty"`
+}
+
+func (s SourceMixpanelAuthenticationWildcardProjectSecret) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanelAuthenticationWildcardProjectSecret) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanelAuthenticationWildcardProjectSecret) GetAPISecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISecret
+}
+
+func (o *SourceMixpanelAuthenticationWildcardProjectSecret) GetOptionTitle() *SourceMixpanelAuthenticationWildcardProjectSecretOptionTitle {
+ return SourceMixpanelAuthenticationWildcardProjectSecretOptionTitleProjectSecret.ToPointer()
}
type SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle string
@@ -67,13 +89,42 @@ func (e *SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle) Unmarsha
// SourceMixpanelAuthenticationWildcardServiceAccount - Choose how to authenticate to Mixpanel
type SourceMixpanelAuthenticationWildcardServiceAccount struct {
- OptionTitle *SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle `const:"Service Account" json:"option_title,omitempty"`
// Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
Secret string `json:"secret"`
// Mixpanel Service Account Username. See the docs for more information on how to obtain this.
Username string `json:"username"`
}
+func (s SourceMixpanelAuthenticationWildcardServiceAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanelAuthenticationWildcardServiceAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanelAuthenticationWildcardServiceAccount) GetOptionTitle() *SourceMixpanelAuthenticationWildcardServiceAccountOptionTitle {
+ return SourceMixpanelAuthenticationWildcardServiceAccountOptionTitleServiceAccount.ToPointer()
+}
+
+func (o *SourceMixpanelAuthenticationWildcardServiceAccount) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
+
+func (o *SourceMixpanelAuthenticationWildcardServiceAccount) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceMixpanelAuthenticationWildcardType string
const (
@@ -107,21 +158,16 @@ func CreateSourceMixpanelAuthenticationWildcardSourceMixpanelAuthenticationWildc
}
func (u *SourceMixpanelAuthenticationWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMixpanelAuthenticationWildcardProjectSecret := new(SourceMixpanelAuthenticationWildcardProjectSecret)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMixpanelAuthenticationWildcardProjectSecret); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMixpanelAuthenticationWildcardProjectSecret, "", true, true); err == nil {
u.SourceMixpanelAuthenticationWildcardProjectSecret = sourceMixpanelAuthenticationWildcardProjectSecret
u.Type = SourceMixpanelAuthenticationWildcardTypeSourceMixpanelAuthenticationWildcardProjectSecret
return nil
}
sourceMixpanelAuthenticationWildcardServiceAccount := new(SourceMixpanelAuthenticationWildcardServiceAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMixpanelAuthenticationWildcardServiceAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMixpanelAuthenticationWildcardServiceAccount, "", true, true); err == nil {
u.SourceMixpanelAuthenticationWildcardServiceAccount = sourceMixpanelAuthenticationWildcardServiceAccount
u.Type = SourceMixpanelAuthenticationWildcardTypeSourceMixpanelAuthenticationWildcardServiceAccount
return nil
@@ -131,15 +177,15 @@ func (u *SourceMixpanelAuthenticationWildcard) UnmarshalJSON(data []byte) error
}
func (u SourceMixpanelAuthenticationWildcard) MarshalJSON() ([]byte, error) {
- if u.SourceMixpanelAuthenticationWildcardProjectSecret != nil {
- return json.Marshal(u.SourceMixpanelAuthenticationWildcardProjectSecret)
+ if u.SourceMixpanelAuthenticationWildcardServiceAccount != nil {
+ return utils.MarshalJSON(u.SourceMixpanelAuthenticationWildcardServiceAccount, "", true)
}
- if u.SourceMixpanelAuthenticationWildcardServiceAccount != nil {
- return json.Marshal(u.SourceMixpanelAuthenticationWildcardServiceAccount)
+ if u.SourceMixpanelAuthenticationWildcardProjectSecret != nil {
+ return utils.MarshalJSON(u.SourceMixpanelAuthenticationWildcardProjectSecret, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMixpanelRegion - The region of mixpanel domain instance either US or EU.
@@ -196,22 +242,100 @@ func (e *SourceMixpanelMixpanel) UnmarshalJSON(data []byte) error {
type SourceMixpanel struct {
// A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days.
- AttributionWindow *int64 `json:"attribution_window,omitempty"`
+ AttributionWindow *int64 `default:"5" json:"attribution_window"`
// Choose how to authenticate to Mixpanel
Credentials *SourceMixpanelAuthenticationWildcard `json:"credentials,omitempty"`
// Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment.
- DateWindowSize *int64 `json:"date_window_size,omitempty"`
+ DateWindowSize *int64 `default:"30" json:"date_window_size"`
// The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date
EndDate *types.Date `json:"end_date,omitempty"`
// Your project ID number. See the docs for more information on how to obtain this.
ProjectID *int64 `json:"project_id,omitempty"`
// Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console.
- ProjectTimezone *string `json:"project_timezone,omitempty"`
+ ProjectTimezone *string `default:"US/Pacific" json:"project_timezone"`
// The region of mixpanel domain instance either US or EU.
- Region *SourceMixpanelRegion `json:"region,omitempty"`
+ Region *SourceMixpanelRegion `default:"US" json:"region"`
// Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.
- SelectPropertiesByDefault *bool `json:"select_properties_by_default,omitempty"`
- SourceType *SourceMixpanelMixpanel `json:"sourceType,omitempty"`
+ SelectPropertiesByDefault *bool `default:"true" json:"select_properties_by_default"`
+ sourceType *SourceMixpanelMixpanel `const:"mixpanel" json:"sourceType,omitempty"`
// The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default.
StartDate *types.Date `json:"start_date,omitempty"`
}
+
+func (s SourceMixpanel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanel) GetAttributionWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AttributionWindow
+}
+
+func (o *SourceMixpanel) GetCredentials() *SourceMixpanelAuthenticationWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMixpanel) GetDateWindowSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DateWindowSize
+}
+
+func (o *SourceMixpanel) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceMixpanel) GetProjectID() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ProjectID
+}
+
+func (o *SourceMixpanel) GetProjectTimezone() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ProjectTimezone
+}
+
+func (o *SourceMixpanel) GetRegion() *SourceMixpanelRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceMixpanel) GetSelectPropertiesByDefault() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.SelectPropertiesByDefault
+}
+
+func (o *SourceMixpanel) GetSourceType() *SourceMixpanelMixpanel {
+ return SourceMixpanelMixpanelMixpanel.ToPointer()
+}
+
+func (o *SourceMixpanel) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemixpanelcreaterequest.go b/internal/sdk/pkg/models/shared/sourcemixpanelcreaterequest.go
old mode 100755
new mode 100644
index 49b1f2e70..4c86a5cb5
--- a/internal/sdk/pkg/models/shared/sourcemixpanelcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemixpanelcreaterequest.go
@@ -9,3 +9,31 @@ type SourceMixpanelCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMixpanelCreateRequest) GetConfiguration() SourceMixpanel {
+ if o == nil {
+ return SourceMixpanel{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMixpanelCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMixpanelCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMixpanelCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemixpanelputrequest.go b/internal/sdk/pkg/models/shared/sourcemixpanelputrequest.go
old mode 100755
new mode 100644
index cdd44616d..970bba921
--- a/internal/sdk/pkg/models/shared/sourcemixpanelputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemixpanelputrequest.go
@@ -7,3 +7,24 @@ type SourceMixpanelPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMixpanelPutRequest) GetConfiguration() SourceMixpanelUpdate {
+ if o == nil {
+ return SourceMixpanelUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMixpanelPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMixpanelPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go b/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go
old mode 100755
new mode 100644
index 7d1dc36bd..b0ff7285e
--- a/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle) Unm
type SourceMixpanelUpdateAuthenticationWildcardProjectSecret struct {
// Mixpanel project secret. See the docs for more information on how to obtain this.
APISecret string `json:"api_secret"`
- OptionTitle *SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle `const:"Project Secret" json:"option_title,omitempty"`
+}
+
+func (s SourceMixpanelUpdateAuthenticationWildcardProjectSecret) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanelUpdateAuthenticationWildcardProjectSecret) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanelUpdateAuthenticationWildcardProjectSecret) GetAPISecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISecret
+}
+
+func (o *SourceMixpanelUpdateAuthenticationWildcardProjectSecret) GetOptionTitle() *SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitle {
+ return SourceMixpanelUpdateAuthenticationWildcardProjectSecretOptionTitleProjectSecret.ToPointer()
}
type SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle string
@@ -67,13 +89,42 @@ func (e *SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle) Un
// SourceMixpanelUpdateAuthenticationWildcardServiceAccount - Choose how to authenticate to Mixpanel
type SourceMixpanelUpdateAuthenticationWildcardServiceAccount struct {
- OptionTitle *SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle `json:"option_title,omitempty"`
+ optionTitle *SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle `const:"Service Account" json:"option_title,omitempty"`
// Mixpanel Service Account Secret. See the docs for more information on how to obtain this.
Secret string `json:"secret"`
// Mixpanel Service Account Username. See the docs for more information on how to obtain this.
Username string `json:"username"`
}
+func (s SourceMixpanelUpdateAuthenticationWildcardServiceAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanelUpdateAuthenticationWildcardServiceAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanelUpdateAuthenticationWildcardServiceAccount) GetOptionTitle() *SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitle {
+ return SourceMixpanelUpdateAuthenticationWildcardServiceAccountOptionTitleServiceAccount.ToPointer()
+}
+
+func (o *SourceMixpanelUpdateAuthenticationWildcardServiceAccount) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
+
+func (o *SourceMixpanelUpdateAuthenticationWildcardServiceAccount) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceMixpanelUpdateAuthenticationWildcardType string
const (
@@ -107,21 +158,16 @@ func CreateSourceMixpanelUpdateAuthenticationWildcardSourceMixpanelUpdateAuthent
}
func (u *SourceMixpanelUpdateAuthenticationWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMixpanelUpdateAuthenticationWildcardProjectSecret := new(SourceMixpanelUpdateAuthenticationWildcardProjectSecret)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMixpanelUpdateAuthenticationWildcardProjectSecret); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMixpanelUpdateAuthenticationWildcardProjectSecret, "", true, true); err == nil {
u.SourceMixpanelUpdateAuthenticationWildcardProjectSecret = sourceMixpanelUpdateAuthenticationWildcardProjectSecret
u.Type = SourceMixpanelUpdateAuthenticationWildcardTypeSourceMixpanelUpdateAuthenticationWildcardProjectSecret
return nil
}
sourceMixpanelUpdateAuthenticationWildcardServiceAccount := new(SourceMixpanelUpdateAuthenticationWildcardServiceAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMixpanelUpdateAuthenticationWildcardServiceAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMixpanelUpdateAuthenticationWildcardServiceAccount, "", true, true); err == nil {
u.SourceMixpanelUpdateAuthenticationWildcardServiceAccount = sourceMixpanelUpdateAuthenticationWildcardServiceAccount
u.Type = SourceMixpanelUpdateAuthenticationWildcardTypeSourceMixpanelUpdateAuthenticationWildcardServiceAccount
return nil
@@ -131,15 +177,15 @@ func (u *SourceMixpanelUpdateAuthenticationWildcard) UnmarshalJSON(data []byte)
}
func (u SourceMixpanelUpdateAuthenticationWildcard) MarshalJSON() ([]byte, error) {
- if u.SourceMixpanelUpdateAuthenticationWildcardProjectSecret != nil {
- return json.Marshal(u.SourceMixpanelUpdateAuthenticationWildcardProjectSecret)
+ if u.SourceMixpanelUpdateAuthenticationWildcardServiceAccount != nil {
+ return utils.MarshalJSON(u.SourceMixpanelUpdateAuthenticationWildcardServiceAccount, "", true)
}
- if u.SourceMixpanelUpdateAuthenticationWildcardServiceAccount != nil {
- return json.Marshal(u.SourceMixpanelUpdateAuthenticationWildcardServiceAccount)
+ if u.SourceMixpanelUpdateAuthenticationWildcardProjectSecret != nil {
+ return utils.MarshalJSON(u.SourceMixpanelUpdateAuthenticationWildcardProjectSecret, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMixpanelUpdateRegion - The region of mixpanel domain instance either US or EU.
@@ -172,21 +218,95 @@ func (e *SourceMixpanelUpdateRegion) UnmarshalJSON(data []byte) error {
type SourceMixpanelUpdate struct {
// A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days.
- AttributionWindow *int64 `json:"attribution_window,omitempty"`
+ AttributionWindow *int64 `default:"5" json:"attribution_window"`
// Choose how to authenticate to Mixpanel
Credentials *SourceMixpanelUpdateAuthenticationWildcard `json:"credentials,omitempty"`
// Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment.
- DateWindowSize *int64 `json:"date_window_size,omitempty"`
+ DateWindowSize *int64 `default:"30" json:"date_window_size"`
// The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date
EndDate *types.Date `json:"end_date,omitempty"`
// Your project ID number. See the docs for more information on how to obtain this.
ProjectID *int64 `json:"project_id,omitempty"`
// Time zone in which integer date times are stored. The project timezone may be found in the project settings in the Mixpanel console.
- ProjectTimezone *string `json:"project_timezone,omitempty"`
+ ProjectTimezone *string `default:"US/Pacific" json:"project_timezone"`
// The region of mixpanel domain instance either US or EU.
- Region *SourceMixpanelUpdateRegion `json:"region,omitempty"`
+ Region *SourceMixpanelUpdateRegion `default:"US" json:"region"`
// Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored.
- SelectPropertiesByDefault *bool `json:"select_properties_by_default,omitempty"`
+ SelectPropertiesByDefault *bool `default:"true" json:"select_properties_by_default"`
// The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default.
StartDate *types.Date `json:"start_date,omitempty"`
}
+
+func (s SourceMixpanelUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMixpanelUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMixpanelUpdate) GetAttributionWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AttributionWindow
+}
+
+func (o *SourceMixpanelUpdate) GetCredentials() *SourceMixpanelUpdateAuthenticationWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMixpanelUpdate) GetDateWindowSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DateWindowSize
+}
+
+func (o *SourceMixpanelUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceMixpanelUpdate) GetProjectID() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.ProjectID
+}
+
+func (o *SourceMixpanelUpdate) GetProjectTimezone() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ProjectTimezone
+}
+
+func (o *SourceMixpanelUpdate) GetRegion() *SourceMixpanelUpdateRegion {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceMixpanelUpdate) GetSelectPropertiesByDefault() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.SelectPropertiesByDefault
+}
+
+func (o *SourceMixpanelUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemonday.go b/internal/sdk/pkg/models/shared/sourcemonday.go
old mode 100755
new mode 100644
index aea4a1b89..d9485a847
--- a/internal/sdk/pkg/models/shared/sourcemonday.go
+++ b/internal/sdk/pkg/models/shared/sourcemonday.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceMondayAuthorizationMethodAPITokenAuthType) UnmarshalJSON(data []b
type SourceMondayAuthorizationMethodAPIToken struct {
// API Token for making authenticated requests.
APIToken string `json:"api_token"`
- AuthType SourceMondayAuthorizationMethodAPITokenAuthType `json:"auth_type"`
+ authType SourceMondayAuthorizationMethodAPITokenAuthType `const:"api_token" json:"auth_type"`
+}
+
+func (s SourceMondayAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMondayAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMondayAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceMondayAuthorizationMethodAPIToken) GetAuthType() SourceMondayAuthorizationMethodAPITokenAuthType {
+ return SourceMondayAuthorizationMethodAPITokenAuthTypeAPIToken
}
type SourceMondayAuthorizationMethodOAuth20AuthType string
@@ -66,13 +88,56 @@ func (e *SourceMondayAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data []by
type SourceMondayAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType SourceMondayAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceMondayAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
ClientSecret string `json:"client_secret"`
// Slug/subdomain of the account, or the first part of the URL that comes before .monday.com
- Subdomain *string `json:"subdomain,omitempty"`
+ Subdomain *string `default:"" json:"subdomain"`
+}
+
+func (s SourceMondayAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMondayAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMondayAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceMondayAuthorizationMethodOAuth20) GetAuthType() SourceMondayAuthorizationMethodOAuth20AuthType {
+ return SourceMondayAuthorizationMethodOAuth20AuthTypeOauth20
+}
+
+func (o *SourceMondayAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMondayAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMondayAuthorizationMethodOAuth20) GetSubdomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Subdomain
}
type SourceMondayAuthorizationMethodType string
@@ -108,21 +173,16 @@ func CreateSourceMondayAuthorizationMethodSourceMondayAuthorizationMethodAPIToke
}
func (u *SourceMondayAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMondayAuthorizationMethodAPIToken := new(SourceMondayAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMondayAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMondayAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceMondayAuthorizationMethodAPIToken = sourceMondayAuthorizationMethodAPIToken
u.Type = SourceMondayAuthorizationMethodTypeSourceMondayAuthorizationMethodAPIToken
return nil
}
sourceMondayAuthorizationMethodOAuth20 := new(SourceMondayAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMondayAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMondayAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceMondayAuthorizationMethodOAuth20 = sourceMondayAuthorizationMethodOAuth20
u.Type = SourceMondayAuthorizationMethodTypeSourceMondayAuthorizationMethodOAuth20
return nil
@@ -132,15 +192,15 @@ func (u *SourceMondayAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceMondayAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMondayAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceMondayAuthorizationMethodAPIToken)
+ if u.SourceMondayAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMondayAuthorizationMethodOAuth20, "", true)
}
- if u.SourceMondayAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceMondayAuthorizationMethodOAuth20)
+ if u.SourceMondayAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceMondayAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMondayMonday string
@@ -169,5 +229,27 @@ func (e *SourceMondayMonday) UnmarshalJSON(data []byte) error {
type SourceMonday struct {
Credentials *SourceMondayAuthorizationMethod `json:"credentials,omitempty"`
- SourceType SourceMondayMonday `json:"sourceType"`
+ sourceType SourceMondayMonday `const:"monday" json:"sourceType"`
+}
+
+func (s SourceMonday) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMonday) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMonday) GetCredentials() *SourceMondayAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceMonday) GetSourceType() SourceMondayMonday {
+ return SourceMondayMondayMonday
}
diff --git a/internal/sdk/pkg/models/shared/sourcemondaycreaterequest.go b/internal/sdk/pkg/models/shared/sourcemondaycreaterequest.go
old mode 100755
new mode 100644
index a0dcabf83..9c97c8d5b
--- a/internal/sdk/pkg/models/shared/sourcemondaycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemondaycreaterequest.go
@@ -9,3 +9,31 @@ type SourceMondayCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMondayCreateRequest) GetConfiguration() SourceMonday {
+ if o == nil {
+ return SourceMonday{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMondayCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMondayCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMondayCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemondayputrequest.go b/internal/sdk/pkg/models/shared/sourcemondayputrequest.go
old mode 100755
new mode 100644
index ed2a47d3e..4d077a21d
--- a/internal/sdk/pkg/models/shared/sourcemondayputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemondayputrequest.go
@@ -7,3 +7,24 @@ type SourceMondayPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMondayPutRequest) GetConfiguration() SourceMondayUpdate {
+ if o == nil {
+ return SourceMondayUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMondayPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMondayPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemondayupdate.go b/internal/sdk/pkg/models/shared/sourcemondayupdate.go
old mode 100755
new mode 100644
index 5f2914db2..c2e0b3fe5
--- a/internal/sdk/pkg/models/shared/sourcemondayupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemondayupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceMondayUpdateAuthorizationMethodAPITokenAuthType) UnmarshalJSON(da
type SourceMondayUpdateAuthorizationMethodAPIToken struct {
// API Token for making authenticated requests.
APIToken string `json:"api_token"`
- AuthType SourceMondayUpdateAuthorizationMethodAPITokenAuthType `json:"auth_type"`
+ authType SourceMondayUpdateAuthorizationMethodAPITokenAuthType `const:"api_token" json:"auth_type"`
+}
+
+func (s SourceMondayUpdateAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMondayUpdateAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodAPIToken) GetAuthType() SourceMondayUpdateAuthorizationMethodAPITokenAuthType {
+ return SourceMondayUpdateAuthorizationMethodAPITokenAuthTypeAPIToken
}
type SourceMondayUpdateAuthorizationMethodOAuth20AuthType string
@@ -66,13 +88,56 @@ func (e *SourceMondayUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON(dat
type SourceMondayUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType SourceMondayUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceMondayUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
ClientSecret string `json:"client_secret"`
// Slug/subdomain of the account, or the first part of the URL that comes before .monday.com
- Subdomain *string `json:"subdomain,omitempty"`
+ Subdomain *string `default:"" json:"subdomain"`
+}
+
+func (s SourceMondayUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMondayUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodOAuth20) GetAuthType() SourceMondayUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceMondayUpdateAuthorizationMethodOAuth20AuthTypeOauth20
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceMondayUpdateAuthorizationMethodOAuth20) GetSubdomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Subdomain
}
type SourceMondayUpdateAuthorizationMethodType string
@@ -108,21 +173,16 @@ func CreateSourceMondayUpdateAuthorizationMethodSourceMondayUpdateAuthorizationM
}
func (u *SourceMondayUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMondayUpdateAuthorizationMethodAPIToken := new(SourceMondayUpdateAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMondayUpdateAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMondayUpdateAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceMondayUpdateAuthorizationMethodAPIToken = sourceMondayUpdateAuthorizationMethodAPIToken
u.Type = SourceMondayUpdateAuthorizationMethodTypeSourceMondayUpdateAuthorizationMethodAPIToken
return nil
}
sourceMondayUpdateAuthorizationMethodOAuth20 := new(SourceMondayUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMondayUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMondayUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceMondayUpdateAuthorizationMethodOAuth20 = sourceMondayUpdateAuthorizationMethodOAuth20
u.Type = SourceMondayUpdateAuthorizationMethodTypeSourceMondayUpdateAuthorizationMethodOAuth20
return nil
@@ -132,17 +192,24 @@ func (u *SourceMondayUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error
}
func (u SourceMondayUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMondayUpdateAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceMondayUpdateAuthorizationMethodAPIToken)
+ if u.SourceMondayUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceMondayUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceMondayUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceMondayUpdateAuthorizationMethodOAuth20)
+ if u.SourceMondayUpdateAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceMondayUpdateAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMondayUpdate struct {
Credentials *SourceMondayUpdateAuthorizationMethod `json:"credentials,omitempty"`
}
+
+func (o *SourceMondayUpdate) GetCredentials() *SourceMondayUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodb.go b/internal/sdk/pkg/models/shared/sourcemongodb.go
old mode 100755
new mode 100644
index f24c34207..cefbc6118
--- a/internal/sdk/pkg/models/shared/sourcemongodb.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodb.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,56 +35,39 @@ func (e *SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstance) UnmarshalJSON(dat
// SourceMongodbMongoDBInstanceTypeMongoDBAtlas - The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type SourceMongodbMongoDBInstanceTypeMongoDBAtlas struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The URL of a cluster to connect to.
ClusterURL string `json:"cluster_url"`
- Instance SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstance `json:"instance"`
-
- AdditionalProperties interface{} `json:"-"`
+ instance SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstance `const:"atlas" json:"instance"`
}
-type _SourceMongodbMongoDBInstanceTypeMongoDBAtlas SourceMongodbMongoDBInstanceTypeMongoDBAtlas
-
-func (c *SourceMongodbMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(bs []byte) error {
- data := _SourceMongodbMongoDBInstanceTypeMongoDBAtlas{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceMongodbMongoDBInstanceTypeMongoDBAtlas(data)
- additionalFields := make(map[string]interface{})
+func (s SourceMongodbMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceMongodbMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "cluster_url")
- delete(additionalFields, "instance")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceMongodbMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceMongodbMongoDBInstanceTypeMongoDBAtlas(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceMongodbMongoDBInstanceTypeMongoDBAtlas) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceMongodbMongoDBInstanceTypeMongoDBAtlas) GetClusterURL() string {
+ if o == nil {
+ return ""
}
+ return o.ClusterURL
+}
- return json.Marshal(out)
+func (o *SourceMongodbMongoDBInstanceTypeMongoDBAtlas) GetInstance() SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstance {
+ return SourceMongodbMongoDBInstanceTypeMongoDBAtlasInstanceAtlas
}
type SourceMongodbMongoDbInstanceTypeReplicaSetInstance string
@@ -113,13 +96,42 @@ func (e *SourceMongodbMongoDbInstanceTypeReplicaSetInstance) UnmarshalJSON(data
// SourceMongodbMongoDbInstanceTypeReplicaSet - The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type SourceMongodbMongoDbInstanceTypeReplicaSet struct {
- Instance SourceMongodbMongoDbInstanceTypeReplicaSetInstance `json:"instance"`
+ instance SourceMongodbMongoDbInstanceTypeReplicaSetInstance `const:"replica" json:"instance"`
// A replica set in MongoDB is a group of mongod processes that maintain the same data set.
ReplicaSet *string `json:"replica_set,omitempty"`
// The members of a replica set. Please specify `host`:`port` of each member separated by comma.
ServerAddresses string `json:"server_addresses"`
}
+func (s SourceMongodbMongoDbInstanceTypeReplicaSet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbMongoDbInstanceTypeReplicaSet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeReplicaSet) GetInstance() SourceMongodbMongoDbInstanceTypeReplicaSetInstance {
+ return SourceMongodbMongoDbInstanceTypeReplicaSetInstanceReplica
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeReplicaSet) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeReplicaSet) GetServerAddresses() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServerAddresses
+}
+
type SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance string
const (
@@ -148,9 +160,38 @@ func (e *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance) Unma
type SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance struct {
// The host name of the Mongo database.
Host string `json:"host"`
- Instance SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `json:"instance"`
+ instance SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `const:"standalone" json:"instance"`
// The port of the Mongo database.
- Port int64 `json:"port"`
+ Port *int64 `default:"27017" json:"port"`
+}
+
+func (s SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetInstance() SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstance {
+ return SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstanceInstanceStandalone
+}
+
+func (o *SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
}
type SourceMongodbMongoDbInstanceTypeType string
@@ -197,52 +238,45 @@ func CreateSourceMongodbMongoDbInstanceTypeSourceMongodbMongoDBInstanceTypeMongo
}
func (u *SourceMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
-
- sourceMongodbMongoDBInstanceTypeMongoDBAtlas := new(SourceMongodbMongoDBInstanceTypeMongoDBAtlas)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbMongoDBInstanceTypeMongoDBAtlas); err == nil {
- u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas = sourceMongodbMongoDBInstanceTypeMongoDBAtlas
- u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDBInstanceTypeMongoDBAtlas
- return nil
- }
sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance := new(SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance, "", true, true); err == nil {
u.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance = sourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance
return nil
}
sourceMongodbMongoDbInstanceTypeReplicaSet := new(SourceMongodbMongoDbInstanceTypeReplicaSet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbMongoDbInstanceTypeReplicaSet); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMongodbMongoDbInstanceTypeReplicaSet, "", true, true); err == nil {
u.SourceMongodbMongoDbInstanceTypeReplicaSet = sourceMongodbMongoDbInstanceTypeReplicaSet
u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDbInstanceTypeReplicaSet
return nil
}
+ sourceMongodbMongoDBInstanceTypeMongoDBAtlas := new(SourceMongodbMongoDBInstanceTypeMongoDBAtlas)
+ if err := utils.UnmarshalJSON(data, &sourceMongodbMongoDBInstanceTypeMongoDBAtlas, "", true, true); err == nil {
+ u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas = sourceMongodbMongoDBInstanceTypeMongoDBAtlas
+ u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDBInstanceTypeMongoDBAtlas
+ return nil
+ }
+
return errors.New("could not unmarshal into supported union types")
}
func (u SourceMongodbMongoDbInstanceType) MarshalJSON() ([]byte, error) {
- if u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
- return json.Marshal(u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas)
- }
-
if u.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
- return json.Marshal(u.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance)
+ return utils.MarshalJSON(u.SourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance, "", true)
}
if u.SourceMongodbMongoDbInstanceTypeReplicaSet != nil {
- return json.Marshal(u.SourceMongodbMongoDbInstanceTypeReplicaSet)
+ return utils.MarshalJSON(u.SourceMongodbMongoDbInstanceTypeReplicaSet, "", true)
+ }
+
+ if u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas != nil {
+ return utils.MarshalJSON(u.SourceMongodbMongoDBInstanceTypeMongoDBAtlas, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMongodbMongodb string
@@ -271,14 +305,64 @@ func (e *SourceMongodbMongodb) UnmarshalJSON(data []byte) error {
type SourceMongodb struct {
// The authentication source where the user information is stored.
- AuthSource *string `json:"auth_source,omitempty"`
+ AuthSource *string `default:"admin" json:"auth_source"`
// The database you want to replicate.
Database string `json:"database"`
// The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
InstanceType *SourceMongodbMongoDbInstanceType `json:"instance_type,omitempty"`
// The password associated with this username.
Password *string `json:"password,omitempty"`
- SourceType SourceMongodbMongodb `json:"sourceType"`
+ sourceType SourceMongodbMongodb `const:"mongodb" json:"sourceType"`
// The username which is used to access the database.
User *string `json:"user,omitempty"`
}
+
+func (s SourceMongodb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodb) GetAuthSource() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AuthSource
+}
+
+func (o *SourceMongodb) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMongodb) GetInstanceType() *SourceMongodbMongoDbInstanceType {
+ if o == nil {
+ return nil
+ }
+ return o.InstanceType
+}
+
+func (o *SourceMongodb) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMongodb) GetSourceType() SourceMongodbMongodb {
+ return SourceMongodbMongodbMongodb
+}
+
+func (o *SourceMongodb) GetUser() *string {
+ if o == nil {
+ return nil
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbcreaterequest.go b/internal/sdk/pkg/models/shared/sourcemongodbcreaterequest.go
old mode 100755
new mode 100644
index e6869e865..c3a515b6d
--- a/internal/sdk/pkg/models/shared/sourcemongodbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbcreaterequest.go
@@ -9,3 +9,31 @@ type SourceMongodbCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMongodbCreateRequest) GetConfiguration() SourceMongodb {
+ if o == nil {
+ return SourceMongodb{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMongodbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMongodbCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMongodbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbinternalpoc.go b/internal/sdk/pkg/models/shared/sourcemongodbinternalpoc.go
old mode 100755
new mode 100644
index 4b01a115d..5e4648a0e
--- a/internal/sdk/pkg/models/shared/sourcemongodbinternalpoc.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbinternalpoc.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,14 +34,64 @@ func (e *SourceMongodbInternalPocMongodbInternalPoc) UnmarshalJSON(data []byte)
type SourceMongodbInternalPoc struct {
// The authentication source where the user information is stored.
- AuthSource *string `json:"auth_source,omitempty"`
+ AuthSource *string `default:"admin" json:"auth_source"`
// The connection string of the database that you want to replicate..
ConnectionString *string `json:"connection_string,omitempty"`
// The password associated with this username.
Password *string `json:"password,omitempty"`
// The name of the replica set to be replicated.
ReplicaSet *string `json:"replica_set,omitempty"`
- SourceType SourceMongodbInternalPocMongodbInternalPoc `json:"sourceType"`
+ sourceType SourceMongodbInternalPocMongodbInternalPoc `const:"mongodb-internal-poc" json:"sourceType"`
// The username which is used to access the database.
User *string `json:"user,omitempty"`
}
+
+func (s SourceMongodbInternalPoc) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbInternalPoc) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbInternalPoc) GetAuthSource() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AuthSource
+}
+
+func (o *SourceMongodbInternalPoc) GetConnectionString() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionString
+}
+
+func (o *SourceMongodbInternalPoc) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMongodbInternalPoc) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *SourceMongodbInternalPoc) GetSourceType() SourceMongodbInternalPocMongodbInternalPoc {
+ return SourceMongodbInternalPocMongodbInternalPocMongodbInternalPoc
+}
+
+func (o *SourceMongodbInternalPoc) GetUser() *string {
+ if o == nil {
+ return nil
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbinternalpoccreaterequest.go b/internal/sdk/pkg/models/shared/sourcemongodbinternalpoccreaterequest.go
old mode 100755
new mode 100644
index f9097a9c1..b650b5382
--- a/internal/sdk/pkg/models/shared/sourcemongodbinternalpoccreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbinternalpoccreaterequest.go
@@ -9,3 +9,31 @@ type SourceMongodbInternalPocCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMongodbInternalPocCreateRequest) GetConfiguration() SourceMongodbInternalPoc {
+ if o == nil {
+ return SourceMongodbInternalPoc{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMongodbInternalPocCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMongodbInternalPocCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMongodbInternalPocCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbinternalpocputrequest.go b/internal/sdk/pkg/models/shared/sourcemongodbinternalpocputrequest.go
old mode 100755
new mode 100644
index 1ebfb8189..daf4fd08b
--- a/internal/sdk/pkg/models/shared/sourcemongodbinternalpocputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbinternalpocputrequest.go
@@ -7,3 +7,24 @@ type SourceMongodbInternalPocPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMongodbInternalPocPutRequest) GetConfiguration() SourceMongodbInternalPocUpdate {
+ if o == nil {
+ return SourceMongodbInternalPocUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMongodbInternalPocPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMongodbInternalPocPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbinternalpocupdate.go b/internal/sdk/pkg/models/shared/sourcemongodbinternalpocupdate.go
old mode 100755
new mode 100644
index bc422f34a..5b2277af3
--- a/internal/sdk/pkg/models/shared/sourcemongodbinternalpocupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbinternalpocupdate.go
@@ -2,9 +2,13 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceMongodbInternalPocUpdate struct {
// The authentication source where the user information is stored.
- AuthSource *string `json:"auth_source,omitempty"`
+ AuthSource *string `default:"admin" json:"auth_source"`
// The connection string of the database that you want to replicate..
ConnectionString *string `json:"connection_string,omitempty"`
// The password associated with this username.
@@ -14,3 +18,49 @@ type SourceMongodbInternalPocUpdate struct {
// The username which is used to access the database.
User *string `json:"user,omitempty"`
}
+
+func (s SourceMongodbInternalPocUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbInternalPocUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbInternalPocUpdate) GetAuthSource() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AuthSource
+}
+
+func (o *SourceMongodbInternalPocUpdate) GetConnectionString() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionString
+}
+
+func (o *SourceMongodbInternalPocUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMongodbInternalPocUpdate) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *SourceMongodbInternalPocUpdate) GetUser() *string {
+ if o == nil {
+ return nil
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbputrequest.go b/internal/sdk/pkg/models/shared/sourcemongodbputrequest.go
old mode 100755
new mode 100644
index 51a42ffa8..ae619788b
--- a/internal/sdk/pkg/models/shared/sourcemongodbputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbputrequest.go
@@ -7,3 +7,24 @@ type SourceMongodbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMongodbPutRequest) GetConfiguration() SourceMongodbUpdate {
+ if o == nil {
+ return SourceMongodbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMongodbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMongodbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemongodbupdate.go b/internal/sdk/pkg/models/shared/sourcemongodbupdate.go
old mode 100755
new mode 100644
index cff26e942..52db64243
--- a/internal/sdk/pkg/models/shared/sourcemongodbupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemongodbupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,56 +35,39 @@ func (e *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance) UnmarshalJS
// SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas - The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The URL of a cluster to connect to.
ClusterURL string `json:"cluster_url"`
- Instance SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance `json:"instance"`
-
- AdditionalProperties interface{} `json:"-"`
+ instance SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance `const:"atlas" json:"instance"`
}
-type _SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
-
-func (c *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(bs []byte) error {
- data := _SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas(data)
- additionalFields := make(map[string]interface{})
+func (s SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "cluster_url")
- delete(additionalFields, "instance")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) GetClusterURL() string {
+ if o == nil {
+ return ""
}
+ return o.ClusterURL
+}
- return json.Marshal(out)
+func (o *SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas) GetInstance() SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstance {
+ return SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlasInstanceAtlas
}
type SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance string
@@ -113,13 +96,42 @@ func (e *SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance) UnmarshalJSON
// SourceMongodbUpdateMongoDbInstanceTypeReplicaSet - The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
type SourceMongodbUpdateMongoDbInstanceTypeReplicaSet struct {
- Instance SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance `json:"instance"`
+ instance SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance `const:"replica" json:"instance"`
// A replica set in MongoDB is a group of mongod processes that maintain the same data set.
ReplicaSet *string `json:"replica_set,omitempty"`
// The members of a replica set. Please specify `host`:`port` of each member separated by comma.
ServerAddresses string `json:"server_addresses"`
}
+func (s SourceMongodbUpdateMongoDbInstanceTypeReplicaSet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbUpdateMongoDbInstanceTypeReplicaSet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeReplicaSet) GetInstance() SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstance {
+ return SourceMongodbUpdateMongoDbInstanceTypeReplicaSetInstanceReplica
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeReplicaSet) GetReplicaSet() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicaSet
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeReplicaSet) GetServerAddresses() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServerAddresses
+}
+
type SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance string
const (
@@ -148,9 +160,38 @@ func (e *SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance
type SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance struct {
// The host name of the Mongo database.
Host string `json:"host"`
- Instance SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `json:"instance"`
+ instance SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance `const:"standalone" json:"instance"`
// The port of the Mongo database.
- Port int64 `json:"port"`
+ Port *int64 `default:"27017" json:"port"`
+}
+
+func (s SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetInstance() SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstance {
+ return SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstanceInstanceStandalone
+}
+
+func (o *SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
}
type SourceMongodbUpdateMongoDbInstanceTypeType string
@@ -197,57 +238,50 @@ func CreateSourceMongodbUpdateMongoDbInstanceTypeSourceMongodbUpdateMongoDBInsta
}
func (u *SourceMongodbUpdateMongoDbInstanceType) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
-
- sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas := new(SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas); err == nil {
- u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas = sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
- u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
- return nil
- }
sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance := new(SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance, "", true, true); err == nil {
u.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance = sourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance
return nil
}
sourceMongodbUpdateMongoDbInstanceTypeReplicaSet := new(SourceMongodbUpdateMongoDbInstanceTypeReplicaSet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMongodbUpdateMongoDbInstanceTypeReplicaSet); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateMongoDbInstanceTypeReplicaSet, "", true, true); err == nil {
u.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet = sourceMongodbUpdateMongoDbInstanceTypeReplicaSet
u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDbInstanceTypeReplicaSet
return nil
}
+ sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas := new(SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas)
+ if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas, "", true, true); err == nil {
+ u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas = sourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
+ u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas
+ return nil
+ }
+
return errors.New("could not unmarshal into supported union types")
}
func (u SourceMongodbUpdateMongoDbInstanceType) MarshalJSON() ([]byte, error) {
- if u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
- return json.Marshal(u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas)
- }
-
if u.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance != nil {
- return json.Marshal(u.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance)
+ return utils.MarshalJSON(u.SourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance, "", true)
}
if u.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet != nil {
- return json.Marshal(u.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet)
+ return utils.MarshalJSON(u.SourceMongodbUpdateMongoDbInstanceTypeReplicaSet, "", true)
}
- return nil, nil
+ if u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas != nil {
+ return utils.MarshalJSON(u.SourceMongodbUpdateMongoDBInstanceTypeMongoDBAtlas, "", true)
+ }
+
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMongodbUpdate struct {
// The authentication source where the user information is stored.
- AuthSource *string `json:"auth_source,omitempty"`
+ AuthSource *string `default:"admin" json:"auth_source"`
// The database you want to replicate.
Database string `json:"database"`
// The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.
@@ -257,3 +291,49 @@ type SourceMongodbUpdate struct {
// The username which is used to access the database.
User *string `json:"user,omitempty"`
}
+
+func (s SourceMongodbUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMongodbUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMongodbUpdate) GetAuthSource() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AuthSource
+}
+
+func (o *SourceMongodbUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMongodbUpdate) GetInstanceType() *SourceMongodbUpdateMongoDbInstanceType {
+ if o == nil {
+ return nil
+ }
+ return o.InstanceType
+}
+
+func (o *SourceMongodbUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMongodbUpdate) GetUser() *string {
+ if o == nil {
+ return nil
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemssql.go b/internal/sdk/pkg/models/shared/sourcemssql.go
old mode 100755
new mode 100644
index 0d6f28e3c..84760c3ce
--- a/internal/sdk/pkg/models/shared/sourcemssql.go
+++ b/internal/sdk/pkg/models/shared/sourcemssql.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethod) Unmarsha
// SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"STANDARD" json:"method"`
+}
+
+func (s SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourceMssqlUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
// SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync - What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
@@ -121,12 +136,48 @@ func (e *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnaps
// SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.
type SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC struct {
// What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
- DataToSync *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync `json:"data_to_sync,omitempty"`
+ DataToSync *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync `default:"Existing and New" json:"data_to_sync"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
- Method SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod `json:"method"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
+ method SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod `const:"CDC" json:"method"`
// Existing data in the database are synced through an initial snapshot. This parameter controls the isolation level that will be used during the initial snapshotting. If you choose the "Snapshot" level, you must enable the snapshot isolation mode on the database.
- SnapshotIsolation *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel `json:"snapshot_isolation,omitempty"`
+ SnapshotIsolation *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel `default:"Snapshot" json:"snapshot_isolation"`
+}
+
+func (s SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetDataToSync() *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync {
+ if o == nil {
+ return nil
+ }
+ return o.DataToSync
+}
+
+func (o *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InitialWaitingSeconds
+}
+
+func (o *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetMethod() SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod {
+ return SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCMethodCdc
+}
+
+func (o *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetSnapshotIsolation() *SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel {
+ if o == nil {
+ return nil
+ }
+ return o.SnapshotIsolation
}
type SourceMssqlUpdateMethodType string
@@ -162,21 +213,16 @@ func CreateSourceMssqlUpdateMethodSourceMssqlUpdateMethodScanChangesWithUserDefi
}
func (u *SourceMssqlUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor := new(SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor = sourceMssqlUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourceMssqlUpdateMethodTypeSourceMssqlUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC := new(SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC, "", true, true); err == nil {
u.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC = sourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC
u.Type = SourceMssqlUpdateMethodTypeSourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC
return nil
@@ -186,15 +232,15 @@ func (u *SourceMssqlUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceMssqlUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC != nil {
+ return utils.MarshalJSON(u.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC, "", true)
}
- if u.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC != nil {
- return json.Marshal(u.SourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC)
+ if u.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourceMssqlUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMssqlMssql string
@@ -249,7 +295,29 @@ func (e *SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethod) UnmarshalJSON(
type SourceMssqlSSLMethodEncryptedVerifyCertificate struct {
// Specifies the host name of the server. The value of this property must match the subject property of the certificate.
HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
- SslMethod SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethod `json:"ssl_method"`
+ sslMethod SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethod `const:"encrypted_verify_certificate" json:"ssl_method"`
+}
+
+func (s SourceMssqlSSLMethodEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlSSLMethodEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlSSLMethodEncryptedVerifyCertificate) GetHostNameInCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.HostNameInCertificate
+}
+
+func (o *SourceMssqlSSLMethodEncryptedVerifyCertificate) GetSslMethod() SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethod {
+ return SourceMssqlSSLMethodEncryptedVerifyCertificateSSLMethodEncryptedVerifyCertificate
}
type SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod string
@@ -278,7 +346,22 @@ func (e *SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod) Unmarshal
// SourceMssqlSSLMethodEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!)
type SourceMssqlSSLMethodEncryptedTrustServerCertificate struct {
- SslMethod SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod `json:"ssl_method"`
+ sslMethod SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"`
+}
+
+func (s SourceMssqlSSLMethodEncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlSSLMethodEncryptedTrustServerCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlSSLMethodEncryptedTrustServerCertificate) GetSslMethod() SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethod {
+ return SourceMssqlSSLMethodEncryptedTrustServerCertificateSSLMethodEncryptedTrustServerCertificate
}
type SourceMssqlSSLMethodType string
@@ -314,21 +397,16 @@ func CreateSourceMssqlSSLMethodSourceMssqlSSLMethodEncryptedVerifyCertificate(so
}
func (u *SourceMssqlSSLMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlSSLMethodEncryptedTrustServerCertificate := new(SourceMssqlSSLMethodEncryptedTrustServerCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlSSLMethodEncryptedTrustServerCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlSSLMethodEncryptedTrustServerCertificate, "", true, true); err == nil {
u.SourceMssqlSSLMethodEncryptedTrustServerCertificate = sourceMssqlSSLMethodEncryptedTrustServerCertificate
u.Type = SourceMssqlSSLMethodTypeSourceMssqlSSLMethodEncryptedTrustServerCertificate
return nil
}
sourceMssqlSSLMethodEncryptedVerifyCertificate := new(SourceMssqlSSLMethodEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlSSLMethodEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlSSLMethodEncryptedVerifyCertificate, "", true, true); err == nil {
u.SourceMssqlSSLMethodEncryptedVerifyCertificate = sourceMssqlSSLMethodEncryptedVerifyCertificate
u.Type = SourceMssqlSSLMethodTypeSourceMssqlSSLMethodEncryptedVerifyCertificate
return nil
@@ -339,14 +417,14 @@ func (u *SourceMssqlSSLMethod) UnmarshalJSON(data []byte) error {
func (u SourceMssqlSSLMethod) MarshalJSON() ([]byte, error) {
if u.SourceMssqlSSLMethodEncryptedTrustServerCertificate != nil {
- return json.Marshal(u.SourceMssqlSSLMethodEncryptedTrustServerCertificate)
+ return utils.MarshalJSON(u.SourceMssqlSSLMethodEncryptedTrustServerCertificate, "", true)
}
if u.SourceMssqlSSLMethodEncryptedVerifyCertificate != nil {
- return json.Marshal(u.SourceMssqlSSLMethodEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.SourceMssqlSSLMethodEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -379,15 +457,58 @@ type SourceMssqlSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceMssqlSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceMssqlSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceMssqlSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -420,13 +541,56 @@ type SourceMssqlSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceMssqlSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceMssqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMssqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod string
@@ -455,7 +619,22 @@ func (e *SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data []by
// SourceMssqlSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceMssqlSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceMssqlSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceMssqlSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceMssqlSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceMssqlSSHTunnelMethodType string
@@ -502,30 +681,23 @@ func CreateSourceMssqlSSHTunnelMethodSourceMssqlSSHTunnelMethodPasswordAuthentic
}
func (u *SourceMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlSSHTunnelMethodNoTunnel := new(SourceMssqlSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceMssqlSSHTunnelMethodNoTunnel = sourceMssqlSSHTunnelMethodNoTunnel
u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHTunnelMethodNoTunnel
return nil
}
sourceMssqlSSHTunnelMethodSSHKeyAuthentication := new(SourceMssqlSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceMssqlSSHTunnelMethodSSHKeyAuthentication = sourceMssqlSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceMssqlSSHTunnelMethodPasswordAuthentication := new(SourceMssqlSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceMssqlSSHTunnelMethodPasswordAuthentication = sourceMssqlSSHTunnelMethodPasswordAuthentication
u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHTunnelMethodPasswordAuthentication
return nil
@@ -536,18 +708,18 @@ func (u *SourceMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceMssqlSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceMssqlSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceMssqlSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceMssqlSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceMssqlSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceMssqlSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceMssqlSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceMssqlSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceMssqlSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceMssqlSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMssql struct {
@@ -565,7 +737,7 @@ type SourceMssql struct {
ReplicationMethod *SourceMssqlUpdateMethod `json:"replication_method,omitempty"`
// The list of schemas to sync from. Defaults to user. Case sensitive.
Schemas []string `json:"schemas,omitempty"`
- SourceType SourceMssqlMssql `json:"sourceType"`
+ sourceType SourceMssqlMssql `const:"mssql" json:"sourceType"`
// The encryption method which is used when communicating with the database.
SslMethod *SourceMssqlSSLMethod `json:"ssl_method,omitempty"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -573,3 +745,88 @@ type SourceMssql struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceMssql) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssql) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssql) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMssql) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMssql) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceMssql) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMssql) GetPort() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Port
+}
+
+func (o *SourceMssql) GetReplicationMethod() *SourceMssqlUpdateMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceMssql) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceMssql) GetSourceType() SourceMssqlMssql {
+ return SourceMssqlMssqlMssql
+}
+
+func (o *SourceMssql) GetSslMethod() *SourceMssqlSSLMethod {
+ if o == nil {
+ return nil
+ }
+ return o.SslMethod
+}
+
+func (o *SourceMssql) GetTunnelMethod() *SourceMssqlSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceMssql) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemssqlcreaterequest.go b/internal/sdk/pkg/models/shared/sourcemssqlcreaterequest.go
old mode 100755
new mode 100644
index e82b8ef58..881843494
--- a/internal/sdk/pkg/models/shared/sourcemssqlcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemssqlcreaterequest.go
@@ -9,3 +9,31 @@ type SourceMssqlCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMssqlCreateRequest) GetConfiguration() SourceMssql {
+ if o == nil {
+ return SourceMssql{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMssqlCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMssqlCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMssqlCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemssqlputrequest.go b/internal/sdk/pkg/models/shared/sourcemssqlputrequest.go
old mode 100755
new mode 100644
index 201711a24..e5eb44345
--- a/internal/sdk/pkg/models/shared/sourcemssqlputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemssqlputrequest.go
@@ -7,3 +7,24 @@ type SourceMssqlPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMssqlPutRequest) GetConfiguration() SourceMssqlUpdate {
+ if o == nil {
+ return SourceMssqlUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMssqlPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMssqlPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemssqlupdate.go b/internal/sdk/pkg/models/shared/sourcemssqlupdate.go
old mode 100755
new mode 100644
index f0d7ddf6f..985f03e45
--- a/internal/sdk/pkg/models/shared/sourcemssqlupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemssqlupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod) Un
// SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"STANDARD" json:"method"`
+}
+
+func (s SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
// SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync - What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
@@ -121,12 +136,48 @@ func (e *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitia
// SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data capture feature. This must be enabled on your database.
type SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC struct {
// What data should be synced under the CDC. "Existing and New" will read existing data as a snapshot, and sync new changes through CDC. "New Changes Only" will skip the initial snapshot, and only sync new changes through CDC.
- DataToSync *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync `json:"data_to_sync,omitempty"`
+ DataToSync *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync `default:"Existing and New" json:"data_to_sync"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
- Method SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod `json:"method"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
+ method SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod `const:"CDC" json:"method"`
// Existing data in the database are synced through an initial snapshot. This parameter controls the isolation level that will be used during the initial snapshotting. If you choose the "Snapshot" level, you must enable the snapshot isolation mode on the database.
- SnapshotIsolation *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel `json:"snapshot_isolation,omitempty"`
+ SnapshotIsolation *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel `default:"Snapshot" json:"snapshot_isolation"`
+}
+
+func (s SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetDataToSync() *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCDataToSync {
+ if o == nil {
+ return nil
+ }
+ return o.DataToSync
+}
+
+func (o *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InitialWaitingSeconds
+}
+
+func (o *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetMethod() SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCMethod {
+ return SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCMethodCdc
+}
+
+func (o *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC) GetSnapshotIsolation() *SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDCInitialSnapshotIsolationLevel {
+ if o == nil {
+ return nil
+ }
+ return o.SnapshotIsolation
}
type SourceMssqlUpdateUpdateMethodType string
@@ -162,21 +213,16 @@ func CreateSourceMssqlUpdateUpdateMethodSourceMssqlUpdateUpdateMethodScanChanges
}
func (u *SourceMssqlUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor := new(SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = sourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourceMssqlUpdateUpdateMethodTypeSourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC := new(SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC, "", true, true); err == nil {
u.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC = sourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC
u.Type = SourceMssqlUpdateUpdateMethodTypeSourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC
return nil
@@ -186,15 +232,15 @@ func (u *SourceMssqlUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceMssqlUpdateUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC != nil {
+ return utils.MarshalJSON(u.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC, "", true)
}
- if u.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC != nil {
- return json.Marshal(u.SourceMssqlUpdateUpdateMethodReadChangesUsingChangeDataCaptureCDC)
+ if u.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourceMssqlUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod string
@@ -225,7 +271,29 @@ func (e *SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod) Unmarsha
type SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate struct {
// Specifies the host name of the server. The value of this property must match the subject property of the certificate.
HostNameInCertificate *string `json:"hostNameInCertificate,omitempty"`
- SslMethod SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod `json:"ssl_method"`
+ sslMethod SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod `const:"encrypted_verify_certificate" json:"ssl_method"`
+}
+
+func (s SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate) GetHostNameInCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.HostNameInCertificate
+}
+
+func (o *SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate) GetSslMethod() SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethod {
+ return SourceMssqlUpdateSSLMethodEncryptedVerifyCertificateSSLMethodEncryptedVerifyCertificate
}
type SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod string
@@ -254,7 +322,22 @@ func (e *SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod) Unm
// SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate - Use the certificate provided by the server without verification. (For testing purposes only!)
type SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate struct {
- SslMethod SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod `json:"ssl_method"`
+ sslMethod SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod `const:"encrypted_trust_server_certificate" json:"ssl_method"`
+}
+
+func (s SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate) GetSslMethod() SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethod {
+ return SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificateSSLMethodEncryptedTrustServerCertificate
}
type SourceMssqlUpdateSSLMethodType string
@@ -290,21 +373,16 @@ func CreateSourceMssqlUpdateSSLMethodSourceMssqlUpdateSSLMethodEncryptedVerifyCe
}
func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate := new(SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate, "", true, true); err == nil {
u.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate = sourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate
u.Type = SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate
return nil
}
sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate := new(SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate, "", true, true); err == nil {
u.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate = sourceMssqlUpdateSSLMethodEncryptedVerifyCertificate
u.Type = SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateSSLMethodEncryptedVerifyCertificate
return nil
@@ -315,14 +393,14 @@ func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error {
func (u SourceMssqlUpdateSSLMethod) MarshalJSON() ([]byte, error) {
if u.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate != nil {
- return json.Marshal(u.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate)
+ return utils.MarshalJSON(u.SourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate, "", true)
}
if u.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate != nil {
- return json.Marshal(u.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.SourceMssqlUpdateSSLMethodEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -355,15 +433,58 @@ type SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceMssqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -396,13 +517,56 @@ type SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -431,7 +595,22 @@ func (e *SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(dat
// SourceMssqlUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceMssqlUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceMssqlUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMssqlUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMssqlUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceMssqlUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceMssqlUpdateSSHTunnelMethodType string
@@ -478,30 +657,23 @@ func CreateSourceMssqlUpdateSSHTunnelMethodSourceMssqlUpdateSSHTunnelMethodPassw
}
func (u *SourceMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMssqlUpdateSSHTunnelMethodNoTunnel := new(SourceMssqlUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceMssqlUpdateSSHTunnelMethodNoTunnel = sourceMssqlUpdateSSHTunnelMethodNoTunnel
u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHTunnelMethodNoTunnel
return nil
}
sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication = sourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication := new(SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication = sourceMssqlUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -512,18 +684,18 @@ func (u *SourceMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceMssqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceMssqlUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceMssqlUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceMssqlUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceMssqlUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMssqlUpdate struct {
@@ -548,3 +720,73 @@ type SourceMssqlUpdate struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (o *SourceMssqlUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMssqlUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMssqlUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceMssqlUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMssqlUpdate) GetPort() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Port
+}
+
+func (o *SourceMssqlUpdate) GetReplicationMethod() *SourceMssqlUpdateUpdateMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceMssqlUpdate) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceMssqlUpdate) GetSslMethod() *SourceMssqlUpdateSSLMethod {
+ if o == nil {
+ return nil
+ }
+ return o.SslMethod
+}
+
+func (o *SourceMssqlUpdate) GetTunnelMethod() *SourceMssqlUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceMssqlUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemyhours.go b/internal/sdk/pkg/models/shared/sourcemyhours.go
old mode 100755
new mode 100644
index 928e6736a..b68bd99a6
--- a/internal/sdk/pkg/models/shared/sourcemyhours.go
+++ b/internal/sdk/pkg/models/shared/sourcemyhours.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,10 +36,53 @@ type SourceMyHours struct {
// Your My Hours username
Email string `json:"email"`
// Pagination size used for retrieving logs in days
- LogsBatchSize *int64 `json:"logs_batch_size,omitempty"`
+ LogsBatchSize *int64 `default:"30" json:"logs_batch_size"`
// The password associated to the username
Password string `json:"password"`
- SourceType SourceMyHoursMyHours `json:"sourceType"`
+ sourceType SourceMyHoursMyHours `const:"my-hours" json:"sourceType"`
// Start date for collecting time logs
StartDate string `json:"start_date"`
}
+
+func (s SourceMyHours) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMyHours) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMyHours) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceMyHours) GetLogsBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LogsBatchSize
+}
+
+func (o *SourceMyHours) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceMyHours) GetSourceType() SourceMyHoursMyHours {
+ return SourceMyHoursMyHoursMyHours
+}
+
+func (o *SourceMyHours) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemyhourscreaterequest.go b/internal/sdk/pkg/models/shared/sourcemyhourscreaterequest.go
old mode 100755
new mode 100644
index 6acb52958..5338988bc
--- a/internal/sdk/pkg/models/shared/sourcemyhourscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemyhourscreaterequest.go
@@ -9,3 +9,31 @@ type SourceMyHoursCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMyHoursCreateRequest) GetConfiguration() SourceMyHours {
+ if o == nil {
+ return SourceMyHours{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMyHoursCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMyHoursCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMyHoursCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemyhoursputrequest.go b/internal/sdk/pkg/models/shared/sourcemyhoursputrequest.go
old mode 100755
new mode 100644
index 2650db500..64bf5bc59
--- a/internal/sdk/pkg/models/shared/sourcemyhoursputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemyhoursputrequest.go
@@ -7,3 +7,24 @@ type SourceMyHoursPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMyHoursPutRequest) GetConfiguration() SourceMyHoursUpdate {
+ if o == nil {
+ return SourceMyHoursUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMyHoursPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMyHoursPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemyhoursupdate.go b/internal/sdk/pkg/models/shared/sourcemyhoursupdate.go
old mode 100755
new mode 100644
index ca86742ad..4d8064128
--- a/internal/sdk/pkg/models/shared/sourcemyhoursupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemyhoursupdate.go
@@ -2,13 +2,56 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceMyHoursUpdate struct {
// Your My Hours username
Email string `json:"email"`
// Pagination size used for retrieving logs in days
- LogsBatchSize *int64 `json:"logs_batch_size,omitempty"`
+ LogsBatchSize *int64 `default:"30" json:"logs_batch_size"`
// The password associated to the username
Password string `json:"password"`
// Start date for collecting time logs
StartDate string `json:"start_date"`
}
+
+func (s SourceMyHoursUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMyHoursUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMyHoursUpdate) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
+func (o *SourceMyHoursUpdate) GetLogsBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LogsBatchSize
+}
+
+func (o *SourceMyHoursUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceMyHoursUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemysql.go b/internal/sdk/pkg/models/shared/sourcemysql.go
old mode 100755
new mode 100644
index 43b166b83..8b2269f89
--- a/internal/sdk/pkg/models/shared/sourcemysql.go
+++ b/internal/sdk/pkg/models/shared/sourcemysql.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethod) Unmarsha
// SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"STANDARD" json:"method"`
+}
+
+func (s SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourceMysqlUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
type SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod string
@@ -65,12 +80,41 @@ func (e *SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod) UnmarshalJSO
// SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.
type SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC struct {
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
- Method SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod `json:"method"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
+ method SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod `const:"CDC" json:"method"`
// Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.
ServerTimeZone *string `json:"server_time_zone,omitempty"`
}
+func (s SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InitialWaitingSeconds
+}
+
+func (o *SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC) GetMethod() SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethod {
+ return SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDCMethodCdc
+}
+
+func (o *SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC) GetServerTimeZone() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ServerTimeZone
+}
+
type SourceMysqlUpdateMethodType string
const (
@@ -104,21 +148,16 @@ func CreateSourceMysqlUpdateMethodSourceMysqlUpdateMethodScanChangesWithUserDefi
}
func (u *SourceMysqlUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor := new(SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor = sourceMysqlUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourceMysqlUpdateMethodTypeSourceMysqlUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC := new(SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC, "", true, true); err == nil {
u.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC = sourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC
u.Type = SourceMysqlUpdateMethodTypeSourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC
return nil
@@ -128,15 +167,15 @@ func (u *SourceMysqlUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceMysqlUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC != nil {
+ return utils.MarshalJSON(u.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC, "", true)
}
- if u.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC != nil {
- return json.Marshal(u.SourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC)
+ if u.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourceMysqlUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMysqlMysql string
@@ -197,7 +236,50 @@ type SourceMysqlSSLModesVerifyIdentity struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceMysqlSSLModesVerifyIdentityMode `json:"mode"`
+ mode SourceMysqlSSLModesVerifyIdentityMode `const:"verify_identity" json:"mode"`
+}
+
+func (s SourceMysqlSSLModesVerifyIdentity) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSLModesVerifyIdentity) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSLModesVerifyIdentity) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *SourceMysqlSSLModesVerifyIdentity) GetClientCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientCertificate
+}
+
+func (o *SourceMysqlSSLModesVerifyIdentity) GetClientKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKey
+}
+
+func (o *SourceMysqlSSLModesVerifyIdentity) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *SourceMysqlSSLModesVerifyIdentity) GetMode() SourceMysqlSSLModesVerifyIdentityMode {
+ return SourceMysqlSSLModesVerifyIdentityModeVerifyIdentity
}
type SourceMysqlSSLModesVerifyCAMode string
@@ -234,7 +316,50 @@ type SourceMysqlSSLModesVerifyCA struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceMysqlSSLModesVerifyCAMode `json:"mode"`
+ mode SourceMysqlSSLModesVerifyCAMode `const:"verify_ca" json:"mode"`
+}
+
+func (s SourceMysqlSSLModesVerifyCA) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSLModesVerifyCA) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSLModesVerifyCA) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *SourceMysqlSSLModesVerifyCA) GetClientCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientCertificate
+}
+
+func (o *SourceMysqlSSLModesVerifyCA) GetClientKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKey
+}
+
+func (o *SourceMysqlSSLModesVerifyCA) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *SourceMysqlSSLModesVerifyCA) GetMode() SourceMysqlSSLModesVerifyCAMode {
+ return SourceMysqlSSLModesVerifyCAModeVerifyCa
}
type SourceMysqlSSLModesRequiredMode string
@@ -263,7 +388,22 @@ func (e *SourceMysqlSSLModesRequiredMode) UnmarshalJSON(data []byte) error {
// SourceMysqlSSLModesRequired - Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.
type SourceMysqlSSLModesRequired struct {
- Mode SourceMysqlSSLModesRequiredMode `json:"mode"`
+ mode SourceMysqlSSLModesRequiredMode `const:"required" json:"mode"`
+}
+
+func (s SourceMysqlSSLModesRequired) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSLModesRequired) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSLModesRequired) GetMode() SourceMysqlSSLModesRequiredMode {
+ return SourceMysqlSSLModesRequiredModeRequired
}
type SourceMysqlSSLModesPreferredMode string
@@ -292,7 +432,22 @@ func (e *SourceMysqlSSLModesPreferredMode) UnmarshalJSON(data []byte) error {
// SourceMysqlSSLModesPreferred - Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.
type SourceMysqlSSLModesPreferred struct {
- Mode SourceMysqlSSLModesPreferredMode `json:"mode"`
+ mode SourceMysqlSSLModesPreferredMode `const:"preferred" json:"mode"`
+}
+
+func (s SourceMysqlSSLModesPreferred) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSLModesPreferred) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSLModesPreferred) GetMode() SourceMysqlSSLModesPreferredMode {
+ return SourceMysqlSSLModesPreferredModePreferred
}
type SourceMysqlSSLModesType string
@@ -350,39 +505,30 @@ func CreateSourceMysqlSSLModesSourceMysqlSSLModesVerifyIdentity(sourceMysqlSSLMo
}
func (u *SourceMysqlSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlSSLModesPreferred := new(SourceMysqlSSLModesPreferred)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSLModesPreferred); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSLModesPreferred, "", true, true); err == nil {
u.SourceMysqlSSLModesPreferred = sourceMysqlSSLModesPreferred
u.Type = SourceMysqlSSLModesTypeSourceMysqlSSLModesPreferred
return nil
}
sourceMysqlSSLModesRequired := new(SourceMysqlSSLModesRequired)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSLModesRequired); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSLModesRequired, "", true, true); err == nil {
u.SourceMysqlSSLModesRequired = sourceMysqlSSLModesRequired
u.Type = SourceMysqlSSLModesTypeSourceMysqlSSLModesRequired
return nil
}
sourceMysqlSSLModesVerifyCA := new(SourceMysqlSSLModesVerifyCA)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSLModesVerifyCA); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSLModesVerifyCA, "", true, true); err == nil {
u.SourceMysqlSSLModesVerifyCA = sourceMysqlSSLModesVerifyCA
u.Type = SourceMysqlSSLModesTypeSourceMysqlSSLModesVerifyCA
return nil
}
sourceMysqlSSLModesVerifyIdentity := new(SourceMysqlSSLModesVerifyIdentity)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSLModesVerifyIdentity); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSLModesVerifyIdentity, "", true, true); err == nil {
u.SourceMysqlSSLModesVerifyIdentity = sourceMysqlSSLModesVerifyIdentity
u.Type = SourceMysqlSSLModesTypeSourceMysqlSSLModesVerifyIdentity
return nil
@@ -393,22 +539,22 @@ func (u *SourceMysqlSSLModes) UnmarshalJSON(data []byte) error {
func (u SourceMysqlSSLModes) MarshalJSON() ([]byte, error) {
if u.SourceMysqlSSLModesPreferred != nil {
- return json.Marshal(u.SourceMysqlSSLModesPreferred)
+ return utils.MarshalJSON(u.SourceMysqlSSLModesPreferred, "", true)
}
if u.SourceMysqlSSLModesRequired != nil {
- return json.Marshal(u.SourceMysqlSSLModesRequired)
+ return utils.MarshalJSON(u.SourceMysqlSSLModesRequired, "", true)
}
if u.SourceMysqlSSLModesVerifyCA != nil {
- return json.Marshal(u.SourceMysqlSSLModesVerifyCA)
+ return utils.MarshalJSON(u.SourceMysqlSSLModesVerifyCA, "", true)
}
if u.SourceMysqlSSLModesVerifyIdentity != nil {
- return json.Marshal(u.SourceMysqlSSLModesVerifyIdentity)
+ return utils.MarshalJSON(u.SourceMysqlSSLModesVerifyIdentity, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -441,15 +587,58 @@ type SourceMysqlSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceMysqlSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceMysqlSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceMysqlSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -482,13 +671,56 @@ type SourceMysqlSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceMysqlSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceMysqlSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMysqlSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod string
@@ -517,7 +749,22 @@ func (e *SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data []by
// SourceMysqlSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceMysqlSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceMysqlSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceMysqlSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceMysqlSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceMysqlSSHTunnelMethodType string
@@ -564,30 +811,23 @@ func CreateSourceMysqlSSHTunnelMethodSourceMysqlSSHTunnelMethodPasswordAuthentic
}
func (u *SourceMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlSSHTunnelMethodNoTunnel := new(SourceMysqlSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceMysqlSSHTunnelMethodNoTunnel = sourceMysqlSSHTunnelMethodNoTunnel
u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHTunnelMethodNoTunnel
return nil
}
sourceMysqlSSHTunnelMethodSSHKeyAuthentication := new(SourceMysqlSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceMysqlSSHTunnelMethodSSHKeyAuthentication = sourceMysqlSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceMysqlSSHTunnelMethodPasswordAuthentication := new(SourceMysqlSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceMysqlSSHTunnelMethodPasswordAuthentication = sourceMysqlSSHTunnelMethodPasswordAuthentication
u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHTunnelMethodPasswordAuthentication
return nil
@@ -598,18 +838,18 @@ func (u *SourceMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceMysqlSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceMysqlSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceMysqlSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceMysqlSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceMysqlSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceMysqlSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceMysqlSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceMysqlSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceMysqlSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceMysqlSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMysql struct {
@@ -622,10 +862,10 @@ type SourceMysql struct {
// The password associated with the username.
Password *string `json:"password,omitempty"`
// The port to connect to.
- Port int64 `json:"port"`
+ Port *int64 `default:"3306" json:"port"`
// Configures how data is extracted from the database.
ReplicationMethod SourceMysqlUpdateMethod `json:"replication_method"`
- SourceType SourceMysqlMysql `json:"sourceType"`
+ sourceType SourceMysqlMysql `const:"mysql" json:"sourceType"`
// SSL connection modes. Read more in the docs.
SslMode *SourceMysqlSSLModes `json:"ssl_mode,omitempty"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -633,3 +873,81 @@ type SourceMysql struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceMysql) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysql) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysql) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMysql) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMysql) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceMysql) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMysql) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceMysql) GetReplicationMethod() SourceMysqlUpdateMethod {
+ if o == nil {
+ return SourceMysqlUpdateMethod{}
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceMysql) GetSourceType() SourceMysqlMysql {
+ return SourceMysqlMysqlMysql
+}
+
+func (o *SourceMysql) GetSslMode() *SourceMysqlSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourceMysql) GetTunnelMethod() *SourceMysqlSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceMysql) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemysqlcreaterequest.go b/internal/sdk/pkg/models/shared/sourcemysqlcreaterequest.go
old mode 100755
new mode 100644
index f06779472..aa95ecd29
--- a/internal/sdk/pkg/models/shared/sourcemysqlcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemysqlcreaterequest.go
@@ -9,3 +9,31 @@ type SourceMysqlCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMysqlCreateRequest) GetConfiguration() SourceMysql {
+ if o == nil {
+ return SourceMysql{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMysqlCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMysqlCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceMysqlCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemysqlputrequest.go b/internal/sdk/pkg/models/shared/sourcemysqlputrequest.go
old mode 100755
new mode 100644
index 37c9ee78c..58b638944
--- a/internal/sdk/pkg/models/shared/sourcemysqlputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcemysqlputrequest.go
@@ -7,3 +7,24 @@ type SourceMysqlPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceMysqlPutRequest) GetConfiguration() SourceMysqlUpdate {
+ if o == nil {
+ return SourceMysqlUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceMysqlPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceMysqlPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcemysqlupdate.go b/internal/sdk/pkg/models/shared/sourcemysqlupdate.go
old mode 100755
new mode 100644
index 4a2b8d84b..8a168868e
--- a/internal/sdk/pkg/models/shared/sourcemysqlupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcemysqlupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod) Un
// SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"STANDARD" json:"method"`
+}
+
+func (s SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
type SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod string
@@ -65,12 +80,41 @@ func (e *SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod) Unmars
// SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the MySQL binary log. This must be enabled on your database.
type SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC struct {
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
- Method SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod `json:"method"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
+ method SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod `const:"CDC" json:"method"`
// Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard.
ServerTimeZone *string `json:"server_time_zone,omitempty"`
}
+func (s SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.InitialWaitingSeconds
+}
+
+func (o *SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC) GetMethod() SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethod {
+ return SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDCMethodCdc
+}
+
+func (o *SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC) GetServerTimeZone() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ServerTimeZone
+}
+
type SourceMysqlUpdateUpdateMethodType string
const (
@@ -104,21 +148,16 @@ func CreateSourceMysqlUpdateUpdateMethodSourceMysqlUpdateUpdateMethodScanChanges
}
func (u *SourceMysqlUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor := new(SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor = sourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourceMysqlUpdateUpdateMethodTypeSourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC := new(SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC, "", true, true); err == nil {
u.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC = sourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC
u.Type = SourceMysqlUpdateUpdateMethodTypeSourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC
return nil
@@ -128,15 +167,15 @@ func (u *SourceMysqlUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceMysqlUpdateUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC != nil {
+ return utils.MarshalJSON(u.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC, "", true)
}
- if u.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC != nil {
- return json.Marshal(u.SourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC)
+ if u.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMysqlUpdateSSLModesVerifyIdentityMode string
@@ -173,7 +212,50 @@ type SourceMysqlUpdateSSLModesVerifyIdentity struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceMysqlUpdateSSLModesVerifyIdentityMode `json:"mode"`
+ mode SourceMysqlUpdateSSLModesVerifyIdentityMode `const:"verify_identity" json:"mode"`
+}
+
+func (s SourceMysqlUpdateSSLModesVerifyIdentity) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSLModesVerifyIdentity) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyIdentity) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyIdentity) GetClientCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientCertificate
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyIdentity) GetClientKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKey
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyIdentity) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyIdentity) GetMode() SourceMysqlUpdateSSLModesVerifyIdentityMode {
+ return SourceMysqlUpdateSSLModesVerifyIdentityModeVerifyIdentity
}
type SourceMysqlUpdateSSLModesVerifyCAMode string
@@ -210,7 +292,50 @@ type SourceMysqlUpdateSSLModesVerifyCA struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourceMysqlUpdateSSLModesVerifyCAMode `json:"mode"`
+ mode SourceMysqlUpdateSSLModesVerifyCAMode `const:"verify_ca" json:"mode"`
+}
+
+func (s SourceMysqlUpdateSSLModesVerifyCA) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSLModesVerifyCA) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyCA) GetCaCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.CaCertificate
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyCA) GetClientCertificate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientCertificate
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyCA) GetClientKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKey
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyCA) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientKeyPassword
+}
+
+func (o *SourceMysqlUpdateSSLModesVerifyCA) GetMode() SourceMysqlUpdateSSLModesVerifyCAMode {
+ return SourceMysqlUpdateSSLModesVerifyCAModeVerifyCa
}
type SourceMysqlUpdateSSLModesRequiredMode string
@@ -239,7 +364,22 @@ func (e *SourceMysqlUpdateSSLModesRequiredMode) UnmarshalJSON(data []byte) error
// SourceMysqlUpdateSSLModesRequired - Always connect with SSL. If the MySQL server doesn’t support SSL, the connection will not be established. Certificate Authority (CA) and Hostname are not verified.
type SourceMysqlUpdateSSLModesRequired struct {
- Mode SourceMysqlUpdateSSLModesRequiredMode `json:"mode"`
+ mode SourceMysqlUpdateSSLModesRequiredMode `const:"required" json:"mode"`
+}
+
+func (s SourceMysqlUpdateSSLModesRequired) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSLModesRequired) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSLModesRequired) GetMode() SourceMysqlUpdateSSLModesRequiredMode {
+ return SourceMysqlUpdateSSLModesRequiredModeRequired
}
type SourceMysqlUpdateSSLModesPreferredMode string
@@ -268,7 +408,22 @@ func (e *SourceMysqlUpdateSSLModesPreferredMode) UnmarshalJSON(data []byte) erro
// SourceMysqlUpdateSSLModesPreferred - Automatically attempt SSL connection. If the MySQL server does not support SSL, continue with a regular connection.
type SourceMysqlUpdateSSLModesPreferred struct {
- Mode SourceMysqlUpdateSSLModesPreferredMode `json:"mode"`
+ mode SourceMysqlUpdateSSLModesPreferredMode `const:"preferred" json:"mode"`
+}
+
+func (s SourceMysqlUpdateSSLModesPreferred) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSLModesPreferred) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSLModesPreferred) GetMode() SourceMysqlUpdateSSLModesPreferredMode {
+ return SourceMysqlUpdateSSLModesPreferredModePreferred
}
type SourceMysqlUpdateSSLModesType string
@@ -326,39 +481,30 @@ func CreateSourceMysqlUpdateSSLModesSourceMysqlUpdateSSLModesVerifyIdentity(sour
}
func (u *SourceMysqlUpdateSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlUpdateSSLModesPreferred := new(SourceMysqlUpdateSSLModesPreferred)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSLModesPreferred); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSLModesPreferred, "", true, true); err == nil {
u.SourceMysqlUpdateSSLModesPreferred = sourceMysqlUpdateSSLModesPreferred
u.Type = SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateSSLModesPreferred
return nil
}
sourceMysqlUpdateSSLModesRequired := new(SourceMysqlUpdateSSLModesRequired)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSLModesRequired); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSLModesRequired, "", true, true); err == nil {
u.SourceMysqlUpdateSSLModesRequired = sourceMysqlUpdateSSLModesRequired
u.Type = SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateSSLModesRequired
return nil
}
sourceMysqlUpdateSSLModesVerifyCA := new(SourceMysqlUpdateSSLModesVerifyCA)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSLModesVerifyCA); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSLModesVerifyCA, "", true, true); err == nil {
u.SourceMysqlUpdateSSLModesVerifyCA = sourceMysqlUpdateSSLModesVerifyCA
u.Type = SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateSSLModesVerifyCA
return nil
}
sourceMysqlUpdateSSLModesVerifyIdentity := new(SourceMysqlUpdateSSLModesVerifyIdentity)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSLModesVerifyIdentity); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSLModesVerifyIdentity, "", true, true); err == nil {
u.SourceMysqlUpdateSSLModesVerifyIdentity = sourceMysqlUpdateSSLModesVerifyIdentity
u.Type = SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateSSLModesVerifyIdentity
return nil
@@ -369,22 +515,22 @@ func (u *SourceMysqlUpdateSSLModes) UnmarshalJSON(data []byte) error {
func (u SourceMysqlUpdateSSLModes) MarshalJSON() ([]byte, error) {
if u.SourceMysqlUpdateSSLModesPreferred != nil {
- return json.Marshal(u.SourceMysqlUpdateSSLModesPreferred)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSLModesPreferred, "", true)
}
if u.SourceMysqlUpdateSSLModesRequired != nil {
- return json.Marshal(u.SourceMysqlUpdateSSLModesRequired)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSLModesRequired, "", true)
}
if u.SourceMysqlUpdateSSLModesVerifyCA != nil {
- return json.Marshal(u.SourceMysqlUpdateSSLModesVerifyCA)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSLModesVerifyCA, "", true)
}
if u.SourceMysqlUpdateSSLModesVerifyIdentity != nil {
- return json.Marshal(u.SourceMysqlUpdateSSLModesVerifyIdentity)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSLModesVerifyIdentity, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -417,15 +563,58 @@ type SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceMysqlUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -458,13 +647,56 @@ type SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -493,7 +725,22 @@ func (e *SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(dat
// SourceMysqlUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceMysqlUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceMysqlUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceMysqlUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceMysqlUpdateSSHTunnelMethodType string
@@ -540,30 +787,23 @@ func CreateSourceMysqlUpdateSSHTunnelMethodSourceMysqlUpdateSSHTunnelMethodPassw
}
func (u *SourceMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceMysqlUpdateSSHTunnelMethodNoTunnel := new(SourceMysqlUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceMysqlUpdateSSHTunnelMethodNoTunnel = sourceMysqlUpdateSSHTunnelMethodNoTunnel
u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHTunnelMethodNoTunnel
return nil
}
sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication = sourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication := new(SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication = sourceMysqlUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -574,18 +814,18 @@ func (u *SourceMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceMysqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceMysqlUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceMysqlUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceMysqlUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceMysqlUpdate struct {
@@ -598,7 +838,7 @@ type SourceMysqlUpdate struct {
// The password associated with the username.
Password *string `json:"password,omitempty"`
// The port to connect to.
- Port int64 `json:"port"`
+ Port *int64 `default:"3306" json:"port"`
// Configures how data is extracted from the database.
ReplicationMethod SourceMysqlUpdateUpdateMethod `json:"replication_method"`
// SSL connection modes. Read more in the docs.
@@ -608,3 +848,77 @@ type SourceMysqlUpdate struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceMysqlUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceMysqlUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceMysqlUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceMysqlUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceMysqlUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceMysqlUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceMysqlUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceMysqlUpdate) GetReplicationMethod() SourceMysqlUpdateUpdateMethod {
+ if o == nil {
+ return SourceMysqlUpdateUpdateMethod{}
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourceMysqlUpdate) GetSslMode() *SourceMysqlUpdateSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourceMysqlUpdate) GetTunnelMethod() *SourceMysqlUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceMysqlUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenetsuite.go b/internal/sdk/pkg/models/shared/sourcenetsuite.go
old mode 100755
new mode 100644
index 1446e1a4c..6ba6d2a90
--- a/internal/sdk/pkg/models/shared/sourcenetsuite.go
+++ b/internal/sdk/pkg/models/shared/sourcenetsuite.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -40,7 +41,7 @@ type SourceNetsuite struct {
ObjectTypes []string `json:"object_types,omitempty"`
// Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox`
Realm string `json:"realm"`
- SourceType SourceNetsuiteNetsuite `json:"sourceType"`
+ sourceType SourceNetsuiteNetsuite `const:"netsuite" json:"sourceType"`
// Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ"
StartDatetime string `json:"start_datetime"`
// Access token key
@@ -48,5 +49,76 @@ type SourceNetsuite struct {
// Access token secret
TokenSecret string `json:"token_secret"`
// The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"30" json:"window_in_days"`
+}
+
+func (s SourceNetsuite) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNetsuite) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNetsuite) GetConsumerKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerKey
+}
+
+func (o *SourceNetsuite) GetConsumerSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerSecret
+}
+
+func (o *SourceNetsuite) GetObjectTypes() []string {
+ if o == nil {
+ return nil
+ }
+ return o.ObjectTypes
+}
+
+func (o *SourceNetsuite) GetRealm() string {
+ if o == nil {
+ return ""
+ }
+ return o.Realm
+}
+
+func (o *SourceNetsuite) GetSourceType() SourceNetsuiteNetsuite {
+ return SourceNetsuiteNetsuiteNetsuite
+}
+
+func (o *SourceNetsuite) GetStartDatetime() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDatetime
+}
+
+func (o *SourceNetsuite) GetTokenKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenKey
+}
+
+func (o *SourceNetsuite) GetTokenSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenSecret
+}
+
+func (o *SourceNetsuite) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcenetsuitecreaterequest.go b/internal/sdk/pkg/models/shared/sourcenetsuitecreaterequest.go
old mode 100755
new mode 100644
index 6a076cd85..bc733bb00
--- a/internal/sdk/pkg/models/shared/sourcenetsuitecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenetsuitecreaterequest.go
@@ -9,3 +9,31 @@ type SourceNetsuiteCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNetsuiteCreateRequest) GetConfiguration() SourceNetsuite {
+ if o == nil {
+ return SourceNetsuite{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNetsuiteCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNetsuiteCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceNetsuiteCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenetsuiteputrequest.go b/internal/sdk/pkg/models/shared/sourcenetsuiteputrequest.go
old mode 100755
new mode 100644
index d8849bb21..787a62ca9
--- a/internal/sdk/pkg/models/shared/sourcenetsuiteputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenetsuiteputrequest.go
@@ -7,3 +7,24 @@ type SourceNetsuitePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNetsuitePutRequest) GetConfiguration() SourceNetsuiteUpdate {
+ if o == nil {
+ return SourceNetsuiteUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNetsuitePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNetsuitePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenetsuiteupdate.go b/internal/sdk/pkg/models/shared/sourcenetsuiteupdate.go
old mode 100755
new mode 100644
index 4f5a07190..3c5e5892c
--- a/internal/sdk/pkg/models/shared/sourcenetsuiteupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcenetsuiteupdate.go
@@ -2,6 +2,10 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceNetsuiteUpdate struct {
// Consumer key associated with your integration
ConsumerKey string `json:"consumer_key"`
@@ -18,5 +22,72 @@ type SourceNetsuiteUpdate struct {
// Access token secret
TokenSecret string `json:"token_secret"`
// The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data.
- WindowInDays *int64 `json:"window_in_days,omitempty"`
+ WindowInDays *int64 `default:"30" json:"window_in_days"`
+}
+
+func (s SourceNetsuiteUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNetsuiteUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNetsuiteUpdate) GetConsumerKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerKey
+}
+
+func (o *SourceNetsuiteUpdate) GetConsumerSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerSecret
+}
+
+func (o *SourceNetsuiteUpdate) GetObjectTypes() []string {
+ if o == nil {
+ return nil
+ }
+ return o.ObjectTypes
+}
+
+func (o *SourceNetsuiteUpdate) GetRealm() string {
+ if o == nil {
+ return ""
+ }
+ return o.Realm
+}
+
+func (o *SourceNetsuiteUpdate) GetStartDatetime() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDatetime
+}
+
+func (o *SourceNetsuiteUpdate) GetTokenKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenKey
+}
+
+func (o *SourceNetsuiteUpdate) GetTokenSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenSecret
+}
+
+func (o *SourceNetsuiteUpdate) GetWindowInDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcenotion.go b/internal/sdk/pkg/models/shared/sourcenotion.go
old mode 100755
new mode 100644
index 1a8b43d86..524a99a52
--- a/internal/sdk/pkg/models/shared/sourcenotion.go
+++ b/internal/sdk/pkg/models/shared/sourcenotion.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceNotionAuthenticateUsingAccessTokenAuthType) UnmarshalJSON(data []
// SourceNotionAuthenticateUsingAccessToken - Pick an authentication method.
type SourceNotionAuthenticateUsingAccessToken struct {
- AuthType SourceNotionAuthenticateUsingAccessTokenAuthType `json:"auth_type"`
+ authType SourceNotionAuthenticateUsingAccessTokenAuthType `const:"token" json:"auth_type"`
// Notion API access token, see the docs for more information on how to obtain this token.
Token string `json:"token"`
}
+func (s SourceNotionAuthenticateUsingAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotionAuthenticateUsingAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotionAuthenticateUsingAccessToken) GetAuthType() SourceNotionAuthenticateUsingAccessTokenAuthType {
+ return SourceNotionAuthenticateUsingAccessTokenAuthTypeToken
+}
+
+func (o *SourceNotionAuthenticateUsingAccessToken) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
+
type SourceNotionAuthenticateUsingOAuth20AuthType string
const (
@@ -69,13 +91,49 @@ func (e *SourceNotionAuthenticateUsingOAuth20AuthType) UnmarshalJSON(data []byte
type SourceNotionAuthenticateUsingOAuth20 struct {
// Access Token is a token you received by complete the OauthWebFlow of Notion.
AccessToken string `json:"access_token"`
- AuthType SourceNotionAuthenticateUsingOAuth20AuthType `json:"auth_type"`
+ authType SourceNotionAuthenticateUsingOAuth20AuthType `const:"OAuth2.0" json:"auth_type"`
// The ClientID of your Notion integration.
ClientID string `json:"client_id"`
// The ClientSecret of your Notion integration.
ClientSecret string `json:"client_secret"`
}
+func (s SourceNotionAuthenticateUsingOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotionAuthenticateUsingOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotionAuthenticateUsingOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceNotionAuthenticateUsingOAuth20) GetAuthType() SourceNotionAuthenticateUsingOAuth20AuthType {
+ return SourceNotionAuthenticateUsingOAuth20AuthTypeOAuth20
+}
+
+func (o *SourceNotionAuthenticateUsingOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceNotionAuthenticateUsingOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceNotionAuthenticateUsingType string
const (
@@ -109,21 +167,16 @@ func CreateSourceNotionAuthenticateUsingSourceNotionAuthenticateUsingAccessToken
}
func (u *SourceNotionAuthenticateUsing) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceNotionAuthenticateUsingAccessToken := new(SourceNotionAuthenticateUsingAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceNotionAuthenticateUsingAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceNotionAuthenticateUsingAccessToken, "", true, true); err == nil {
u.SourceNotionAuthenticateUsingAccessToken = sourceNotionAuthenticateUsingAccessToken
u.Type = SourceNotionAuthenticateUsingTypeSourceNotionAuthenticateUsingAccessToken
return nil
}
sourceNotionAuthenticateUsingOAuth20 := new(SourceNotionAuthenticateUsingOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceNotionAuthenticateUsingOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceNotionAuthenticateUsingOAuth20, "", true, true); err == nil {
u.SourceNotionAuthenticateUsingOAuth20 = sourceNotionAuthenticateUsingOAuth20
u.Type = SourceNotionAuthenticateUsingTypeSourceNotionAuthenticateUsingOAuth20
return nil
@@ -133,15 +186,15 @@ func (u *SourceNotionAuthenticateUsing) UnmarshalJSON(data []byte) error {
}
func (u SourceNotionAuthenticateUsing) MarshalJSON() ([]byte, error) {
- if u.SourceNotionAuthenticateUsingAccessToken != nil {
- return json.Marshal(u.SourceNotionAuthenticateUsingAccessToken)
+ if u.SourceNotionAuthenticateUsingOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceNotionAuthenticateUsingOAuth20, "", true)
}
- if u.SourceNotionAuthenticateUsingOAuth20 != nil {
- return json.Marshal(u.SourceNotionAuthenticateUsingOAuth20)
+ if u.SourceNotionAuthenticateUsingAccessToken != nil {
+ return utils.MarshalJSON(u.SourceNotionAuthenticateUsingAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceNotionNotion string
@@ -171,7 +224,36 @@ func (e *SourceNotionNotion) UnmarshalJSON(data []byte) error {
type SourceNotion struct {
// Pick an authentication method.
Credentials *SourceNotionAuthenticateUsing `json:"credentials,omitempty"`
- SourceType SourceNotionNotion `json:"sourceType"`
+ sourceType SourceNotionNotion `const:"notion" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceNotion) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotion) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotion) GetCredentials() *SourceNotionAuthenticateUsing {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceNotion) GetSourceType() SourceNotionNotion {
+ return SourceNotionNotionNotion
+}
+
+func (o *SourceNotion) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenotioncreaterequest.go b/internal/sdk/pkg/models/shared/sourcenotioncreaterequest.go
old mode 100755
new mode 100644
index 7c1720427..267f32607
--- a/internal/sdk/pkg/models/shared/sourcenotioncreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenotioncreaterequest.go
@@ -9,3 +9,31 @@ type SourceNotionCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNotionCreateRequest) GetConfiguration() SourceNotion {
+ if o == nil {
+ return SourceNotion{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNotionCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNotionCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceNotionCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenotionputrequest.go b/internal/sdk/pkg/models/shared/sourcenotionputrequest.go
old mode 100755
new mode 100644
index 17745b126..4b13d33fa
--- a/internal/sdk/pkg/models/shared/sourcenotionputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenotionputrequest.go
@@ -7,3 +7,24 @@ type SourceNotionPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNotionPutRequest) GetConfiguration() SourceNotionUpdate {
+ if o == nil {
+ return SourceNotionUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNotionPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNotionPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenotionupdate.go b/internal/sdk/pkg/models/shared/sourcenotionupdate.go
old mode 100755
new mode 100644
index f424fe1d5..86b6a85be
--- a/internal/sdk/pkg/models/shared/sourcenotionupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcenotionupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceNotionUpdateAuthenticateUsingAccessTokenAuthType) UnmarshalJSON(d
// SourceNotionUpdateAuthenticateUsingAccessToken - Pick an authentication method.
type SourceNotionUpdateAuthenticateUsingAccessToken struct {
- AuthType SourceNotionUpdateAuthenticateUsingAccessTokenAuthType `json:"auth_type"`
+ authType SourceNotionUpdateAuthenticateUsingAccessTokenAuthType `const:"token" json:"auth_type"`
// Notion API access token, see the docs for more information on how to obtain this token.
Token string `json:"token"`
}
+func (s SourceNotionUpdateAuthenticateUsingAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotionUpdateAuthenticateUsingAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingAccessToken) GetAuthType() SourceNotionUpdateAuthenticateUsingAccessTokenAuthType {
+ return SourceNotionUpdateAuthenticateUsingAccessTokenAuthTypeToken
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingAccessToken) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
+
type SourceNotionUpdateAuthenticateUsingOAuth20AuthType string
const (
@@ -69,13 +91,49 @@ func (e *SourceNotionUpdateAuthenticateUsingOAuth20AuthType) UnmarshalJSON(data
type SourceNotionUpdateAuthenticateUsingOAuth20 struct {
// Access Token is a token you received by complete the OauthWebFlow of Notion.
AccessToken string `json:"access_token"`
- AuthType SourceNotionUpdateAuthenticateUsingOAuth20AuthType `json:"auth_type"`
+ authType SourceNotionUpdateAuthenticateUsingOAuth20AuthType `const:"OAuth2.0" json:"auth_type"`
// The ClientID of your Notion integration.
ClientID string `json:"client_id"`
// The ClientSecret of your Notion integration.
ClientSecret string `json:"client_secret"`
}
+func (s SourceNotionUpdateAuthenticateUsingOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotionUpdateAuthenticateUsingOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingOAuth20) GetAuthType() SourceNotionUpdateAuthenticateUsingOAuth20AuthType {
+ return SourceNotionUpdateAuthenticateUsingOAuth20AuthTypeOAuth20
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceNotionUpdateAuthenticateUsingOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceNotionUpdateAuthenticateUsingType string
const (
@@ -109,21 +167,16 @@ func CreateSourceNotionUpdateAuthenticateUsingSourceNotionUpdateAuthenticateUsin
}
func (u *SourceNotionUpdateAuthenticateUsing) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceNotionUpdateAuthenticateUsingAccessToken := new(SourceNotionUpdateAuthenticateUsingAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceNotionUpdateAuthenticateUsingAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceNotionUpdateAuthenticateUsingAccessToken, "", true, true); err == nil {
u.SourceNotionUpdateAuthenticateUsingAccessToken = sourceNotionUpdateAuthenticateUsingAccessToken
u.Type = SourceNotionUpdateAuthenticateUsingTypeSourceNotionUpdateAuthenticateUsingAccessToken
return nil
}
sourceNotionUpdateAuthenticateUsingOAuth20 := new(SourceNotionUpdateAuthenticateUsingOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceNotionUpdateAuthenticateUsingOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceNotionUpdateAuthenticateUsingOAuth20, "", true, true); err == nil {
u.SourceNotionUpdateAuthenticateUsingOAuth20 = sourceNotionUpdateAuthenticateUsingOAuth20
u.Type = SourceNotionUpdateAuthenticateUsingTypeSourceNotionUpdateAuthenticateUsingOAuth20
return nil
@@ -133,15 +186,15 @@ func (u *SourceNotionUpdateAuthenticateUsing) UnmarshalJSON(data []byte) error {
}
func (u SourceNotionUpdateAuthenticateUsing) MarshalJSON() ([]byte, error) {
- if u.SourceNotionUpdateAuthenticateUsingAccessToken != nil {
- return json.Marshal(u.SourceNotionUpdateAuthenticateUsingAccessToken)
+ if u.SourceNotionUpdateAuthenticateUsingOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceNotionUpdateAuthenticateUsingOAuth20, "", true)
}
- if u.SourceNotionUpdateAuthenticateUsingOAuth20 != nil {
- return json.Marshal(u.SourceNotionUpdateAuthenticateUsingOAuth20)
+ if u.SourceNotionUpdateAuthenticateUsingAccessToken != nil {
+ return utils.MarshalJSON(u.SourceNotionUpdateAuthenticateUsingAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceNotionUpdate struct {
@@ -150,3 +203,28 @@ type SourceNotionUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceNotionUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNotionUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNotionUpdate) GetCredentials() *SourceNotionUpdateAuthenticateUsing {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceNotionUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenytimes.go b/internal/sdk/pkg/models/shared/sourcenytimes.go
old mode 100755
new mode 100644
index 3174db216..0da82a732
--- a/internal/sdk/pkg/models/shared/sourcenytimes.go
+++ b/internal/sdk/pkg/models/shared/sourcenytimes.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -97,7 +98,57 @@ type SourceNytimes struct {
Period SourceNytimesPeriodUsedForMostPopularStreams `json:"period"`
// Share Type
ShareType *SourceNytimesShareTypeUsedForMostPopularSharedStream `json:"share_type,omitempty"`
- SourceType SourceNytimesNytimes `json:"sourceType"`
+ sourceType SourceNytimesNytimes `const:"nytimes" json:"sourceType"`
// Start date to begin the article retrieval (format YYYY-MM)
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceNytimes) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNytimes) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNytimes) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceNytimes) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceNytimes) GetPeriod() SourceNytimesPeriodUsedForMostPopularStreams {
+ if o == nil {
+ return SourceNytimesPeriodUsedForMostPopularStreams(0)
+ }
+ return o.Period
+}
+
+func (o *SourceNytimes) GetShareType() *SourceNytimesShareTypeUsedForMostPopularSharedStream {
+ if o == nil {
+ return nil
+ }
+ return o.ShareType
+}
+
+func (o *SourceNytimes) GetSourceType() SourceNytimesNytimes {
+ return SourceNytimesNytimesNytimes
+}
+
+func (o *SourceNytimes) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenytimescreaterequest.go b/internal/sdk/pkg/models/shared/sourcenytimescreaterequest.go
old mode 100755
new mode 100644
index 312f801ae..2cf62799b
--- a/internal/sdk/pkg/models/shared/sourcenytimescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenytimescreaterequest.go
@@ -9,3 +9,31 @@ type SourceNytimesCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNytimesCreateRequest) GetConfiguration() SourceNytimes {
+ if o == nil {
+ return SourceNytimes{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNytimesCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNytimesCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceNytimesCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenytimesputrequest.go b/internal/sdk/pkg/models/shared/sourcenytimesputrequest.go
old mode 100755
new mode 100644
index ee9a981ea..94c856939
--- a/internal/sdk/pkg/models/shared/sourcenytimesputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcenytimesputrequest.go
@@ -7,3 +7,24 @@ type SourceNytimesPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceNytimesPutRequest) GetConfiguration() SourceNytimesUpdate {
+ if o == nil {
+ return SourceNytimesUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceNytimesPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceNytimesPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcenytimesupdate.go b/internal/sdk/pkg/models/shared/sourcenytimesupdate.go
old mode 100755
new mode 100644
index 8c1b6179a..3eae178c7
--- a/internal/sdk/pkg/models/shared/sourcenytimesupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcenytimesupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -76,3 +77,49 @@ type SourceNytimesUpdate struct {
// Start date to begin the article retrieval (format YYYY-MM)
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceNytimesUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceNytimesUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceNytimesUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceNytimesUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceNytimesUpdate) GetPeriod() SourceNytimesUpdatePeriodUsedForMostPopularStreams {
+ if o == nil {
+ return SourceNytimesUpdatePeriodUsedForMostPopularStreams(0)
+ }
+ return o.Period
+}
+
+func (o *SourceNytimesUpdate) GetShareType() *SourceNytimesUpdateShareTypeUsedForMostPopularSharedStream {
+ if o == nil {
+ return nil
+ }
+ return o.ShareType
+}
+
+func (o *SourceNytimesUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceokta.go b/internal/sdk/pkg/models/shared/sourceokta.go
old mode 100755
new mode 100644
index b7ac00a18..358017f23
--- a/internal/sdk/pkg/models/shared/sourceokta.go
+++ b/internal/sdk/pkg/models/shared/sourceokta.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceOktaAuthorizationMethodAPITokenAuthType) UnmarshalJSON(data []byt
type SourceOktaAuthorizationMethodAPIToken struct {
// An Okta token. See the docs for instructions on how to generate it.
APIToken string `json:"api_token"`
- AuthType SourceOktaAuthorizationMethodAPITokenAuthType `json:"auth_type"`
+ authType SourceOktaAuthorizationMethodAPITokenAuthType `const:"api_token" json:"auth_type"`
+}
+
+func (s SourceOktaAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOktaAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOktaAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceOktaAuthorizationMethodAPIToken) GetAuthType() SourceOktaAuthorizationMethodAPITokenAuthType {
+ return SourceOktaAuthorizationMethodAPITokenAuthTypeAPIToken
}
type SourceOktaAuthorizationMethodOAuth20AuthType string
@@ -64,7 +86,7 @@ func (e *SourceOktaAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data []byte
}
type SourceOktaAuthorizationMethodOAuth20 struct {
- AuthType SourceOktaAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceOktaAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
@@ -73,6 +95,42 @@ type SourceOktaAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceOktaAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOktaAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOktaAuthorizationMethodOAuth20) GetAuthType() SourceOktaAuthorizationMethodOAuth20AuthType {
+ return SourceOktaAuthorizationMethodOAuth20AuthTypeOauth20
+}
+
+func (o *SourceOktaAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceOktaAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceOktaAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceOktaAuthorizationMethodType string
const (
@@ -106,21 +164,16 @@ func CreateSourceOktaAuthorizationMethodSourceOktaAuthorizationMethodAPIToken(so
}
func (u *SourceOktaAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOktaAuthorizationMethodAPIToken := new(SourceOktaAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOktaAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOktaAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceOktaAuthorizationMethodAPIToken = sourceOktaAuthorizationMethodAPIToken
u.Type = SourceOktaAuthorizationMethodTypeSourceOktaAuthorizationMethodAPIToken
return nil
}
sourceOktaAuthorizationMethodOAuth20 := new(SourceOktaAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOktaAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOktaAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceOktaAuthorizationMethodOAuth20 = sourceOktaAuthorizationMethodOAuth20
u.Type = SourceOktaAuthorizationMethodTypeSourceOktaAuthorizationMethodOAuth20
return nil
@@ -130,15 +183,15 @@ func (u *SourceOktaAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceOktaAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceOktaAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceOktaAuthorizationMethodAPIToken)
+ if u.SourceOktaAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceOktaAuthorizationMethodOAuth20, "", true)
}
- if u.SourceOktaAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceOktaAuthorizationMethodOAuth20)
+ if u.SourceOktaAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceOktaAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOktaOkta string
@@ -169,7 +222,43 @@ type SourceOkta struct {
Credentials *SourceOktaAuthorizationMethod `json:"credentials,omitempty"`
// The Okta domain. See the docs for instructions on how to find it.
Domain *string `json:"domain,omitempty"`
- SourceType SourceOktaOkta `json:"sourceType"`
+ sourceType SourceOktaOkta `const:"okta" json:"sourceType"`
// UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated.
StartDate *string `json:"start_date,omitempty"`
}
+
+func (s SourceOkta) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOkta) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOkta) GetCredentials() *SourceOktaAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceOkta) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourceOkta) GetSourceType() SourceOktaOkta {
+ return SourceOktaOktaOkta
+}
+
+func (o *SourceOkta) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoktacreaterequest.go b/internal/sdk/pkg/models/shared/sourceoktacreaterequest.go
old mode 100755
new mode 100644
index e8ba74327..b81c0b66f
--- a/internal/sdk/pkg/models/shared/sourceoktacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoktacreaterequest.go
@@ -9,3 +9,31 @@ type SourceOktaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOktaCreateRequest) GetConfiguration() SourceOkta {
+ if o == nil {
+ return SourceOkta{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOktaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOktaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOktaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoktaputrequest.go b/internal/sdk/pkg/models/shared/sourceoktaputrequest.go
old mode 100755
new mode 100644
index 087c606b6..4739cde04
--- a/internal/sdk/pkg/models/shared/sourceoktaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoktaputrequest.go
@@ -7,3 +7,24 @@ type SourceOktaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOktaPutRequest) GetConfiguration() SourceOktaUpdate {
+ if o == nil {
+ return SourceOktaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOktaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOktaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoktaupdate.go b/internal/sdk/pkg/models/shared/sourceoktaupdate.go
old mode 100755
new mode 100644
index df93dccc7..852d22a6a
--- a/internal/sdk/pkg/models/shared/sourceoktaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceoktaupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,7 +36,29 @@ func (e *SourceOktaUpdateAuthorizationMethodAPITokenAuthType) UnmarshalJSON(data
type SourceOktaUpdateAuthorizationMethodAPIToken struct {
// An Okta token. See the docs for instructions on how to generate it.
APIToken string `json:"api_token"`
- AuthType SourceOktaUpdateAuthorizationMethodAPITokenAuthType `json:"auth_type"`
+ authType SourceOktaUpdateAuthorizationMethodAPITokenAuthType `const:"api_token" json:"auth_type"`
+}
+
+func (s SourceOktaUpdateAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOktaUpdateAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodAPIToken) GetAuthType() SourceOktaUpdateAuthorizationMethodAPITokenAuthType {
+ return SourceOktaUpdateAuthorizationMethodAPITokenAuthTypeAPIToken
}
type SourceOktaUpdateAuthorizationMethodOAuth20AuthType string
@@ -64,7 +86,7 @@ func (e *SourceOktaUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data
}
type SourceOktaUpdateAuthorizationMethodOAuth20 struct {
- AuthType SourceOktaUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceOktaUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
@@ -73,6 +95,42 @@ type SourceOktaUpdateAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceOktaUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOktaUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodOAuth20) GetAuthType() SourceOktaUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceOktaUpdateAuthorizationMethodOAuth20AuthTypeOauth20
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceOktaUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceOktaUpdateAuthorizationMethodType string
const (
@@ -106,21 +164,16 @@ func CreateSourceOktaUpdateAuthorizationMethodSourceOktaUpdateAuthorizationMetho
}
func (u *SourceOktaUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOktaUpdateAuthorizationMethodAPIToken := new(SourceOktaUpdateAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOktaUpdateAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOktaUpdateAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceOktaUpdateAuthorizationMethodAPIToken = sourceOktaUpdateAuthorizationMethodAPIToken
u.Type = SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAuthorizationMethodAPIToken
return nil
}
sourceOktaUpdateAuthorizationMethodOAuth20 := new(SourceOktaUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOktaUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOktaUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceOktaUpdateAuthorizationMethodOAuth20 = sourceOktaUpdateAuthorizationMethodOAuth20
u.Type = SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAuthorizationMethodOAuth20
return nil
@@ -130,15 +183,15 @@ func (u *SourceOktaUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceOktaUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceOktaUpdateAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceOktaUpdateAuthorizationMethodAPIToken)
+ if u.SourceOktaUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceOktaUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceOktaUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceOktaUpdateAuthorizationMethodOAuth20)
+ if u.SourceOktaUpdateAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceOktaUpdateAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOktaUpdate struct {
@@ -148,3 +201,24 @@ type SourceOktaUpdate struct {
// UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated.
StartDate *string `json:"start_date,omitempty"`
}
+
+func (o *SourceOktaUpdate) GetCredentials() *SourceOktaUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceOktaUpdate) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourceOktaUpdate) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceomnisend.go b/internal/sdk/pkg/models/shared/sourceomnisend.go
old mode 100755
new mode 100644
index 6dce5e8ac..ee31559f4
--- a/internal/sdk/pkg/models/shared/sourceomnisend.go
+++ b/internal/sdk/pkg/models/shared/sourceomnisend.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceOmnisendOmnisend) UnmarshalJSON(data []byte) error {
type SourceOmnisend struct {
// API Key
APIKey string `json:"api_key"`
- SourceType SourceOmnisendOmnisend `json:"sourceType"`
+ sourceType SourceOmnisendOmnisend `const:"omnisend" json:"sourceType"`
+}
+
+func (s SourceOmnisend) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOmnisend) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOmnisend) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceOmnisend) GetSourceType() SourceOmnisendOmnisend {
+ return SourceOmnisendOmnisendOmnisend
}
diff --git a/internal/sdk/pkg/models/shared/sourceomnisendcreaterequest.go b/internal/sdk/pkg/models/shared/sourceomnisendcreaterequest.go
old mode 100755
new mode 100644
index 18bfedad8..aca4e304e
--- a/internal/sdk/pkg/models/shared/sourceomnisendcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceomnisendcreaterequest.go
@@ -9,3 +9,31 @@ type SourceOmnisendCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOmnisendCreateRequest) GetConfiguration() SourceOmnisend {
+ if o == nil {
+ return SourceOmnisend{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOmnisendCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOmnisendCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOmnisendCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceomnisendputrequest.go b/internal/sdk/pkg/models/shared/sourceomnisendputrequest.go
old mode 100755
new mode 100644
index 032a3069d..dce42d400
--- a/internal/sdk/pkg/models/shared/sourceomnisendputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceomnisendputrequest.go
@@ -7,3 +7,24 @@ type SourceOmnisendPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOmnisendPutRequest) GetConfiguration() SourceOmnisendUpdate {
+ if o == nil {
+ return SourceOmnisendUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOmnisendPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOmnisendPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceomnisendupdate.go b/internal/sdk/pkg/models/shared/sourceomnisendupdate.go
old mode 100755
new mode 100644
index 3bdd56d80..edfdb3e37
--- a/internal/sdk/pkg/models/shared/sourceomnisendupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceomnisendupdate.go
@@ -6,3 +6,10 @@ type SourceOmnisendUpdate struct {
// API Key
APIKey string `json:"api_key"`
}
+
+func (o *SourceOmnisendUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceonesignal.go b/internal/sdk/pkg/models/shared/sourceonesignal.go
old mode 100755
new mode 100644
index 9dbb2d768..12a6f3ec8
--- a/internal/sdk/pkg/models/shared/sourceonesignal.go
+++ b/internal/sdk/pkg/models/shared/sourceonesignal.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -14,6 +15,27 @@ type SourceOnesignalApplications struct {
AppName *string `json:"app_name,omitempty"`
}
+func (o *SourceOnesignalApplications) GetAppAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppAPIKey
+}
+
+func (o *SourceOnesignalApplications) GetAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppID
+}
+
+func (o *SourceOnesignalApplications) GetAppName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AppName
+}
+
type SourceOnesignalOnesignal string
const (
@@ -43,9 +65,52 @@ type SourceOnesignal struct {
Applications []SourceOnesignalApplications `json:"applications"`
// Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details
OutcomeNames string `json:"outcome_names"`
- SourceType SourceOnesignalOnesignal `json:"sourceType"`
+ sourceType SourceOnesignalOnesignal `const:"onesignal" json:"sourceType"`
// The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
// OneSignal User Auth Key, see the docs for more information on how to obtain this key.
UserAuthKey string `json:"user_auth_key"`
}
+
+func (s SourceOnesignal) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOnesignal) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOnesignal) GetApplications() []SourceOnesignalApplications {
+ if o == nil {
+ return []SourceOnesignalApplications{}
+ }
+ return o.Applications
+}
+
+func (o *SourceOnesignal) GetOutcomeNames() string {
+ if o == nil {
+ return ""
+ }
+ return o.OutcomeNames
+}
+
+func (o *SourceOnesignal) GetSourceType() SourceOnesignalOnesignal {
+ return SourceOnesignalOnesignalOnesignal
+}
+
+func (o *SourceOnesignal) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceOnesignal) GetUserAuthKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.UserAuthKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceonesignalcreaterequest.go b/internal/sdk/pkg/models/shared/sourceonesignalcreaterequest.go
old mode 100755
new mode 100644
index dbf890dd0..a533b186a
--- a/internal/sdk/pkg/models/shared/sourceonesignalcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceonesignalcreaterequest.go
@@ -9,3 +9,31 @@ type SourceOnesignalCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOnesignalCreateRequest) GetConfiguration() SourceOnesignal {
+ if o == nil {
+ return SourceOnesignal{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOnesignalCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOnesignalCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOnesignalCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceonesignalputrequest.go b/internal/sdk/pkg/models/shared/sourceonesignalputrequest.go
old mode 100755
new mode 100644
index c389af7e5..764ed3b57
--- a/internal/sdk/pkg/models/shared/sourceonesignalputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceonesignalputrequest.go
@@ -7,3 +7,24 @@ type SourceOnesignalPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOnesignalPutRequest) GetConfiguration() SourceOnesignalUpdate {
+ if o == nil {
+ return SourceOnesignalUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOnesignalPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOnesignalPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceonesignalupdate.go b/internal/sdk/pkg/models/shared/sourceonesignalupdate.go
old mode 100755
new mode 100644
index f5cc326da..149676fea
--- a/internal/sdk/pkg/models/shared/sourceonesignalupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceonesignalupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,6 +13,27 @@ type SourceOnesignalUpdateApplications struct {
AppName *string `json:"app_name,omitempty"`
}
+func (o *SourceOnesignalUpdateApplications) GetAppAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppAPIKey
+}
+
+func (o *SourceOnesignalUpdateApplications) GetAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppID
+}
+
+func (o *SourceOnesignalUpdateApplications) GetAppName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AppName
+}
+
type SourceOnesignalUpdate struct {
// Applications keys, see the docs for more information on how to obtain this data
Applications []SourceOnesignalUpdateApplications `json:"applications"`
@@ -22,3 +44,42 @@ type SourceOnesignalUpdate struct {
// OneSignal User Auth Key, see the docs for more information on how to obtain this key.
UserAuthKey string `json:"user_auth_key"`
}
+
+func (s SourceOnesignalUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOnesignalUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOnesignalUpdate) GetApplications() []SourceOnesignalUpdateApplications {
+ if o == nil {
+ return []SourceOnesignalUpdateApplications{}
+ }
+ return o.Applications
+}
+
+func (o *SourceOnesignalUpdate) GetOutcomeNames() string {
+ if o == nil {
+ return ""
+ }
+ return o.OutcomeNames
+}
+
+func (o *SourceOnesignalUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceOnesignalUpdate) GetUserAuthKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.UserAuthKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoracle.go b/internal/sdk/pkg/models/shared/sourceoracle.go
old mode 100755
new mode 100644
index 05988f067..56f95e64d
--- a/internal/sdk/pkg/models/shared/sourceoracle.go
+++ b/internal/sdk/pkg/models/shared/sourceoracle.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,10 +35,32 @@ func (e *SourceOracleConnectBySystemIDSIDConnectionType) UnmarshalJSON(data []by
// SourceOracleConnectBySystemIDSID - Use SID (Oracle System Identifier)
type SourceOracleConnectBySystemIDSID struct {
- ConnectionType *SourceOracleConnectBySystemIDSIDConnectionType `json:"connection_type,omitempty"`
+ connectionType *SourceOracleConnectBySystemIDSIDConnectionType `const:"sid" json:"connection_type"`
Sid string `json:"sid"`
}
+func (s SourceOracleConnectBySystemIDSID) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleConnectBySystemIDSID) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleConnectBySystemIDSID) GetConnectionType() *SourceOracleConnectBySystemIDSIDConnectionType {
+ return SourceOracleConnectBySystemIDSIDConnectionTypeSid.ToPointer()
+}
+
+func (o *SourceOracleConnectBySystemIDSID) GetSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.Sid
+}
+
type SourceOracleConnectByServiceNameConnectionType string
const (
@@ -65,10 +87,32 @@ func (e *SourceOracleConnectByServiceNameConnectionType) UnmarshalJSON(data []by
// SourceOracleConnectByServiceName - Use service name
type SourceOracleConnectByServiceName struct {
- ConnectionType *SourceOracleConnectByServiceNameConnectionType `json:"connection_type,omitempty"`
+ connectionType *SourceOracleConnectByServiceNameConnectionType `const:"service_name" json:"connection_type"`
ServiceName string `json:"service_name"`
}
+func (s SourceOracleConnectByServiceName) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleConnectByServiceName) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleConnectByServiceName) GetConnectionType() *SourceOracleConnectByServiceNameConnectionType {
+ return SourceOracleConnectByServiceNameConnectionTypeServiceName.ToPointer()
+}
+
+func (o *SourceOracleConnectByServiceName) GetServiceName() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceName
+}
+
type SourceOracleConnectByType string
const (
@@ -102,21 +146,16 @@ func CreateSourceOracleConnectBySourceOracleConnectBySystemIDSID(sourceOracleCon
}
func (u *SourceOracleConnectBy) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleConnectByServiceName := new(SourceOracleConnectByServiceName)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleConnectByServiceName); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleConnectByServiceName, "", true, true); err == nil {
u.SourceOracleConnectByServiceName = sourceOracleConnectByServiceName
u.Type = SourceOracleConnectByTypeSourceOracleConnectByServiceName
return nil
}
sourceOracleConnectBySystemIDSID := new(SourceOracleConnectBySystemIDSID)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleConnectBySystemIDSID); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleConnectBySystemIDSID, "", true, true); err == nil {
u.SourceOracleConnectBySystemIDSID = sourceOracleConnectBySystemIDSID
u.Type = SourceOracleConnectByTypeSourceOracleConnectBySystemIDSID
return nil
@@ -127,14 +166,14 @@ func (u *SourceOracleConnectBy) UnmarshalJSON(data []byte) error {
func (u SourceOracleConnectBy) MarshalJSON() ([]byte, error) {
if u.SourceOracleConnectByServiceName != nil {
- return json.Marshal(u.SourceOracleConnectByServiceName)
+ return utils.MarshalJSON(u.SourceOracleConnectByServiceName, "", true)
}
if u.SourceOracleConnectBySystemIDSID != nil {
- return json.Marshal(u.SourceOracleConnectBySystemIDSID)
+ return utils.MarshalJSON(u.SourceOracleConnectBySystemIDSID, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod string
@@ -163,11 +202,33 @@ func (e *SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod) Un
// SourceOracleEncryptionTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server.
type SourceOracleEncryptionTLSEncryptedVerifyCertificate struct {
- EncryptionMethod SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod `json:"encryption_method"`
+ encryptionMethod *SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"`
// Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
SslCertificate string `json:"ssl_certificate"`
}
+func (s SourceOracleEncryptionTLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleEncryptionTLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleEncryptionTLSEncryptedVerifyCertificate) GetEncryptionMethod() *SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethod {
+ return SourceOracleEncryptionTLSEncryptedVerifyCertificateEncryptionMethodEncryptedVerifyCertificate.ToPointer()
+}
+
+func (o *SourceOracleEncryptionTLSEncryptedVerifyCertificate) GetSslCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.SslCertificate
+}
+
// SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm - This parameter defines what encryption algorithm is used.
type SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm string
@@ -226,8 +287,30 @@ func (e *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethod) Unmar
// SourceOracleEncryptionNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.
type SourceOracleEncryptionNativeNetworkEncryptionNNE struct {
// This parameter defines what encryption algorithm is used.
- EncryptionAlgorithm *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`
- EncryptionMethod SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethod `json:"encryption_method"`
+ EncryptionAlgorithm *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"`
+ encryptionMethod *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethod `const:"client_nne" json:"encryption_method"`
+}
+
+func (s SourceOracleEncryptionNativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleEncryptionNativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleEncryptionNativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm {
+ if o == nil {
+ return nil
+ }
+ return o.EncryptionAlgorithm
+}
+
+func (o *SourceOracleEncryptionNativeNetworkEncryptionNNE) GetEncryptionMethod() *SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethod {
+ return SourceOracleEncryptionNativeNetworkEncryptionNNEEncryptionMethodClientNne.ToPointer()
}
type SourceOracleEncryptionType string
@@ -263,21 +346,16 @@ func CreateSourceOracleEncryptionSourceOracleEncryptionTLSEncryptedVerifyCertifi
}
func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleEncryptionNativeNetworkEncryptionNNE := new(SourceOracleEncryptionNativeNetworkEncryptionNNE)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleEncryptionNativeNetworkEncryptionNNE); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleEncryptionNativeNetworkEncryptionNNE, "", true, true); err == nil {
u.SourceOracleEncryptionNativeNetworkEncryptionNNE = sourceOracleEncryptionNativeNetworkEncryptionNNE
u.Type = SourceOracleEncryptionTypeSourceOracleEncryptionNativeNetworkEncryptionNNE
return nil
}
sourceOracleEncryptionTLSEncryptedVerifyCertificate := new(SourceOracleEncryptionTLSEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleEncryptionTLSEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleEncryptionTLSEncryptedVerifyCertificate, "", true, true); err == nil {
u.SourceOracleEncryptionTLSEncryptedVerifyCertificate = sourceOracleEncryptionTLSEncryptedVerifyCertificate
u.Type = SourceOracleEncryptionTypeSourceOracleEncryptionTLSEncryptedVerifyCertificate
return nil
@@ -288,14 +366,14 @@ func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error {
func (u SourceOracleEncryption) MarshalJSON() ([]byte, error) {
if u.SourceOracleEncryptionNativeNetworkEncryptionNNE != nil {
- return json.Marshal(u.SourceOracleEncryptionNativeNetworkEncryptionNNE)
+ return utils.MarshalJSON(u.SourceOracleEncryptionNativeNetworkEncryptionNNE, "", true)
}
if u.SourceOracleEncryptionTLSEncryptedVerifyCertificate != nil {
- return json.Marshal(u.SourceOracleEncryptionTLSEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.SourceOracleEncryptionTLSEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOracleOracle string
@@ -352,15 +430,58 @@ type SourceOracleSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceOracleSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceOracleSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceOracleSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceOracleSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceOracleSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceOracleSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceOracleSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -393,13 +514,56 @@ type SourceOracleSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceOracleSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceOracleSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceOracleSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceOracleSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceOracleSSHTunnelMethodNoTunnelTunnelMethod string
@@ -428,7 +592,22 @@ func (e *SourceOracleSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data []b
// SourceOracleSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceOracleSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceOracleSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceOracleSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceOracleSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceOracleSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceOracleSSHTunnelMethodType string
@@ -475,30 +654,23 @@ func CreateSourceOracleSSHTunnelMethodSourceOracleSSHTunnelMethodPasswordAuthent
}
func (u *SourceOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleSSHTunnelMethodNoTunnel := new(SourceOracleSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceOracleSSHTunnelMethodNoTunnel = sourceOracleSSHTunnelMethodNoTunnel
u.Type = SourceOracleSSHTunnelMethodTypeSourceOracleSSHTunnelMethodNoTunnel
return nil
}
sourceOracleSSHTunnelMethodSSHKeyAuthentication := new(SourceOracleSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceOracleSSHTunnelMethodSSHKeyAuthentication = sourceOracleSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceOracleSSHTunnelMethodTypeSourceOracleSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceOracleSSHTunnelMethodPasswordAuthentication := new(SourceOracleSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceOracleSSHTunnelMethodPasswordAuthentication = sourceOracleSSHTunnelMethodPasswordAuthentication
u.Type = SourceOracleSSHTunnelMethodTypeSourceOracleSSHTunnelMethodPasswordAuthentication
return nil
@@ -509,18 +681,18 @@ func (u *SourceOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceOracleSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceOracleSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceOracleSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceOracleSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceOracleSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceOracleSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceOracleSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceOracleSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceOracleSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceOracleSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOracle struct {
@@ -538,12 +710,90 @@ type SourceOracle struct {
// Oracle Corporations recommends the following port numbers:
// 1521 - Default listening port for client connections to the listener.
// 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL
- Port int64 `json:"port"`
+ Port *int64 `default:"1521" json:"port"`
// The list of schemas to sync from. Defaults to user. Case sensitive.
Schemas []string `json:"schemas,omitempty"`
- SourceType SourceOracleOracle `json:"sourceType"`
+ sourceType SourceOracleOracle `const:"oracle" json:"sourceType"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
TunnelMethod *SourceOracleSSHTunnelMethod `json:"tunnel_method,omitempty"`
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceOracle) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracle) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracle) GetConnectionData() *SourceOracleConnectBy {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionData
+}
+
+func (o *SourceOracle) GetEncryption() SourceOracleEncryption {
+ if o == nil {
+ return SourceOracleEncryption{}
+ }
+ return o.Encryption
+}
+
+func (o *SourceOracle) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceOracle) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceOracle) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceOracle) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceOracle) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceOracle) GetSourceType() SourceOracleOracle {
+ return SourceOracleOracleOracle
+}
+
+func (o *SourceOracle) GetTunnelMethod() *SourceOracleSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceOracle) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoraclecreaterequest.go b/internal/sdk/pkg/models/shared/sourceoraclecreaterequest.go
old mode 100755
new mode 100644
index 829d3b081..001463e85
--- a/internal/sdk/pkg/models/shared/sourceoraclecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoraclecreaterequest.go
@@ -9,3 +9,31 @@ type SourceOracleCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOracleCreateRequest) GetConfiguration() SourceOracle {
+ if o == nil {
+ return SourceOracle{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOracleCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOracleCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOracleCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoracleputrequest.go b/internal/sdk/pkg/models/shared/sourceoracleputrequest.go
old mode 100755
new mode 100644
index 4ffe4292c..86816832b
--- a/internal/sdk/pkg/models/shared/sourceoracleputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoracleputrequest.go
@@ -7,3 +7,24 @@ type SourceOraclePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOraclePutRequest) GetConfiguration() SourceOracleUpdate {
+ if o == nil {
+ return SourceOracleUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOraclePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOraclePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoracleupdate.go b/internal/sdk/pkg/models/shared/sourceoracleupdate.go
old mode 100755
new mode 100644
index 9ec541de4..d41309ec4
--- a/internal/sdk/pkg/models/shared/sourceoracleupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceoracleupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,10 +35,32 @@ func (e *SourceOracleUpdateConnectBySystemIDSIDConnectionType) UnmarshalJSON(dat
// SourceOracleUpdateConnectBySystemIDSID - Use SID (Oracle System Identifier)
type SourceOracleUpdateConnectBySystemIDSID struct {
- ConnectionType *SourceOracleUpdateConnectBySystemIDSIDConnectionType `json:"connection_type,omitempty"`
+ connectionType *SourceOracleUpdateConnectBySystemIDSIDConnectionType `const:"sid" json:"connection_type"`
Sid string `json:"sid"`
}
+func (s SourceOracleUpdateConnectBySystemIDSID) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateConnectBySystemIDSID) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateConnectBySystemIDSID) GetConnectionType() *SourceOracleUpdateConnectBySystemIDSIDConnectionType {
+ return SourceOracleUpdateConnectBySystemIDSIDConnectionTypeSid.ToPointer()
+}
+
+func (o *SourceOracleUpdateConnectBySystemIDSID) GetSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.Sid
+}
+
type SourceOracleUpdateConnectByServiceNameConnectionType string
const (
@@ -65,10 +87,32 @@ func (e *SourceOracleUpdateConnectByServiceNameConnectionType) UnmarshalJSON(dat
// SourceOracleUpdateConnectByServiceName - Use service name
type SourceOracleUpdateConnectByServiceName struct {
- ConnectionType *SourceOracleUpdateConnectByServiceNameConnectionType `json:"connection_type,omitempty"`
+ connectionType *SourceOracleUpdateConnectByServiceNameConnectionType `const:"service_name" json:"connection_type"`
ServiceName string `json:"service_name"`
}
+func (s SourceOracleUpdateConnectByServiceName) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateConnectByServiceName) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateConnectByServiceName) GetConnectionType() *SourceOracleUpdateConnectByServiceNameConnectionType {
+ return SourceOracleUpdateConnectByServiceNameConnectionTypeServiceName.ToPointer()
+}
+
+func (o *SourceOracleUpdateConnectByServiceName) GetServiceName() string {
+ if o == nil {
+ return ""
+ }
+ return o.ServiceName
+}
+
type SourceOracleUpdateConnectByType string
const (
@@ -102,21 +146,16 @@ func CreateSourceOracleUpdateConnectBySourceOracleUpdateConnectBySystemIDSID(sou
}
func (u *SourceOracleUpdateConnectBy) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleUpdateConnectByServiceName := new(SourceOracleUpdateConnectByServiceName)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateConnectByServiceName); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateConnectByServiceName, "", true, true); err == nil {
u.SourceOracleUpdateConnectByServiceName = sourceOracleUpdateConnectByServiceName
u.Type = SourceOracleUpdateConnectByTypeSourceOracleUpdateConnectByServiceName
return nil
}
sourceOracleUpdateConnectBySystemIDSID := new(SourceOracleUpdateConnectBySystemIDSID)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateConnectBySystemIDSID); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateConnectBySystemIDSID, "", true, true); err == nil {
u.SourceOracleUpdateConnectBySystemIDSID = sourceOracleUpdateConnectBySystemIDSID
u.Type = SourceOracleUpdateConnectByTypeSourceOracleUpdateConnectBySystemIDSID
return nil
@@ -127,14 +166,14 @@ func (u *SourceOracleUpdateConnectBy) UnmarshalJSON(data []byte) error {
func (u SourceOracleUpdateConnectBy) MarshalJSON() ([]byte, error) {
if u.SourceOracleUpdateConnectByServiceName != nil {
- return json.Marshal(u.SourceOracleUpdateConnectByServiceName)
+ return utils.MarshalJSON(u.SourceOracleUpdateConnectByServiceName, "", true)
}
if u.SourceOracleUpdateConnectBySystemIDSID != nil {
- return json.Marshal(u.SourceOracleUpdateConnectBySystemIDSID)
+ return utils.MarshalJSON(u.SourceOracleUpdateConnectBySystemIDSID, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethod string
@@ -163,11 +202,33 @@ func (e *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMeth
// SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate - Verify and use the certificate provided by the server.
type SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate struct {
- EncryptionMethod SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethod `json:"encryption_method"`
+ encryptionMethod *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethod `const:"encrypted_verify_certificate" json:"encryption_method"`
// Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations.
SslCertificate string `json:"ssl_certificate"`
}
+func (s SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate) GetEncryptionMethod() *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethod {
+ return SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificateEncryptionMethodEncryptedVerifyCertificate.ToPointer()
+}
+
+func (o *SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate) GetSslCertificate() string {
+ if o == nil {
+ return ""
+ }
+ return o.SslCertificate
+}
+
// SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm - This parameter defines what encryption algorithm is used.
type SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm string
@@ -226,8 +287,30 @@ func (e *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethod)
// SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE - The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports.
type SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE struct {
// This parameter defines what encryption algorithm is used.
- EncryptionAlgorithm *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`
- EncryptionMethod SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethod `json:"encryption_method"`
+ EncryptionAlgorithm *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm `default:"AES256" json:"encryption_algorithm"`
+ encryptionMethod *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethod `const:"client_nne" json:"encryption_method"`
+}
+
+func (s SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE) GetEncryptionAlgorithm() *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionAlgorithm {
+ if o == nil {
+ return nil
+ }
+ return o.EncryptionAlgorithm
+}
+
+func (o *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE) GetEncryptionMethod() *SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethod {
+ return SourceOracleUpdateEncryptionNativeNetworkEncryptionNNEEncryptionMethodClientNne.ToPointer()
}
type SourceOracleUpdateEncryptionType string
@@ -263,21 +346,16 @@ func CreateSourceOracleUpdateEncryptionSourceOracleUpdateEncryptionTLSEncryptedV
}
func (u *SourceOracleUpdateEncryption) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE := new(SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE, "", true, true); err == nil {
u.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE = sourceOracleUpdateEncryptionNativeNetworkEncryptionNNE
u.Type = SourceOracleUpdateEncryptionTypeSourceOracleUpdateEncryptionNativeNetworkEncryptionNNE
return nil
}
sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate := new(SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate, "", true, true); err == nil {
u.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate = sourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate
u.Type = SourceOracleUpdateEncryptionTypeSourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate
return nil
@@ -288,14 +366,14 @@ func (u *SourceOracleUpdateEncryption) UnmarshalJSON(data []byte) error {
func (u SourceOracleUpdateEncryption) MarshalJSON() ([]byte, error) {
if u.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE != nil {
- return json.Marshal(u.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE)
+ return utils.MarshalJSON(u.SourceOracleUpdateEncryptionNativeNetworkEncryptionNNE, "", true)
}
if u.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate != nil {
- return json.Marshal(u.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate)
+ return utils.MarshalJSON(u.SourceOracleUpdateEncryptionTLSEncryptedVerifyCertificate, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -328,15 +406,58 @@ type SourceOracleUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourceOracleUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -369,13 +490,56 @@ type SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourceOracleUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -404,7 +568,22 @@ func (e *SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(da
// SourceOracleUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourceOracleUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourceOracleUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourceOracleUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourceOracleUpdateSSHTunnelMethodType string
@@ -451,30 +630,23 @@ func CreateSourceOracleUpdateSSHTunnelMethodSourceOracleUpdateSSHTunnelMethodPas
}
func (u *SourceOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOracleUpdateSSHTunnelMethodNoTunnel := new(SourceOracleUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourceOracleUpdateSSHTunnelMethodNoTunnel = sourceOracleUpdateSSHTunnelMethodNoTunnel
u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHTunnelMethodNoTunnel
return nil
}
sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication = sourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourceOracleUpdateSSHTunnelMethodPasswordAuthentication := new(SourceOracleUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOracleUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOracleUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication = sourceOracleUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -485,18 +657,18 @@ func (u *SourceOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourceOracleUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourceOracleUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourceOracleUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourceOracleUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceOracleUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceOracleUpdate struct {
@@ -514,7 +686,7 @@ type SourceOracleUpdate struct {
// Oracle Corporations recommends the following port numbers:
// 1521 - Default listening port for client connections to the listener.
// 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL
- Port int64 `json:"port"`
+ Port *int64 `default:"1521" json:"port"`
// The list of schemas to sync from. Defaults to user. Case sensitive.
Schemas []string `json:"schemas,omitempty"`
// Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
@@ -522,3 +694,77 @@ type SourceOracleUpdate struct {
// The username which is used to access the database.
Username string `json:"username"`
}
+
+func (s SourceOracleUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOracleUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOracleUpdate) GetConnectionData() *SourceOracleUpdateConnectBy {
+ if o == nil {
+ return nil
+ }
+ return o.ConnectionData
+}
+
+func (o *SourceOracleUpdate) GetEncryption() SourceOracleUpdateEncryption {
+ if o == nil {
+ return SourceOracleUpdateEncryption{}
+ }
+ return o.Encryption
+}
+
+func (o *SourceOracleUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceOracleUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceOracleUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceOracleUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceOracleUpdate) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceOracleUpdate) GetTunnelMethod() *SourceOracleUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourceOracleUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorb.go b/internal/sdk/pkg/models/shared/sourceorb.go
old mode 100755
new mode 100644
index f05372685..0f5604a7a
--- a/internal/sdk/pkg/models/shared/sourceorb.go
+++ b/internal/sdk/pkg/models/shared/sourceorb.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,12 +36,12 @@ type SourceOrb struct {
// Orb API Key, issued from the Orb admin console.
APIKey string `json:"api_key"`
// When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced.
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.
NumericEventPropertiesKeys []string `json:"numeric_event_properties_keys,omitempty"`
// Orb Plan ID to filter subscriptions that should have usage fetched.
PlanID *string `json:"plan_id,omitempty"`
- SourceType SourceOrbOrb `json:"sourceType"`
+ sourceType SourceOrbOrb `const:"orb" json:"sourceType"`
// UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter.
StartDate string `json:"start_date"`
// Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.
@@ -48,3 +49,67 @@ type SourceOrb struct {
// Property key name to group subscription usage by.
SubscriptionUsageGroupingKey *string `json:"subscription_usage_grouping_key,omitempty"`
}
+
+func (s SourceOrb) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOrb) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOrb) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceOrb) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourceOrb) GetNumericEventPropertiesKeys() []string {
+ if o == nil {
+ return nil
+ }
+ return o.NumericEventPropertiesKeys
+}
+
+func (o *SourceOrb) GetPlanID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PlanID
+}
+
+func (o *SourceOrb) GetSourceType() SourceOrbOrb {
+ return SourceOrbOrbOrb
+}
+
+func (o *SourceOrb) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceOrb) GetStringEventPropertiesKeys() []string {
+ if o == nil {
+ return nil
+ }
+ return o.StringEventPropertiesKeys
+}
+
+func (o *SourceOrb) GetSubscriptionUsageGroupingKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SubscriptionUsageGroupingKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbcreaterequest.go b/internal/sdk/pkg/models/shared/sourceorbcreaterequest.go
old mode 100755
new mode 100644
index e732e9572..2c0acb30b
--- a/internal/sdk/pkg/models/shared/sourceorbcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceorbcreaterequest.go
@@ -9,3 +9,31 @@ type SourceOrbCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOrbCreateRequest) GetConfiguration() SourceOrb {
+ if o == nil {
+ return SourceOrb{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOrbCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOrbCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOrbCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbit.go b/internal/sdk/pkg/models/shared/sourceorbit.go
old mode 100755
new mode 100644
index ffb10c094..5068ff427
--- a/internal/sdk/pkg/models/shared/sourceorbit.go
+++ b/internal/sdk/pkg/models/shared/sourceorbit.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,9 +35,45 @@ func (e *SourceOrbitOrbit) UnmarshalJSON(data []byte) error {
type SourceOrbit struct {
// Authorizes you to work with Orbit workspaces associated with the token.
APIToken string `json:"api_token"`
- SourceType SourceOrbitOrbit `json:"sourceType"`
+ sourceType SourceOrbitOrbit `const:"orbit" json:"sourceType"`
// Date in the format 2022-06-26. Only load members whose last activities are after this date.
StartDate *string `json:"start_date,omitempty"`
// The unique name of the workspace that your API token is associated with.
Workspace string `json:"workspace"`
}
+
+func (s SourceOrbit) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOrbit) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOrbit) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceOrbit) GetSourceType() SourceOrbitOrbit {
+ return SourceOrbitOrbitOrbit
+}
+
+func (o *SourceOrbit) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceOrbit) GetWorkspace() string {
+ if o == nil {
+ return ""
+ }
+ return o.Workspace
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbitcreaterequest.go b/internal/sdk/pkg/models/shared/sourceorbitcreaterequest.go
old mode 100755
new mode 100644
index 6e289339f..d4a80884a
--- a/internal/sdk/pkg/models/shared/sourceorbitcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceorbitcreaterequest.go
@@ -9,3 +9,31 @@ type SourceOrbitCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOrbitCreateRequest) GetConfiguration() SourceOrbit {
+ if o == nil {
+ return SourceOrbit{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOrbitCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOrbitCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOrbitCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbitputrequest.go b/internal/sdk/pkg/models/shared/sourceorbitputrequest.go
old mode 100755
new mode 100644
index 2593a6bdd..fa0402061
--- a/internal/sdk/pkg/models/shared/sourceorbitputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceorbitputrequest.go
@@ -7,3 +7,24 @@ type SourceOrbitPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOrbitPutRequest) GetConfiguration() SourceOrbitUpdate {
+ if o == nil {
+ return SourceOrbitUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOrbitPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOrbitPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbitupdate.go b/internal/sdk/pkg/models/shared/sourceorbitupdate.go
old mode 100755
new mode 100644
index 2c6492733..7b8550f8f
--- a/internal/sdk/pkg/models/shared/sourceorbitupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceorbitupdate.go
@@ -10,3 +10,24 @@ type SourceOrbitUpdate struct {
// The unique name of the workspace that your API token is associated with.
Workspace string `json:"workspace"`
}
+
+func (o *SourceOrbitUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceOrbitUpdate) GetStartDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceOrbitUpdate) GetWorkspace() string {
+ if o == nil {
+ return ""
+ }
+ return o.Workspace
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbputrequest.go b/internal/sdk/pkg/models/shared/sourceorbputrequest.go
old mode 100755
new mode 100644
index 3674fb937..14446eabe
--- a/internal/sdk/pkg/models/shared/sourceorbputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceorbputrequest.go
@@ -7,3 +7,24 @@ type SourceOrbPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOrbPutRequest) GetConfiguration() SourceOrbUpdate {
+ if o == nil {
+ return SourceOrbUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOrbPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOrbPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceorbupdate.go b/internal/sdk/pkg/models/shared/sourceorbupdate.go
old mode 100755
new mode 100644
index df8f86065..44c9853ce
--- a/internal/sdk/pkg/models/shared/sourceorbupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceorbupdate.go
@@ -2,11 +2,15 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceOrbUpdate struct {
// Orb API Key, issued from the Orb admin console.
APIKey string `json:"api_key"`
// When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced.
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction.
NumericEventPropertiesKeys []string `json:"numeric_event_properties_keys,omitempty"`
// Orb Plan ID to filter subscriptions that should have usage fetched.
@@ -18,3 +22,63 @@ type SourceOrbUpdate struct {
// Property key name to group subscription usage by.
SubscriptionUsageGroupingKey *string `json:"subscription_usage_grouping_key,omitempty"`
}
+
+func (s SourceOrbUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOrbUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOrbUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceOrbUpdate) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourceOrbUpdate) GetNumericEventPropertiesKeys() []string {
+ if o == nil {
+ return nil
+ }
+ return o.NumericEventPropertiesKeys
+}
+
+func (o *SourceOrbUpdate) GetPlanID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PlanID
+}
+
+func (o *SourceOrbUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceOrbUpdate) GetStringEventPropertiesKeys() []string {
+ if o == nil {
+ return nil
+ }
+ return o.StringEventPropertiesKeys
+}
+
+func (o *SourceOrbUpdate) GetSubscriptionUsageGroupingKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SubscriptionUsageGroupingKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go
old mode 100755
new mode 100644
index eefe375c3..5776db00c
--- a/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go
+++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,40 @@ func (e *SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAn
type SourceOutbrainAmplifyAuthenticationMethodUsernamePassword struct {
// Add Password for authentication.
Password string `json:"password"`
- Type SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest `json:"type"`
+ type_ SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest `const:"username_password" json:"type"`
// Add Username for authentication.
Username string `json:"username"`
}
+func (s SourceOutbrainAmplifyAuthenticationMethodUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutbrainAmplifyAuthenticationMethodUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutbrainAmplifyAuthenticationMethodUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceOutbrainAmplifyAuthenticationMethodUsernamePassword) GetType() SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest {
+ return SourceOutbrainAmplifyAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequestUsernamePassword
+}
+
+func (o *SourceOutbrainAmplifyAuthenticationMethodUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests string
const (
@@ -70,7 +99,29 @@ func (e *SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequir
type SourceOutbrainAmplifyAuthenticationMethodAccessToken struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- Type SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests `json:"type"`
+ type_ SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests `const:"access_token" json:"type"`
+}
+
+func (s SourceOutbrainAmplifyAuthenticationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutbrainAmplifyAuthenticationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutbrainAmplifyAuthenticationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceOutbrainAmplifyAuthenticationMethodAccessToken) GetType() SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests {
+ return SourceOutbrainAmplifyAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequestsAccessToken
}
type SourceOutbrainAmplifyAuthenticationMethodType string
@@ -106,21 +157,16 @@ func CreateSourceOutbrainAmplifyAuthenticationMethodSourceOutbrainAmplifyAuthent
}
func (u *SourceOutbrainAmplifyAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOutbrainAmplifyAuthenticationMethodAccessToken := new(SourceOutbrainAmplifyAuthenticationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOutbrainAmplifyAuthenticationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyAuthenticationMethodAccessToken, "", true, true); err == nil {
u.SourceOutbrainAmplifyAuthenticationMethodAccessToken = sourceOutbrainAmplifyAuthenticationMethodAccessToken
u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyAuthenticationMethodAccessToken
return nil
}
sourceOutbrainAmplifyAuthenticationMethodUsernamePassword := new(SourceOutbrainAmplifyAuthenticationMethodUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOutbrainAmplifyAuthenticationMethodUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyAuthenticationMethodUsernamePassword, "", true, true); err == nil {
u.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword = sourceOutbrainAmplifyAuthenticationMethodUsernamePassword
u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyAuthenticationMethodUsernamePassword
return nil
@@ -131,14 +177,14 @@ func (u *SourceOutbrainAmplifyAuthenticationMethod) UnmarshalJSON(data []byte) e
func (u SourceOutbrainAmplifyAuthenticationMethod) MarshalJSON() ([]byte, error) {
if u.SourceOutbrainAmplifyAuthenticationMethodAccessToken != nil {
- return json.Marshal(u.SourceOutbrainAmplifyAuthenticationMethodAccessToken)
+ return utils.MarshalJSON(u.SourceOutbrainAmplifyAuthenticationMethodAccessToken, "", true)
}
if u.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword != nil {
- return json.Marshal(u.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword)
+ return utils.MarshalJSON(u.SourceOutbrainAmplifyAuthenticationMethodUsernamePassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceOutbrainAmplifyGranularityForGeoLocationRegion - The granularity used for geo location data in reports.
@@ -236,7 +282,57 @@ type SourceOutbrainAmplify struct {
GeoLocationBreakdown *SourceOutbrainAmplifyGranularityForGeoLocationRegion `json:"geo_location_breakdown,omitempty"`
// The granularity used for periodic data in reports. See the docs.
ReportGranularity *SourceOutbrainAmplifyGranularityForPeriodicReports `json:"report_granularity,omitempty"`
- SourceType SourceOutbrainAmplifyOutbrainAmplify `json:"sourceType"`
+ sourceType SourceOutbrainAmplifyOutbrainAmplify `const:"outbrain-amplify" json:"sourceType"`
// Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceOutbrainAmplify) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutbrainAmplify) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutbrainAmplify) GetCredentials() SourceOutbrainAmplifyAuthenticationMethod {
+ if o == nil {
+ return SourceOutbrainAmplifyAuthenticationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceOutbrainAmplify) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceOutbrainAmplify) GetGeoLocationBreakdown() *SourceOutbrainAmplifyGranularityForGeoLocationRegion {
+ if o == nil {
+ return nil
+ }
+ return o.GeoLocationBreakdown
+}
+
+func (o *SourceOutbrainAmplify) GetReportGranularity() *SourceOutbrainAmplifyGranularityForPeriodicReports {
+ if o == nil {
+ return nil
+ }
+ return o.ReportGranularity
+}
+
+func (o *SourceOutbrainAmplify) GetSourceType() SourceOutbrainAmplifyOutbrainAmplify {
+ return SourceOutbrainAmplifyOutbrainAmplifyOutbrainAmplify
+}
+
+func (o *SourceOutbrainAmplify) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplifycreaterequest.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplifycreaterequest.go
old mode 100755
new mode 100644
index c09b391fe..cbb3506af
--- a/internal/sdk/pkg/models/shared/sourceoutbrainamplifycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplifycreaterequest.go
@@ -9,3 +9,31 @@ type SourceOutbrainAmplifyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOutbrainAmplifyCreateRequest) GetConfiguration() SourceOutbrainAmplify {
+ if o == nil {
+ return SourceOutbrainAmplify{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOutbrainAmplifyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOutbrainAmplifyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOutbrainAmplifyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyputrequest.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyputrequest.go
old mode 100755
new mode 100644
index 9089d8dfe..07e38be55
--- a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyputrequest.go
@@ -7,3 +7,24 @@ type SourceOutbrainAmplifyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOutbrainAmplifyPutRequest) GetConfiguration() SourceOutbrainAmplifyUpdate {
+ if o == nil {
+ return SourceOutbrainAmplifyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOutbrainAmplifyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOutbrainAmplifyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go
old mode 100755
new mode 100644
index a0e8c8441..daab7b327
--- a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,40 @@ func (e *SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUser
type SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword struct {
// Add Password for authentication.
Password string `json:"password"`
- Type SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest `json:"type"`
+ type_ SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest `const:"username_password" json:"type"`
// Add Username for authentication.
Username string `json:"username"`
}
+func (s SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword) GetType() SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequest {
+ return SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePasswordBothUsernameAndPasswordIsRequiredForAuthenticationRequestUsernamePassword
+}
+
+func (o *SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests string
const (
@@ -70,7 +99,29 @@ func (e *SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIs
type SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- Type SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests `json:"type"`
+ type_ SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests `const:"access_token" json:"type"`
+}
+
+func (s SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken) GetType() SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequests {
+ return SourceOutbrainAmplifyUpdateAuthenticationMethodAccessTokenAccessTokenIsRequiredForAuthenticationRequestsAccessToken
}
type SourceOutbrainAmplifyUpdateAuthenticationMethodType string
@@ -106,21 +157,16 @@ func CreateSourceOutbrainAmplifyUpdateAuthenticationMethodSourceOutbrainAmplifyU
}
func (u *SourceOutbrainAmplifyUpdateAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken := new(SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken, "", true, true); err == nil {
u.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken = sourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken
u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken
return nil
}
sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword := new(SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword, "", true, true); err == nil {
u.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword = sourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword
u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword
return nil
@@ -131,14 +177,14 @@ func (u *SourceOutbrainAmplifyUpdateAuthenticationMethod) UnmarshalJSON(data []b
func (u SourceOutbrainAmplifyUpdateAuthenticationMethod) MarshalJSON() ([]byte, error) {
if u.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken != nil {
- return json.Marshal(u.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken)
+ return utils.MarshalJSON(u.SourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken, "", true)
}
if u.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword != nil {
- return json.Marshal(u.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword)
+ return utils.MarshalJSON(u.SourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceOutbrainAmplifyUpdateGranularityForGeoLocationRegion - The granularity used for geo location data in reports.
@@ -215,3 +261,38 @@ type SourceOutbrainAmplifyUpdate struct {
// Date in the format YYYY-MM-DD eg. 2017-01-25. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (o *SourceOutbrainAmplifyUpdate) GetCredentials() SourceOutbrainAmplifyUpdateAuthenticationMethod {
+ if o == nil {
+ return SourceOutbrainAmplifyUpdateAuthenticationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceOutbrainAmplifyUpdate) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceOutbrainAmplifyUpdate) GetGeoLocationBreakdown() *SourceOutbrainAmplifyUpdateGranularityForGeoLocationRegion {
+ if o == nil {
+ return nil
+ }
+ return o.GeoLocationBreakdown
+}
+
+func (o *SourceOutbrainAmplifyUpdate) GetReportGranularity() *SourceOutbrainAmplifyUpdateGranularityForPeriodicReports {
+ if o == nil {
+ return nil
+ }
+ return o.ReportGranularity
+}
+
+func (o *SourceOutbrainAmplifyUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutreach.go b/internal/sdk/pkg/models/shared/sourceoutreach.go
old mode 100755
new mode 100644
index ca8dfd1e2..05e29259e
--- a/internal/sdk/pkg/models/shared/sourceoutreach.go
+++ b/internal/sdk/pkg/models/shared/sourceoutreach.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -40,7 +41,57 @@ type SourceOutreach struct {
RedirectURI string `json:"redirect_uri"`
// The token for obtaining the new access token.
RefreshToken string `json:"refresh_token"`
- SourceType SourceOutreachOutreach `json:"sourceType"`
+ sourceType SourceOutreachOutreach `const:"outreach" json:"sourceType"`
// The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceOutreach) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceOutreach) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceOutreach) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceOutreach) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceOutreach) GetRedirectURI() string {
+ if o == nil {
+ return ""
+ }
+ return o.RedirectURI
+}
+
+func (o *SourceOutreach) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceOutreach) GetSourceType() SourceOutreachOutreach {
+ return SourceOutreachOutreachOutreach
+}
+
+func (o *SourceOutreach) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutreachcreaterequest.go b/internal/sdk/pkg/models/shared/sourceoutreachcreaterequest.go
old mode 100755
new mode 100644
index 87c2dfea2..07514615b
--- a/internal/sdk/pkg/models/shared/sourceoutreachcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoutreachcreaterequest.go
@@ -9,3 +9,31 @@ type SourceOutreachCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOutreachCreateRequest) GetConfiguration() SourceOutreach {
+ if o == nil {
+ return SourceOutreach{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOutreachCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOutreachCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceOutreachCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutreachputrequest.go b/internal/sdk/pkg/models/shared/sourceoutreachputrequest.go
old mode 100755
new mode 100644
index b7ef5cb37..faac76a6e
--- a/internal/sdk/pkg/models/shared/sourceoutreachputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceoutreachputrequest.go
@@ -7,3 +7,24 @@ type SourceOutreachPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceOutreachPutRequest) GetConfiguration() SourceOutreachUpdate {
+ if o == nil {
+ return SourceOutreachUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceOutreachPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceOutreachPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceoutreachupdate.go b/internal/sdk/pkg/models/shared/sourceoutreachupdate.go
old mode 100755
new mode 100644
index 68cfdf643..54fa5a9d9
--- a/internal/sdk/pkg/models/shared/sourceoutreachupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceoutreachupdate.go
@@ -14,3 +14,38 @@ type SourceOutreachUpdate struct {
// The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate string `json:"start_date"`
}
+
+func (o *SourceOutreachUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceOutreachUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceOutreachUpdate) GetRedirectURI() string {
+ if o == nil {
+ return ""
+ }
+ return o.RedirectURI
+}
+
+func (o *SourceOutreachUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceOutreachUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepatchrequest.go b/internal/sdk/pkg/models/shared/sourcepatchrequest.go
old mode 100755
new mode 100644
index ebad0f887..91632db61
--- a/internal/sdk/pkg/models/shared/sourcepatchrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepatchrequest.go
@@ -10,3 +10,31 @@ type SourcePatchRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID *string `json:"workspaceId,omitempty"`
}
+
+func (o *SourcePatchRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *SourcePatchRequest) GetName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Name
+}
+
+func (o *SourcePatchRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePatchRequest) GetWorkspaceID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaypaltransaction.go b/internal/sdk/pkg/models/shared/sourcepaypaltransaction.go
old mode 100755
new mode 100644
index cffabd1e3..ded41c5e0
--- a/internal/sdk/pkg/models/shared/sourcepaypaltransaction.go
+++ b/internal/sdk/pkg/models/shared/sourcepaypaltransaction.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -38,10 +39,60 @@ type SourcePaypalTransaction struct {
// The Client Secret of your Paypal developer application.
ClientSecret string `json:"client_secret"`
// Determines whether to use the sandbox or production environment.
- IsSandbox bool `json:"is_sandbox"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
// The key to refresh the expired access token.
RefreshToken *string `json:"refresh_token,omitempty"`
- SourceType SourcePaypalTransactionPaypalTransaction `json:"sourceType"`
+ sourceType SourcePaypalTransactionPaypalTransaction `const:"paypal-transaction" json:"sourceType"`
// Start Date for data extraction in ISO format. Date must be in range from 3 years till 12 hrs before present time.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePaypalTransaction) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePaypalTransaction) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePaypalTransaction) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourcePaypalTransaction) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourcePaypalTransaction) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourcePaypalTransaction) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
+func (o *SourcePaypalTransaction) GetSourceType() SourcePaypalTransactionPaypalTransaction {
+ return SourcePaypalTransactionPaypalTransactionPaypalTransaction
+}
+
+func (o *SourcePaypalTransaction) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaypaltransactioncreaterequest.go b/internal/sdk/pkg/models/shared/sourcepaypaltransactioncreaterequest.go
old mode 100755
new mode 100644
index d6bb310b0..e581f2d6b
--- a/internal/sdk/pkg/models/shared/sourcepaypaltransactioncreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepaypaltransactioncreaterequest.go
@@ -9,3 +9,31 @@ type SourcePaypalTransactionCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePaypalTransactionCreateRequest) GetConfiguration() SourcePaypalTransaction {
+ if o == nil {
+ return SourcePaypalTransaction{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePaypalTransactionCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePaypalTransactionCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePaypalTransactionCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaypaltransactionputrequest.go b/internal/sdk/pkg/models/shared/sourcepaypaltransactionputrequest.go
old mode 100755
new mode 100644
index 48ea11899..d5f5d4fcb
--- a/internal/sdk/pkg/models/shared/sourcepaypaltransactionputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepaypaltransactionputrequest.go
@@ -7,3 +7,24 @@ type SourcePaypalTransactionPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePaypalTransactionPutRequest) GetConfiguration() SourcePaypalTransactionUpdate {
+ if o == nil {
+ return SourcePaypalTransactionUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePaypalTransactionPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePaypalTransactionPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaypaltransactionupdate.go b/internal/sdk/pkg/models/shared/sourcepaypaltransactionupdate.go
old mode 100755
new mode 100644
index c81d91a68..1ff036d74
--- a/internal/sdk/pkg/models/shared/sourcepaypaltransactionupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepaypaltransactionupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,9 +13,55 @@ type SourcePaypalTransactionUpdate struct {
// The Client Secret of your Paypal developer application.
ClientSecret string `json:"client_secret"`
// Determines whether to use the sandbox or production environment.
- IsSandbox bool `json:"is_sandbox"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
// The key to refresh the expired access token.
RefreshToken *string `json:"refresh_token,omitempty"`
// Start Date for data extraction in ISO format. Date must be in range from 3 years till 12 hrs before present time.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePaypalTransactionUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePaypalTransactionUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePaypalTransactionUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourcePaypalTransactionUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourcePaypalTransactionUpdate) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourcePaypalTransactionUpdate) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
+func (o *SourcePaypalTransactionUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaystack.go b/internal/sdk/pkg/models/shared/sourcepaystack.go
old mode 100755
new mode 100644
index 43eefe9f7..37003b5cb
--- a/internal/sdk/pkg/models/shared/sourcepaystack.go
+++ b/internal/sdk/pkg/models/shared/sourcepaystack.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -34,10 +35,46 @@ func (e *SourcePaystackPaystack) UnmarshalJSON(data []byte) error {
type SourcePaystack struct {
// When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation.
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// The Paystack API key (usually starts with 'sk_live_'; find yours here).
SecretKey string `json:"secret_key"`
- SourceType SourcePaystackPaystack `json:"sourceType"`
+ sourceType SourcePaystackPaystack `const:"paystack" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePaystack) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePaystack) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePaystack) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourcePaystack) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourcePaystack) GetSourceType() SourcePaystackPaystack {
+ return SourcePaystackPaystackPaystack
+}
+
+func (o *SourcePaystack) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaystackcreaterequest.go b/internal/sdk/pkg/models/shared/sourcepaystackcreaterequest.go
old mode 100755
new mode 100644
index ed876fe50..18c0d5393
--- a/internal/sdk/pkg/models/shared/sourcepaystackcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepaystackcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePaystackCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePaystackCreateRequest) GetConfiguration() SourcePaystack {
+ if o == nil {
+ return SourcePaystack{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePaystackCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePaystackCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePaystackCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaystackputrequest.go b/internal/sdk/pkg/models/shared/sourcepaystackputrequest.go
old mode 100755
new mode 100644
index dfec568cc..3a87fb689
--- a/internal/sdk/pkg/models/shared/sourcepaystackputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepaystackputrequest.go
@@ -7,3 +7,24 @@ type SourcePaystackPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePaystackPutRequest) GetConfiguration() SourcePaystackUpdate {
+ if o == nil {
+ return SourcePaystackUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePaystackPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePaystackPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepaystackupdate.go b/internal/sdk/pkg/models/shared/sourcepaystackupdate.go
old mode 100755
new mode 100644
index 67cf8c4dd..d369b8eb9
--- a/internal/sdk/pkg/models/shared/sourcepaystackupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepaystackupdate.go
@@ -3,14 +3,47 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
type SourcePaystackUpdate struct {
// When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation.
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// The Paystack API key (usually starts with 'sk_live_'; find yours here).
SecretKey string `json:"secret_key"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePaystackUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePaystackUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePaystackUpdate) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourcePaystackUpdate) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourcePaystackUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcependo.go b/internal/sdk/pkg/models/shared/sourcependo.go
old mode 100755
new mode 100644
index c375df671..f594a2fa7
--- a/internal/sdk/pkg/models/shared/sourcependo.go
+++ b/internal/sdk/pkg/models/shared/sourcependo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -33,5 +34,27 @@ func (e *SourcePendoPendo) UnmarshalJSON(data []byte) error {
type SourcePendo struct {
APIKey string `json:"api_key"`
- SourceType SourcePendoPendo `json:"sourceType"`
+ sourceType SourcePendoPendo `const:"pendo" json:"sourceType"`
+}
+
+func (s SourcePendo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePendo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePendo) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePendo) GetSourceType() SourcePendoPendo {
+ return SourcePendoPendoPendo
}
diff --git a/internal/sdk/pkg/models/shared/sourcependocreaterequest.go b/internal/sdk/pkg/models/shared/sourcependocreaterequest.go
old mode 100755
new mode 100644
index 004705f01..1e4c706e9
--- a/internal/sdk/pkg/models/shared/sourcependocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcependocreaterequest.go
@@ -9,3 +9,31 @@ type SourcePendoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePendoCreateRequest) GetConfiguration() SourcePendo {
+ if o == nil {
+ return SourcePendo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePendoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePendoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePendoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcependoputrequest.go b/internal/sdk/pkg/models/shared/sourcependoputrequest.go
old mode 100755
new mode 100644
index 175264dff..62b651f4c
--- a/internal/sdk/pkg/models/shared/sourcependoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcependoputrequest.go
@@ -7,3 +7,24 @@ type SourcePendoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePendoPutRequest) GetConfiguration() SourcePendoUpdate {
+ if o == nil {
+ return SourcePendoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePendoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePendoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcependoupdate.go b/internal/sdk/pkg/models/shared/sourcependoupdate.go
old mode 100755
new mode 100644
index ba5b99d3f..5df25c698
--- a/internal/sdk/pkg/models/shared/sourcependoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcependoupdate.go
@@ -5,3 +5,10 @@ package shared
type SourcePendoUpdate struct {
APIKey string `json:"api_key"`
}
+
+func (o *SourcePendoUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepersistiq.go b/internal/sdk/pkg/models/shared/sourcepersistiq.go
old mode 100755
new mode 100644
index 1032e62db..3a3eabc30
--- a/internal/sdk/pkg/models/shared/sourcepersistiq.go
+++ b/internal/sdk/pkg/models/shared/sourcepersistiq.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourcePersistiqPersistiq) UnmarshalJSON(data []byte) error {
type SourcePersistiq struct {
// PersistIq API Key. See the docs for more information on where to find that key.
APIKey string `json:"api_key"`
- SourceType SourcePersistiqPersistiq `json:"sourceType"`
+ sourceType SourcePersistiqPersistiq `const:"persistiq" json:"sourceType"`
+}
+
+func (s SourcePersistiq) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePersistiq) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePersistiq) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePersistiq) GetSourceType() SourcePersistiqPersistiq {
+ return SourcePersistiqPersistiqPersistiq
}
diff --git a/internal/sdk/pkg/models/shared/sourcepersistiqcreaterequest.go b/internal/sdk/pkg/models/shared/sourcepersistiqcreaterequest.go
old mode 100755
new mode 100644
index ff1000598..e5e518abb
--- a/internal/sdk/pkg/models/shared/sourcepersistiqcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepersistiqcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePersistiqCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePersistiqCreateRequest) GetConfiguration() SourcePersistiq {
+ if o == nil {
+ return SourcePersistiq{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePersistiqCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePersistiqCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePersistiqCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepersistiqputrequest.go b/internal/sdk/pkg/models/shared/sourcepersistiqputrequest.go
old mode 100755
new mode 100644
index 4ac71da92..a3b6b86dc
--- a/internal/sdk/pkg/models/shared/sourcepersistiqputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepersistiqputrequest.go
@@ -7,3 +7,24 @@ type SourcePersistiqPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePersistiqPutRequest) GetConfiguration() SourcePersistiqUpdate {
+ if o == nil {
+ return SourcePersistiqUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePersistiqPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePersistiqPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepersistiqupdate.go b/internal/sdk/pkg/models/shared/sourcepersistiqupdate.go
old mode 100755
new mode 100644
index c604b4d51..03c383b8c
--- a/internal/sdk/pkg/models/shared/sourcepersistiqupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepersistiqupdate.go
@@ -6,3 +6,10 @@ type SourcePersistiqUpdate struct {
// PersistIq API Key. See the docs for more information on where to find that key.
APIKey string `json:"api_key"`
}
+
+func (o *SourcePersistiqUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepexelsapi.go b/internal/sdk/pkg/models/shared/sourcepexelsapi.go
old mode 100755
new mode 100644
index 4ab5a1064..40899c528
--- a/internal/sdk/pkg/models/shared/sourcepexelsapi.go
+++ b/internal/sdk/pkg/models/shared/sourcepexelsapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -44,5 +45,62 @@ type SourcePexelsAPI struct {
Query string `json:"query"`
// Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).
Size *string `json:"size,omitempty"`
- SourceType SourcePexelsAPIPexelsAPI `json:"sourceType"`
+ sourceType SourcePexelsAPIPexelsAPI `const:"pexels-api" json:"sourceType"`
+}
+
+func (s SourcePexelsAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePexelsAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePexelsAPI) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePexelsAPI) GetColor() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Color
+}
+
+func (o *SourcePexelsAPI) GetLocale() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Locale
+}
+
+func (o *SourcePexelsAPI) GetOrientation() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Orientation
+}
+
+func (o *SourcePexelsAPI) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourcePexelsAPI) GetSize() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Size
+}
+
+func (o *SourcePexelsAPI) GetSourceType() SourcePexelsAPIPexelsAPI {
+ return SourcePexelsAPIPexelsAPIPexelsAPI
}
diff --git a/internal/sdk/pkg/models/shared/sourcepexelsapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcepexelsapicreaterequest.go
old mode 100755
new mode 100644
index 67c927df3..9649fdb94
--- a/internal/sdk/pkg/models/shared/sourcepexelsapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepexelsapicreaterequest.go
@@ -9,3 +9,31 @@ type SourcePexelsAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePexelsAPICreateRequest) GetConfiguration() SourcePexelsAPI {
+ if o == nil {
+ return SourcePexelsAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePexelsAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePexelsAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePexelsAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepexelsapiputrequest.go b/internal/sdk/pkg/models/shared/sourcepexelsapiputrequest.go
old mode 100755
new mode 100644
index 6e46f1b4b..013ee83c4
--- a/internal/sdk/pkg/models/shared/sourcepexelsapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepexelsapiputrequest.go
@@ -7,3 +7,24 @@ type SourcePexelsAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePexelsAPIPutRequest) GetConfiguration() SourcePexelsAPIUpdate {
+ if o == nil {
+ return SourcePexelsAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePexelsAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePexelsAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepexelsapiupdate.go b/internal/sdk/pkg/models/shared/sourcepexelsapiupdate.go
old mode 100755
new mode 100644
index 57d245d44..a45402bb7
--- a/internal/sdk/pkg/models/shared/sourcepexelsapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepexelsapiupdate.go
@@ -16,3 +16,45 @@ type SourcePexelsAPIUpdate struct {
// Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).
Size *string `json:"size,omitempty"`
}
+
+func (o *SourcePexelsAPIUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePexelsAPIUpdate) GetColor() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Color
+}
+
+func (o *SourcePexelsAPIUpdate) GetLocale() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Locale
+}
+
+func (o *SourcePexelsAPIUpdate) GetOrientation() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Orientation
+}
+
+func (o *SourcePexelsAPIUpdate) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourcePexelsAPIUpdate) GetSize() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Size
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepinterest.go b/internal/sdk/pkg/models/shared/sourcepinterest.go
old mode 100755
new mode 100644
index 840fe1737..a45a307c9
--- a/internal/sdk/pkg/models/shared/sourcepinterest.go
+++ b/internal/sdk/pkg/models/shared/sourcepinterest.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourcePinterestAuthorizationMethodAccessTokenAuthMethod) UnmarshalJSON(
type SourcePinterestAuthorizationMethodAccessToken struct {
// The Access Token to make authenticated requests.
AccessToken string `json:"access_token"`
- AuthMethod SourcePinterestAuthorizationMethodAccessTokenAuthMethod `json:"auth_method"`
+ authMethod SourcePinterestAuthorizationMethodAccessTokenAuthMethod `const:"access_token" json:"auth_method"`
+}
+
+func (s SourcePinterestAuthorizationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterestAuthorizationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterestAuthorizationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourcePinterestAuthorizationMethodAccessToken) GetAuthMethod() SourcePinterestAuthorizationMethodAccessTokenAuthMethod {
+ return SourcePinterestAuthorizationMethodAccessTokenAuthMethodAccessToken
}
type SourcePinterestAuthorizationMethodOAuth20AuthMethod string
@@ -65,7 +87,7 @@ func (e *SourcePinterestAuthorizationMethodOAuth20AuthMethod) UnmarshalJSON(data
}
type SourcePinterestAuthorizationMethodOAuth20 struct {
- AuthMethod SourcePinterestAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ authMethod SourcePinterestAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of your OAuth application
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
@@ -74,6 +96,42 @@ type SourcePinterestAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourcePinterestAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterestAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterestAuthorizationMethodOAuth20) GetAuthMethod() SourcePinterestAuthorizationMethodOAuth20AuthMethod {
+ return SourcePinterestAuthorizationMethodOAuth20AuthMethodOauth20
+}
+
+func (o *SourcePinterestAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourcePinterestAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourcePinterestAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourcePinterestAuthorizationMethodType string
const (
@@ -107,21 +165,16 @@ func CreateSourcePinterestAuthorizationMethodSourcePinterestAuthorizationMethodA
}
func (u *SourcePinterestAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePinterestAuthorizationMethodAccessToken := new(SourcePinterestAuthorizationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePinterestAuthorizationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePinterestAuthorizationMethodAccessToken, "", true, true); err == nil {
u.SourcePinterestAuthorizationMethodAccessToken = sourcePinterestAuthorizationMethodAccessToken
u.Type = SourcePinterestAuthorizationMethodTypeSourcePinterestAuthorizationMethodAccessToken
return nil
}
sourcePinterestAuthorizationMethodOAuth20 := new(SourcePinterestAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePinterestAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePinterestAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourcePinterestAuthorizationMethodOAuth20 = sourcePinterestAuthorizationMethodOAuth20
u.Type = SourcePinterestAuthorizationMethodTypeSourcePinterestAuthorizationMethodOAuth20
return nil
@@ -131,15 +184,15 @@ func (u *SourcePinterestAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourcePinterestAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourcePinterestAuthorizationMethodAccessToken != nil {
- return json.Marshal(u.SourcePinterestAuthorizationMethodAccessToken)
+ if u.SourcePinterestAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourcePinterestAuthorizationMethodOAuth20, "", true)
}
- if u.SourcePinterestAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourcePinterestAuthorizationMethodOAuth20)
+ if u.SourcePinterestAuthorizationMethodAccessToken != nil {
+ return utils.MarshalJSON(u.SourcePinterestAuthorizationMethodAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePinterestPinterest string
@@ -198,9 +251,45 @@ func (e *SourcePinterestStatus) UnmarshalJSON(data []byte) error {
type SourcePinterest struct {
Credentials *SourcePinterestAuthorizationMethod `json:"credentials,omitempty"`
- SourceType SourcePinterestPinterest `json:"sourceType"`
+ sourceType SourcePinterestPinterest `const:"pinterest" json:"sourceType"`
// A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today).
StartDate types.Date `json:"start_date"`
// Entity statuses based off of campaigns, ad_groups, and ads. If you do not have a status set, it will be ignored completely.
Status []SourcePinterestStatus `json:"status,omitempty"`
}
+
+func (s SourcePinterest) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterest) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterest) GetCredentials() *SourcePinterestAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourcePinterest) GetSourceType() SourcePinterestPinterest {
+ return SourcePinterestPinterestPinterest
+}
+
+func (o *SourcePinterest) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePinterest) GetStatus() []SourcePinterestStatus {
+ if o == nil {
+ return nil
+ }
+ return o.Status
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepinterestcreaterequest.go b/internal/sdk/pkg/models/shared/sourcepinterestcreaterequest.go
old mode 100755
new mode 100644
index 9e6a28aab..f025582d9
--- a/internal/sdk/pkg/models/shared/sourcepinterestcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepinterestcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePinterestCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePinterestCreateRequest) GetConfiguration() SourcePinterest {
+ if o == nil {
+ return SourcePinterest{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePinterestCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePinterestCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePinterestCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepinterestputrequest.go b/internal/sdk/pkg/models/shared/sourcepinterestputrequest.go
old mode 100755
new mode 100644
index 12802a7cc..9b5aad42a
--- a/internal/sdk/pkg/models/shared/sourcepinterestputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepinterestputrequest.go
@@ -7,3 +7,24 @@ type SourcePinterestPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePinterestPutRequest) GetConfiguration() SourcePinterestUpdate {
+ if o == nil {
+ return SourcePinterestUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePinterestPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePinterestPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepinterestupdate.go b/internal/sdk/pkg/models/shared/sourcepinterestupdate.go
old mode 100755
new mode 100644
index 50d3ed725..c9603886d
--- a/internal/sdk/pkg/models/shared/sourcepinterestupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepinterestupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethod) Unmarsha
type SourcePinterestUpdateAuthorizationMethodAccessToken struct {
// The Access Token to make authenticated requests.
AccessToken string `json:"access_token"`
- AuthMethod SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethod `json:"auth_method"`
+ authMethod SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethod `const:"access_token" json:"auth_method"`
+}
+
+func (s SourcePinterestUpdateAuthorizationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterestUpdateAuthorizationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodAccessToken) GetAuthMethod() SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethod {
+ return SourcePinterestUpdateAuthorizationMethodAccessTokenAuthMethodAccessToken
}
type SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod string
@@ -65,7 +87,7 @@ func (e *SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod) UnmarshalJSO
}
type SourcePinterestUpdateAuthorizationMethodOAuth20 struct {
- AuthMethod SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ authMethod SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of your OAuth application
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
@@ -74,6 +96,42 @@ type SourcePinterestUpdateAuthorizationMethodOAuth20 struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourcePinterestUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterestUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodOAuth20) GetAuthMethod() SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethod {
+ return SourcePinterestUpdateAuthorizationMethodOAuth20AuthMethodOauth20
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourcePinterestUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourcePinterestUpdateAuthorizationMethodType string
const (
@@ -107,21 +165,16 @@ func CreateSourcePinterestUpdateAuthorizationMethodSourcePinterestUpdateAuthoriz
}
func (u *SourcePinterestUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePinterestUpdateAuthorizationMethodAccessToken := new(SourcePinterestUpdateAuthorizationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePinterestUpdateAuthorizationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePinterestUpdateAuthorizationMethodAccessToken, "", true, true); err == nil {
u.SourcePinterestUpdateAuthorizationMethodAccessToken = sourcePinterestUpdateAuthorizationMethodAccessToken
u.Type = SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateAuthorizationMethodAccessToken
return nil
}
sourcePinterestUpdateAuthorizationMethodOAuth20 := new(SourcePinterestUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePinterestUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePinterestUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourcePinterestUpdateAuthorizationMethodOAuth20 = sourcePinterestUpdateAuthorizationMethodOAuth20
u.Type = SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateAuthorizationMethodOAuth20
return nil
@@ -131,15 +184,15 @@ func (u *SourcePinterestUpdateAuthorizationMethod) UnmarshalJSON(data []byte) er
}
func (u SourcePinterestUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourcePinterestUpdateAuthorizationMethodAccessToken != nil {
- return json.Marshal(u.SourcePinterestUpdateAuthorizationMethodAccessToken)
+ if u.SourcePinterestUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourcePinterestUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourcePinterestUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourcePinterestUpdateAuthorizationMethodOAuth20)
+ if u.SourcePinterestUpdateAuthorizationMethodAccessToken != nil {
+ return utils.MarshalJSON(u.SourcePinterestUpdateAuthorizationMethodAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePinterestUpdateStatus string
@@ -179,3 +232,35 @@ type SourcePinterestUpdate struct {
// Entity statuses based off of campaigns, ad_groups, and ads. If you do not have a status set, it will be ignored completely.
Status []SourcePinterestUpdateStatus `json:"status,omitempty"`
}
+
+func (s SourcePinterestUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePinterestUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePinterestUpdate) GetCredentials() *SourcePinterestUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourcePinterestUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePinterestUpdate) GetStatus() []SourcePinterestUpdateStatus {
+ if o == nil {
+ return nil
+ }
+ return o.Status
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepipedrive.go b/internal/sdk/pkg/models/shared/sourcepipedrive.go
old mode 100755
new mode 100644
index dc1492737..7a1de86b5
--- a/internal/sdk/pkg/models/shared/sourcepipedrive.go
+++ b/internal/sdk/pkg/models/shared/sourcepipedrive.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,29 @@ func (e *SourcePipedriveAPIKeyAuthenticationAuthType) UnmarshalJSON(data []byte)
type SourcePipedriveAPIKeyAuthentication struct {
// The Pipedrive API Token.
APIToken string `json:"api_token"`
- AuthType SourcePipedriveAPIKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourcePipedriveAPIKeyAuthenticationAuthType `const:"Token" json:"auth_type"`
+}
+
+func (s SourcePipedriveAPIKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePipedriveAPIKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePipedriveAPIKeyAuthentication) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourcePipedriveAPIKeyAuthentication) GetAuthType() SourcePipedriveAPIKeyAuthenticationAuthType {
+ return SourcePipedriveAPIKeyAuthenticationAuthTypeToken
}
type SourcePipedrivePipedrive string
@@ -66,5 +89,34 @@ type SourcePipedrive struct {
Authorization *SourcePipedriveAPIKeyAuthentication `json:"authorization,omitempty"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental
ReplicationStartDate time.Time `json:"replication_start_date"`
- SourceType SourcePipedrivePipedrive `json:"sourceType"`
+ sourceType SourcePipedrivePipedrive `const:"pipedrive" json:"sourceType"`
+}
+
+func (s SourcePipedrive) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePipedrive) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePipedrive) GetAuthorization() *SourcePipedriveAPIKeyAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Authorization
+}
+
+func (o *SourcePipedrive) GetReplicationStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.ReplicationStartDate
+}
+
+func (o *SourcePipedrive) GetSourceType() SourcePipedrivePipedrive {
+ return SourcePipedrivePipedrivePipedrive
}
diff --git a/internal/sdk/pkg/models/shared/sourcepipedrivecreaterequest.go b/internal/sdk/pkg/models/shared/sourcepipedrivecreaterequest.go
old mode 100755
new mode 100644
index 56525669a..ab500a44d
--- a/internal/sdk/pkg/models/shared/sourcepipedrivecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepipedrivecreaterequest.go
@@ -9,3 +9,31 @@ type SourcePipedriveCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePipedriveCreateRequest) GetConfiguration() SourcePipedrive {
+ if o == nil {
+ return SourcePipedrive{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePipedriveCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePipedriveCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePipedriveCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepipedriveputrequest.go b/internal/sdk/pkg/models/shared/sourcepipedriveputrequest.go
old mode 100755
new mode 100644
index e1d83f0cc..17dd458d3
--- a/internal/sdk/pkg/models/shared/sourcepipedriveputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepipedriveputrequest.go
@@ -7,3 +7,24 @@ type SourcePipedrivePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePipedrivePutRequest) GetConfiguration() SourcePipedriveUpdate {
+ if o == nil {
+ return SourcePipedriveUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePipedrivePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePipedrivePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepipedriveupdate.go b/internal/sdk/pkg/models/shared/sourcepipedriveupdate.go
old mode 100755
new mode 100644
index dea5d664b..affdceae7
--- a/internal/sdk/pkg/models/shared/sourcepipedriveupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepipedriveupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,29 @@ func (e *SourcePipedriveUpdateAPIKeyAuthenticationAuthType) UnmarshalJSON(data [
type SourcePipedriveUpdateAPIKeyAuthentication struct {
// The Pipedrive API Token.
APIToken string `json:"api_token"`
- AuthType SourcePipedriveUpdateAPIKeyAuthenticationAuthType `json:"auth_type"`
+ authType SourcePipedriveUpdateAPIKeyAuthenticationAuthType `const:"Token" json:"auth_type"`
+}
+
+func (s SourcePipedriveUpdateAPIKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePipedriveUpdateAPIKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePipedriveUpdateAPIKeyAuthentication) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourcePipedriveUpdateAPIKeyAuthentication) GetAuthType() SourcePipedriveUpdateAPIKeyAuthenticationAuthType {
+ return SourcePipedriveUpdateAPIKeyAuthenticationAuthTypeToken
}
type SourcePipedriveUpdate struct {
@@ -43,3 +66,28 @@ type SourcePipedriveUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental
ReplicationStartDate time.Time `json:"replication_start_date"`
}
+
+func (s SourcePipedriveUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePipedriveUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePipedriveUpdate) GetAuthorization() *SourcePipedriveUpdateAPIKeyAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Authorization
+}
+
+func (o *SourcePipedriveUpdate) GetReplicationStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.ReplicationStartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepocket.go b/internal/sdk/pkg/models/shared/sourcepocket.go
old mode 100755
new mode 100644
index d0a084172..4a441d5f0
--- a/internal/sdk/pkg/models/shared/sourcepocket.go
+++ b/internal/sdk/pkg/models/shared/sourcepocket.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -167,16 +168,108 @@ type SourcePocket struct {
// Only return items from a particular `domain`.
Domain *string `json:"domain,omitempty"`
// Retrieve only favorited items.
- Favorite *bool `json:"favorite,omitempty"`
+ Favorite *bool `default:"false" json:"favorite"`
// Only return items whose title or url contain the `search` string.
Search *string `json:"search,omitempty"`
// Only return items modified since the given timestamp.
Since *string `json:"since,omitempty"`
// Sort retrieved items by the given criteria.
Sort *SourcePocketSortBy `json:"sort,omitempty"`
- SourceType SourcePocketPocket `json:"sourceType"`
+ sourceType SourcePocketPocket `const:"pocket" json:"sourceType"`
// Select the state of the items to retrieve.
State *SourcePocketState `json:"state,omitempty"`
// Return only items tagged with this tag name. Use _untagged_ for retrieving only untagged items.
Tag *string `json:"tag,omitempty"`
}
+
+func (s SourcePocket) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePocket) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePocket) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourcePocket) GetConsumerKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerKey
+}
+
+func (o *SourcePocket) GetContentType() *SourcePocketContentType {
+ if o == nil {
+ return nil
+ }
+ return o.ContentType
+}
+
+func (o *SourcePocket) GetDetailType() *SourcePocketDetailType {
+ if o == nil {
+ return nil
+ }
+ return o.DetailType
+}
+
+func (o *SourcePocket) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourcePocket) GetFavorite() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Favorite
+}
+
+func (o *SourcePocket) GetSearch() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Search
+}
+
+func (o *SourcePocket) GetSince() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Since
+}
+
+func (o *SourcePocket) GetSort() *SourcePocketSortBy {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
+
+func (o *SourcePocket) GetSourceType() SourcePocketPocket {
+ return SourcePocketPocketPocket
+}
+
+func (o *SourcePocket) GetState() *SourcePocketState {
+ if o == nil {
+ return nil
+ }
+ return o.State
+}
+
+func (o *SourcePocket) GetTag() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Tag
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepocketcreaterequest.go b/internal/sdk/pkg/models/shared/sourcepocketcreaterequest.go
old mode 100755
new mode 100644
index 2ab4ba5dc..b463c94f5
--- a/internal/sdk/pkg/models/shared/sourcepocketcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepocketcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePocketCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePocketCreateRequest) GetConfiguration() SourcePocket {
+ if o == nil {
+ return SourcePocket{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePocketCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePocketCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePocketCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepocketputrequest.go b/internal/sdk/pkg/models/shared/sourcepocketputrequest.go
old mode 100755
new mode 100644
index 746abded0..b4fb44a6f
--- a/internal/sdk/pkg/models/shared/sourcepocketputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepocketputrequest.go
@@ -7,3 +7,24 @@ type SourcePocketPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePocketPutRequest) GetConfiguration() SourcePocketUpdate {
+ if o == nil {
+ return SourcePocketUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePocketPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePocketPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepocketupdate.go b/internal/sdk/pkg/models/shared/sourcepocketupdate.go
old mode 100755
new mode 100644
index f7ea995e7..00f1ee838
--- a/internal/sdk/pkg/models/shared/sourcepocketupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepocketupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -143,7 +144,7 @@ type SourcePocketUpdate struct {
// Only return items from a particular `domain`.
Domain *string `json:"domain,omitempty"`
// Retrieve only favorited items.
- Favorite *bool `json:"favorite,omitempty"`
+ Favorite *bool `default:"false" json:"favorite"`
// Only return items whose title or url contain the `search` string.
Search *string `json:"search,omitempty"`
// Only return items modified since the given timestamp.
@@ -155,3 +156,91 @@ type SourcePocketUpdate struct {
// Return only items tagged with this tag name. Use _untagged_ for retrieving only untagged items.
Tag *string `json:"tag,omitempty"`
}
+
+func (s SourcePocketUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePocketUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePocketUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourcePocketUpdate) GetConsumerKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.ConsumerKey
+}
+
+func (o *SourcePocketUpdate) GetContentType() *SourcePocketUpdateContentType {
+ if o == nil {
+ return nil
+ }
+ return o.ContentType
+}
+
+func (o *SourcePocketUpdate) GetDetailType() *SourcePocketUpdateDetailType {
+ if o == nil {
+ return nil
+ }
+ return o.DetailType
+}
+
+func (o *SourcePocketUpdate) GetDomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Domain
+}
+
+func (o *SourcePocketUpdate) GetFavorite() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Favorite
+}
+
+func (o *SourcePocketUpdate) GetSearch() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Search
+}
+
+func (o *SourcePocketUpdate) GetSince() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Since
+}
+
+func (o *SourcePocketUpdate) GetSort() *SourcePocketUpdateSortBy {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
+
+func (o *SourcePocketUpdate) GetState() *SourcePocketUpdateState {
+ if o == nil {
+ return nil
+ }
+ return o.State
+}
+
+func (o *SourcePocketUpdate) GetTag() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Tag
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepokeapi.go b/internal/sdk/pkg/models/shared/sourcepokeapi.go
old mode 100755
new mode 100644
index 6162b3c6f..59f093043
--- a/internal/sdk/pkg/models/shared/sourcepokeapi.go
+++ b/internal/sdk/pkg/models/shared/sourcepokeapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourcePokeapiPokeapi) UnmarshalJSON(data []byte) error {
type SourcePokeapi struct {
// Pokemon requested from the API.
PokemonName string `json:"pokemon_name"`
- SourceType SourcePokeapiPokeapi `json:"sourceType"`
+ sourceType SourcePokeapiPokeapi `const:"pokeapi" json:"sourceType"`
+}
+
+func (s SourcePokeapi) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePokeapi) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePokeapi) GetPokemonName() string {
+ if o == nil {
+ return ""
+ }
+ return o.PokemonName
+}
+
+func (o *SourcePokeapi) GetSourceType() SourcePokeapiPokeapi {
+ return SourcePokeapiPokeapiPokeapi
}
diff --git a/internal/sdk/pkg/models/shared/sourcepokeapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcepokeapicreaterequest.go
old mode 100755
new mode 100644
index 237a7d774..777976f78
--- a/internal/sdk/pkg/models/shared/sourcepokeapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepokeapicreaterequest.go
@@ -9,3 +9,31 @@ type SourcePokeapiCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePokeapiCreateRequest) GetConfiguration() SourcePokeapi {
+ if o == nil {
+ return SourcePokeapi{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePokeapiCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePokeapiCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePokeapiCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepokeapiputrequest.go b/internal/sdk/pkg/models/shared/sourcepokeapiputrequest.go
old mode 100755
new mode 100644
index da456e002..12ab195ec
--- a/internal/sdk/pkg/models/shared/sourcepokeapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepokeapiputrequest.go
@@ -7,3 +7,24 @@ type SourcePokeapiPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePokeapiPutRequest) GetConfiguration() SourcePokeapiUpdate {
+ if o == nil {
+ return SourcePokeapiUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePokeapiPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePokeapiPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepokeapiupdate.go b/internal/sdk/pkg/models/shared/sourcepokeapiupdate.go
old mode 100755
new mode 100644
index 099347fe4..ef6c42c32
--- a/internal/sdk/pkg/models/shared/sourcepokeapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepokeapiupdate.go
@@ -6,3 +6,10 @@ type SourcePokeapiUpdate struct {
// Pokemon requested from the API.
PokemonName string `json:"pokemon_name"`
}
+
+func (o *SourcePokeapiUpdate) GetPokemonName() string {
+ if o == nil {
+ return ""
+ }
+ return o.PokemonName
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepolygonstockapi.go b/internal/sdk/pkg/models/shared/sourcepolygonstockapi.go
old mode 100755
new mode 100644
index e34a99f25..547947c18
--- a/internal/sdk/pkg/models/shared/sourcepolygonstockapi.go
+++ b/internal/sdk/pkg/models/shared/sourcepolygonstockapi.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -45,7 +46,7 @@ type SourcePolygonStockAPI struct {
Multiplier int64 `json:"multiplier"`
// Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top).
Sort *string `json:"sort,omitempty"`
- SourceType SourcePolygonStockAPIPolygonStockAPI `json:"sourceType"`
+ sourceType SourcePolygonStockAPIPolygonStockAPI `const:"polygon-stock-api" json:"sourceType"`
// The beginning date for the aggregate window.
StartDate types.Date `json:"start_date"`
// The exchange symbol that this item is traded under.
@@ -53,3 +54,81 @@ type SourcePolygonStockAPI struct {
// The size of the time window.
Timespan string `json:"timespan"`
}
+
+func (s SourcePolygonStockAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePolygonStockAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePolygonStockAPI) GetAdjusted() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Adjusted
+}
+
+func (o *SourcePolygonStockAPI) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePolygonStockAPI) GetEndDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.EndDate
+}
+
+func (o *SourcePolygonStockAPI) GetLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *SourcePolygonStockAPI) GetMultiplier() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Multiplier
+}
+
+func (o *SourcePolygonStockAPI) GetSort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
+
+func (o *SourcePolygonStockAPI) GetSourceType() SourcePolygonStockAPIPolygonStockAPI {
+ return SourcePolygonStockAPIPolygonStockAPIPolygonStockAPI
+}
+
+func (o *SourcePolygonStockAPI) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePolygonStockAPI) GetStocksTicker() string {
+ if o == nil {
+ return ""
+ }
+ return o.StocksTicker
+}
+
+func (o *SourcePolygonStockAPI) GetTimespan() string {
+ if o == nil {
+ return ""
+ }
+ return o.Timespan
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepolygonstockapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcepolygonstockapicreaterequest.go
old mode 100755
new mode 100644
index 263a4f147..cdf2ce1bb
--- a/internal/sdk/pkg/models/shared/sourcepolygonstockapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepolygonstockapicreaterequest.go
@@ -9,3 +9,31 @@ type SourcePolygonStockAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePolygonStockAPICreateRequest) GetConfiguration() SourcePolygonStockAPI {
+ if o == nil {
+ return SourcePolygonStockAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePolygonStockAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePolygonStockAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePolygonStockAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepolygonstockapiputrequest.go b/internal/sdk/pkg/models/shared/sourcepolygonstockapiputrequest.go
old mode 100755
new mode 100644
index e51fab723..ff80c490a
--- a/internal/sdk/pkg/models/shared/sourcepolygonstockapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepolygonstockapiputrequest.go
@@ -7,3 +7,24 @@ type SourcePolygonStockAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePolygonStockAPIPutRequest) GetConfiguration() SourcePolygonStockAPIUpdate {
+ if o == nil {
+ return SourcePolygonStockAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePolygonStockAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePolygonStockAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepolygonstockapiupdate.go b/internal/sdk/pkg/models/shared/sourcepolygonstockapiupdate.go
old mode 100755
new mode 100644
index 1181094ae..855de8e41
--- a/internal/sdk/pkg/models/shared/sourcepolygonstockapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepolygonstockapiupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourcePolygonStockAPIUpdate struct {
@@ -26,3 +27,77 @@ type SourcePolygonStockAPIUpdate struct {
// The size of the time window.
Timespan string `json:"timespan"`
}
+
+func (s SourcePolygonStockAPIUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePolygonStockAPIUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetAdjusted() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Adjusted
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetEndDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.EndDate
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetLimit() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Limit
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetMultiplier() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.Multiplier
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetSort() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Sort
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetStocksTicker() string {
+ if o == nil {
+ return ""
+ }
+ return o.StocksTicker
+}
+
+func (o *SourcePolygonStockAPIUpdate) GetTimespan() string {
+ if o == nil {
+ return ""
+ }
+ return o.Timespan
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostgres.go b/internal/sdk/pkg/models/shared/sourcepostgres.go
old mode 100755
new mode 100644
index 6b4574ec4..7f7cc0697
--- a/internal/sdk/pkg/models/shared/sourcepostgres.go
+++ b/internal/sdk/pkg/models/shared/sourcepostgres.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethod) Unmar
// SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"Standard" json:"method"`
+}
+
+func (s SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourcePostgresUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
type SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod string
@@ -64,7 +79,22 @@ func (e *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod) Unma
// SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn - Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.
type SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn struct {
- Method SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod `json:"method"`
+ method SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod `const:"Xmin" json:"method"`
+}
+
+func (s SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn) GetMethod() SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethod {
+ return SourcePostgresUpdateMethodDetectChangesWithXminSystemColumnMethodXmin
}
// SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour - Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
@@ -146,71 +176,84 @@ func (e *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin) Unmar
// SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.
type SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
// Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
- LsnCommitBehaviour *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour `json:"lsn_commit_behaviour,omitempty"`
- Method SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCMethod `json:"method"`
+ LsnCommitBehaviour *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour `default:"After loading Data in the destination" json:"lsn_commit_behaviour"`
+ method SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCMethod `const:"CDC" json:"method"`
// A logical decoding plugin installed on the PostgreSQL server.
- Plugin *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin `json:"plugin,omitempty"`
+ Plugin *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin `default:"pgoutput" json:"plugin"`
// A Postgres publication used for consuming changes. Read about publications and replication identities.
Publication string `json:"publication"`
// The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful.
- QueueSize *int64 `json:"queue_size,omitempty"`
+ QueueSize *int64 `default:"10000" json:"queue_size"`
// A plugin logical replication slot. Read about replication slots.
ReplicationSlot string `json:"replication_slot"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC
-func (c *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC{}
+func (s SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC(data)
+ return nil
+}
- additionalFields := make(map[string]interface{})
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "initial_waiting_seconds")
- delete(additionalFields, "lsn_commit_behaviour")
- delete(additionalFields, "method")
- delete(additionalFields, "plugin")
- delete(additionalFields, "publication")
- delete(additionalFields, "queue_size")
- delete(additionalFields, "replication_slot")
+ return o.InitialWaitingSeconds
+}
- c.AdditionalProperties = additionalFields
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetLsnCommitBehaviour() *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour {
+ if o == nil {
+ return nil
+ }
+ return o.LsnCommitBehaviour
+}
- return nil
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetMethod() SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCMethod {
+ return SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCMethodCdc
}
-func (c SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetPlugin() *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin {
+ if o == nil {
+ return nil
}
+ return o.Plugin
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetPublication() string {
+ if o == nil {
+ return ""
}
+ return o.Publication
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetQueueSize() *int64 {
+ if o == nil {
+ return nil
}
+ return o.QueueSize
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC) GetReplicationSlot() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.ReplicationSlot
}
type SourcePostgresUpdateMethodType string
@@ -257,30 +300,23 @@ func CreateSourcePostgresUpdateMethodSourcePostgresUpdateMethodScanChangesWithUs
}
func (u *SourcePostgresUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn := new(SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn, "", true, true); err == nil {
u.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn = sourcePostgresUpdateMethodDetectChangesWithXminSystemColumn
u.Type = SourcePostgresUpdateMethodTypeSourcePostgresUpdateMethodDetectChangesWithXminSystemColumn
return nil
}
sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor := new(SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor = sourcePostgresUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourcePostgresUpdateMethodTypeSourcePostgresUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC := new(SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC, "", true, true); err == nil {
u.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC = sourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC
u.Type = SourcePostgresUpdateMethodTypeSourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC
return nil
@@ -290,19 +326,19 @@ func (u *SourcePostgresUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourcePostgresUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn != nil {
- return json.Marshal(u.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn)
+ if u.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC, "", true)
}
- if u.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateMethodDetectChangesWithXminSystemColumn, "", true)
}
- if u.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
- return json.Marshal(u.SourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC)
+ if u.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePostgresPostgres string
@@ -355,6 +391,7 @@ func (e *SourcePostgresSSLModesVerifyFullMode) UnmarshalJSON(data []byte) error
// SourcePostgresSSLModesVerifyFull - This is the most secure mode. Always require encryption and verifies the identity of the source database server.
type SourcePostgresSSLModesVerifyFull struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -363,57 +400,57 @@ type SourcePostgresSSLModesVerifyFull struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourcePostgresSSLModesVerifyFullMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourcePostgresSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
}
-type _SourcePostgresSSLModesVerifyFull SourcePostgresSSLModesVerifyFull
-func (c *SourcePostgresSSLModesVerifyFull) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesVerifyFull{}
+func (s SourcePostgresSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresSSLModesVerifyFull(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresSSLModesVerifyFull) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourcePostgresSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesVerifyFull(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyFull) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyFull) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesVerifyFull) GetMode() SourcePostgresSSLModesVerifyFullMode {
+ return SourcePostgresSSLModesVerifyFullModeVerifyFull
}
type SourcePostgresSSLModesVerifyCaMode string
@@ -442,6 +479,7 @@ func (e *SourcePostgresSSLModesVerifyCaMode) UnmarshalJSON(data []byte) error {
// SourcePostgresSSLModesVerifyCa - Always require encryption and verifies that the source database server has a valid SSL certificate.
type SourcePostgresSSLModesVerifyCa struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -450,57 +488,57 @@ type SourcePostgresSSLModesVerifyCa struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourcePostgresSSLModesVerifyCaMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourcePostgresSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
}
-type _SourcePostgresSSLModesVerifyCa SourcePostgresSSLModesVerifyCa
-func (c *SourcePostgresSSLModesVerifyCa) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesVerifyCa{}
+func (s SourcePostgresSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresSSLModesVerifyCa(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresSSLModesVerifyCa) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourcePostgresSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesVerifyCa(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyCa) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyCa) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesVerifyCa) GetMode() SourcePostgresSSLModesVerifyCaMode {
+ return SourcePostgresSSLModesVerifyCaModeVerifyCa
}
type SourcePostgresSSLModesRequireMode string
@@ -529,53 +567,30 @@ func (e *SourcePostgresSSLModesRequireMode) UnmarshalJSON(data []byte) error {
// SourcePostgresSSLModesRequire - Always require encryption. If the source database server does not support encryption, connection will fail.
type SourcePostgresSSLModesRequire struct {
- Mode SourcePostgresSSLModesRequireMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresSSLModesRequireMode `const:"require" json:"mode"`
}
-type _SourcePostgresSSLModesRequire SourcePostgresSSLModesRequire
-
-func (c *SourcePostgresSSLModesRequire) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesRequire{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresSSLModesRequire(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresSSLModesRequire) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesRequire(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesRequire) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesRequire) GetMode() SourcePostgresSSLModesRequireMode {
+ return SourcePostgresSSLModesRequireModeRequire
}
type SourcePostgresSSLModesPreferMode string
@@ -604,53 +619,30 @@ func (e *SourcePostgresSSLModesPreferMode) UnmarshalJSON(data []byte) error {
// SourcePostgresSSLModesPrefer - Allows unencrypted connection only if the source database does not support encryption.
type SourcePostgresSSLModesPrefer struct {
- Mode SourcePostgresSSLModesPreferMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresSSLModesPreferMode `const:"prefer" json:"mode"`
}
-type _SourcePostgresSSLModesPrefer SourcePostgresSSLModesPrefer
-
-func (c *SourcePostgresSSLModesPrefer) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesPrefer{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresSSLModesPrefer(data)
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresSSLModesPrefer) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesPrefer(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesPrefer) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesPrefer) GetMode() SourcePostgresSSLModesPreferMode {
+ return SourcePostgresSSLModesPreferModePrefer
}
type SourcePostgresSSLModesAllowMode string
@@ -679,53 +671,30 @@ func (e *SourcePostgresSSLModesAllowMode) UnmarshalJSON(data []byte) error {
// SourcePostgresSSLModesAllow - Enables encryption only when required by the source database.
type SourcePostgresSSLModesAllow struct {
- Mode SourcePostgresSSLModesAllowMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresSSLModesAllowMode `const:"allow" json:"mode"`
}
-type _SourcePostgresSSLModesAllow SourcePostgresSSLModesAllow
-
-func (c *SourcePostgresSSLModesAllow) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesAllow{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresSSLModesAllow(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresSSLModesAllow) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesAllow(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesAllow) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesAllow) GetMode() SourcePostgresSSLModesAllowMode {
+ return SourcePostgresSSLModesAllowModeAllow
}
type SourcePostgresSSLModesDisableMode string
@@ -754,53 +723,30 @@ func (e *SourcePostgresSSLModesDisableMode) UnmarshalJSON(data []byte) error {
// SourcePostgresSSLModesDisable - Disables encryption of communication between Airbyte and source database.
type SourcePostgresSSLModesDisable struct {
- Mode SourcePostgresSSLModesDisableMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresSSLModesDisableMode `const:"disable" json:"mode"`
}
-type _SourcePostgresSSLModesDisable SourcePostgresSSLModesDisable
-func (c *SourcePostgresSSLModesDisable) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresSSLModesDisable{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresSSLModesDisable(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresSSLModesDisable) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresSSLModesDisable(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresSSLModesDisable) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresSSLModesDisable) GetMode() SourcePostgresSSLModesDisableMode {
+ return SourcePostgresSSLModesDisableModeDisable
}
type SourcePostgresSSLModesType string
@@ -880,57 +826,44 @@ func CreateSourcePostgresSSLModesSourcePostgresSSLModesVerifyFull(sourcePostgres
}
func (u *SourcePostgresSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresSSLModesDisable := new(SourcePostgresSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesDisable, "", true, true); err == nil {
u.SourcePostgresSSLModesDisable = sourcePostgresSSLModesDisable
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesDisable
return nil
}
sourcePostgresSSLModesAllow := new(SourcePostgresSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesAllow, "", true, true); err == nil {
u.SourcePostgresSSLModesAllow = sourcePostgresSSLModesAllow
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesAllow
return nil
}
sourcePostgresSSLModesPrefer := new(SourcePostgresSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesPrefer, "", true, true); err == nil {
u.SourcePostgresSSLModesPrefer = sourcePostgresSSLModesPrefer
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesPrefer
return nil
}
sourcePostgresSSLModesRequire := new(SourcePostgresSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesRequire, "", true, true); err == nil {
u.SourcePostgresSSLModesRequire = sourcePostgresSSLModesRequire
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesRequire
return nil
}
sourcePostgresSSLModesVerifyCa := new(SourcePostgresSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesVerifyCa, "", true, true); err == nil {
u.SourcePostgresSSLModesVerifyCa = sourcePostgresSSLModesVerifyCa
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesVerifyCa
return nil
}
sourcePostgresSSLModesVerifyFull := new(SourcePostgresSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSLModesVerifyFull, "", true, true); err == nil {
u.SourcePostgresSSLModesVerifyFull = sourcePostgresSSLModesVerifyFull
u.Type = SourcePostgresSSLModesTypeSourcePostgresSSLModesVerifyFull
return nil
@@ -941,30 +874,30 @@ func (u *SourcePostgresSSLModes) UnmarshalJSON(data []byte) error {
func (u SourcePostgresSSLModes) MarshalJSON() ([]byte, error) {
if u.SourcePostgresSSLModesDisable != nil {
- return json.Marshal(u.SourcePostgresSSLModesDisable)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesDisable, "", true)
}
if u.SourcePostgresSSLModesAllow != nil {
- return json.Marshal(u.SourcePostgresSSLModesAllow)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesAllow, "", true)
}
if u.SourcePostgresSSLModesPrefer != nil {
- return json.Marshal(u.SourcePostgresSSLModesPrefer)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesPrefer, "", true)
}
if u.SourcePostgresSSLModesRequire != nil {
- return json.Marshal(u.SourcePostgresSSLModesRequire)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesRequire, "", true)
}
if u.SourcePostgresSSLModesVerifyCa != nil {
- return json.Marshal(u.SourcePostgresSSLModesVerifyCa)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesVerifyCa, "", true)
}
if u.SourcePostgresSSLModesVerifyFull != nil {
- return json.Marshal(u.SourcePostgresSSLModesVerifyFull)
+ return utils.MarshalJSON(u.SourcePostgresSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -997,15 +930,58 @@ type SourcePostgresSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourcePostgresSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourcePostgresSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourcePostgresSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourcePostgresSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourcePostgresSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourcePostgresSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -1038,13 +1014,56 @@ type SourcePostgresSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourcePostgresSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourcePostgresSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourcePostgresSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod string
@@ -1073,7 +1092,22 @@ func (e *SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(data [
// SourcePostgresSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourcePostgresSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourcePostgresSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresSSHTunnelMethodNoTunnel) GetTunnelMethod() SourcePostgresSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourcePostgresSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourcePostgresSSHTunnelMethodType string
@@ -1120,30 +1154,23 @@ func CreateSourcePostgresSSHTunnelMethodSourcePostgresSSHTunnelMethodPasswordAut
}
func (u *SourcePostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresSSHTunnelMethodNoTunnel := new(SourcePostgresSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourcePostgresSSHTunnelMethodNoTunnel = sourcePostgresSSHTunnelMethodNoTunnel
u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHTunnelMethodNoTunnel
return nil
}
sourcePostgresSSHTunnelMethodSSHKeyAuthentication := new(SourcePostgresSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourcePostgresSSHTunnelMethodSSHKeyAuthentication = sourcePostgresSSHTunnelMethodSSHKeyAuthentication
u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourcePostgresSSHTunnelMethodPasswordAuthentication := new(SourcePostgresSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourcePostgresSSHTunnelMethodPasswordAuthentication = sourcePostgresSSHTunnelMethodPasswordAuthentication
u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHTunnelMethodPasswordAuthentication
return nil
@@ -1154,18 +1181,18 @@ func (u *SourcePostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourcePostgresSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourcePostgresSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourcePostgresSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourcePostgresSSHTunnelMethodNoTunnel, "", true)
}
if u.SourcePostgresSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourcePostgresSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourcePostgresSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourcePostgresSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourcePostgresSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourcePostgresSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePostgres struct {
@@ -1178,12 +1205,12 @@ type SourcePostgres struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// Configures how data is extracted from the database.
ReplicationMethod *SourcePostgresUpdateMethod `json:"replication_method,omitempty"`
// The list of schemas (case sensitive) to sync from. Defaults to public.
Schemas []string `json:"schemas,omitempty"`
- SourceType SourcePostgresPostgres `json:"sourceType"`
+ sourceType SourcePostgresPostgres `const:"postgres" json:"sourceType"`
// SSL connection modes.
// Read more in the docs.
SslMode *SourcePostgresSSLModes `json:"ssl_mode,omitempty"`
@@ -1192,3 +1219,88 @@ type SourcePostgres struct {
// Username to access the database.
Username string `json:"username"`
}
+
+func (s SourcePostgres) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgres) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgres) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourcePostgres) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourcePostgres) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourcePostgres) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourcePostgres) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourcePostgres) GetReplicationMethod() *SourcePostgresUpdateMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourcePostgres) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourcePostgres) GetSourceType() SourcePostgresPostgres {
+ return SourcePostgresPostgresPostgres
+}
+
+func (o *SourcePostgres) GetSslMode() *SourcePostgresSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourcePostgres) GetTunnelMethod() *SourcePostgresSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourcePostgres) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostgrescreaterequest.go b/internal/sdk/pkg/models/shared/sourcepostgrescreaterequest.go
old mode 100755
new mode 100644
index 66652e543..e10158ebc
--- a/internal/sdk/pkg/models/shared/sourcepostgrescreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepostgrescreaterequest.go
@@ -9,3 +9,31 @@ type SourcePostgresCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePostgresCreateRequest) GetConfiguration() SourcePostgres {
+ if o == nil {
+ return SourcePostgres{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePostgresCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePostgresCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePostgresCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostgresputrequest.go b/internal/sdk/pkg/models/shared/sourcepostgresputrequest.go
old mode 100755
new mode 100644
index da9770541..19debc1b4
--- a/internal/sdk/pkg/models/shared/sourcepostgresputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepostgresputrequest.go
@@ -7,3 +7,24 @@ type SourcePostgresPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePostgresPutRequest) GetConfiguration() SourcePostgresUpdate {
+ if o == nil {
+ return SourcePostgresUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePostgresPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePostgresPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostgresupdate.go b/internal/sdk/pkg/models/shared/sourcepostgresupdate.go
old mode 100755
new mode 100644
index e7f92d960..9ca1d864c
--- a/internal/sdk/pkg/models/shared/sourcepostgresupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepostgresupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod)
// SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor - Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at).
type SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor struct {
- Method SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `json:"method"`
+ method SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod `const:"Standard" json:"method"`
+}
+
+func (s SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor) GetMethod() SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethod {
+ return SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursorMethodStandard
}
type SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod string
@@ -64,7 +79,22 @@ func (e *SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod
// SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn - Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Only recommended for tables up to 500GB.
type SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn struct {
- Method SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod `json:"method"`
+ method SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod `const:"Xmin" json:"method"`
+}
+
+func (s SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn) GetMethod() SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethod {
+ return SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumnMethodXmin
}
// SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour - Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
@@ -146,71 +176,84 @@ func (e *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin)
// SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC - Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.
type SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. Read about initial waiting time.
- InitialWaitingSeconds *int64 `json:"initial_waiting_seconds,omitempty"`
+ InitialWaitingSeconds *int64 `default:"300" json:"initial_waiting_seconds"`
// Determines when Airbtye should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync.
- LsnCommitBehaviour *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour `json:"lsn_commit_behaviour,omitempty"`
- Method SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCMethod `json:"method"`
+ LsnCommitBehaviour *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour `default:"After loading Data in the destination" json:"lsn_commit_behaviour"`
+ method SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCMethod `const:"CDC" json:"method"`
// A logical decoding plugin installed on the PostgreSQL server.
- Plugin *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin `json:"plugin,omitempty"`
+ Plugin *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin `default:"pgoutput" json:"plugin"`
// A Postgres publication used for consuming changes. Read about publications and replication identities.
Publication string `json:"publication"`
// The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful.
- QueueSize *int64 `json:"queue_size,omitempty"`
+ QueueSize *int64 `default:"10000" json:"queue_size"`
// A plugin logical replication slot. Read about replication slots.
ReplicationSlot string `json:"replication_slot"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC
-func (c *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC{}
+func (s SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC(data)
+ return nil
+}
- additionalFields := make(map[string]interface{})
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetInitialWaitingSeconds() *int64 {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "initial_waiting_seconds")
- delete(additionalFields, "lsn_commit_behaviour")
- delete(additionalFields, "method")
- delete(additionalFields, "plugin")
- delete(additionalFields, "publication")
- delete(additionalFields, "queue_size")
- delete(additionalFields, "replication_slot")
+ return o.InitialWaitingSeconds
+}
- c.AdditionalProperties = additionalFields
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetLsnCommitBehaviour() *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCLSNCommitBehaviour {
+ if o == nil {
+ return nil
+ }
+ return o.LsnCommitBehaviour
+}
- return nil
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetMethod() SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCMethod {
+ return SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCMethodCdc
}
-func (c SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetPlugin() *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDCPlugin {
+ if o == nil {
+ return nil
}
+ return o.Plugin
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetPublication() string {
+ if o == nil {
+ return ""
}
+ return o.Publication
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetQueueSize() *int64 {
+ if o == nil {
+ return nil
}
+ return o.QueueSize
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC) GetReplicationSlot() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.ReplicationSlot
}
type SourcePostgresUpdateUpdateMethodType string
@@ -257,30 +300,23 @@ func CreateSourcePostgresUpdateUpdateMethodSourcePostgresUpdateUpdateMethodScanC
}
func (u *SourcePostgresUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn := new(SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn, "", true, true); err == nil {
u.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn = sourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn
u.Type = SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn
return nil
}
sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor := new(SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true, true); err == nil {
u.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor = sourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor
u.Type = SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor
return nil
}
sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC := new(SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC, "", true, true); err == nil {
u.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC = sourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC
u.Type = SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC
return nil
@@ -290,19 +326,19 @@ func (u *SourcePostgresUpdateUpdateMethod) UnmarshalJSON(data []byte) error {
}
func (u SourcePostgresUpdateUpdateMethod) MarshalJSON() ([]byte, error) {
- if u.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn != nil {
- return json.Marshal(u.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn)
+ if u.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC, "", true)
}
- if u.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
- return json.Marshal(u.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor)
+ if u.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn, "", true)
}
- if u.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC != nil {
- return json.Marshal(u.SourcePostgresUpdateUpdateMethodReadChangesUsingWriteAheadLogCDC)
+ if u.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor != nil {
+ return utils.MarshalJSON(u.SourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePostgresUpdateSSLModesVerifyFullMode string
@@ -331,6 +367,7 @@ func (e *SourcePostgresUpdateSSLModesVerifyFullMode) UnmarshalJSON(data []byte)
// SourcePostgresUpdateSSLModesVerifyFull - This is the most secure mode. Always require encryption and verifies the identity of the source database server.
type SourcePostgresUpdateSSLModesVerifyFull struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -339,57 +376,57 @@ type SourcePostgresUpdateSSLModesVerifyFull struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourcePostgresUpdateSSLModesVerifyFullMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourcePostgresUpdateSSLModesVerifyFullMode `const:"verify-full" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesVerifyFull SourcePostgresUpdateSSLModesVerifyFull
-func (c *SourcePostgresUpdateSSLModesVerifyFull) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesVerifyFull{}
+func (s SourcePostgresUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresUpdateSSLModesVerifyFull) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresUpdateSSLModesVerifyFull(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourcePostgresUpdateSSLModesVerifyFull) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesVerifyFull(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesVerifyFull) GetMode() SourcePostgresUpdateSSLModesVerifyFullMode {
+ return SourcePostgresUpdateSSLModesVerifyFullModeVerifyFull
}
type SourcePostgresUpdateSSLModesVerifyCaMode string
@@ -418,6 +455,7 @@ func (e *SourcePostgresUpdateSSLModesVerifyCaMode) UnmarshalJSON(data []byte) er
// SourcePostgresUpdateSSLModesVerifyCa - Always require encryption and verifies that the source database server has a valid SSL certificate.
type SourcePostgresUpdateSSLModesVerifyCa struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// CA certificate
CaCertificate string `json:"ca_certificate"`
// Client certificate
@@ -426,57 +464,57 @@ type SourcePostgresUpdateSSLModesVerifyCa struct {
ClientKey *string `json:"client_key,omitempty"`
// Password for keystorage. If you do not add it - the password will be generated automatically.
ClientKeyPassword *string `json:"client_key_password,omitempty"`
- Mode SourcePostgresUpdateSSLModesVerifyCaMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ mode SourcePostgresUpdateSSLModesVerifyCaMode `const:"verify-ca" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesVerifyCa SourcePostgresUpdateSSLModesVerifyCa
-func (c *SourcePostgresUpdateSSLModesVerifyCa) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesVerifyCa{}
+func (s SourcePostgresUpdateSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &data); err != nil {
+func (s *SourcePostgresUpdateSSLModesVerifyCa) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- *c = SourcePostgresUpdateSSLModesVerifyCa(data)
-
- additionalFields := make(map[string]interface{})
+ return nil
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
- return err
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
- delete(additionalFields, "ca_certificate")
- delete(additionalFields, "client_certificate")
- delete(additionalFields, "client_key")
- delete(additionalFields, "client_key_password")
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
- return nil
+ return o.AdditionalProperties
}
-func (c SourcePostgresUpdateSSLModesVerifyCa) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesVerifyCa(c))
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetCaCertificate() string {
+ if o == nil {
+ return ""
}
+ return o.CaCertificate
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetClientCertificate() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientCertificate
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetClientKey() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKey
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetClientKeyPassword() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientKeyPassword
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesVerifyCa) GetMode() SourcePostgresUpdateSSLModesVerifyCaMode {
+ return SourcePostgresUpdateSSLModesVerifyCaModeVerifyCa
}
type SourcePostgresUpdateSSLModesRequireMode string
@@ -505,53 +543,30 @@ func (e *SourcePostgresUpdateSSLModesRequireMode) UnmarshalJSON(data []byte) err
// SourcePostgresUpdateSSLModesRequire - Always require encryption. If the source database server does not support encryption, connection will fail.
type SourcePostgresUpdateSSLModesRequire struct {
- Mode SourcePostgresUpdateSSLModesRequireMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresUpdateSSLModesRequireMode `const:"require" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesRequire SourcePostgresUpdateSSLModesRequire
-
-func (c *SourcePostgresUpdateSSLModesRequire) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesRequire{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresUpdateSSLModesRequire(data)
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresUpdateSSLModesRequire) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresUpdateSSLModesRequire) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresUpdateSSLModesRequire) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesRequire(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesRequire) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesRequire) GetMode() SourcePostgresUpdateSSLModesRequireMode {
+ return SourcePostgresUpdateSSLModesRequireModeRequire
}
type SourcePostgresUpdateSSLModesPreferMode string
@@ -580,53 +595,30 @@ func (e *SourcePostgresUpdateSSLModesPreferMode) UnmarshalJSON(data []byte) erro
// SourcePostgresUpdateSSLModesPrefer - Allows unencrypted connection only if the source database does not support encryption.
type SourcePostgresUpdateSSLModesPrefer struct {
- Mode SourcePostgresUpdateSSLModesPreferMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresUpdateSSLModesPreferMode `const:"prefer" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesPrefer SourcePostgresUpdateSSLModesPrefer
-
-func (c *SourcePostgresUpdateSSLModesPrefer) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesPrefer{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresUpdateSSLModesPrefer(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresUpdateSSLModesPrefer) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresUpdateSSLModesPrefer) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresUpdateSSLModesPrefer) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesPrefer(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesPrefer) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesPrefer) GetMode() SourcePostgresUpdateSSLModesPreferMode {
+ return SourcePostgresUpdateSSLModesPreferModePrefer
}
type SourcePostgresUpdateSSLModesAllowMode string
@@ -655,53 +647,30 @@ func (e *SourcePostgresUpdateSSLModesAllowMode) UnmarshalJSON(data []byte) error
// SourcePostgresUpdateSSLModesAllow - Enables encryption only when required by the source database.
type SourcePostgresUpdateSSLModesAllow struct {
- Mode SourcePostgresUpdateSSLModesAllowMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresUpdateSSLModesAllowMode `const:"allow" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesAllow SourcePostgresUpdateSSLModesAllow
-func (c *SourcePostgresUpdateSSLModesAllow) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesAllow{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresUpdateSSLModesAllow(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresUpdateSSLModesAllow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresUpdateSSLModesAllow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresUpdateSSLModesAllow) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesAllow(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesAllow) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesAllow) GetMode() SourcePostgresUpdateSSLModesAllowMode {
+ return SourcePostgresUpdateSSLModesAllowModeAllow
}
type SourcePostgresUpdateSSLModesDisableMode string
@@ -730,53 +699,30 @@ func (e *SourcePostgresUpdateSSLModesDisableMode) UnmarshalJSON(data []byte) err
// SourcePostgresUpdateSSLModesDisable - Disables encryption of communication between Airbyte and source database.
type SourcePostgresUpdateSSLModesDisable struct {
- Mode SourcePostgresUpdateSSLModesDisableMode `json:"mode"`
-
- AdditionalProperties interface{} `json:"-"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ mode SourcePostgresUpdateSSLModesDisableMode `const:"disable" json:"mode"`
}
-type _SourcePostgresUpdateSSLModesDisable SourcePostgresUpdateSSLModesDisable
-
-func (c *SourcePostgresUpdateSSLModesDisable) UnmarshalJSON(bs []byte) error {
- data := _SourcePostgresUpdateSSLModesDisable{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourcePostgresUpdateSSLModesDisable(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourcePostgresUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourcePostgresUpdateSSLModesDisable) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "mode")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourcePostgresUpdateSSLModesDisable) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourcePostgresUpdateSSLModesDisable(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourcePostgresUpdateSSLModesDisable) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- return json.Marshal(out)
+func (o *SourcePostgresUpdateSSLModesDisable) GetMode() SourcePostgresUpdateSSLModesDisableMode {
+ return SourcePostgresUpdateSSLModesDisableModeDisable
}
type SourcePostgresUpdateSSLModesType string
@@ -856,57 +802,44 @@ func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateSSLModesVerifyFull(so
}
func (u *SourcePostgresUpdateSSLModes) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresUpdateSSLModesDisable := new(SourcePostgresUpdateSSLModesDisable)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesDisable); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesDisable, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesDisable = sourcePostgresUpdateSSLModesDisable
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesDisable
return nil
}
sourcePostgresUpdateSSLModesAllow := new(SourcePostgresUpdateSSLModesAllow)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesAllow); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesAllow, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesAllow = sourcePostgresUpdateSSLModesAllow
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesAllow
return nil
}
sourcePostgresUpdateSSLModesPrefer := new(SourcePostgresUpdateSSLModesPrefer)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesPrefer); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesPrefer, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesPrefer = sourcePostgresUpdateSSLModesPrefer
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesPrefer
return nil
}
sourcePostgresUpdateSSLModesRequire := new(SourcePostgresUpdateSSLModesRequire)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesRequire); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesRequire, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesRequire = sourcePostgresUpdateSSLModesRequire
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesRequire
return nil
}
sourcePostgresUpdateSSLModesVerifyCa := new(SourcePostgresUpdateSSLModesVerifyCa)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesVerifyCa); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesVerifyCa, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesVerifyCa = sourcePostgresUpdateSSLModesVerifyCa
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesVerifyCa
return nil
}
sourcePostgresUpdateSSLModesVerifyFull := new(SourcePostgresUpdateSSLModesVerifyFull)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSLModesVerifyFull); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSLModesVerifyFull, "", true, true); err == nil {
u.SourcePostgresUpdateSSLModesVerifyFull = sourcePostgresUpdateSSLModesVerifyFull
u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateSSLModesVerifyFull
return nil
@@ -917,30 +850,30 @@ func (u *SourcePostgresUpdateSSLModes) UnmarshalJSON(data []byte) error {
func (u SourcePostgresUpdateSSLModes) MarshalJSON() ([]byte, error) {
if u.SourcePostgresUpdateSSLModesDisable != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesDisable)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesDisable, "", true)
}
if u.SourcePostgresUpdateSSLModesAllow != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesAllow)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesAllow, "", true)
}
if u.SourcePostgresUpdateSSLModesPrefer != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesPrefer)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesPrefer, "", true)
}
if u.SourcePostgresUpdateSSLModesRequire != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesRequire)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesRequire, "", true)
}
if u.SourcePostgresUpdateSSLModesVerifyCa != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesVerifyCa)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesVerifyCa, "", true)
}
if u.SourcePostgresUpdateSSLModesVerifyFull != nil {
- return json.Marshal(u.SourcePostgresUpdateSSLModesVerifyFull)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSLModesVerifyFull, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and password authentication
@@ -973,15 +906,58 @@ type SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and password authentication
- TunnelMethod SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod `const:"SSH_PASSWORD_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host
TunnelUser string `json:"tunnel_user"`
// OS-level password for logging into the jump server host
TunnelUserPassword string `json:"tunnel_user_password"`
}
+func (s SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelMethod() SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethod {
+ return SourcePostgresUpdateSSHTunnelMethodPasswordAuthenticationTunnelMethodSSHPasswordAuth
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication) GetTunnelUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUserPassword
+}
+
// SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod - Connect through a jump server tunnel host using username and ssh key
type SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod string
@@ -1014,13 +990,56 @@ type SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication struct {
// Hostname of the jump server host that allows inbound ssh tunnel.
TunnelHost string `json:"tunnel_host"`
// Connect through a jump server tunnel host using username and ssh key
- TunnelMethod SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod `const:"SSH_KEY_AUTH" json:"tunnel_method"`
// Port on the proxy/jump server that accepts inbound ssh connections.
- TunnelPort int64 `json:"tunnel_port"`
+ TunnelPort *int64 `default:"22" json:"tunnel_port"`
// OS-level username for logging into the jump server host.
TunnelUser string `json:"tunnel_user"`
}
+func (s SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SSHKey
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelHost
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelMethod() SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethod {
+ return SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthenticationTunnelMethodSSHKeyAuth
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelPort
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication) GetTunnelUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.TunnelUser
+}
+
// SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod - No ssh tunnel needed to connect to database
type SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod string
@@ -1049,7 +1068,22 @@ func (e *SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod) UnmarshalJSON(
// SourcePostgresUpdateSSHTunnelMethodNoTunnel - Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use.
type SourcePostgresUpdateSSHTunnelMethodNoTunnel struct {
// No ssh tunnel needed to connect to database
- TunnelMethod SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod `json:"tunnel_method"`
+ tunnelMethod SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod `const:"NO_TUNNEL" json:"tunnel_method"`
+}
+
+func (s SourcePostgresUpdateSSHTunnelMethodNoTunnel) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdateSSHTunnelMethodNoTunnel) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdateSSHTunnelMethodNoTunnel) GetTunnelMethod() SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethod {
+ return SourcePostgresUpdateSSHTunnelMethodNoTunnelTunnelMethodNoTunnel
}
type SourcePostgresUpdateSSHTunnelMethodType string
@@ -1096,30 +1130,23 @@ func CreateSourcePostgresUpdateSSHTunnelMethodSourcePostgresUpdateSSHTunnelMetho
}
func (u *SourcePostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourcePostgresUpdateSSHTunnelMethodNoTunnel := new(SourcePostgresUpdateSSHTunnelMethodNoTunnel)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSHTunnelMethodNoTunnel); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSHTunnelMethodNoTunnel, "", true, true); err == nil {
u.SourcePostgresUpdateSSHTunnelMethodNoTunnel = sourcePostgresUpdateSSHTunnelMethodNoTunnel
u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHTunnelMethodNoTunnel
return nil
}
sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication := new(SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication, "", true, true); err == nil {
u.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication = sourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication
u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication
return nil
}
sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication := new(SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication, "", true, true); err == nil {
u.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication = sourcePostgresUpdateSSHTunnelMethodPasswordAuthentication
u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHTunnelMethodPasswordAuthentication
return nil
@@ -1130,18 +1157,18 @@ func (u *SourcePostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error {
func (u SourcePostgresUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) {
if u.SourcePostgresUpdateSSHTunnelMethodNoTunnel != nil {
- return json.Marshal(u.SourcePostgresUpdateSSHTunnelMethodNoTunnel)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSHTunnelMethodNoTunnel, "", true)
}
if u.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication != nil {
- return json.Marshal(u.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication, "", true)
}
if u.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication != nil {
- return json.Marshal(u.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication)
+ return utils.MarshalJSON(u.SourcePostgresUpdateSSHTunnelMethodPasswordAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourcePostgresUpdate struct {
@@ -1154,7 +1181,7 @@ type SourcePostgresUpdate struct {
// Password associated with the username.
Password *string `json:"password,omitempty"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5432" json:"port"`
// Configures how data is extracted from the database.
ReplicationMethod *SourcePostgresUpdateUpdateMethod `json:"replication_method,omitempty"`
// The list of schemas (case sensitive) to sync from. Defaults to public.
@@ -1167,3 +1194,84 @@ type SourcePostgresUpdate struct {
// Username to access the database.
Username string `json:"username"`
}
+
+func (s SourcePostgresUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostgresUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostgresUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourcePostgresUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourcePostgresUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourcePostgresUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourcePostgresUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourcePostgresUpdate) GetReplicationMethod() *SourcePostgresUpdateUpdateMethod {
+ if o == nil {
+ return nil
+ }
+ return o.ReplicationMethod
+}
+
+func (o *SourcePostgresUpdate) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourcePostgresUpdate) GetSslMode() *SourcePostgresUpdateSSLModes {
+ if o == nil {
+ return nil
+ }
+ return o.SslMode
+}
+
+func (o *SourcePostgresUpdate) GetTunnelMethod() *SourcePostgresUpdateSSHTunnelMethod {
+ if o == nil {
+ return nil
+ }
+ return o.TunnelMethod
+}
+
+func (o *SourcePostgresUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceposthog.go b/internal/sdk/pkg/models/shared/sourceposthog.go
old mode 100755
new mode 100644
index 046b777cb..44fc95ac7
--- a/internal/sdk/pkg/models/shared/sourceposthog.go
+++ b/internal/sdk/pkg/models/shared/sourceposthog.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -36,10 +37,53 @@ type SourcePosthog struct {
// API Key. See the docs for information on how to generate this key.
APIKey string `json:"api_key"`
// Base PostHog url. Defaults to PostHog Cloud (https://app.posthog.com).
- BaseURL *string `json:"base_url,omitempty"`
+ BaseURL *string `default:"https://app.posthog.com" json:"base_url"`
// Set lower value in case of failing long running sync of events stream.
- EventsTimeStep *int64 `json:"events_time_step,omitempty"`
- SourceType SourcePosthogPosthog `json:"sourceType"`
+ EventsTimeStep *int64 `default:"30" json:"events_time_step"`
+ sourceType SourcePosthogPosthog `const:"posthog" json:"sourceType"`
// The date from which you'd like to replicate the data. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePosthog) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePosthog) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePosthog) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePosthog) GetBaseURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BaseURL
+}
+
+func (o *SourcePosthog) GetEventsTimeStep() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.EventsTimeStep
+}
+
+func (o *SourcePosthog) GetSourceType() SourcePosthogPosthog {
+ return SourcePosthogPosthogPosthog
+}
+
+func (o *SourcePosthog) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceposthogcreaterequest.go b/internal/sdk/pkg/models/shared/sourceposthogcreaterequest.go
old mode 100755
new mode 100644
index f81350aa4..af9d3af99
--- a/internal/sdk/pkg/models/shared/sourceposthogcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceposthogcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePosthogCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePosthogCreateRequest) GetConfiguration() SourcePosthog {
+ if o == nil {
+ return SourcePosthog{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePosthogCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePosthogCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePosthogCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceposthogputrequest.go b/internal/sdk/pkg/models/shared/sourceposthogputrequest.go
old mode 100755
new mode 100644
index 15e138a6d..6aea283a0
--- a/internal/sdk/pkg/models/shared/sourceposthogputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceposthogputrequest.go
@@ -7,3 +7,24 @@ type SourcePosthogPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePosthogPutRequest) GetConfiguration() SourcePosthogUpdate {
+ if o == nil {
+ return SourcePosthogUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePosthogPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePosthogPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceposthogupdate.go b/internal/sdk/pkg/models/shared/sourceposthogupdate.go
old mode 100755
new mode 100644
index e39684f56..5a3887d4e
--- a/internal/sdk/pkg/models/shared/sourceposthogupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceposthogupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -10,9 +11,48 @@ type SourcePosthogUpdate struct {
// API Key. See the docs for information on how to generate this key.
APIKey string `json:"api_key"`
// Base PostHog url. Defaults to PostHog Cloud (https://app.posthog.com).
- BaseURL *string `json:"base_url,omitempty"`
+ BaseURL *string `default:"https://app.posthog.com" json:"base_url"`
// Set lower value in case of failing long running sync of events stream.
- EventsTimeStep *int64 `json:"events_time_step,omitempty"`
+ EventsTimeStep *int64 `default:"30" json:"events_time_step"`
// The date from which you'd like to replicate the data. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourcePosthogUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePosthogUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePosthogUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourcePosthogUpdate) GetBaseURL() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BaseURL
+}
+
+func (o *SourcePosthogUpdate) GetEventsTimeStep() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.EventsTimeStep
+}
+
+func (o *SourcePosthogUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostmarkapp.go b/internal/sdk/pkg/models/shared/sourcepostmarkapp.go
old mode 100755
new mode 100644
index 0da75d7cf..d4e91ebb7
--- a/internal/sdk/pkg/models/shared/sourcepostmarkapp.go
+++ b/internal/sdk/pkg/models/shared/sourcepostmarkapp.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourcePostmarkapp struct {
XPostmarkAccountToken string `json:"X-Postmark-Account-Token"`
// API Key for server
XPostmarkServerToken string `json:"X-Postmark-Server-Token"`
- SourceType SourcePostmarkappPostmarkapp `json:"sourceType"`
+ sourceType SourcePostmarkappPostmarkapp `const:"postmarkapp" json:"sourceType"`
+}
+
+func (s SourcePostmarkapp) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePostmarkapp) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePostmarkapp) GetXPostmarkAccountToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.XPostmarkAccountToken
+}
+
+func (o *SourcePostmarkapp) GetXPostmarkServerToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.XPostmarkServerToken
+}
+
+func (o *SourcePostmarkapp) GetSourceType() SourcePostmarkappPostmarkapp {
+ return SourcePostmarkappPostmarkappPostmarkapp
}
diff --git a/internal/sdk/pkg/models/shared/sourcepostmarkappcreaterequest.go b/internal/sdk/pkg/models/shared/sourcepostmarkappcreaterequest.go
old mode 100755
new mode 100644
index ca07e6d63..69056fe1a
--- a/internal/sdk/pkg/models/shared/sourcepostmarkappcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepostmarkappcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePostmarkappCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePostmarkappCreateRequest) GetConfiguration() SourcePostmarkapp {
+ if o == nil {
+ return SourcePostmarkapp{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePostmarkappCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePostmarkappCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePostmarkappCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostmarkappputrequest.go b/internal/sdk/pkg/models/shared/sourcepostmarkappputrequest.go
old mode 100755
new mode 100644
index 64231efc3..44d083fe0
--- a/internal/sdk/pkg/models/shared/sourcepostmarkappputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepostmarkappputrequest.go
@@ -7,3 +7,24 @@ type SourcePostmarkappPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePostmarkappPutRequest) GetConfiguration() SourcePostmarkappUpdate {
+ if o == nil {
+ return SourcePostmarkappUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePostmarkappPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePostmarkappPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepostmarkappupdate.go b/internal/sdk/pkg/models/shared/sourcepostmarkappupdate.go
old mode 100755
new mode 100644
index 7ac0c52ec..f3ad6390e
--- a/internal/sdk/pkg/models/shared/sourcepostmarkappupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepostmarkappupdate.go
@@ -8,3 +8,17 @@ type SourcePostmarkappUpdate struct {
// API Key for server
XPostmarkServerToken string `json:"X-Postmark-Server-Token"`
}
+
+func (o *SourcePostmarkappUpdate) GetXPostmarkAccountToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.XPostmarkAccountToken
+}
+
+func (o *SourcePostmarkappUpdate) GetXPostmarkServerToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.XPostmarkServerToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourceprestashop.go b/internal/sdk/pkg/models/shared/sourceprestashop.go
old mode 100755
new mode 100644
index ad12a5922..e82f3ebed
--- a/internal/sdk/pkg/models/shared/sourceprestashop.go
+++ b/internal/sdk/pkg/models/shared/sourceprestashop.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,9 +36,45 @@ func (e *SourcePrestashopPrestashop) UnmarshalJSON(data []byte) error {
type SourcePrestashop struct {
// Your PrestaShop access key. See the docs for info on how to obtain this.
AccessKey string `json:"access_key"`
- SourceType SourcePrestashopPrestashop `json:"sourceType"`
+ sourceType SourcePrestashopPrestashop `const:"prestashop" json:"sourceType"`
// The Start date in the format YYYY-MM-DD.
StartDate types.Date `json:"start_date"`
// Shop URL without trailing slash.
URL string `json:"url"`
}
+
+func (s SourcePrestashop) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePrestashop) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePrestashop) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourcePrestashop) GetSourceType() SourcePrestashopPrestashop {
+ return SourcePrestashopPrestashopPrestashop
+}
+
+func (o *SourcePrestashop) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePrestashop) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourceprestashopcreaterequest.go b/internal/sdk/pkg/models/shared/sourceprestashopcreaterequest.go
old mode 100755
new mode 100644
index 01d769504..b0b942495
--- a/internal/sdk/pkg/models/shared/sourceprestashopcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceprestashopcreaterequest.go
@@ -9,3 +9,31 @@ type SourcePrestashopCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePrestashopCreateRequest) GetConfiguration() SourcePrestashop {
+ if o == nil {
+ return SourcePrestashop{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePrestashopCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePrestashopCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePrestashopCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceprestashopputrequest.go b/internal/sdk/pkg/models/shared/sourceprestashopputrequest.go
old mode 100755
new mode 100644
index 7a6f21106..97ed8d75c
--- a/internal/sdk/pkg/models/shared/sourceprestashopputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceprestashopputrequest.go
@@ -7,3 +7,24 @@ type SourcePrestashopPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePrestashopPutRequest) GetConfiguration() SourcePrestashopUpdate {
+ if o == nil {
+ return SourcePrestashopUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePrestashopPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePrestashopPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceprestashopupdate.go b/internal/sdk/pkg/models/shared/sourceprestashopupdate.go
old mode 100755
new mode 100644
index 3595f9806..b42954744
--- a/internal/sdk/pkg/models/shared/sourceprestashopupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceprestashopupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourcePrestashopUpdate struct {
@@ -14,3 +15,35 @@ type SourcePrestashopUpdate struct {
// Shop URL without trailing slash.
URL string `json:"url"`
}
+
+func (s SourcePrestashopUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePrestashopUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePrestashopUpdate) GetAccessKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessKey
+}
+
+func (o *SourcePrestashopUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
+
+func (o *SourcePrestashopUpdate) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepunkapi.go b/internal/sdk/pkg/models/shared/sourcepunkapi.go
old mode 100755
new mode 100644
index 84114ad5f..c49ba093e
--- a/internal/sdk/pkg/models/shared/sourcepunkapi.go
+++ b/internal/sdk/pkg/models/shared/sourcepunkapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourcePunkAPI struct {
BrewedBefore string `json:"brewed_before"`
// To extract specific data with Unique ID
ID *string `json:"id,omitempty"`
- SourceType SourcePunkAPIPunkAPI `json:"sourceType"`
+ sourceType SourcePunkAPIPunkAPI `const:"punk-api" json:"sourceType"`
+}
+
+func (s SourcePunkAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePunkAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePunkAPI) GetBrewedAfter() string {
+ if o == nil {
+ return ""
+ }
+ return o.BrewedAfter
+}
+
+func (o *SourcePunkAPI) GetBrewedBefore() string {
+ if o == nil {
+ return ""
+ }
+ return o.BrewedBefore
+}
+
+func (o *SourcePunkAPI) GetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ID
+}
+
+func (o *SourcePunkAPI) GetSourceType() SourcePunkAPIPunkAPI {
+ return SourcePunkAPIPunkAPIPunkAPI
}
diff --git a/internal/sdk/pkg/models/shared/sourcepunkapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcepunkapicreaterequest.go
old mode 100755
new mode 100644
index ed80da0ec..639b4e4fd
--- a/internal/sdk/pkg/models/shared/sourcepunkapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepunkapicreaterequest.go
@@ -9,3 +9,31 @@ type SourcePunkAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePunkAPICreateRequest) GetConfiguration() SourcePunkAPI {
+ if o == nil {
+ return SourcePunkAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePunkAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePunkAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePunkAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepunkapiputrequest.go b/internal/sdk/pkg/models/shared/sourcepunkapiputrequest.go
old mode 100755
new mode 100644
index b5154dbbf..bd53af290
--- a/internal/sdk/pkg/models/shared/sourcepunkapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepunkapiputrequest.go
@@ -7,3 +7,24 @@ type SourcePunkAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePunkAPIPutRequest) GetConfiguration() SourcePunkAPIUpdate {
+ if o == nil {
+ return SourcePunkAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePunkAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePunkAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepunkapiupdate.go b/internal/sdk/pkg/models/shared/sourcepunkapiupdate.go
old mode 100755
new mode 100644
index a14bdcef2..53f27ff93
--- a/internal/sdk/pkg/models/shared/sourcepunkapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepunkapiupdate.go
@@ -10,3 +10,24 @@ type SourcePunkAPIUpdate struct {
// To extract specific data with Unique ID
ID *string `json:"id,omitempty"`
}
+
+func (o *SourcePunkAPIUpdate) GetBrewedAfter() string {
+ if o == nil {
+ return ""
+ }
+ return o.BrewedAfter
+}
+
+func (o *SourcePunkAPIUpdate) GetBrewedBefore() string {
+ if o == nil {
+ return ""
+ }
+ return o.BrewedBefore
+}
+
+func (o *SourcePunkAPIUpdate) GetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceputrequest.go b/internal/sdk/pkg/models/shared/sourceputrequest.go
old mode 100755
new mode 100644
index 54a4812bb..2dea9aba0
--- a/internal/sdk/pkg/models/shared/sourceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceputrequest.go
@@ -7,3 +7,17 @@ type SourcePutRequest struct {
Configuration interface{} `json:"configuration"`
Name string `json:"name"`
}
+
+func (o *SourcePutRequest) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *SourcePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepypi.go b/internal/sdk/pkg/models/shared/sourcepypi.go
old mode 100755
new mode 100644
index af1806d02..17744ec4f
--- a/internal/sdk/pkg/models/shared/sourcepypi.go
+++ b/internal/sdk/pkg/models/shared/sourcepypi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,36 @@ func (e *SourcePypiPypi) UnmarshalJSON(data []byte) error {
type SourcePypi struct {
// Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package.
ProjectName string `json:"project_name"`
- SourceType SourcePypiPypi `json:"sourceType"`
+ sourceType SourcePypiPypi `const:"pypi" json:"sourceType"`
// Version of the project/package. Use it to find a particular release instead of all releases.
Version *string `json:"version,omitempty"`
}
+
+func (s SourcePypi) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourcePypi) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourcePypi) GetProjectName() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectName
+}
+
+func (o *SourcePypi) GetSourceType() SourcePypiPypi {
+ return SourcePypiPypiPypi
+}
+
+func (o *SourcePypi) GetVersion() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Version
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepypicreaterequest.go b/internal/sdk/pkg/models/shared/sourcepypicreaterequest.go
old mode 100755
new mode 100644
index 8837bcef8..9e0760b4b
--- a/internal/sdk/pkg/models/shared/sourcepypicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepypicreaterequest.go
@@ -9,3 +9,31 @@ type SourcePypiCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePypiCreateRequest) GetConfiguration() SourcePypi {
+ if o == nil {
+ return SourcePypi{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePypiCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePypiCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourcePypiCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepypiputrequest.go b/internal/sdk/pkg/models/shared/sourcepypiputrequest.go
old mode 100755
new mode 100644
index 840b09d13..8a2d50277
--- a/internal/sdk/pkg/models/shared/sourcepypiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcepypiputrequest.go
@@ -7,3 +7,24 @@ type SourcePypiPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourcePypiPutRequest) GetConfiguration() SourcePypiUpdate {
+ if o == nil {
+ return SourcePypiUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourcePypiPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourcePypiPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcepypiupdate.go b/internal/sdk/pkg/models/shared/sourcepypiupdate.go
old mode 100755
new mode 100644
index 45eb75656..38e72a9b4
--- a/internal/sdk/pkg/models/shared/sourcepypiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcepypiupdate.go
@@ -8,3 +8,17 @@ type SourcePypiUpdate struct {
// Version of the project/package. Use it to find a particular release instead of all releases.
Version *string `json:"version,omitempty"`
}
+
+func (o *SourcePypiUpdate) GetProjectName() string {
+ if o == nil {
+ return ""
+ }
+ return o.ProjectName
+}
+
+func (o *SourcePypiUpdate) GetVersion() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Version
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequalaroo.go b/internal/sdk/pkg/models/shared/sourcequalaroo.go
old mode 100755
new mode 100644
index 36ca0e94d..06eac0f16
--- a/internal/sdk/pkg/models/shared/sourcequalaroo.go
+++ b/internal/sdk/pkg/models/shared/sourcequalaroo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,7 +35,7 @@ func (e *SourceQualarooQualaroo) UnmarshalJSON(data []byte) error {
type SourceQualaroo struct {
// A Qualaroo token. See the docs for instructions on how to generate it.
Key string `json:"key"`
- SourceType SourceQualarooQualaroo `json:"sourceType"`
+ sourceType SourceQualarooQualaroo `const:"qualaroo" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
// IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated.
@@ -42,3 +43,46 @@ type SourceQualaroo struct {
// A Qualaroo token. See the docs for instructions on how to generate it.
Token string `json:"token"`
}
+
+func (s SourceQualaroo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceQualaroo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceQualaroo) GetKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Key
+}
+
+func (o *SourceQualaroo) GetSourceType() SourceQualarooQualaroo {
+ return SourceQualarooQualarooQualaroo
+}
+
+func (o *SourceQualaroo) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceQualaroo) GetSurveyIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyIds
+}
+
+func (o *SourceQualaroo) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequalaroocreaterequest.go b/internal/sdk/pkg/models/shared/sourcequalaroocreaterequest.go
old mode 100755
new mode 100644
index 658b2634d..5cac0884c
--- a/internal/sdk/pkg/models/shared/sourcequalaroocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcequalaroocreaterequest.go
@@ -9,3 +9,31 @@ type SourceQualarooCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceQualarooCreateRequest) GetConfiguration() SourceQualaroo {
+ if o == nil {
+ return SourceQualaroo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceQualarooCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceQualarooCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceQualarooCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequalarooputrequest.go b/internal/sdk/pkg/models/shared/sourcequalarooputrequest.go
old mode 100755
new mode 100644
index 344885d2f..e677639db
--- a/internal/sdk/pkg/models/shared/sourcequalarooputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcequalarooputrequest.go
@@ -7,3 +7,24 @@ type SourceQualarooPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceQualarooPutRequest) GetConfiguration() SourceQualarooUpdate {
+ if o == nil {
+ return SourceQualarooUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceQualarooPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceQualarooPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequalarooupdate.go b/internal/sdk/pkg/models/shared/sourcequalarooupdate.go
old mode 100755
new mode 100644
index 62f548ad8..1e7d97fc0
--- a/internal/sdk/pkg/models/shared/sourcequalarooupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcequalarooupdate.go
@@ -12,3 +12,31 @@ type SourceQualarooUpdate struct {
// A Qualaroo token. See the docs for instructions on how to generate it.
Token string `json:"token"`
}
+
+func (o *SourceQualarooUpdate) GetKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Key
+}
+
+func (o *SourceQualarooUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceQualarooUpdate) GetSurveyIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyIds
+}
+
+func (o *SourceQualarooUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequickbooks.go b/internal/sdk/pkg/models/shared/sourcequickbooks.go
old mode 100755
new mode 100644
index 9f82c3624..3c5628247
--- a/internal/sdk/pkg/models/shared/sourcequickbooks.go
+++ b/internal/sdk/pkg/models/shared/sourcequickbooks.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,7 @@ func (e *SourceQuickbooksAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data
type SourceQuickbooksAuthorizationMethodOAuth20 struct {
// Access token fot making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceQuickbooksAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceQuickbooksAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
ClientID string `json:"client_id"`
// Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
@@ -50,6 +50,63 @@ type SourceQuickbooksAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceQuickbooksAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceQuickbooksAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetAuthType() *SourceQuickbooksAuthorizationMethodOAuth20AuthType {
+ return SourceQuickbooksAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetRealmID() string {
+ if o == nil {
+ return ""
+ }
+ return o.RealmID
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceQuickbooksAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceQuickbooksAuthorizationMethodType string
const (
@@ -72,12 +129,9 @@ func CreateSourceQuickbooksAuthorizationMethodSourceQuickbooksAuthorizationMetho
}
func (u *SourceQuickbooksAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceQuickbooksAuthorizationMethodOAuth20 := new(SourceQuickbooksAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceQuickbooksAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceQuickbooksAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceQuickbooksAuthorizationMethodOAuth20 = sourceQuickbooksAuthorizationMethodOAuth20
u.Type = SourceQuickbooksAuthorizationMethodTypeSourceQuickbooksAuthorizationMethodOAuth20
return nil
@@ -88,10 +142,10 @@ func (u *SourceQuickbooksAuthorizationMethod) UnmarshalJSON(data []byte) error {
func (u SourceQuickbooksAuthorizationMethod) MarshalJSON() ([]byte, error) {
if u.SourceQuickbooksAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceQuickbooksAuthorizationMethodOAuth20)
+ return utils.MarshalJSON(u.SourceQuickbooksAuthorizationMethodOAuth20, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceQuickbooksQuickbooks string
@@ -121,8 +175,44 @@ func (e *SourceQuickbooksQuickbooks) UnmarshalJSON(data []byte) error {
type SourceQuickbooks struct {
Credentials SourceQuickbooksAuthorizationMethod `json:"credentials"`
// Determines whether to use the sandbox or production environment.
- Sandbox bool `json:"sandbox"`
- SourceType SourceQuickbooksQuickbooks `json:"sourceType"`
+ Sandbox *bool `default:"false" json:"sandbox"`
+ sourceType SourceQuickbooksQuickbooks `const:"quickbooks" json:"sourceType"`
// The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceQuickbooks) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceQuickbooks) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceQuickbooks) GetCredentials() SourceQuickbooksAuthorizationMethod {
+ if o == nil {
+ return SourceQuickbooksAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceQuickbooks) GetSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Sandbox
+}
+
+func (o *SourceQuickbooks) GetSourceType() SourceQuickbooksQuickbooks {
+ return SourceQuickbooksQuickbooksQuickbooks
+}
+
+func (o *SourceQuickbooks) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequickbookscreaterequest.go b/internal/sdk/pkg/models/shared/sourcequickbookscreaterequest.go
old mode 100755
new mode 100644
index 2c35859fb..b646b9924
--- a/internal/sdk/pkg/models/shared/sourcequickbookscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcequickbookscreaterequest.go
@@ -9,3 +9,31 @@ type SourceQuickbooksCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceQuickbooksCreateRequest) GetConfiguration() SourceQuickbooks {
+ if o == nil {
+ return SourceQuickbooks{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceQuickbooksCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceQuickbooksCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceQuickbooksCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequickbooksputrequest.go b/internal/sdk/pkg/models/shared/sourcequickbooksputrequest.go
old mode 100755
new mode 100644
index 9ec6dbcb4..a08467075
--- a/internal/sdk/pkg/models/shared/sourcequickbooksputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcequickbooksputrequest.go
@@ -7,3 +7,24 @@ type SourceQuickbooksPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceQuickbooksPutRequest) GetConfiguration() SourceQuickbooksUpdate {
+ if o == nil {
+ return SourceQuickbooksUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceQuickbooksPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceQuickbooksPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go b/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go
old mode 100755
new mode 100644
index 8b33845fb..f5d06d4ae
--- a/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,7 @@ func (e *SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON
type SourceQuickbooksUpdateAuthorizationMethodOAuth20 struct {
// Access token fot making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
ClientID string `json:"client_id"`
// Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production.
@@ -50,6 +50,63 @@ type SourceQuickbooksUpdateAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceQuickbooksUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceQuickbooksUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetAuthType() *SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceQuickbooksUpdateAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetRealmID() string {
+ if o == nil {
+ return ""
+ }
+ return o.RealmID
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceQuickbooksUpdateAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceQuickbooksUpdateAuthorizationMethodType string
const (
@@ -72,12 +129,9 @@ func CreateSourceQuickbooksUpdateAuthorizationMethodSourceQuickbooksUpdateAuthor
}
func (u *SourceQuickbooksUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceQuickbooksUpdateAuthorizationMethodOAuth20 := new(SourceQuickbooksUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceQuickbooksUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceQuickbooksUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceQuickbooksUpdateAuthorizationMethodOAuth20 = sourceQuickbooksUpdateAuthorizationMethodOAuth20
u.Type = SourceQuickbooksUpdateAuthorizationMethodTypeSourceQuickbooksUpdateAuthorizationMethodOAuth20
return nil
@@ -88,16 +142,48 @@ func (u *SourceQuickbooksUpdateAuthorizationMethod) UnmarshalJSON(data []byte) e
func (u SourceQuickbooksUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
if u.SourceQuickbooksUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceQuickbooksUpdateAuthorizationMethodOAuth20)
+ return utils.MarshalJSON(u.SourceQuickbooksUpdateAuthorizationMethodOAuth20, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceQuickbooksUpdate struct {
Credentials SourceQuickbooksUpdateAuthorizationMethod `json:"credentials"`
// Determines whether to use the sandbox or production environment.
- Sandbox bool `json:"sandbox"`
+ Sandbox *bool `default:"false" json:"sandbox"`
// The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceQuickbooksUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceQuickbooksUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceQuickbooksUpdate) GetCredentials() SourceQuickbooksUpdateAuthorizationMethod {
+ if o == nil {
+ return SourceQuickbooksUpdateAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceQuickbooksUpdate) GetSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Sandbox
+}
+
+func (o *SourceQuickbooksUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerailz.go b/internal/sdk/pkg/models/shared/sourcerailz.go
old mode 100755
new mode 100644
index a8f54aa97..ecf597490
--- a/internal/sdk/pkg/models/shared/sourcerailz.go
+++ b/internal/sdk/pkg/models/shared/sourcerailz.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,7 +37,43 @@ type SourceRailz struct {
ClientID string `json:"client_id"`
// Secret key (secret_key)
SecretKey string `json:"secret_key"`
- SourceType SourceRailzRailz `json:"sourceType"`
+ sourceType SourceRailzRailz `const:"railz" json:"sourceType"`
// Start date
StartDate string `json:"start_date"`
}
+
+func (s SourceRailz) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRailz) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRailz) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceRailz) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceRailz) GetSourceType() SourceRailzRailz {
+ return SourceRailzRailzRailz
+}
+
+func (o *SourceRailz) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerailzcreaterequest.go b/internal/sdk/pkg/models/shared/sourcerailzcreaterequest.go
old mode 100755
new mode 100644
index 09895d3d7..2a8721ced
--- a/internal/sdk/pkg/models/shared/sourcerailzcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerailzcreaterequest.go
@@ -9,3 +9,31 @@ type SourceRailzCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRailzCreateRequest) GetConfiguration() SourceRailz {
+ if o == nil {
+ return SourceRailz{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRailzCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRailzCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRailzCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerailzputrequest.go b/internal/sdk/pkg/models/shared/sourcerailzputrequest.go
old mode 100755
new mode 100644
index 562a15683..2b5b02039
--- a/internal/sdk/pkg/models/shared/sourcerailzputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerailzputrequest.go
@@ -7,3 +7,24 @@ type SourceRailzPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRailzPutRequest) GetConfiguration() SourceRailzUpdate {
+ if o == nil {
+ return SourceRailzUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRailzPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRailzPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerailzupdate.go b/internal/sdk/pkg/models/shared/sourcerailzupdate.go
old mode 100755
new mode 100644
index 71d424db8..d8aef7640
--- a/internal/sdk/pkg/models/shared/sourcerailzupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerailzupdate.go
@@ -10,3 +10,24 @@ type SourceRailzUpdate struct {
// Start date
StartDate string `json:"start_date"`
}
+
+func (o *SourceRailzUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceRailzUpdate) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceRailzUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecharge.go b/internal/sdk/pkg/models/shared/sourcerecharge.go
old mode 100755
new mode 100644
index 20a2db716..74628fed0
--- a/internal/sdk/pkg/models/shared/sourcerecharge.go
+++ b/internal/sdk/pkg/models/shared/sourcerecharge.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,36 @@ func (e *SourceRechargeRecharge) UnmarshalJSON(data []byte) error {
type SourceRecharge struct {
// The value of the Access Token generated. See the docs for more information.
AccessToken string `json:"access_token"`
- SourceType SourceRechargeRecharge `json:"sourceType"`
+ sourceType SourceRechargeRecharge `const:"recharge" json:"sourceType"`
// The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceRecharge) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRecharge) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRecharge) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceRecharge) GetSourceType() SourceRechargeRecharge {
+ return SourceRechargeRechargeRecharge
+}
+
+func (o *SourceRecharge) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerechargecreaterequest.go b/internal/sdk/pkg/models/shared/sourcerechargecreaterequest.go
old mode 100755
new mode 100644
index f1ad8c125..113d95a17
--- a/internal/sdk/pkg/models/shared/sourcerechargecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerechargecreaterequest.go
@@ -9,3 +9,31 @@ type SourceRechargeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRechargeCreateRequest) GetConfiguration() SourceRecharge {
+ if o == nil {
+ return SourceRecharge{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRechargeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRechargeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRechargeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerechargeputrequest.go b/internal/sdk/pkg/models/shared/sourcerechargeputrequest.go
old mode 100755
new mode 100644
index 938d0e25f..21a20fdfa
--- a/internal/sdk/pkg/models/shared/sourcerechargeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerechargeputrequest.go
@@ -7,3 +7,24 @@ type SourceRechargePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRechargePutRequest) GetConfiguration() SourceRechargeUpdate {
+ if o == nil {
+ return SourceRechargeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRechargePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRechargePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerechargeupdate.go b/internal/sdk/pkg/models/shared/sourcerechargeupdate.go
old mode 100755
new mode 100644
index 9a000377e..b7340f22d
--- a/internal/sdk/pkg/models/shared/sourcerechargeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerechargeupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,3 +13,28 @@ type SourceRechargeUpdate struct {
// The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceRechargeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRechargeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRechargeUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceRechargeUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecreation.go b/internal/sdk/pkg/models/shared/sourcerecreation.go
old mode 100755
new mode 100644
index e49200990..1d507d5be
--- a/internal/sdk/pkg/models/shared/sourcerecreation.go
+++ b/internal/sdk/pkg/models/shared/sourcerecreation.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,5 +36,34 @@ type SourceRecreation struct {
// API Key
Apikey string `json:"apikey"`
QueryCampsites *string `json:"query_campsites,omitempty"`
- SourceType SourceRecreationRecreation `json:"sourceType"`
+ sourceType SourceRecreationRecreation `const:"recreation" json:"sourceType"`
+}
+
+func (s SourceRecreation) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRecreation) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRecreation) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceRecreation) GetQueryCampsites() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QueryCampsites
+}
+
+func (o *SourceRecreation) GetSourceType() SourceRecreationRecreation {
+ return SourceRecreationRecreationRecreation
}
diff --git a/internal/sdk/pkg/models/shared/sourcerecreationcreaterequest.go b/internal/sdk/pkg/models/shared/sourcerecreationcreaterequest.go
old mode 100755
new mode 100644
index dd70f87cd..db76868bf
--- a/internal/sdk/pkg/models/shared/sourcerecreationcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecreationcreaterequest.go
@@ -9,3 +9,31 @@ type SourceRecreationCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecreationCreateRequest) GetConfiguration() SourceRecreation {
+ if o == nil {
+ return SourceRecreation{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecreationCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecreationCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRecreationCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecreationputrequest.go b/internal/sdk/pkg/models/shared/sourcerecreationputrequest.go
old mode 100755
new mode 100644
index 86ea86a02..1b9c17eb8
--- a/internal/sdk/pkg/models/shared/sourcerecreationputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecreationputrequest.go
@@ -7,3 +7,24 @@ type SourceRecreationPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecreationPutRequest) GetConfiguration() SourceRecreationUpdate {
+ if o == nil {
+ return SourceRecreationUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecreationPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecreationPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecreationupdate.go b/internal/sdk/pkg/models/shared/sourcerecreationupdate.go
old mode 100755
new mode 100644
index 753a9364e..c84b0b29e
--- a/internal/sdk/pkg/models/shared/sourcerecreationupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerecreationupdate.go
@@ -7,3 +7,17 @@ type SourceRecreationUpdate struct {
Apikey string `json:"apikey"`
QueryCampsites *string `json:"query_campsites,omitempty"`
}
+
+func (o *SourceRecreationUpdate) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceRecreationUpdate) GetQueryCampsites() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QueryCampsites
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecruitee.go b/internal/sdk/pkg/models/shared/sourcerecruitee.go
old mode 100755
new mode 100644
index fca183e30..0b7586194
--- a/internal/sdk/pkg/models/shared/sourcerecruitee.go
+++ b/internal/sdk/pkg/models/shared/sourcerecruitee.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceRecruitee struct {
APIKey string `json:"api_key"`
// Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.
CompanyID int64 `json:"company_id"`
- SourceType SourceRecruiteeRecruitee `json:"sourceType"`
+ sourceType SourceRecruiteeRecruitee `const:"recruitee" json:"sourceType"`
+}
+
+func (s SourceRecruitee) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRecruitee) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRecruitee) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceRecruitee) GetCompanyID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.CompanyID
+}
+
+func (o *SourceRecruitee) GetSourceType() SourceRecruiteeRecruitee {
+ return SourceRecruiteeRecruiteeRecruitee
}
diff --git a/internal/sdk/pkg/models/shared/sourcerecruiteecreaterequest.go b/internal/sdk/pkg/models/shared/sourcerecruiteecreaterequest.go
old mode 100755
new mode 100644
index 9233616ba..4b754a6cc
--- a/internal/sdk/pkg/models/shared/sourcerecruiteecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecruiteecreaterequest.go
@@ -9,3 +9,31 @@ type SourceRecruiteeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecruiteeCreateRequest) GetConfiguration() SourceRecruitee {
+ if o == nil {
+ return SourceRecruitee{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecruiteeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecruiteeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRecruiteeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecruiteeputrequest.go b/internal/sdk/pkg/models/shared/sourcerecruiteeputrequest.go
old mode 100755
new mode 100644
index c5bb5310a..9032f41b9
--- a/internal/sdk/pkg/models/shared/sourcerecruiteeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecruiteeputrequest.go
@@ -7,3 +7,24 @@ type SourceRecruiteePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecruiteePutRequest) GetConfiguration() SourceRecruiteeUpdate {
+ if o == nil {
+ return SourceRecruiteeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecruiteePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecruiteePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecruiteeupdate.go b/internal/sdk/pkg/models/shared/sourcerecruiteeupdate.go
old mode 100755
new mode 100644
index 6ce14fd0f..f03325ca3
--- a/internal/sdk/pkg/models/shared/sourcerecruiteeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerecruiteeupdate.go
@@ -8,3 +8,17 @@ type SourceRecruiteeUpdate struct {
// Recruitee Company ID. You can also find this ID on the Recruitee API tokens page.
CompanyID int64 `json:"company_id"`
}
+
+func (o *SourceRecruiteeUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceRecruiteeUpdate) GetCompanyID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.CompanyID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecurly.go b/internal/sdk/pkg/models/shared/sourcerecurly.go
old mode 100755
new mode 100644
index e9d2f3d06..89d2dc2b8
--- a/internal/sdk/pkg/models/shared/sourcerecurly.go
+++ b/internal/sdk/pkg/models/shared/sourcerecurly.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceRecurly struct {
BeginTime *string `json:"begin_time,omitempty"`
// ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported.
EndTime *string `json:"end_time,omitempty"`
- SourceType SourceRecurlyRecurly `json:"sourceType"`
+ sourceType SourceRecurlyRecurly `const:"recurly" json:"sourceType"`
+}
+
+func (s SourceRecurly) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRecurly) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRecurly) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceRecurly) GetBeginTime() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BeginTime
+}
+
+func (o *SourceRecurly) GetEndTime() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndTime
+}
+
+func (o *SourceRecurly) GetSourceType() SourceRecurlyRecurly {
+ return SourceRecurlyRecurlyRecurly
}
diff --git a/internal/sdk/pkg/models/shared/sourcerecurlycreaterequest.go b/internal/sdk/pkg/models/shared/sourcerecurlycreaterequest.go
old mode 100755
new mode 100644
index 68705e1ef..ff525729d
--- a/internal/sdk/pkg/models/shared/sourcerecurlycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecurlycreaterequest.go
@@ -9,3 +9,31 @@ type SourceRecurlyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecurlyCreateRequest) GetConfiguration() SourceRecurly {
+ if o == nil {
+ return SourceRecurly{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecurlyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecurlyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRecurlyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecurlyputrequest.go b/internal/sdk/pkg/models/shared/sourcerecurlyputrequest.go
old mode 100755
new mode 100644
index 1d21dd7b0..f33b95695
--- a/internal/sdk/pkg/models/shared/sourcerecurlyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerecurlyputrequest.go
@@ -7,3 +7,24 @@ type SourceRecurlyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRecurlyPutRequest) GetConfiguration() SourceRecurlyUpdate {
+ if o == nil {
+ return SourceRecurlyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRecurlyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRecurlyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerecurlyupdate.go b/internal/sdk/pkg/models/shared/sourcerecurlyupdate.go
old mode 100755
new mode 100644
index 4d315a869..1c8df9352
--- a/internal/sdk/pkg/models/shared/sourcerecurlyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerecurlyupdate.go
@@ -10,3 +10,24 @@ type SourceRecurlyUpdate struct {
// ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported.
EndTime *string `json:"end_time,omitempty"`
}
+
+func (o *SourceRecurlyUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceRecurlyUpdate) GetBeginTime() *string {
+ if o == nil {
+ return nil
+ }
+ return o.BeginTime
+}
+
+func (o *SourceRecurlyUpdate) GetEndTime() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndTime
+}
diff --git a/internal/sdk/pkg/models/shared/sourceredshift.go b/internal/sdk/pkg/models/shared/sourceredshift.go
old mode 100755
new mode 100644
index ecc32b4ba..5688f9a50
--- a/internal/sdk/pkg/models/shared/sourceredshift.go
+++ b/internal/sdk/pkg/models/shared/sourceredshift.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -41,10 +42,74 @@ type SourceRedshift struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5439" json:"port"`
// The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.
Schemas []string `json:"schemas,omitempty"`
- SourceType SourceRedshiftRedshift `json:"sourceType"`
+ sourceType SourceRedshiftRedshift `const:"redshift" json:"sourceType"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (s SourceRedshift) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRedshift) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRedshift) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceRedshift) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceRedshift) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceRedshift) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceRedshift) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceRedshift) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceRedshift) GetSourceType() SourceRedshiftRedshift {
+ return SourceRedshiftRedshiftRedshift
+}
+
+func (o *SourceRedshift) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceredshiftcreaterequest.go b/internal/sdk/pkg/models/shared/sourceredshiftcreaterequest.go
old mode 100755
new mode 100644
index 7b0681cbe..eb0b18185
--- a/internal/sdk/pkg/models/shared/sourceredshiftcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceredshiftcreaterequest.go
@@ -9,3 +9,31 @@ type SourceRedshiftCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRedshiftCreateRequest) GetConfiguration() SourceRedshift {
+ if o == nil {
+ return SourceRedshift{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRedshiftCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRedshiftCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRedshiftCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceredshiftputrequest.go b/internal/sdk/pkg/models/shared/sourceredshiftputrequest.go
old mode 100755
new mode 100644
index 947a3320c..b2c652b06
--- a/internal/sdk/pkg/models/shared/sourceredshiftputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceredshiftputrequest.go
@@ -7,3 +7,24 @@ type SourceRedshiftPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRedshiftPutRequest) GetConfiguration() SourceRedshiftUpdate {
+ if o == nil {
+ return SourceRedshiftUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRedshiftPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRedshiftPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceredshiftupdate.go b/internal/sdk/pkg/models/shared/sourceredshiftupdate.go
old mode 100755
new mode 100644
index c14eac658..cb30ecf84
--- a/internal/sdk/pkg/models/shared/sourceredshiftupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceredshiftupdate.go
@@ -2,6 +2,10 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceRedshiftUpdate struct {
// Name of the database.
Database string `json:"database"`
@@ -12,9 +16,69 @@ type SourceRedshiftUpdate struct {
// Password associated with the username.
Password string `json:"password"`
// Port of the database.
- Port int64 `json:"port"`
+ Port *int64 `default:"5439" json:"port"`
// The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive.
Schemas []string `json:"schemas,omitempty"`
// Username to use to access the database.
Username string `json:"username"`
}
+
+func (s SourceRedshiftUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRedshiftUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRedshiftUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceRedshiftUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceRedshiftUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceRedshiftUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceRedshiftUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceRedshiftUpdate) GetSchemas() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Schemas
+}
+
+func (o *SourceRedshiftUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceresponse.go b/internal/sdk/pkg/models/shared/sourceresponse.go
old mode 100755
new mode 100644
index 5a2c3fba2..4d4cbeeec
--- a/internal/sdk/pkg/models/shared/sourceresponse.go
+++ b/internal/sdk/pkg/models/shared/sourceresponse.go
@@ -11,3 +11,38 @@ type SourceResponse struct {
SourceType string `json:"sourceType"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceResponse) GetConfiguration() interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.Configuration
+}
+
+func (o *SourceResponse) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceResponse) GetSourceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceID
+}
+
+func (o *SourceResponse) GetSourceType() string {
+ if o == nil {
+ return ""
+ }
+ return o.SourceType
+}
+
+func (o *SourceResponse) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceretently.go b/internal/sdk/pkg/models/shared/sourceretently.go
old mode 100755
new mode 100644
index 1f262efd5..2d0d4da9d
--- a/internal/sdk/pkg/models/shared/sourceretently.go
+++ b/internal/sdk/pkg/models/shared/sourceretently.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,56 +35,39 @@ func (e *SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType)
// SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken - Choose how to authenticate to Retently
type SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// Retently API Token. See the docs for more information on how to obtain this key.
APIKey string `json:"api_key"`
- AuthType *SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType `json:"auth_type,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ authType *SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType `const:"Token" json:"auth_type,omitempty"`
}
-type _SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken
-
-func (c *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken(data)
- additionalFields := make(map[string]interface{})
+func (s SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_key")
- delete(additionalFields, "auth_type")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) GetAPIKey() string {
+ if o == nil {
+ return ""
}
+ return o.APIKey
+}
- return json.Marshal(out)
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken) GetAuthType() *SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthType {
+ return SourceRetentlyAuthenticationMechanismAuthenticateWithAPITokenAuthTypeToken.ToPointer()
}
type SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType string
@@ -113,62 +96,57 @@ func (e *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthTy
// SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth - Choose how to authenticate to Retently
type SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth struct {
- AuthType *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType `json:"auth_type,omitempty"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ authType *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Retently developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Retently developer application.
ClientSecret string `json:"client_secret"`
// Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth
-
-func (c *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) UnmarshalJSON(bs []byte) error {
- data := _SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth(data)
- additionalFields := make(map[string]interface{})
+func (s SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth(c))
- if err != nil {
- return nil, err
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetAuthType() *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType {
+ return SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthTypeClient.ToPointer()
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
}
type SourceRetentlyAuthenticationMechanismType string
@@ -204,21 +182,16 @@ func CreateSourceRetentlyAuthenticationMechanismSourceRetentlyAuthenticationMech
}
func (u *SourceRetentlyAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken := new(SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken, "", true, true); err == nil {
u.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken = sourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken
u.Type = SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken
return nil
}
sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth := new(SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth, "", true, true); err == nil {
u.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth = sourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth
u.Type = SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth
return nil
@@ -228,15 +201,15 @@ func (u *SourceRetentlyAuthenticationMechanism) UnmarshalJSON(data []byte) error
}
func (u SourceRetentlyAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken != nil {
- return json.Marshal(u.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken)
+ if u.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
+ return utils.MarshalJSON(u.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth, "", true)
}
- if u.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
- return json.Marshal(u.SourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth)
+ if u.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken != nil {
+ return utils.MarshalJSON(u.SourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceRetentlyRetently string
@@ -266,5 +239,27 @@ func (e *SourceRetentlyRetently) UnmarshalJSON(data []byte) error {
type SourceRetently struct {
// Choose how to authenticate to Retently
Credentials *SourceRetentlyAuthenticationMechanism `json:"credentials,omitempty"`
- SourceType *SourceRetentlyRetently `json:"sourceType,omitempty"`
+ sourceType *SourceRetentlyRetently `const:"retently" json:"sourceType,omitempty"`
+}
+
+func (s SourceRetently) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRetently) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRetently) GetCredentials() *SourceRetentlyAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceRetently) GetSourceType() *SourceRetentlyRetently {
+ return SourceRetentlyRetentlyRetently.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourceretentlycreaterequest.go b/internal/sdk/pkg/models/shared/sourceretentlycreaterequest.go
old mode 100755
new mode 100644
index f5f84a5d6..51fdc9b2b
--- a/internal/sdk/pkg/models/shared/sourceretentlycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceretentlycreaterequest.go
@@ -9,3 +9,31 @@ type SourceRetentlyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRetentlyCreateRequest) GetConfiguration() SourceRetently {
+ if o == nil {
+ return SourceRetently{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRetentlyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRetentlyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRetentlyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceretentlyputrequest.go b/internal/sdk/pkg/models/shared/sourceretentlyputrequest.go
old mode 100755
new mode 100644
index 7b0b11e9f..38cff5f95
--- a/internal/sdk/pkg/models/shared/sourceretentlyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceretentlyputrequest.go
@@ -7,3 +7,24 @@ type SourceRetentlyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRetentlyPutRequest) GetConfiguration() SourceRetentlyUpdate {
+ if o == nil {
+ return SourceRetentlyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRetentlyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRetentlyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceretentlyupdate.go b/internal/sdk/pkg/models/shared/sourceretentlyupdate.go
old mode 100755
new mode 100644
index 2b092a7fc..ea71e357b
--- a/internal/sdk/pkg/models/shared/sourceretentlyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceretentlyupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,56 +35,39 @@ func (e *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuth
// SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken - Choose how to authenticate to Retently
type SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// Retently API Token. See the docs for more information on how to obtain this key.
APIKey string `json:"api_key"`
- AuthType *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthType `json:"auth_type,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ authType *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthType `const:"Token" json:"auth_type,omitempty"`
}
-type _SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken
-
-func (c *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken(data)
- additionalFields := make(map[string]interface{})
+func (s SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_key")
- delete(additionalFields, "auth_type")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken(c))
- if err != nil {
- return nil, err
- }
-
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
-
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) GetAPIKey() string {
+ if o == nil {
+ return ""
}
+ return o.APIKey
+}
- return json.Marshal(out)
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken) GetAuthType() *SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthType {
+ return SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPITokenAuthTypeToken.ToPointer()
}
type SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType string
@@ -113,62 +96,57 @@ func (e *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth
// SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth - Choose how to authenticate to Retently
type SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth struct {
- AuthType *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType `json:"auth_type,omitempty"`
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
+ authType *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType `const:"Client" json:"auth_type,omitempty"`
// The Client ID of your Retently developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Retently developer application.
ClientSecret string `json:"client_secret"`
// Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires.
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth
-
-func (c *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) UnmarshalJSON(bs []byte) error {
- data := _SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth(data)
- additionalFields := make(map[string]interface{})
+func (s SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth(c))
- if err != nil {
- return nil, err
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
- }
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetAuthType() *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthType {
+ return SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuthAuthTypeClient.ToPointer()
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
}
type SourceRetentlyUpdateAuthenticationMechanismType string
@@ -204,21 +182,16 @@ func CreateSourceRetentlyUpdateAuthenticationMechanismSourceRetentlyUpdateAuthen
}
func (u *SourceRetentlyUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken := new(SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken, "", true, true); err == nil {
u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken = sourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken
u.Type = SourceRetentlyUpdateAuthenticationMechanismTypeSourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken
return nil
}
sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth := new(SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth, "", true, true); err == nil {
u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth = sourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth
u.Type = SourceRetentlyUpdateAuthenticationMechanismTypeSourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth
return nil
@@ -228,18 +201,25 @@ func (u *SourceRetentlyUpdateAuthenticationMechanism) UnmarshalJSON(data []byte)
}
func (u SourceRetentlyUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken != nil {
- return json.Marshal(u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken)
+ if u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
+ return utils.MarshalJSON(u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth, "", true)
}
- if u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth != nil {
- return json.Marshal(u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateViaRetentlyOAuth)
+ if u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken != nil {
+ return utils.MarshalJSON(u.SourceRetentlyUpdateAuthenticationMechanismAuthenticateWithAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceRetentlyUpdate struct {
// Choose how to authenticate to Retently
Credentials *SourceRetentlyUpdateAuthenticationMechanism `json:"credentials,omitempty"`
}
+
+func (o *SourceRetentlyUpdate) GetCredentials() *SourceRetentlyUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerkicovid.go b/internal/sdk/pkg/models/shared/sourcerkicovid.go
old mode 100755
new mode 100644
index 2db017cf9..e5f448c5d
--- a/internal/sdk/pkg/models/shared/sourcerkicovid.go
+++ b/internal/sdk/pkg/models/shared/sourcerkicovid.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,7 +33,29 @@ func (e *SourceRkiCovidRkiCovid) UnmarshalJSON(data []byte) error {
}
type SourceRkiCovid struct {
- SourceType SourceRkiCovidRkiCovid `json:"sourceType"`
+ sourceType SourceRkiCovidRkiCovid `const:"rki-covid" json:"sourceType"`
// UTC date in the format 2017-01-25. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceRkiCovid) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRkiCovid) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRkiCovid) GetSourceType() SourceRkiCovidRkiCovid {
+ return SourceRkiCovidRkiCovidRkiCovid
+}
+
+func (o *SourceRkiCovid) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerkicovidcreaterequest.go b/internal/sdk/pkg/models/shared/sourcerkicovidcreaterequest.go
old mode 100755
new mode 100644
index 7d28e528b..407cd4494
--- a/internal/sdk/pkg/models/shared/sourcerkicovidcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerkicovidcreaterequest.go
@@ -9,3 +9,31 @@ type SourceRkiCovidCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRkiCovidCreateRequest) GetConfiguration() SourceRkiCovid {
+ if o == nil {
+ return SourceRkiCovid{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRkiCovidCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRkiCovidCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRkiCovidCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerkicovidputrequest.go b/internal/sdk/pkg/models/shared/sourcerkicovidputrequest.go
old mode 100755
new mode 100644
index 50e8af066..63a346b73
--- a/internal/sdk/pkg/models/shared/sourcerkicovidputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerkicovidputrequest.go
@@ -7,3 +7,24 @@ type SourceRkiCovidPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRkiCovidPutRequest) GetConfiguration() SourceRkiCovidUpdate {
+ if o == nil {
+ return SourceRkiCovidUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRkiCovidPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRkiCovidPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerkicovidupdate.go b/internal/sdk/pkg/models/shared/sourcerkicovidupdate.go
old mode 100755
new mode 100644
index 9ad8b656f..fa7f68580
--- a/internal/sdk/pkg/models/shared/sourcerkicovidupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerkicovidupdate.go
@@ -6,3 +6,10 @@ type SourceRkiCovidUpdate struct {
// UTC date in the format 2017-01-25. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (o *SourceRkiCovidUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerss.go b/internal/sdk/pkg/models/shared/sourcerss.go
old mode 100755
new mode 100644
index b8795c4e8..2be0e7b3c
--- a/internal/sdk/pkg/models/shared/sourcerss.go
+++ b/internal/sdk/pkg/models/shared/sourcerss.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,7 +33,29 @@ func (e *SourceRssRss) UnmarshalJSON(data []byte) error {
}
type SourceRss struct {
- SourceType SourceRssRss `json:"sourceType"`
+ sourceType SourceRssRss `const:"rss" json:"sourceType"`
// RSS Feed URL
URL string `json:"url"`
}
+
+func (s SourceRss) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceRss) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceRss) GetSourceType() SourceRssRss {
+ return SourceRssRssRss
+}
+
+func (o *SourceRss) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sourcersscreaterequest.go b/internal/sdk/pkg/models/shared/sourcersscreaterequest.go
old mode 100755
new mode 100644
index 50a20d49a..484db992e
--- a/internal/sdk/pkg/models/shared/sourcersscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcersscreaterequest.go
@@ -9,3 +9,31 @@ type SourceRssCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRssCreateRequest) GetConfiguration() SourceRss {
+ if o == nil {
+ return SourceRss{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRssCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRssCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceRssCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerssputrequest.go b/internal/sdk/pkg/models/shared/sourcerssputrequest.go
old mode 100755
new mode 100644
index 99508a9d4..da3a4d8f3
--- a/internal/sdk/pkg/models/shared/sourcerssputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcerssputrequest.go
@@ -7,3 +7,24 @@ type SourceRssPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceRssPutRequest) GetConfiguration() SourceRssUpdate {
+ if o == nil {
+ return SourceRssUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceRssPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceRssPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcerssupdate.go b/internal/sdk/pkg/models/shared/sourcerssupdate.go
old mode 100755
new mode 100644
index 6d7acaa88..335889ab4
--- a/internal/sdk/pkg/models/shared/sourcerssupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcerssupdate.go
@@ -6,3 +6,10 @@ type SourceRssUpdate struct {
// RSS Feed URL
URL string `json:"url"`
}
+
+func (o *SourceRssUpdate) GetURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.URL
+}
diff --git a/internal/sdk/pkg/models/shared/sources3.go b/internal/sdk/pkg/models/shared/sources3.go
old mode 100755
new mode 100644
index 7fb39df61..5dc4a2ddd
--- a/internal/sdk/pkg/models/shared/sources3.go
+++ b/internal/sdk/pkg/models/shared/sources3.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -68,12 +68,48 @@ func (e *SourceS3FileFormatJsonlUnexpectedFieldBehavior) UnmarshalJSON(data []by
// SourceS3FileFormatJsonl - This connector uses PyArrow for JSON Lines (jsonl) file parsing.
type SourceS3FileFormatJsonl struct {
// The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
- BlockSize *int64 `json:"block_size,omitempty"`
- Filetype *SourceS3FileFormatJsonlFiletype `json:"filetype,omitempty"`
+ BlockSize *int64 `default:"0" json:"block_size"`
+ filetype *SourceS3FileFormatJsonlFiletype `const:"jsonl" json:"filetype"`
// Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- NewlinesInValues *bool `json:"newlines_in_values,omitempty"`
+ NewlinesInValues *bool `default:"false" json:"newlines_in_values"`
// How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
- UnexpectedFieldBehavior *SourceS3FileFormatJsonlUnexpectedFieldBehavior `json:"unexpected_field_behavior,omitempty"`
+ UnexpectedFieldBehavior *SourceS3FileFormatJsonlUnexpectedFieldBehavior `default:"infer" json:"unexpected_field_behavior"`
+}
+
+func (s SourceS3FileFormatJsonl) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileFormatJsonl) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileFormatJsonl) GetBlockSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSize
+}
+
+func (o *SourceS3FileFormatJsonl) GetFiletype() *SourceS3FileFormatJsonlFiletype {
+ return SourceS3FileFormatJsonlFiletypeJsonl.ToPointer()
+}
+
+func (o *SourceS3FileFormatJsonl) GetNewlinesInValues() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NewlinesInValues
+}
+
+func (o *SourceS3FileFormatJsonl) GetUnexpectedFieldBehavior() *SourceS3FileFormatJsonlUnexpectedFieldBehavior {
+ if o == nil {
+ return nil
+ }
+ return o.UnexpectedFieldBehavior
}
type SourceS3FileFormatAvroFiletype string
@@ -102,7 +138,22 @@ func (e *SourceS3FileFormatAvroFiletype) UnmarshalJSON(data []byte) error {
// SourceS3FileFormatAvro - This connector utilises fastavro for Avro parsing.
type SourceS3FileFormatAvro struct {
- Filetype *SourceS3FileFormatAvroFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3FileFormatAvroFiletype `const:"avro" json:"filetype"`
+}
+
+func (s SourceS3FileFormatAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileFormatAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileFormatAvro) GetFiletype() *SourceS3FileFormatAvroFiletype {
+ return SourceS3FileFormatAvroFiletypeAvro.ToPointer()
}
type SourceS3FileFormatParquetFiletype string
@@ -132,12 +183,48 @@ func (e *SourceS3FileFormatParquetFiletype) UnmarshalJSON(data []byte) error {
// SourceS3FileFormatParquet - This connector utilises PyArrow (Apache Arrow) for Parquet parsing.
type SourceS3FileFormatParquet struct {
// Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- BatchSize *int64 `json:"batch_size,omitempty"`
+ BatchSize *int64 `default:"65536" json:"batch_size"`
// Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- BufferSize *int64 `json:"buffer_size,omitempty"`
+ BufferSize *int64 `default:"2" json:"buffer_size"`
// If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
Columns []string `json:"columns,omitempty"`
- Filetype *SourceS3FileFormatParquetFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3FileFormatParquetFiletype `const:"parquet" json:"filetype"`
+}
+
+func (s SourceS3FileFormatParquet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileFormatParquet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileFormatParquet) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *SourceS3FileFormatParquet) GetBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BufferSize
+}
+
+func (o *SourceS3FileFormatParquet) GetColumns() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Columns
+}
+
+func (o *SourceS3FileFormatParquet) GetFiletype() *SourceS3FileFormatParquetFiletype {
+ return SourceS3FileFormatParquetFiletypeParquet.ToPointer()
}
type SourceS3FileFormatCSVFiletype string
@@ -171,22 +258,107 @@ type SourceS3FileFormatCSV struct {
// Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above.
AdvancedOptions *string `json:"advanced_options,omitempty"`
// The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
- BlockSize *int64 `json:"block_size,omitempty"`
+ BlockSize *int64 `default:"10000" json:"block_size"`
// The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'.
- Delimiter *string `json:"delimiter,omitempty"`
+ Delimiter *string `default:"," json:"delimiter"`
// Whether two quotes in a quoted CSV value denote a single quote in the data.
- DoubleQuote *bool `json:"double_quote,omitempty"`
+ DoubleQuote *bool `default:"true" json:"double_quote"`
// The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- Encoding *string `json:"encoding,omitempty"`
+ Encoding *string `default:"utf8" json:"encoding"`
// The character used for escaping special characters. To disallow escaping, leave this field blank.
EscapeChar *string `json:"escape_char,omitempty"`
- Filetype *SourceS3FileFormatCSVFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3FileFormatCSVFiletype `const:"csv" json:"filetype"`
// Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- InferDatatypes *bool `json:"infer_datatypes,omitempty"`
+ InferDatatypes *bool `default:"true" json:"infer_datatypes"`
// Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- NewlinesInValues *bool `json:"newlines_in_values,omitempty"`
+ NewlinesInValues *bool `default:"false" json:"newlines_in_values"`
// The character used for quoting CSV values. To disallow quoting, make this field blank.
- QuoteChar *string `json:"quote_char,omitempty"`
+ QuoteChar *string `default:""" json:"quote_char"`
+}
+
+func (s SourceS3FileFormatCSV) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileFormatCSV) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileFormatCSV) GetAdditionalReaderOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalReaderOptions
+}
+
+func (o *SourceS3FileFormatCSV) GetAdvancedOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvancedOptions
+}
+
+func (o *SourceS3FileFormatCSV) GetBlockSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSize
+}
+
+func (o *SourceS3FileFormatCSV) GetDelimiter() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Delimiter
+}
+
+func (o *SourceS3FileFormatCSV) GetDoubleQuote() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleQuote
+}
+
+func (o *SourceS3FileFormatCSV) GetEncoding() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Encoding
+}
+
+func (o *SourceS3FileFormatCSV) GetEscapeChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EscapeChar
+}
+
+func (o *SourceS3FileFormatCSV) GetFiletype() *SourceS3FileFormatCSVFiletype {
+ return SourceS3FileFormatCSVFiletypeCsv.ToPointer()
+}
+
+func (o *SourceS3FileFormatCSV) GetInferDatatypes() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.InferDatatypes
+}
+
+func (o *SourceS3FileFormatCSV) GetNewlinesInValues() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NewlinesInValues
+}
+
+func (o *SourceS3FileFormatCSV) GetQuoteChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QuoteChar
}
type SourceS3FileFormatType string
@@ -244,39 +416,30 @@ func CreateSourceS3FileFormatSourceS3FileFormatJsonl(sourceS3FileFormatJsonl Sou
}
func (u *SourceS3FileFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3FileFormatAvro := new(SourceS3FileFormatAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileFormatAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileFormatAvro, "", true, true); err == nil {
u.SourceS3FileFormatAvro = sourceS3FileFormatAvro
u.Type = SourceS3FileFormatTypeSourceS3FileFormatAvro
return nil
}
sourceS3FileFormatParquet := new(SourceS3FileFormatParquet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileFormatParquet); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileFormatParquet, "", true, true); err == nil {
u.SourceS3FileFormatParquet = sourceS3FileFormatParquet
u.Type = SourceS3FileFormatTypeSourceS3FileFormatParquet
return nil
}
sourceS3FileFormatJsonl := new(SourceS3FileFormatJsonl)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileFormatJsonl); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileFormatJsonl, "", true, true); err == nil {
u.SourceS3FileFormatJsonl = sourceS3FileFormatJsonl
u.Type = SourceS3FileFormatTypeSourceS3FileFormatJsonl
return nil
}
sourceS3FileFormatCSV := new(SourceS3FileFormatCSV)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileFormatCSV); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileFormatCSV, "", true, true); err == nil {
u.SourceS3FileFormatCSV = sourceS3FileFormatCSV
u.Type = SourceS3FileFormatTypeSourceS3FileFormatCSV
return nil
@@ -286,23 +449,23 @@ func (u *SourceS3FileFormat) UnmarshalJSON(data []byte) error {
}
func (u SourceS3FileFormat) MarshalJSON() ([]byte, error) {
- if u.SourceS3FileFormatAvro != nil {
- return json.Marshal(u.SourceS3FileFormatAvro)
+ if u.SourceS3FileFormatCSV != nil {
+ return utils.MarshalJSON(u.SourceS3FileFormatCSV, "", true)
}
if u.SourceS3FileFormatParquet != nil {
- return json.Marshal(u.SourceS3FileFormatParquet)
+ return utils.MarshalJSON(u.SourceS3FileFormatParquet, "", true)
}
- if u.SourceS3FileFormatJsonl != nil {
- return json.Marshal(u.SourceS3FileFormatJsonl)
+ if u.SourceS3FileFormatAvro != nil {
+ return utils.MarshalJSON(u.SourceS3FileFormatAvro, "", true)
}
- if u.SourceS3FileFormatCSV != nil {
- return json.Marshal(u.SourceS3FileFormatCSV)
+ if u.SourceS3FileFormatJsonl != nil {
+ return utils.MarshalJSON(u.SourceS3FileFormatJsonl, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3S3AmazonWebServices - Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services
@@ -314,13 +477,66 @@ type SourceS3S3AmazonWebServices struct {
// Name of the S3 bucket where the file(s) exist.
Bucket *string `json:"bucket,omitempty"`
// Endpoint to an S3 compatible service. Leave empty to use AWS.
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate.
- PathPrefix *string `json:"path_prefix,omitempty"`
+ PathPrefix *string `default:"" json:"path_prefix"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+func (s SourceS3S3AmazonWebServices) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3S3AmazonWebServices) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3S3AmazonWebServices) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceS3S3AmazonWebServices) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceS3S3AmazonWebServices) GetBucket() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Bucket
+}
+
+func (o *SourceS3S3AmazonWebServices) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceS3S3AmazonWebServices) GetPathPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PathPrefix
+}
+
+func (o *SourceS3S3AmazonWebServices) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
type SourceS3S3 string
const (
@@ -372,8 +588,30 @@ func (e *SourceS3FileBasedStreamConfigFormatParquetFormatFiletype) UnmarshalJSON
// SourceS3FileBasedStreamConfigFormatParquetFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3FileBasedStreamConfigFormatParquetFormat struct {
// Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
- DecimalAsFloat *bool `json:"decimal_as_float,omitempty"`
- Filetype *SourceS3FileBasedStreamConfigFormatParquetFormatFiletype `json:"filetype,omitempty"`
+ DecimalAsFloat *bool `default:"false" json:"decimal_as_float"`
+ filetype *SourceS3FileBasedStreamConfigFormatParquetFormatFiletype `const:"parquet" json:"filetype"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatParquetFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatParquetFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatParquetFormat) GetDecimalAsFloat() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DecimalAsFloat
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatParquetFormat) GetFiletype() *SourceS3FileBasedStreamConfigFormatParquetFormatFiletype {
+ return SourceS3FileBasedStreamConfigFormatParquetFormatFiletypeParquet.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype string
@@ -402,7 +640,22 @@ func (e *SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype) UnmarshalJSON(d
// SourceS3FileBasedStreamConfigFormatJsonlFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3FileBasedStreamConfigFormatJsonlFormat struct {
- Filetype *SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype `const:"jsonl" json:"filetype"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatJsonlFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatJsonlFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatJsonlFormat) GetFiletype() *SourceS3FileBasedStreamConfigFormatJsonlFormatFiletype {
+ return SourceS3FileBasedStreamConfigFormatJsonlFormatFiletypeJsonl.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatCSVFormatFiletype string
@@ -457,7 +710,29 @@ func (e *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProv
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided struct {
// The column names that will be used while emitting the CSV records
ColumnNames []string `json:"column_names"`
- HeaderDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType `const:"User Provided" json:"header_definition_type"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) GetColumnNames() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.ColumnNames
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) GetHeaderDefinitionType() *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType {
+ return SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionTypeUserProvided.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType string
@@ -486,7 +761,22 @@ func (e *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogene
// SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated struct {
- HeaderDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType `const:"Autogenerated" json:"header_definition_type"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) GetHeaderDefinitionType() *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType {
+ return SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionTypeAutogenerated.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType string
@@ -515,7 +805,22 @@ func (e *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVH
// SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV struct {
- HeaderDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType `const:"From CSV" json:"header_definition_type"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) GetHeaderDefinitionType() *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType {
+ return SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionTypeFromCsv.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionType string
@@ -562,30 +867,23 @@ func CreateSourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionSource
}
func (u *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV := new(SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
u.Type = SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
return nil
}
sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated := new(SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
u.Type = SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
return nil
}
sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided := new(SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided = sourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided
u.Type = SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided
return nil
@@ -596,18 +894,18 @@ func (u *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition) Unmars
func (u SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition) MarshalJSON() ([]byte, error) {
if u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV)
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV, "", true)
}
if u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated)
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated, "", true)
}
if u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided)
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3FileBasedStreamConfigFormatCSVFormatInferenceType - How to infer the types of the columns. If none, inference default to strings.
@@ -641,34 +939,140 @@ func (e *SourceS3FileBasedStreamConfigFormatCSVFormatInferenceType) UnmarshalJSO
// SourceS3FileBasedStreamConfigFormatCSVFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3FileBasedStreamConfigFormatCSVFormat struct {
// The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'.
- Delimiter *string `json:"delimiter,omitempty"`
+ Delimiter *string `default:"," json:"delimiter"`
// Whether two quotes in a quoted CSV value denote a single quote in the data.
- DoubleQuote *bool `json:"double_quote,omitempty"`
+ DoubleQuote *bool `default:"true" json:"double_quote"`
// The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- Encoding *string `json:"encoding,omitempty"`
+ Encoding *string `default:"utf8" json:"encoding"`
// The character used for escaping special characters. To disallow escaping, leave this field blank.
EscapeChar *string `json:"escape_char,omitempty"`
// A set of case-sensitive strings that should be interpreted as false values.
FalseValues []string `json:"false_values,omitempty"`
- Filetype *SourceS3FileBasedStreamConfigFormatCSVFormatFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3FileBasedStreamConfigFormatCSVFormatFiletype `const:"csv" json:"filetype"`
// How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
HeaderDefinition *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition `json:"header_definition,omitempty"`
// How to infer the types of the columns. If none, inference default to strings.
- InferenceType *SourceS3FileBasedStreamConfigFormatCSVFormatInferenceType `json:"inference_type,omitempty"`
+ InferenceType *SourceS3FileBasedStreamConfigFormatCSVFormatInferenceType `default:"None" json:"inference_type"`
// A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field.
NullValues []string `json:"null_values,omitempty"`
// The character used for quoting CSV values. To disallow quoting, make this field blank.
- QuoteChar *string `json:"quote_char,omitempty"`
+ QuoteChar *string `default:""" json:"quote_char"`
// The number of rows to skip after the header row.
- SkipRowsAfterHeader *int64 `json:"skip_rows_after_header,omitempty"`
+ SkipRowsAfterHeader *int64 `default:"0" json:"skip_rows_after_header"`
// The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field.
- SkipRowsBeforeHeader *int64 `json:"skip_rows_before_header,omitempty"`
+ SkipRowsBeforeHeader *int64 `default:"0" json:"skip_rows_before_header"`
// Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself.
- StringsCanBeNull *bool `json:"strings_can_be_null,omitempty"`
+ StringsCanBeNull *bool `default:"true" json:"strings_can_be_null"`
// A set of case-sensitive strings that should be interpreted as true values.
TrueValues []string `json:"true_values,omitempty"`
}
+func (s SourceS3FileBasedStreamConfigFormatCSVFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatCSVFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetDelimiter() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Delimiter
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetDoubleQuote() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleQuote
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetEncoding() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Encoding
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetEscapeChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EscapeChar
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetFalseValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.FalseValues
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetFiletype() *SourceS3FileBasedStreamConfigFormatCSVFormatFiletype {
+ return SourceS3FileBasedStreamConfigFormatCSVFormatFiletypeCsv.ToPointer()
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetHeaderDefinition() *SourceS3FileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition {
+ if o == nil {
+ return nil
+ }
+ return o.HeaderDefinition
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetInferenceType() *SourceS3FileBasedStreamConfigFormatCSVFormatInferenceType {
+ if o == nil {
+ return nil
+ }
+ return o.InferenceType
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetNullValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.NullValues
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetQuoteChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QuoteChar
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetSkipRowsAfterHeader() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SkipRowsAfterHeader
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetSkipRowsBeforeHeader() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SkipRowsBeforeHeader
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetStringsCanBeNull() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.StringsCanBeNull
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatCSVFormat) GetTrueValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TrueValues
+}
+
type SourceS3FileBasedStreamConfigFormatAvroFormatFiletype string
const (
@@ -696,8 +1100,30 @@ func (e *SourceS3FileBasedStreamConfigFormatAvroFormatFiletype) UnmarshalJSON(da
// SourceS3FileBasedStreamConfigFormatAvroFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3FileBasedStreamConfigFormatAvroFormat struct {
// Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
- DoubleAsString *bool `json:"double_as_string,omitempty"`
- Filetype *SourceS3FileBasedStreamConfigFormatAvroFormatFiletype `json:"filetype,omitempty"`
+ DoubleAsString *bool `default:"false" json:"double_as_string"`
+ filetype *SourceS3FileBasedStreamConfigFormatAvroFormatFiletype `const:"avro" json:"filetype"`
+}
+
+func (s SourceS3FileBasedStreamConfigFormatAvroFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfigFormatAvroFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatAvroFormat) GetDoubleAsString() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleAsString
+}
+
+func (o *SourceS3FileBasedStreamConfigFormatAvroFormat) GetFiletype() *SourceS3FileBasedStreamConfigFormatAvroFormatFiletype {
+ return SourceS3FileBasedStreamConfigFormatAvroFormatFiletypeAvro.ToPointer()
}
type SourceS3FileBasedStreamConfigFormatType string
@@ -755,39 +1181,30 @@ func CreateSourceS3FileBasedStreamConfigFormatSourceS3FileBasedStreamConfigForma
}
func (u *SourceS3FileBasedStreamConfigFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3FileBasedStreamConfigFormatJsonlFormat := new(SourceS3FileBasedStreamConfigFormatJsonlFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatJsonlFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatJsonlFormat, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatJsonlFormat = sourceS3FileBasedStreamConfigFormatJsonlFormat
u.Type = SourceS3FileBasedStreamConfigFormatTypeSourceS3FileBasedStreamConfigFormatJsonlFormat
return nil
}
sourceS3FileBasedStreamConfigFormatAvroFormat := new(SourceS3FileBasedStreamConfigFormatAvroFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatAvroFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatAvroFormat, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatAvroFormat = sourceS3FileBasedStreamConfigFormatAvroFormat
u.Type = SourceS3FileBasedStreamConfigFormatTypeSourceS3FileBasedStreamConfigFormatAvroFormat
return nil
}
sourceS3FileBasedStreamConfigFormatParquetFormat := new(SourceS3FileBasedStreamConfigFormatParquetFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatParquetFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatParquetFormat, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatParquetFormat = sourceS3FileBasedStreamConfigFormatParquetFormat
u.Type = SourceS3FileBasedStreamConfigFormatTypeSourceS3FileBasedStreamConfigFormatParquetFormat
return nil
}
sourceS3FileBasedStreamConfigFormatCSVFormat := new(SourceS3FileBasedStreamConfigFormatCSVFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3FileBasedStreamConfigFormatCSVFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3FileBasedStreamConfigFormatCSVFormat, "", true, true); err == nil {
u.SourceS3FileBasedStreamConfigFormatCSVFormat = sourceS3FileBasedStreamConfigFormatCSVFormat
u.Type = SourceS3FileBasedStreamConfigFormatTypeSourceS3FileBasedStreamConfigFormatCSVFormat
return nil
@@ -797,23 +1214,23 @@ func (u *SourceS3FileBasedStreamConfigFormat) UnmarshalJSON(data []byte) error {
}
func (u SourceS3FileBasedStreamConfigFormat) MarshalJSON() ([]byte, error) {
- if u.SourceS3FileBasedStreamConfigFormatJsonlFormat != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatJsonlFormat)
+ if u.SourceS3FileBasedStreamConfigFormatAvroFormat != nil {
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatAvroFormat, "", true)
}
- if u.SourceS3FileBasedStreamConfigFormatAvroFormat != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatAvroFormat)
+ if u.SourceS3FileBasedStreamConfigFormatCSVFormat != nil {
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatCSVFormat, "", true)
}
- if u.SourceS3FileBasedStreamConfigFormatParquetFormat != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatParquetFormat)
+ if u.SourceS3FileBasedStreamConfigFormatJsonlFormat != nil {
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatJsonlFormat, "", true)
}
- if u.SourceS3FileBasedStreamConfigFormatCSVFormat != nil {
- return json.Marshal(u.SourceS3FileBasedStreamConfigFormatCSVFormat)
+ if u.SourceS3FileBasedStreamConfigFormatParquetFormat != nil {
+ return utils.MarshalJSON(u.SourceS3FileBasedStreamConfigFormatParquetFormat, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3FileBasedStreamConfigValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema.
@@ -849,7 +1266,7 @@ func (e *SourceS3FileBasedStreamConfigValidationPolicy) UnmarshalJSON(data []byt
type SourceS3FileBasedStreamConfig struct {
// When the state history of the file store is full, syncs will only read files that were last modified in the provided day range.
- DaysToSyncIfHistoryIsFull *int64 `json:"days_to_sync_if_history_is_full,omitempty"`
+ DaysToSyncIfHistoryIsFull *int64 `default:"3" json:"days_to_sync_if_history_is_full"`
// The data file type that is being extracted for a stream.
FileType string `json:"file_type"`
// The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
@@ -865,9 +1282,90 @@ type SourceS3FileBasedStreamConfig struct {
// The column or columns (for a composite key) that serves as the unique identifier of a record.
PrimaryKey *string `json:"primary_key,omitempty"`
// When enabled, syncs will not validate or structure records against the stream's schema.
- Schemaless *bool `json:"schemaless,omitempty"`
+ Schemaless *bool `default:"false" json:"schemaless"`
// The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema.
- ValidationPolicy *SourceS3FileBasedStreamConfigValidationPolicy `json:"validation_policy,omitempty"`
+ ValidationPolicy *SourceS3FileBasedStreamConfigValidationPolicy `default:"Emit Record" json:"validation_policy"`
+}
+
+func (s SourceS3FileBasedStreamConfig) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3FileBasedStreamConfig) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DaysToSyncIfHistoryIsFull
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetFileType() string {
+ if o == nil {
+ return ""
+ }
+ return o.FileType
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetFormat() *SourceS3FileBasedStreamConfigFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetGlobs() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Globs
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetInputSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.InputSchema
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetLegacyPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LegacyPrefix
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetPrimaryKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrimaryKey
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetSchemaless() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Schemaless
+}
+
+func (o *SourceS3FileBasedStreamConfig) GetValidationPolicy() *SourceS3FileBasedStreamConfigValidationPolicy {
+ if o == nil {
+ return nil
+ }
+ return o.ValidationPolicy
}
// SourceS3 - NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes
@@ -882,7 +1380,7 @@ type SourceS3 struct {
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores.
Dataset *string `json:"dataset,omitempty"`
// Endpoint to an S3 compatible service. Leave empty to use AWS.
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate
Format *SourceS3FileFormat `json:"format,omitempty"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files.
@@ -890,10 +1388,102 @@ type SourceS3 struct {
// Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services
Provider *SourceS3S3AmazonWebServices `json:"provider,omitempty"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema.
- Schema *string `json:"schema,omitempty"`
- SourceType SourceS3S3 `json:"sourceType"`
+ Schema *string `default:"{}" json:"schema"`
+ sourceType SourceS3S3 `const:"s3" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
// Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table.
Streams []SourceS3FileBasedStreamConfig `json:"streams"`
}
+
+func (s SourceS3) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceS3) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceS3) GetBucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.Bucket
+}
+
+func (o *SourceS3) GetDataset() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Dataset
+}
+
+func (o *SourceS3) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceS3) GetFormat() *SourceS3FileFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceS3) GetPathPattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PathPattern
+}
+
+func (o *SourceS3) GetProvider() *SourceS3S3AmazonWebServices {
+ if o == nil {
+ return nil
+ }
+ return o.Provider
+}
+
+func (o *SourceS3) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *SourceS3) GetSourceType() SourceS3S3 {
+ return SourceS3S3S3
+}
+
+func (o *SourceS3) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceS3) GetStreams() []SourceS3FileBasedStreamConfig {
+ if o == nil {
+ return []SourceS3FileBasedStreamConfig{}
+ }
+ return o.Streams
+}
diff --git a/internal/sdk/pkg/models/shared/sources3createrequest.go b/internal/sdk/pkg/models/shared/sources3createrequest.go
old mode 100755
new mode 100644
index 1bec6ba14..af63d99ef
--- a/internal/sdk/pkg/models/shared/sources3createrequest.go
+++ b/internal/sdk/pkg/models/shared/sources3createrequest.go
@@ -11,3 +11,31 @@ type SourceS3CreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceS3CreateRequest) GetConfiguration() SourceS3 {
+ if o == nil {
+ return SourceS3{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceS3CreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceS3CreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceS3CreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sources3putrequest.go b/internal/sdk/pkg/models/shared/sources3putrequest.go
old mode 100755
new mode 100644
index e622dbcfb..af44ecdd3
--- a/internal/sdk/pkg/models/shared/sources3putrequest.go
+++ b/internal/sdk/pkg/models/shared/sources3putrequest.go
@@ -9,3 +9,24 @@ type SourceS3PutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceS3PutRequest) GetConfiguration() SourceS3Update {
+ if o == nil {
+ return SourceS3Update{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceS3PutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceS3PutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sources3update.go b/internal/sdk/pkg/models/shared/sources3update.go
old mode 100755
new mode 100644
index 322258501..525233e93
--- a/internal/sdk/pkg/models/shared/sources3update.go
+++ b/internal/sdk/pkg/models/shared/sources3update.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -68,12 +68,48 @@ func (e *SourceS3UpdateFileFormatJsonlUnexpectedFieldBehavior) UnmarshalJSON(dat
// SourceS3UpdateFileFormatJsonl - This connector uses PyArrow for JSON Lines (jsonl) file parsing.
type SourceS3UpdateFileFormatJsonl struct {
// The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
- BlockSize *int64 `json:"block_size,omitempty"`
- Filetype *SourceS3UpdateFileFormatJsonlFiletype `json:"filetype,omitempty"`
+ BlockSize *int64 `default:"0" json:"block_size"`
+ filetype *SourceS3UpdateFileFormatJsonlFiletype `const:"jsonl" json:"filetype"`
// Whether newline characters are allowed in JSON values. Turning this on may affect performance. Leave blank to default to False.
- NewlinesInValues *bool `json:"newlines_in_values,omitempty"`
+ NewlinesInValues *bool `default:"false" json:"newlines_in_values"`
// How JSON fields outside of explicit_schema (if given) are treated. Check PyArrow documentation for details
- UnexpectedFieldBehavior *SourceS3UpdateFileFormatJsonlUnexpectedFieldBehavior `json:"unexpected_field_behavior,omitempty"`
+ UnexpectedFieldBehavior *SourceS3UpdateFileFormatJsonlUnexpectedFieldBehavior `default:"infer" json:"unexpected_field_behavior"`
+}
+
+func (s SourceS3UpdateFileFormatJsonl) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileFormatJsonl) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileFormatJsonl) GetBlockSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSize
+}
+
+func (o *SourceS3UpdateFileFormatJsonl) GetFiletype() *SourceS3UpdateFileFormatJsonlFiletype {
+ return SourceS3UpdateFileFormatJsonlFiletypeJsonl.ToPointer()
+}
+
+func (o *SourceS3UpdateFileFormatJsonl) GetNewlinesInValues() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NewlinesInValues
+}
+
+func (o *SourceS3UpdateFileFormatJsonl) GetUnexpectedFieldBehavior() *SourceS3UpdateFileFormatJsonlUnexpectedFieldBehavior {
+ if o == nil {
+ return nil
+ }
+ return o.UnexpectedFieldBehavior
}
type SourceS3UpdateFileFormatAvroFiletype string
@@ -102,7 +138,22 @@ func (e *SourceS3UpdateFileFormatAvroFiletype) UnmarshalJSON(data []byte) error
// SourceS3UpdateFileFormatAvro - This connector utilises fastavro for Avro parsing.
type SourceS3UpdateFileFormatAvro struct {
- Filetype *SourceS3UpdateFileFormatAvroFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3UpdateFileFormatAvroFiletype `const:"avro" json:"filetype"`
+}
+
+func (s SourceS3UpdateFileFormatAvro) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileFormatAvro) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileFormatAvro) GetFiletype() *SourceS3UpdateFileFormatAvroFiletype {
+ return SourceS3UpdateFileFormatAvroFiletypeAvro.ToPointer()
}
type SourceS3UpdateFileFormatParquetFiletype string
@@ -132,12 +183,48 @@ func (e *SourceS3UpdateFileFormatParquetFiletype) UnmarshalJSON(data []byte) err
// SourceS3UpdateFileFormatParquet - This connector utilises PyArrow (Apache Arrow) for Parquet parsing.
type SourceS3UpdateFileFormatParquet struct {
// Maximum number of records per batch read from the input files. Batches may be smaller if there aren’t enough rows in the file. This option can help avoid out-of-memory errors if your data is particularly wide.
- BatchSize *int64 `json:"batch_size,omitempty"`
+ BatchSize *int64 `default:"65536" json:"batch_size"`
// Perform read buffering when deserializing individual column chunks. By default every group column will be loaded fully to memory. This option can help avoid out-of-memory errors if your data is particularly wide.
- BufferSize *int64 `json:"buffer_size,omitempty"`
+ BufferSize *int64 `default:"2" json:"buffer_size"`
// If you only want to sync a subset of the columns from the file(s), add the columns you want here as a comma-delimited list. Leave it empty to sync all columns.
Columns []string `json:"columns,omitempty"`
- Filetype *SourceS3UpdateFileFormatParquetFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3UpdateFileFormatParquetFiletype `const:"parquet" json:"filetype"`
+}
+
+func (s SourceS3UpdateFileFormatParquet) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileFormatParquet) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileFormatParquet) GetBatchSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BatchSize
+}
+
+func (o *SourceS3UpdateFileFormatParquet) GetBufferSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BufferSize
+}
+
+func (o *SourceS3UpdateFileFormatParquet) GetColumns() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Columns
+}
+
+func (o *SourceS3UpdateFileFormatParquet) GetFiletype() *SourceS3UpdateFileFormatParquetFiletype {
+ return SourceS3UpdateFileFormatParquetFiletypeParquet.ToPointer()
}
type SourceS3UpdateFileFormatCSVFiletype string
@@ -171,22 +258,107 @@ type SourceS3UpdateFileFormatCSV struct {
// Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above.
AdvancedOptions *string `json:"advanced_options,omitempty"`
// The chunk size in bytes to process at a time in memory from each file. If your data is particularly wide and failing during schema detection, increasing this should solve it. Beware of raising this too high as you could hit OOM errors.
- BlockSize *int64 `json:"block_size,omitempty"`
+ BlockSize *int64 `default:"10000" json:"block_size"`
// The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'.
- Delimiter *string `json:"delimiter,omitempty"`
+ Delimiter *string `default:"," json:"delimiter"`
// Whether two quotes in a quoted CSV value denote a single quote in the data.
- DoubleQuote *bool `json:"double_quote,omitempty"`
+ DoubleQuote *bool `default:"true" json:"double_quote"`
// The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- Encoding *string `json:"encoding,omitempty"`
+ Encoding *string `default:"utf8" json:"encoding"`
// The character used for escaping special characters. To disallow escaping, leave this field blank.
EscapeChar *string `json:"escape_char,omitempty"`
- Filetype *SourceS3UpdateFileFormatCSVFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3UpdateFileFormatCSVFiletype `const:"csv" json:"filetype"`
// Configures whether a schema for the source should be inferred from the current data or not. If set to false and a custom schema is set, then the manually enforced schema is used. If a schema is not manually set, and this is set to false, then all fields will be read as strings
- InferDatatypes *bool `json:"infer_datatypes,omitempty"`
+ InferDatatypes *bool `default:"true" json:"infer_datatypes"`
// Whether newline characters are allowed in CSV values. Turning this on may affect performance. Leave blank to default to False.
- NewlinesInValues *bool `json:"newlines_in_values,omitempty"`
+ NewlinesInValues *bool `default:"false" json:"newlines_in_values"`
// The character used for quoting CSV values. To disallow quoting, make this field blank.
- QuoteChar *string `json:"quote_char,omitempty"`
+ QuoteChar *string `default:""" json:"quote_char"`
+}
+
+func (s SourceS3UpdateFileFormatCSV) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileFormatCSV) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetAdditionalReaderOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdditionalReaderOptions
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetAdvancedOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvancedOptions
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetBlockSize() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.BlockSize
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetDelimiter() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Delimiter
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetDoubleQuote() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleQuote
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetEncoding() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Encoding
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetEscapeChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EscapeChar
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetFiletype() *SourceS3UpdateFileFormatCSVFiletype {
+ return SourceS3UpdateFileFormatCSVFiletypeCsv.ToPointer()
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetInferDatatypes() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.InferDatatypes
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetNewlinesInValues() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.NewlinesInValues
+}
+
+func (o *SourceS3UpdateFileFormatCSV) GetQuoteChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QuoteChar
}
type SourceS3UpdateFileFormatType string
@@ -244,39 +416,30 @@ func CreateSourceS3UpdateFileFormatSourceS3UpdateFileFormatJsonl(sourceS3UpdateF
}
func (u *SourceS3UpdateFileFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3UpdateFileFormatAvro := new(SourceS3UpdateFileFormatAvro)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileFormatAvro); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileFormatAvro, "", true, true); err == nil {
u.SourceS3UpdateFileFormatAvro = sourceS3UpdateFileFormatAvro
u.Type = SourceS3UpdateFileFormatTypeSourceS3UpdateFileFormatAvro
return nil
}
sourceS3UpdateFileFormatParquet := new(SourceS3UpdateFileFormatParquet)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileFormatParquet); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileFormatParquet, "", true, true); err == nil {
u.SourceS3UpdateFileFormatParquet = sourceS3UpdateFileFormatParquet
u.Type = SourceS3UpdateFileFormatTypeSourceS3UpdateFileFormatParquet
return nil
}
sourceS3UpdateFileFormatJsonl := new(SourceS3UpdateFileFormatJsonl)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileFormatJsonl); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileFormatJsonl, "", true, true); err == nil {
u.SourceS3UpdateFileFormatJsonl = sourceS3UpdateFileFormatJsonl
u.Type = SourceS3UpdateFileFormatTypeSourceS3UpdateFileFormatJsonl
return nil
}
sourceS3UpdateFileFormatCSV := new(SourceS3UpdateFileFormatCSV)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileFormatCSV); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileFormatCSV, "", true, true); err == nil {
u.SourceS3UpdateFileFormatCSV = sourceS3UpdateFileFormatCSV
u.Type = SourceS3UpdateFileFormatTypeSourceS3UpdateFileFormatCSV
return nil
@@ -286,23 +449,23 @@ func (u *SourceS3UpdateFileFormat) UnmarshalJSON(data []byte) error {
}
func (u SourceS3UpdateFileFormat) MarshalJSON() ([]byte, error) {
- if u.SourceS3UpdateFileFormatAvro != nil {
- return json.Marshal(u.SourceS3UpdateFileFormatAvro)
+ if u.SourceS3UpdateFileFormatCSV != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileFormatCSV, "", true)
}
if u.SourceS3UpdateFileFormatParquet != nil {
- return json.Marshal(u.SourceS3UpdateFileFormatParquet)
+ return utils.MarshalJSON(u.SourceS3UpdateFileFormatParquet, "", true)
}
- if u.SourceS3UpdateFileFormatJsonl != nil {
- return json.Marshal(u.SourceS3UpdateFileFormatJsonl)
+ if u.SourceS3UpdateFileFormatAvro != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileFormatAvro, "", true)
}
- if u.SourceS3UpdateFileFormatCSV != nil {
- return json.Marshal(u.SourceS3UpdateFileFormatCSV)
+ if u.SourceS3UpdateFileFormatJsonl != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileFormatJsonl, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3UpdateS3AmazonWebServices - Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services
@@ -314,13 +477,66 @@ type SourceS3UpdateS3AmazonWebServices struct {
// Name of the S3 bucket where the file(s) exist.
Bucket *string `json:"bucket,omitempty"`
// Endpoint to an S3 compatible service. Leave empty to use AWS.
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// By providing a path-like prefix (e.g. myFolder/thisTable/) under which all the relevant files sit, we can optimize finding these in S3. This is optional but recommended if your bucket contains many folders/files which you don't need to replicate.
- PathPrefix *string `json:"path_prefix,omitempty"`
+ PathPrefix *string `default:"" json:"path_prefix"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any file modified before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+func (s SourceS3UpdateS3AmazonWebServices) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateS3AmazonWebServices) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetBucket() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Bucket
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetPathPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PathPrefix
+}
+
+func (o *SourceS3UpdateS3AmazonWebServices) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
type SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype string
const (
@@ -348,8 +564,30 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype) Unmarsh
// SourceS3UpdateFileBasedStreamConfigFormatParquetFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3UpdateFileBasedStreamConfigFormatParquetFormat struct {
// Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.
- DecimalAsFloat *bool `json:"decimal_as_float,omitempty"`
- Filetype *SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype `json:"filetype,omitempty"`
+ DecimalAsFloat *bool `default:"false" json:"decimal_as_float"`
+ filetype *SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype `const:"parquet" json:"filetype"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatParquetFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatParquetFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatParquetFormat) GetDecimalAsFloat() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DecimalAsFloat
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatParquetFormat) GetFiletype() *SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletype {
+ return SourceS3UpdateFileBasedStreamConfigFormatParquetFormatFiletypeParquet.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype string
@@ -378,7 +616,22 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype) Unmarshal
// SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat struct {
- Filetype *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype `const:"jsonl" json:"filetype"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat) GetFiletype() *SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletype {
+ return SourceS3UpdateFileBasedStreamConfigFormatJsonlFormatFiletypeJsonl.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype string
@@ -433,7 +686,29 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUs
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided struct {
// The column names that will be used while emitting the CSV records
ColumnNames []string `json:"column_names"`
- HeaderDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType `const:"User Provided" json:"header_definition_type"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) GetColumnNames() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.ColumnNames
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided) GetHeaderDefinitionType() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionType {
+ return SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvidedHeaderDefinitionTypeUserProvided.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType string
@@ -462,7 +737,22 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAu
// SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated struct {
- HeaderDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType `const:"Autogenerated" json:"header_definition_type"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated) GetHeaderDefinitionType() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionType {
+ return SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogeneratedHeaderDefinitionTypeAutogenerated.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType string
@@ -491,7 +781,22 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFr
// SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV - How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV struct {
- HeaderDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType `json:"header_definition_type,omitempty"`
+ headerDefinitionType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType `const:"From CSV" json:"header_definition_type"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV) GetHeaderDefinitionType() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionType {
+ return SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSVHeaderDefinitionTypeFromCsv.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionType string
@@ -538,30 +843,23 @@ func CreateSourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition
}
func (u *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV := new(SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV = sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
u.Type = SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV
return nil
}
sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated := new(SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated = sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
u.Type = SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated
return nil
}
sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided := new(SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided = sourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided
u.Type = SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionTypeSourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided
return nil
@@ -572,18 +870,18 @@ func (u *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition)
func (u SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition) MarshalJSON() ([]byte, error) {
if u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV)
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionFromCSV, "", true)
}
if u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated)
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionAutogenerated, "", true)
}
if u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided)
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinitionUserProvided, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3UpdateFileBasedStreamConfigFormatCSVFormatInferenceType - How to infer the types of the columns. If none, inference default to strings.
@@ -617,34 +915,140 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatInferenceType) Unmars
// SourceS3UpdateFileBasedStreamConfigFormatCSVFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3UpdateFileBasedStreamConfigFormatCSVFormat struct {
// The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'.
- Delimiter *string `json:"delimiter,omitempty"`
+ Delimiter *string `default:"," json:"delimiter"`
// Whether two quotes in a quoted CSV value denote a single quote in the data.
- DoubleQuote *bool `json:"double_quote,omitempty"`
+ DoubleQuote *bool `default:"true" json:"double_quote"`
// The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options.
- Encoding *string `json:"encoding,omitempty"`
+ Encoding *string `default:"utf8" json:"encoding"`
// The character used for escaping special characters. To disallow escaping, leave this field blank.
EscapeChar *string `json:"escape_char,omitempty"`
// A set of case-sensitive strings that should be interpreted as false values.
FalseValues []string `json:"false_values,omitempty"`
- Filetype *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype `json:"filetype,omitempty"`
+ filetype *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype `const:"csv" json:"filetype"`
// How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.
HeaderDefinition *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition `json:"header_definition,omitempty"`
// How to infer the types of the columns. If none, inference default to strings.
- InferenceType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatInferenceType `json:"inference_type,omitempty"`
+ InferenceType *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatInferenceType `default:"None" json:"inference_type"`
// A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field.
NullValues []string `json:"null_values,omitempty"`
// The character used for quoting CSV values. To disallow quoting, make this field blank.
- QuoteChar *string `json:"quote_char,omitempty"`
+ QuoteChar *string `default:""" json:"quote_char"`
// The number of rows to skip after the header row.
- SkipRowsAfterHeader *int64 `json:"skip_rows_after_header,omitempty"`
+ SkipRowsAfterHeader *int64 `default:"0" json:"skip_rows_after_header"`
// The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field.
- SkipRowsBeforeHeader *int64 `json:"skip_rows_before_header,omitempty"`
+ SkipRowsBeforeHeader *int64 `default:"0" json:"skip_rows_before_header"`
// Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself.
- StringsCanBeNull *bool `json:"strings_can_be_null,omitempty"`
+ StringsCanBeNull *bool `default:"true" json:"strings_can_be_null"`
// A set of case-sensitive strings that should be interpreted as true values.
TrueValues []string `json:"true_values,omitempty"`
}
+func (s SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetDelimiter() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Delimiter
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetDoubleQuote() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleQuote
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetEncoding() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Encoding
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetEscapeChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EscapeChar
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetFalseValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.FalseValues
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetFiletype() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletype {
+ return SourceS3UpdateFileBasedStreamConfigFormatCSVFormatFiletypeCsv.ToPointer()
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetHeaderDefinition() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatCSVHeaderDefinition {
+ if o == nil {
+ return nil
+ }
+ return o.HeaderDefinition
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetInferenceType() *SourceS3UpdateFileBasedStreamConfigFormatCSVFormatInferenceType {
+ if o == nil {
+ return nil
+ }
+ return o.InferenceType
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetNullValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.NullValues
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetQuoteChar() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QuoteChar
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetSkipRowsAfterHeader() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SkipRowsAfterHeader
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetSkipRowsBeforeHeader() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SkipRowsBeforeHeader
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetStringsCanBeNull() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.StringsCanBeNull
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatCSVFormat) GetTrueValues() []string {
+ if o == nil {
+ return nil
+ }
+ return o.TrueValues
+}
+
type SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype string
const (
@@ -672,8 +1076,30 @@ func (e *SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype) UnmarshalJ
// SourceS3UpdateFileBasedStreamConfigFormatAvroFormat - The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
type SourceS3UpdateFileBasedStreamConfigFormatAvroFormat struct {
// Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.
- DoubleAsString *bool `json:"double_as_string,omitempty"`
- Filetype *SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype `json:"filetype,omitempty"`
+ DoubleAsString *bool `default:"false" json:"double_as_string"`
+ filetype *SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype `const:"avro" json:"filetype"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfigFormatAvroFormat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfigFormatAvroFormat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatAvroFormat) GetDoubleAsString() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.DoubleAsString
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfigFormatAvroFormat) GetFiletype() *SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletype {
+ return SourceS3UpdateFileBasedStreamConfigFormatAvroFormatFiletypeAvro.ToPointer()
}
type SourceS3UpdateFileBasedStreamConfigFormatType string
@@ -731,39 +1157,30 @@ func CreateSourceS3UpdateFileBasedStreamConfigFormatSourceS3UpdateFileBasedStrea
}
func (u *SourceS3UpdateFileBasedStreamConfigFormat) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat := new(SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat = sourceS3UpdateFileBasedStreamConfigFormatJsonlFormat
u.Type = SourceS3UpdateFileBasedStreamConfigFormatTypeSourceS3UpdateFileBasedStreamConfigFormatJsonlFormat
return nil
}
sourceS3UpdateFileBasedStreamConfigFormatAvroFormat := new(SourceS3UpdateFileBasedStreamConfigFormatAvroFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatAvroFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatAvroFormat, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat = sourceS3UpdateFileBasedStreamConfigFormatAvroFormat
u.Type = SourceS3UpdateFileBasedStreamConfigFormatTypeSourceS3UpdateFileBasedStreamConfigFormatAvroFormat
return nil
}
sourceS3UpdateFileBasedStreamConfigFormatParquetFormat := new(SourceS3UpdateFileBasedStreamConfigFormatParquetFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatParquetFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatParquetFormat, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat = sourceS3UpdateFileBasedStreamConfigFormatParquetFormat
u.Type = SourceS3UpdateFileBasedStreamConfigFormatTypeSourceS3UpdateFileBasedStreamConfigFormatParquetFormat
return nil
}
sourceS3UpdateFileBasedStreamConfigFormatCSVFormat := new(SourceS3UpdateFileBasedStreamConfigFormatCSVFormat)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceS3UpdateFileBasedStreamConfigFormatCSVFormat); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceS3UpdateFileBasedStreamConfigFormatCSVFormat, "", true, true); err == nil {
u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat = sourceS3UpdateFileBasedStreamConfigFormatCSVFormat
u.Type = SourceS3UpdateFileBasedStreamConfigFormatTypeSourceS3UpdateFileBasedStreamConfigFormatCSVFormat
return nil
@@ -773,23 +1190,23 @@ func (u *SourceS3UpdateFileBasedStreamConfigFormat) UnmarshalJSON(data []byte) e
}
func (u SourceS3UpdateFileBasedStreamConfigFormat) MarshalJSON() ([]byte, error) {
- if u.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat)
+ if u.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat, "", true)
}
- if u.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatAvroFormat)
+ if u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat, "", true)
}
- if u.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat)
+ if u.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatJsonlFormat, "", true)
}
- if u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat != nil {
- return json.Marshal(u.SourceS3UpdateFileBasedStreamConfigFormatCSVFormat)
+ if u.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat != nil {
+ return utils.MarshalJSON(u.SourceS3UpdateFileBasedStreamConfigFormatParquetFormat, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
// SourceS3UpdateFileBasedStreamConfigValidationPolicy - The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema.
@@ -825,7 +1242,7 @@ func (e *SourceS3UpdateFileBasedStreamConfigValidationPolicy) UnmarshalJSON(data
type SourceS3UpdateFileBasedStreamConfig struct {
// When the state history of the file store is full, syncs will only read files that were last modified in the provided day range.
- DaysToSyncIfHistoryIsFull *int64 `json:"days_to_sync_if_history_is_full,omitempty"`
+ DaysToSyncIfHistoryIsFull *int64 `default:"3" json:"days_to_sync_if_history_is_full"`
// The data file type that is being extracted for a stream.
FileType string `json:"file_type"`
// The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.
@@ -841,9 +1258,90 @@ type SourceS3UpdateFileBasedStreamConfig struct {
// The column or columns (for a composite key) that serves as the unique identifier of a record.
PrimaryKey *string `json:"primary_key,omitempty"`
// When enabled, syncs will not validate or structure records against the stream's schema.
- Schemaless *bool `json:"schemaless,omitempty"`
+ Schemaless *bool `default:"false" json:"schemaless"`
// The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema.
- ValidationPolicy *SourceS3UpdateFileBasedStreamConfigValidationPolicy `json:"validation_policy,omitempty"`
+ ValidationPolicy *SourceS3UpdateFileBasedStreamConfigValidationPolicy `default:"Emit Record" json:"validation_policy"`
+}
+
+func (s SourceS3UpdateFileBasedStreamConfig) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3UpdateFileBasedStreamConfig) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetDaysToSyncIfHistoryIsFull() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.DaysToSyncIfHistoryIsFull
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetFileType() string {
+ if o == nil {
+ return ""
+ }
+ return o.FileType
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetFormat() *SourceS3UpdateFileBasedStreamConfigFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetGlobs() []string {
+ if o == nil {
+ return nil
+ }
+ return o.Globs
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetInputSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.InputSchema
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetLegacyPrefix() *string {
+ if o == nil {
+ return nil
+ }
+ return o.LegacyPrefix
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetPrimaryKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrimaryKey
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetSchemaless() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Schemaless
+}
+
+func (o *SourceS3UpdateFileBasedStreamConfig) GetValidationPolicy() *SourceS3UpdateFileBasedStreamConfigValidationPolicy {
+ if o == nil {
+ return nil
+ }
+ return o.ValidationPolicy
}
// SourceS3Update - NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes
@@ -858,7 +1356,7 @@ type SourceS3Update struct {
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.name instead. The name of the stream you would like this source to output. Can contain letters, numbers, or underscores.
Dataset *string `json:"dataset,omitempty"`
// Endpoint to an S3 compatible service. Leave empty to use AWS.
- Endpoint *string `json:"endpoint,omitempty"`
+ Endpoint *string `default:"" json:"endpoint"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.format instead. The format of the files you'd like to replicate
Format *SourceS3UpdateFileFormat `json:"format,omitempty"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.globs instead. A regular expression which tells the connector which files to replicate. All files which match this pattern will be replicated. Use | to separate multiple patterns. See this page to understand pattern syntax (GLOBSTAR and SPLIT flags are enabled). Use pattern ** to pick up all files.
@@ -866,9 +1364,97 @@ type SourceS3Update struct {
// Deprecated and will be removed soon. Please do not use this field anymore and use bucket, aws_access_key_id, aws_secret_access_key and endpoint instead. Use this to load files from S3 or S3-compatible services
Provider *SourceS3UpdateS3AmazonWebServices `json:"provider,omitempty"`
// Deprecated and will be removed soon. Please do not use this field anymore and use streams.input_schema instead. Optionally provide a schema to enforce, as a valid JSON string. Ensure this is a mapping of { "column" : "type" }, where types are valid JSON Schema datatypes. Leave as {} to auto-infer the schema.
- Schema *string `json:"schema,omitempty"`
+ Schema *string `default:"{}" json:"schema"`
// UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
// Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table.
Streams []SourceS3UpdateFileBasedStreamConfig `json:"streams"`
}
+
+func (s SourceS3Update) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceS3Update) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceS3Update) GetAwsAccessKeyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsAccessKeyID
+}
+
+func (o *SourceS3Update) GetAwsSecretAccessKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AwsSecretAccessKey
+}
+
+func (o *SourceS3Update) GetBucket() string {
+ if o == nil {
+ return ""
+ }
+ return o.Bucket
+}
+
+func (o *SourceS3Update) GetDataset() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Dataset
+}
+
+func (o *SourceS3Update) GetEndpoint() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Endpoint
+}
+
+func (o *SourceS3Update) GetFormat() *SourceS3UpdateFileFormat {
+ if o == nil {
+ return nil
+ }
+ return o.Format
+}
+
+func (o *SourceS3Update) GetPathPattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PathPattern
+}
+
+func (o *SourceS3Update) GetProvider() *SourceS3UpdateS3AmazonWebServices {
+ if o == nil {
+ return nil
+ }
+ return o.Provider
+}
+
+func (o *SourceS3Update) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *SourceS3Update) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceS3Update) GetStreams() []SourceS3UpdateFileBasedStreamConfig {
+ if o == nil {
+ return []SourceS3UpdateFileBasedStreamConfig{}
+ }
+ return o.Streams
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesforce.go b/internal/sdk/pkg/models/shared/sourcesalesforce.go
old mode 100755
new mode 100644
index 4d87fae13..764d85de9
--- a/internal/sdk/pkg/models/shared/sourcesalesforce.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesforce.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -102,25 +103,118 @@ func (e *SourceSalesforceStreamsCriteriaSearchCriteria) UnmarshalJSON(data []byt
}
type SourceSalesforceStreamsCriteria struct {
- Criteria SourceSalesforceStreamsCriteriaSearchCriteria `json:"criteria"`
- Value string `json:"value"`
+ Criteria *SourceSalesforceStreamsCriteriaSearchCriteria `default:"contains" json:"criteria"`
+ Value string `json:"value"`
+}
+
+func (s SourceSalesforceStreamsCriteria) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesforceStreamsCriteria) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesforceStreamsCriteria) GetCriteria() *SourceSalesforceStreamsCriteriaSearchCriteria {
+ if o == nil {
+ return nil
+ }
+ return o.Criteria
+}
+
+func (o *SourceSalesforceStreamsCriteria) GetValue() string {
+ if o == nil {
+ return ""
+ }
+ return o.Value
}
type SourceSalesforce struct {
- AuthType *SourceSalesforceAuthType `json:"auth_type,omitempty"`
+ authType *SourceSalesforceAuthType `const:"Client" json:"auth_type,omitempty"`
// Enter your Salesforce developer application's Client ID
ClientID string `json:"client_id"`
// Enter your Salesforce developer application's Client secret
ClientSecret string `json:"client_secret"`
// Toggle to use Bulk API (this might cause empty fields for some streams)
- ForceUseBulkAPI *bool `json:"force_use_bulk_api,omitempty"`
+ ForceUseBulkAPI *bool `default:"false" json:"force_use_bulk_api"`
// Toggle if you're using a Salesforce Sandbox
- IsSandbox *bool `json:"is_sandbox,omitempty"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
// Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.
RefreshToken string `json:"refresh_token"`
- SourceType SourceSalesforceSalesforce `json:"sourceType"`
+ sourceType SourceSalesforceSalesforce `const:"salesforce" json:"sourceType"`
// Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years.
StartDate *time.Time `json:"start_date,omitempty"`
// Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector.
StreamsCriteria []SourceSalesforceStreamsCriteria `json:"streams_criteria,omitempty"`
}
+
+func (s SourceSalesforce) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesforce) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesforce) GetAuthType() *SourceSalesforceAuthType {
+ return SourceSalesforceAuthTypeClient.ToPointer()
+}
+
+func (o *SourceSalesforce) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSalesforce) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSalesforce) GetForceUseBulkAPI() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ForceUseBulkAPI
+}
+
+func (o *SourceSalesforce) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourceSalesforce) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSalesforce) GetSourceType() SourceSalesforceSalesforce {
+ return SourceSalesforceSalesforceSalesforce
+}
+
+func (o *SourceSalesforce) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceSalesforce) GetStreamsCriteria() []SourceSalesforceStreamsCriteria {
+ if o == nil {
+ return nil
+ }
+ return o.StreamsCriteria
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesforcecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesalesforcecreaterequest.go
old mode 100755
new mode 100644
index e3b855232..85d63225c
--- a/internal/sdk/pkg/models/shared/sourcesalesforcecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesforcecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSalesforceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSalesforceCreateRequest) GetConfiguration() SourceSalesforce {
+ if o == nil {
+ return SourceSalesforce{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSalesforceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSalesforceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSalesforceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesforceputrequest.go b/internal/sdk/pkg/models/shared/sourcesalesforceputrequest.go
old mode 100755
new mode 100644
index a6e023e00..3288e59ff
--- a/internal/sdk/pkg/models/shared/sourcesalesforceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesforceputrequest.go
@@ -7,3 +7,24 @@ type SourceSalesforcePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSalesforcePutRequest) GetConfiguration() SourceSalesforceUpdate {
+ if o == nil {
+ return SourceSalesforceUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSalesforcePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSalesforcePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesforceupdate.go b/internal/sdk/pkg/models/shared/sourcesalesforceupdate.go
old mode 100755
new mode 100644
index 7348e0150..63ea1b8ab
--- a/internal/sdk/pkg/models/shared/sourcesalesforceupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesforceupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -78,20 +79,45 @@ func (e *SourceSalesforceUpdateStreamsCriteriaSearchCriteria) UnmarshalJSON(data
}
type SourceSalesforceUpdateStreamsCriteria struct {
- Criteria SourceSalesforceUpdateStreamsCriteriaSearchCriteria `json:"criteria"`
- Value string `json:"value"`
+ Criteria *SourceSalesforceUpdateStreamsCriteriaSearchCriteria `default:"contains" json:"criteria"`
+ Value string `json:"value"`
+}
+
+func (s SourceSalesforceUpdateStreamsCriteria) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesforceUpdateStreamsCriteria) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesforceUpdateStreamsCriteria) GetCriteria() *SourceSalesforceUpdateStreamsCriteriaSearchCriteria {
+ if o == nil {
+ return nil
+ }
+ return o.Criteria
+}
+
+func (o *SourceSalesforceUpdateStreamsCriteria) GetValue() string {
+ if o == nil {
+ return ""
+ }
+ return o.Value
}
type SourceSalesforceUpdate struct {
- AuthType *SourceSalesforceUpdateAuthType `json:"auth_type,omitempty"`
+ authType *SourceSalesforceUpdateAuthType `const:"Client" json:"auth_type,omitempty"`
// Enter your Salesforce developer application's Client ID
ClientID string `json:"client_id"`
// Enter your Salesforce developer application's Client secret
ClientSecret string `json:"client_secret"`
// Toggle to use Bulk API (this might cause empty fields for some streams)
- ForceUseBulkAPI *bool `json:"force_use_bulk_api,omitempty"`
+ ForceUseBulkAPI *bool `default:"false" json:"force_use_bulk_api"`
// Toggle if you're using a Salesforce Sandbox
- IsSandbox *bool `json:"is_sandbox,omitempty"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
// Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.
RefreshToken string `json:"refresh_token"`
// Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years.
@@ -99,3 +125,67 @@ type SourceSalesforceUpdate struct {
// Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector.
StreamsCriteria []SourceSalesforceUpdateStreamsCriteria `json:"streams_criteria,omitempty"`
}
+
+func (s SourceSalesforceUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesforceUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesforceUpdate) GetAuthType() *SourceSalesforceUpdateAuthType {
+ return SourceSalesforceUpdateAuthTypeClient.ToPointer()
+}
+
+func (o *SourceSalesforceUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSalesforceUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSalesforceUpdate) GetForceUseBulkAPI() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.ForceUseBulkAPI
+}
+
+func (o *SourceSalesforceUpdate) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourceSalesforceUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSalesforceUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceSalesforceUpdate) GetStreamsCriteria() []SourceSalesforceUpdateStreamsCriteria {
+ if o == nil {
+ return nil
+ }
+ return o.StreamsCriteria
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesloft.go b/internal/sdk/pkg/models/shared/sourcesalesloft.go
old mode 100755
new mode 100644
index af5a5cf5c..2d9c85f52
--- a/internal/sdk/pkg/models/shared/sourcesalesloft.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesloft.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthType) UnmarshalJSON(
type SourceSalesloftCredentialsAuthenticateViaAPIKey struct {
// API Key for making authenticated requests. More instruction on how to find this value in our docs
APIKey string `json:"api_key"`
- AuthType SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthType `json:"auth_type"`
+ authType SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthType `const:"api_key" json:"auth_type"`
+}
+
+func (s SourceSalesloftCredentialsAuthenticateViaAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloftCredentialsAuthenticateViaAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaAPIKey) GetAuthType() SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthType {
+ return SourceSalesloftCredentialsAuthenticateViaAPIKeyAuthTypeAPIKey
}
type SourceSalesloftCredentialsAuthenticateViaOAuthAuthType string
@@ -67,7 +89,7 @@ func (e *SourceSalesloftCredentialsAuthenticateViaOAuthAuthType) UnmarshalJSON(d
type SourceSalesloftCredentialsAuthenticateViaOAuth struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType SourceSalesloftCredentialsAuthenticateViaOAuthAuthType `json:"auth_type"`
+ authType SourceSalesloftCredentialsAuthenticateViaOAuthAuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your Salesloft developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Salesloft developer application.
@@ -78,6 +100,56 @@ type SourceSalesloftCredentialsAuthenticateViaOAuth struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceSalesloftCredentialsAuthenticateViaOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloftCredentialsAuthenticateViaOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetAuthType() SourceSalesloftCredentialsAuthenticateViaOAuthAuthType {
+ return SourceSalesloftCredentialsAuthenticateViaOAuthAuthTypeOauth20
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSalesloftCredentialsAuthenticateViaOAuth) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceSalesloftCredentialsType string
const (
@@ -111,21 +183,16 @@ func CreateSourceSalesloftCredentialsSourceSalesloftCredentialsAuthenticateViaAP
}
func (u *SourceSalesloftCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSalesloftCredentialsAuthenticateViaAPIKey := new(SourceSalesloftCredentialsAuthenticateViaAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSalesloftCredentialsAuthenticateViaAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSalesloftCredentialsAuthenticateViaAPIKey, "", true, true); err == nil {
u.SourceSalesloftCredentialsAuthenticateViaAPIKey = sourceSalesloftCredentialsAuthenticateViaAPIKey
u.Type = SourceSalesloftCredentialsTypeSourceSalesloftCredentialsAuthenticateViaAPIKey
return nil
}
sourceSalesloftCredentialsAuthenticateViaOAuth := new(SourceSalesloftCredentialsAuthenticateViaOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSalesloftCredentialsAuthenticateViaOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSalesloftCredentialsAuthenticateViaOAuth, "", true, true); err == nil {
u.SourceSalesloftCredentialsAuthenticateViaOAuth = sourceSalesloftCredentialsAuthenticateViaOAuth
u.Type = SourceSalesloftCredentialsTypeSourceSalesloftCredentialsAuthenticateViaOAuth
return nil
@@ -135,15 +202,15 @@ func (u *SourceSalesloftCredentials) UnmarshalJSON(data []byte) error {
}
func (u SourceSalesloftCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceSalesloftCredentialsAuthenticateViaAPIKey != nil {
- return json.Marshal(u.SourceSalesloftCredentialsAuthenticateViaAPIKey)
+ if u.SourceSalesloftCredentialsAuthenticateViaOAuth != nil {
+ return utils.MarshalJSON(u.SourceSalesloftCredentialsAuthenticateViaOAuth, "", true)
}
- if u.SourceSalesloftCredentialsAuthenticateViaOAuth != nil {
- return json.Marshal(u.SourceSalesloftCredentialsAuthenticateViaOAuth)
+ if u.SourceSalesloftCredentialsAuthenticateViaAPIKey != nil {
+ return utils.MarshalJSON(u.SourceSalesloftCredentialsAuthenticateViaAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSalesloftSalesloft string
@@ -172,7 +239,36 @@ func (e *SourceSalesloftSalesloft) UnmarshalJSON(data []byte) error {
type SourceSalesloft struct {
Credentials SourceSalesloftCredentials `json:"credentials"`
- SourceType SourceSalesloftSalesloft `json:"sourceType"`
+ sourceType SourceSalesloftSalesloft `const:"salesloft" json:"sourceType"`
// The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceSalesloft) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloft) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloft) GetCredentials() SourceSalesloftCredentials {
+ if o == nil {
+ return SourceSalesloftCredentials{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceSalesloft) GetSourceType() SourceSalesloftSalesloft {
+ return SourceSalesloftSalesloftSalesloft
+}
+
+func (o *SourceSalesloft) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesloftcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesalesloftcreaterequest.go
old mode 100755
new mode 100644
index dcc8da1bd..1a8c242cc
--- a/internal/sdk/pkg/models/shared/sourcesalesloftcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesloftcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSalesloftCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSalesloftCreateRequest) GetConfiguration() SourceSalesloft {
+ if o == nil {
+ return SourceSalesloft{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSalesloftCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSalesloftCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSalesloftCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesloftputrequest.go b/internal/sdk/pkg/models/shared/sourcesalesloftputrequest.go
old mode 100755
new mode 100644
index 082f24c73..dc3a19db3
--- a/internal/sdk/pkg/models/shared/sourcesalesloftputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesloftputrequest.go
@@ -7,3 +7,24 @@ type SourceSalesloftPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSalesloftPutRequest) GetConfiguration() SourceSalesloftUpdate {
+ if o == nil {
+ return SourceSalesloftUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSalesloftPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSalesloftPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go b/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go
old mode 100755
new mode 100644
index 3eac04137..1ceb8191e
--- a/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthType) Unmarsha
type SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey struct {
// API Key for making authenticated requests. More instruction on how to find this value in our docs
APIKey string `json:"api_key"`
- AuthType SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthType `json:"auth_type"`
+ authType SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthType `const:"api_key" json:"auth_type"`
+}
+
+func (s SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey) GetAuthType() SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthType {
+ return SourceSalesloftUpdateCredentialsAuthenticateViaAPIKeyAuthTypeAPIKey
}
type SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType string
@@ -67,7 +89,7 @@ func (e *SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType) Unmarshal
type SourceSalesloftUpdateCredentialsAuthenticateViaOAuth struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType `json:"auth_type"`
+ authType SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType `const:"oauth2.0" json:"auth_type"`
// The Client ID of your Salesloft developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Salesloft developer application.
@@ -78,6 +100,56 @@ type SourceSalesloftUpdateCredentialsAuthenticateViaOAuth struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetAuthType() SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthType {
+ return SourceSalesloftUpdateCredentialsAuthenticateViaOAuthAuthTypeOauth20
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSalesloftUpdateCredentialsAuthenticateViaOAuth) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceSalesloftUpdateCredentialsType string
const (
@@ -111,21 +183,16 @@ func CreateSourceSalesloftUpdateCredentialsSourceSalesloftUpdateCredentialsAuthe
}
func (u *SourceSalesloftUpdateCredentials) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey := new(SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey, "", true, true); err == nil {
u.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey = sourceSalesloftUpdateCredentialsAuthenticateViaAPIKey
u.Type = SourceSalesloftUpdateCredentialsTypeSourceSalesloftUpdateCredentialsAuthenticateViaAPIKey
return nil
}
sourceSalesloftUpdateCredentialsAuthenticateViaOAuth := new(SourceSalesloftUpdateCredentialsAuthenticateViaOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSalesloftUpdateCredentialsAuthenticateViaOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSalesloftUpdateCredentialsAuthenticateViaOAuth, "", true, true); err == nil {
u.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth = sourceSalesloftUpdateCredentialsAuthenticateViaOAuth
u.Type = SourceSalesloftUpdateCredentialsTypeSourceSalesloftUpdateCredentialsAuthenticateViaOAuth
return nil
@@ -135,15 +202,15 @@ func (u *SourceSalesloftUpdateCredentials) UnmarshalJSON(data []byte) error {
}
func (u SourceSalesloftUpdateCredentials) MarshalJSON() ([]byte, error) {
- if u.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey != nil {
- return json.Marshal(u.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey)
+ if u.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth != nil {
+ return utils.MarshalJSON(u.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth, "", true)
}
- if u.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth != nil {
- return json.Marshal(u.SourceSalesloftUpdateCredentialsAuthenticateViaOAuth)
+ if u.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey != nil {
+ return utils.MarshalJSON(u.SourceSalesloftUpdateCredentialsAuthenticateViaAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSalesloftUpdate struct {
@@ -151,3 +218,28 @@ type SourceSalesloftUpdate struct {
// The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceSalesloftUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSalesloftUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSalesloftUpdate) GetCredentials() SourceSalesloftUpdateCredentials {
+ if o == nil {
+ return SourceSalesloftUpdateCredentials{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceSalesloftUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesapfieldglass.go b/internal/sdk/pkg/models/shared/sourcesapfieldglass.go
old mode 100755
new mode 100644
index dc4446bfb..de6e23748
--- a/internal/sdk/pkg/models/shared/sourcesapfieldglass.go
+++ b/internal/sdk/pkg/models/shared/sourcesapfieldglass.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceSapFieldglassSapFieldglass) UnmarshalJSON(data []byte) error {
type SourceSapFieldglass struct {
// API Key
APIKey string `json:"api_key"`
- SourceType SourceSapFieldglassSapFieldglass `json:"sourceType"`
+ sourceType SourceSapFieldglassSapFieldglass `const:"sap-fieldglass" json:"sourceType"`
+}
+
+func (s SourceSapFieldglass) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSapFieldglass) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSapFieldglass) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSapFieldglass) GetSourceType() SourceSapFieldglassSapFieldglass {
+ return SourceSapFieldglassSapFieldglassSapFieldglass
}
diff --git a/internal/sdk/pkg/models/shared/sourcesapfieldglasscreaterequest.go b/internal/sdk/pkg/models/shared/sourcesapfieldglasscreaterequest.go
old mode 100755
new mode 100644
index 09f071cea..a777e0560
--- a/internal/sdk/pkg/models/shared/sourcesapfieldglasscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesapfieldglasscreaterequest.go
@@ -9,3 +9,31 @@ type SourceSapFieldglassCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSapFieldglassCreateRequest) GetConfiguration() SourceSapFieldglass {
+ if o == nil {
+ return SourceSapFieldglass{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSapFieldglassCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSapFieldglassCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSapFieldglassCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesapfieldglassputrequest.go b/internal/sdk/pkg/models/shared/sourcesapfieldglassputrequest.go
old mode 100755
new mode 100644
index db746c23d..7c48f766b
--- a/internal/sdk/pkg/models/shared/sourcesapfieldglassputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesapfieldglassputrequest.go
@@ -7,3 +7,24 @@ type SourceSapFieldglassPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSapFieldglassPutRequest) GetConfiguration() SourceSapFieldglassUpdate {
+ if o == nil {
+ return SourceSapFieldglassUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSapFieldglassPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSapFieldglassPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesapfieldglassupdate.go b/internal/sdk/pkg/models/shared/sourcesapfieldglassupdate.go
old mode 100755
new mode 100644
index 4e346c87a..35c15b770
--- a/internal/sdk/pkg/models/shared/sourcesapfieldglassupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesapfieldglassupdate.go
@@ -6,3 +6,10 @@ type SourceSapFieldglassUpdate struct {
// API Key
APIKey string `json:"api_key"`
}
+
+func (o *SourceSapFieldglassUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesecoda.go b/internal/sdk/pkg/models/shared/sourcesecoda.go
old mode 100755
new mode 100644
index b8dfa49f4..d7a850977
--- a/internal/sdk/pkg/models/shared/sourcesecoda.go
+++ b/internal/sdk/pkg/models/shared/sourcesecoda.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceSecodaSecoda) UnmarshalJSON(data []byte) error {
type SourceSecoda struct {
// Your API Access Key. See here. The key is case sensitive.
APIKey string `json:"api_key"`
- SourceType SourceSecodaSecoda `json:"sourceType"`
+ sourceType SourceSecodaSecoda `const:"secoda" json:"sourceType"`
+}
+
+func (s SourceSecoda) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSecoda) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSecoda) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSecoda) GetSourceType() SourceSecodaSecoda {
+ return SourceSecodaSecodaSecoda
}
diff --git a/internal/sdk/pkg/models/shared/sourcesecodacreaterequest.go b/internal/sdk/pkg/models/shared/sourcesecodacreaterequest.go
old mode 100755
new mode 100644
index ddfa2d065..cd291298d
--- a/internal/sdk/pkg/models/shared/sourcesecodacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesecodacreaterequest.go
@@ -9,3 +9,31 @@ type SourceSecodaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSecodaCreateRequest) GetConfiguration() SourceSecoda {
+ if o == nil {
+ return SourceSecoda{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSecodaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSecodaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSecodaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesecodaputrequest.go b/internal/sdk/pkg/models/shared/sourcesecodaputrequest.go
old mode 100755
new mode 100644
index 1475c0534..527d3c881
--- a/internal/sdk/pkg/models/shared/sourcesecodaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesecodaputrequest.go
@@ -7,3 +7,24 @@ type SourceSecodaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSecodaPutRequest) GetConfiguration() SourceSecodaUpdate {
+ if o == nil {
+ return SourceSecodaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSecodaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSecodaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesecodaupdate.go b/internal/sdk/pkg/models/shared/sourcesecodaupdate.go
old mode 100755
new mode 100644
index 67cbea04f..35b904026
--- a/internal/sdk/pkg/models/shared/sourcesecodaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesecodaupdate.go
@@ -6,3 +6,10 @@ type SourceSecodaUpdate struct {
// Your API Access Key. See here. The key is case sensitive.
APIKey string `json:"api_key"`
}
+
+func (o *SourceSecodaUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendgrid.go b/internal/sdk/pkg/models/shared/sourcesendgrid.go
old mode 100755
new mode 100644
index 3850e9e0f..ea1716668
--- a/internal/sdk/pkg/models/shared/sourcesendgrid.go
+++ b/internal/sdk/pkg/models/shared/sourcesendgrid.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,36 @@ func (e *SourceSendgridSendgrid) UnmarshalJSON(data []byte) error {
type SourceSendgrid struct {
// API Key, use admin to generate this key.
Apikey string `json:"apikey"`
- SourceType SourceSendgridSendgrid `json:"sourceType"`
+ sourceType SourceSendgridSendgrid `const:"sendgrid" json:"sourceType"`
// Start time in ISO8601 format. Any data before this time point will not be replicated.
StartTime *time.Time `json:"start_time,omitempty"`
}
+
+func (s SourceSendgrid) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSendgrid) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSendgrid) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceSendgrid) GetSourceType() SourceSendgridSendgrid {
+ return SourceSendgridSendgridSendgrid
+}
+
+func (o *SourceSendgrid) GetStartTime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartTime
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendgridcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesendgridcreaterequest.go
old mode 100755
new mode 100644
index a411466c0..e216f3688
--- a/internal/sdk/pkg/models/shared/sourcesendgridcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesendgridcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSendgridCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSendgridCreateRequest) GetConfiguration() SourceSendgrid {
+ if o == nil {
+ return SourceSendgrid{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSendgridCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSendgridCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSendgridCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendgridputrequest.go b/internal/sdk/pkg/models/shared/sourcesendgridputrequest.go
old mode 100755
new mode 100644
index 376d5f4b8..0a5d90375
--- a/internal/sdk/pkg/models/shared/sourcesendgridputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesendgridputrequest.go
@@ -7,3 +7,24 @@ type SourceSendgridPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSendgridPutRequest) GetConfiguration() SourceSendgridUpdate {
+ if o == nil {
+ return SourceSendgridUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSendgridPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSendgridPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendgridupdate.go b/internal/sdk/pkg/models/shared/sourcesendgridupdate.go
old mode 100755
new mode 100644
index 148718b55..760bfd64f
--- a/internal/sdk/pkg/models/shared/sourcesendgridupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesendgridupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,3 +13,28 @@ type SourceSendgridUpdate struct {
// Start time in ISO8601 format. Any data before this time point will not be replicated.
StartTime *time.Time `json:"start_time,omitempty"`
}
+
+func (s SourceSendgridUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSendgridUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSendgridUpdate) GetApikey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Apikey
+}
+
+func (o *SourceSendgridUpdate) GetStartTime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartTime
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendinblue.go b/internal/sdk/pkg/models/shared/sourcesendinblue.go
old mode 100755
new mode 100644
index 8ffcf5871..390dd55b2
--- a/internal/sdk/pkg/models/shared/sourcesendinblue.go
+++ b/internal/sdk/pkg/models/shared/sourcesendinblue.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceSendinblueSendinblue) UnmarshalJSON(data []byte) error {
type SourceSendinblue struct {
// Your API Key. See here.
APIKey string `json:"api_key"`
- SourceType SourceSendinblueSendinblue `json:"sourceType"`
+ sourceType SourceSendinblueSendinblue `const:"sendinblue" json:"sourceType"`
+}
+
+func (s SourceSendinblue) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSendinblue) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSendinblue) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSendinblue) GetSourceType() SourceSendinblueSendinblue {
+ return SourceSendinblueSendinblueSendinblue
}
diff --git a/internal/sdk/pkg/models/shared/sourcesendinbluecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesendinbluecreaterequest.go
old mode 100755
new mode 100644
index ece74b25d..3d78f5960
--- a/internal/sdk/pkg/models/shared/sourcesendinbluecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesendinbluecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSendinblueCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSendinblueCreateRequest) GetConfiguration() SourceSendinblue {
+ if o == nil {
+ return SourceSendinblue{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSendinblueCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSendinblueCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSendinblueCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendinblueputrequest.go b/internal/sdk/pkg/models/shared/sourcesendinblueputrequest.go
old mode 100755
new mode 100644
index 683a60e0b..10c12283d
--- a/internal/sdk/pkg/models/shared/sourcesendinblueputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesendinblueputrequest.go
@@ -7,3 +7,24 @@ type SourceSendinbluePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSendinbluePutRequest) GetConfiguration() SourceSendinblueUpdate {
+ if o == nil {
+ return SourceSendinblueUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSendinbluePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSendinbluePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesendinblueupdate.go b/internal/sdk/pkg/models/shared/sourcesendinblueupdate.go
old mode 100755
new mode 100644
index c0449a8d3..a985d5733
--- a/internal/sdk/pkg/models/shared/sourcesendinblueupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesendinblueupdate.go
@@ -6,3 +6,10 @@ type SourceSendinblueUpdate struct {
// Your API Key. See here.
APIKey string `json:"api_key"`
}
+
+func (o *SourceSendinblueUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesenseforce.go b/internal/sdk/pkg/models/shared/sourcesenseforce.go
old mode 100755
new mode 100644
index 25cc1a02a..3adb0f09b
--- a/internal/sdk/pkg/models/shared/sourcesenseforce.go
+++ b/internal/sdk/pkg/models/shared/sourcesenseforce.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -40,8 +41,58 @@ type SourceSenseforce struct {
// The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source).
DatasetID string `json:"dataset_id"`
// The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more.
- SliceRange *int64 `json:"slice_range,omitempty"`
- SourceType SourceSenseforceSenseforce `json:"sourceType"`
+ SliceRange *int64 `default:"10" json:"slice_range"`
+ sourceType SourceSenseforceSenseforce `const:"senseforce" json:"sourceType"`
// UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceSenseforce) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSenseforce) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSenseforce) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSenseforce) GetBackendURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.BackendURL
+}
+
+func (o *SourceSenseforce) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *SourceSenseforce) GetSliceRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SliceRange
+}
+
+func (o *SourceSenseforce) GetSourceType() SourceSenseforceSenseforce {
+ return SourceSenseforceSenseforceSenseforce
+}
+
+func (o *SourceSenseforce) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesenseforcecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesenseforcecreaterequest.go
old mode 100755
new mode 100644
index ac6d2b74d..10385764d
--- a/internal/sdk/pkg/models/shared/sourcesenseforcecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesenseforcecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSenseforceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSenseforceCreateRequest) GetConfiguration() SourceSenseforce {
+ if o == nil {
+ return SourceSenseforce{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSenseforceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSenseforceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSenseforceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesenseforceputrequest.go b/internal/sdk/pkg/models/shared/sourcesenseforceputrequest.go
old mode 100755
new mode 100644
index a49703eb2..b245d8be5
--- a/internal/sdk/pkg/models/shared/sourcesenseforceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesenseforceputrequest.go
@@ -7,3 +7,24 @@ type SourceSenseforcePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSenseforcePutRequest) GetConfiguration() SourceSenseforceUpdate {
+ if o == nil {
+ return SourceSenseforceUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSenseforcePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSenseforcePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesenseforceupdate.go b/internal/sdk/pkg/models/shared/sourcesenseforceupdate.go
old mode 100755
new mode 100644
index 7eea8f113..811d2b484
--- a/internal/sdk/pkg/models/shared/sourcesenseforceupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesenseforceupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceSenseforceUpdate struct {
@@ -14,7 +15,53 @@ type SourceSenseforceUpdate struct {
// The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See here for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source).
DatasetID string `json:"dataset_id"`
// The time increment used by the connector when requesting data from the Senseforce API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted and the more likely one could run into rate limites. Furthermore, consider that large chunks of time might take a long time for the Senseforce query to return data - meaning it could take in effect longer than with more smaller time slices. If there are a lot of data per day, set this setting to 1. If there is only very little data per day, you might change the setting to 10 or more.
- SliceRange *int64 `json:"slice_range,omitempty"`
+ SliceRange *int64 `default:"10" json:"slice_range"`
// UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceSenseforceUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSenseforceUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSenseforceUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSenseforceUpdate) GetBackendURL() string {
+ if o == nil {
+ return ""
+ }
+ return o.BackendURL
+}
+
+func (o *SourceSenseforceUpdate) GetDatasetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DatasetID
+}
+
+func (o *SourceSenseforceUpdate) GetSliceRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SliceRange
+}
+
+func (o *SourceSenseforceUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesentry.go b/internal/sdk/pkg/models/shared/sourcesentry.go
old mode 100755
new mode 100644
index 5bebe4d27..38c1a749a
--- a/internal/sdk/pkg/models/shared/sourcesentry.go
+++ b/internal/sdk/pkg/models/shared/sourcesentry.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -37,10 +38,60 @@ type SourceSentry struct {
// Fields to retrieve when fetching discover events
DiscoverFields []interface{} `json:"discover_fields,omitempty"`
// Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty.
- Hostname *string `json:"hostname,omitempty"`
+ Hostname *string `default:"sentry.io" json:"hostname"`
// The slug of the organization the groups belong to.
Organization string `json:"organization"`
// The name (slug) of the Project you want to sync.
Project string `json:"project"`
- SourceType SourceSentrySentry `json:"sourceType"`
+ sourceType SourceSentrySentry `const:"sentry" json:"sourceType"`
+}
+
+func (s SourceSentry) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSentry) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSentry) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceSentry) GetDiscoverFields() []interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.DiscoverFields
+}
+
+func (o *SourceSentry) GetHostname() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Hostname
+}
+
+func (o *SourceSentry) GetOrganization() string {
+ if o == nil {
+ return ""
+ }
+ return o.Organization
+}
+
+func (o *SourceSentry) GetProject() string {
+ if o == nil {
+ return ""
+ }
+ return o.Project
+}
+
+func (o *SourceSentry) GetSourceType() SourceSentrySentry {
+ return SourceSentrySentrySentry
}
diff --git a/internal/sdk/pkg/models/shared/sourcesentrycreaterequest.go b/internal/sdk/pkg/models/shared/sourcesentrycreaterequest.go
old mode 100755
new mode 100644
index 10a21ced8..50db86ad2
--- a/internal/sdk/pkg/models/shared/sourcesentrycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesentrycreaterequest.go
@@ -9,3 +9,31 @@ type SourceSentryCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSentryCreateRequest) GetConfiguration() SourceSentry {
+ if o == nil {
+ return SourceSentry{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSentryCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSentryCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSentryCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesentryputrequest.go b/internal/sdk/pkg/models/shared/sourcesentryputrequest.go
old mode 100755
new mode 100644
index 957945e98..377d44ad5
--- a/internal/sdk/pkg/models/shared/sourcesentryputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesentryputrequest.go
@@ -7,3 +7,24 @@ type SourceSentryPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSentryPutRequest) GetConfiguration() SourceSentryUpdate {
+ if o == nil {
+ return SourceSentryUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSentryPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSentryPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesentryupdate.go b/internal/sdk/pkg/models/shared/sourcesentryupdate.go
old mode 100755
new mode 100644
index 4d91fb634..ece6cd74e
--- a/internal/sdk/pkg/models/shared/sourcesentryupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesentryupdate.go
@@ -2,15 +2,65 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceSentryUpdate struct {
// Log into Sentry and then create authentication tokens.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/"
AuthToken string `json:"auth_token"`
// Fields to retrieve when fetching discover events
DiscoverFields []interface{} `json:"discover_fields,omitempty"`
// Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty.
- Hostname *string `json:"hostname,omitempty"`
+ Hostname *string `default:"sentry.io" json:"hostname"`
// The slug of the organization the groups belong to.
Organization string `json:"organization"`
// The name (slug) of the Project you want to sync.
Project string `json:"project"`
}
+
+func (s SourceSentryUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSentryUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSentryUpdate) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceSentryUpdate) GetDiscoverFields() []interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.DiscoverFields
+}
+
+func (o *SourceSentryUpdate) GetHostname() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Hostname
+}
+
+func (o *SourceSentryUpdate) GetOrganization() string {
+ if o == nil {
+ return ""
+ }
+ return o.Organization
+}
+
+func (o *SourceSentryUpdate) GetProject() string {
+ if o == nil {
+ return ""
+ }
+ return o.Project
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftp.go b/internal/sdk/pkg/models/shared/sourcesftp.go
old mode 100755
new mode 100644
index a29715945..d353935bf
--- a/internal/sdk/pkg/models/shared/sourcesftp.go
+++ b/internal/sdk/pkg/models/shared/sourcesftp.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,33 @@ func (e *SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethod) Unmarsh
// SourceSftpAuthenticationWildcardSSHKeyAuthentication - The server authentication method
type SourceSftpAuthenticationWildcardSSHKeyAuthentication struct {
// Connect through ssh key
- AuthMethod SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethod `json:"auth_method"`
+ authMethod SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethod `const:"SSH_KEY_AUTH" json:"auth_method"`
// OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
AuthSSHKey string `json:"auth_ssh_key"`
}
+func (s SourceSftpAuthenticationWildcardSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpAuthenticationWildcardSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpAuthenticationWildcardSSHKeyAuthentication) GetAuthMethod() SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethod {
+ return SourceSftpAuthenticationWildcardSSHKeyAuthenticationAuthMethodSSHKeyAuth
+}
+
+func (o *SourceSftpAuthenticationWildcardSSHKeyAuthentication) GetAuthSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthSSHKey
+}
+
// SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod - Connect through password authentication
type SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod string
@@ -70,11 +92,33 @@ func (e *SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod) Unmar
// SourceSftpAuthenticationWildcardPasswordAuthentication - The server authentication method
type SourceSftpAuthenticationWildcardPasswordAuthentication struct {
// Connect through password authentication
- AuthMethod SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod `json:"auth_method"`
+ authMethod SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod `const:"SSH_PASSWORD_AUTH" json:"auth_method"`
// OS-level password for logging into the jump server host
AuthUserPassword string `json:"auth_user_password"`
}
+func (s SourceSftpAuthenticationWildcardPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpAuthenticationWildcardPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpAuthenticationWildcardPasswordAuthentication) GetAuthMethod() SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethod {
+ return SourceSftpAuthenticationWildcardPasswordAuthenticationAuthMethodSSHPasswordAuth
+}
+
+func (o *SourceSftpAuthenticationWildcardPasswordAuthentication) GetAuthUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthUserPassword
+}
+
type SourceSftpAuthenticationWildcardType string
const (
@@ -108,21 +152,16 @@ func CreateSourceSftpAuthenticationWildcardSourceSftpAuthenticationWildcardSSHKe
}
func (u *SourceSftpAuthenticationWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSftpAuthenticationWildcardPasswordAuthentication := new(SourceSftpAuthenticationWildcardPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSftpAuthenticationWildcardPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSftpAuthenticationWildcardPasswordAuthentication, "", true, true); err == nil {
u.SourceSftpAuthenticationWildcardPasswordAuthentication = sourceSftpAuthenticationWildcardPasswordAuthentication
u.Type = SourceSftpAuthenticationWildcardTypeSourceSftpAuthenticationWildcardPasswordAuthentication
return nil
}
sourceSftpAuthenticationWildcardSSHKeyAuthentication := new(SourceSftpAuthenticationWildcardSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSftpAuthenticationWildcardSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSftpAuthenticationWildcardSSHKeyAuthentication, "", true, true); err == nil {
u.SourceSftpAuthenticationWildcardSSHKeyAuthentication = sourceSftpAuthenticationWildcardSSHKeyAuthentication
u.Type = SourceSftpAuthenticationWildcardTypeSourceSftpAuthenticationWildcardSSHKeyAuthentication
return nil
@@ -133,14 +172,14 @@ func (u *SourceSftpAuthenticationWildcard) UnmarshalJSON(data []byte) error {
func (u SourceSftpAuthenticationWildcard) MarshalJSON() ([]byte, error) {
if u.SourceSftpAuthenticationWildcardPasswordAuthentication != nil {
- return json.Marshal(u.SourceSftpAuthenticationWildcardPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceSftpAuthenticationWildcardPasswordAuthentication, "", true)
}
if u.SourceSftpAuthenticationWildcardSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceSftpAuthenticationWildcardSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceSftpAuthenticationWildcardSSHKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSftpSftp string
@@ -171,16 +210,80 @@ type SourceSftp struct {
// The server authentication method
Credentials *SourceSftpAuthenticationWildcard `json:"credentials,omitempty"`
// The regular expression to specify files for sync in a chosen Folder Path
- FilePattern *string `json:"file_pattern,omitempty"`
+ FilePattern *string `default:"" json:"file_pattern"`
// Coma separated file types. Currently only 'csv' and 'json' types are supported.
- FileTypes *string `json:"file_types,omitempty"`
+ FileTypes *string `default:"csv,json" json:"file_types"`
// The directory to search files for sync
- FolderPath *string `json:"folder_path,omitempty"`
+ FolderPath *string `default:"" json:"folder_path"`
// The server host address
Host string `json:"host"`
// The server port
- Port int64 `json:"port"`
- SourceType SourceSftpSftp `json:"sourceType"`
+ Port *int64 `default:"22" json:"port"`
+ sourceType SourceSftpSftp `const:"sftp" json:"sourceType"`
// The server user
User string `json:"user"`
}
+
+func (s SourceSftp) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftp) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftp) GetCredentials() *SourceSftpAuthenticationWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSftp) GetFilePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FilePattern
+}
+
+func (o *SourceSftp) GetFileTypes() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileTypes
+}
+
+func (o *SourceSftp) GetFolderPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderPath
+}
+
+func (o *SourceSftp) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSftp) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceSftp) GetSourceType() SourceSftpSftp {
+ return SourceSftpSftpSftp
+}
+
+func (o *SourceSftp) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpbulk.go b/internal/sdk/pkg/models/shared/sourcesftpbulk.go
old mode 100755
new mode 100644
index 232d9ac36..85ff9720e
--- a/internal/sdk/pkg/models/shared/sourcesftpbulk.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpbulk.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -62,24 +63,24 @@ func (e *SourceSftpBulkSftpBulk) UnmarshalJSON(data []byte) error {
type SourceSftpBulk struct {
// Sync only the most recent file for the configured folder path and file pattern
- FileMostRecent *bool `json:"file_most_recent,omitempty"`
+ FileMostRecent *bool `default:"false" json:"file_most_recent"`
// The regular expression to specify files for sync in a chosen Folder Path
- FilePattern *string `json:"file_pattern,omitempty"`
+ FilePattern *string `default:"" json:"file_pattern"`
// The file type you want to sync. Currently only 'csv' and 'json' files are supported.
- FileType *SourceSftpBulkFileType `json:"file_type,omitempty"`
+ FileType *SourceSftpBulkFileType `default:"csv" json:"file_type"`
// The directory to search files for sync
- FolderPath string `json:"folder_path"`
+ FolderPath *string `default:"" json:"folder_path"`
// The server host address
Host string `json:"host"`
// OS-level password for logging into the jump server host
Password *string `json:"password,omitempty"`
// The server port
- Port int64 `json:"port"`
+ Port *int64 `default:"22" json:"port"`
// The private key
PrivateKey *string `json:"private_key,omitempty"`
// The separator used in the CSV files. Define None if you want to use the Sniffer functionality
- Separator *string `json:"separator,omitempty"`
- SourceType SourceSftpBulkSftpBulk `json:"sourceType"`
+ Separator *string `default:"," json:"separator"`
+ sourceType SourceSftpBulkSftpBulk `const:"sftp-bulk" json:"sourceType"`
// The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
// The name of the stream or table you want to create
@@ -87,3 +88,102 @@ type SourceSftpBulk struct {
// The server user
Username string `json:"username"`
}
+
+func (s SourceSftpBulk) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpBulk) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpBulk) GetFileMostRecent() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.FileMostRecent
+}
+
+func (o *SourceSftpBulk) GetFilePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FilePattern
+}
+
+func (o *SourceSftpBulk) GetFileType() *SourceSftpBulkFileType {
+ if o == nil {
+ return nil
+ }
+ return o.FileType
+}
+
+func (o *SourceSftpBulk) GetFolderPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderPath
+}
+
+func (o *SourceSftpBulk) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSftpBulk) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceSftpBulk) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceSftpBulk) GetPrivateKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceSftpBulk) GetSeparator() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Separator
+}
+
+func (o *SourceSftpBulk) GetSourceType() SourceSftpBulkSftpBulk {
+ return SourceSftpBulkSftpBulkSftpBulk
+}
+
+func (o *SourceSftpBulk) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceSftpBulk) GetStreamName() string {
+ if o == nil {
+ return ""
+ }
+ return o.StreamName
+}
+
+func (o *SourceSftpBulk) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpbulkcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesftpbulkcreaterequest.go
old mode 100755
new mode 100644
index a9d546aeb..44b0fd118
--- a/internal/sdk/pkg/models/shared/sourcesftpbulkcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpbulkcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSftpBulkCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSftpBulkCreateRequest) GetConfiguration() SourceSftpBulk {
+ if o == nil {
+ return SourceSftpBulk{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSftpBulkCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSftpBulkCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSftpBulkCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpbulkputrequest.go b/internal/sdk/pkg/models/shared/sourcesftpbulkputrequest.go
old mode 100755
new mode 100644
index a2b319622..a5885b029
--- a/internal/sdk/pkg/models/shared/sourcesftpbulkputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpbulkputrequest.go
@@ -7,3 +7,24 @@ type SourceSftpBulkPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSftpBulkPutRequest) GetConfiguration() SourceSftpBulkUpdate {
+ if o == nil {
+ return SourceSftpBulkUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSftpBulkPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSftpBulkPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpbulkupdate.go b/internal/sdk/pkg/models/shared/sourcesftpbulkupdate.go
old mode 100755
new mode 100644
index f8c6fd403..d53f406bc
--- a/internal/sdk/pkg/models/shared/sourcesftpbulkupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpbulkupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -38,23 +39,23 @@ func (e *SourceSftpBulkUpdateFileType) UnmarshalJSON(data []byte) error {
type SourceSftpBulkUpdate struct {
// Sync only the most recent file for the configured folder path and file pattern
- FileMostRecent *bool `json:"file_most_recent,omitempty"`
+ FileMostRecent *bool `default:"false" json:"file_most_recent"`
// The regular expression to specify files for sync in a chosen Folder Path
- FilePattern *string `json:"file_pattern,omitempty"`
+ FilePattern *string `default:"" json:"file_pattern"`
// The file type you want to sync. Currently only 'csv' and 'json' files are supported.
- FileType *SourceSftpBulkUpdateFileType `json:"file_type,omitempty"`
+ FileType *SourceSftpBulkUpdateFileType `default:"csv" json:"file_type"`
// The directory to search files for sync
- FolderPath string `json:"folder_path"`
+ FolderPath *string `default:"" json:"folder_path"`
// The server host address
Host string `json:"host"`
// OS-level password for logging into the jump server host
Password *string `json:"password,omitempty"`
// The server port
- Port int64 `json:"port"`
+ Port *int64 `default:"22" json:"port"`
// The private key
PrivateKey *string `json:"private_key,omitempty"`
// The separator used in the CSV files. Define None if you want to use the Sniffer functionality
- Separator *string `json:"separator,omitempty"`
+ Separator *string `default:"," json:"separator"`
// The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
// The name of the stream or table you want to create
@@ -62,3 +63,98 @@ type SourceSftpBulkUpdate struct {
// The server user
Username string `json:"username"`
}
+
+func (s SourceSftpBulkUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpBulkUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpBulkUpdate) GetFileMostRecent() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.FileMostRecent
+}
+
+func (o *SourceSftpBulkUpdate) GetFilePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FilePattern
+}
+
+func (o *SourceSftpBulkUpdate) GetFileType() *SourceSftpBulkUpdateFileType {
+ if o == nil {
+ return nil
+ }
+ return o.FileType
+}
+
+func (o *SourceSftpBulkUpdate) GetFolderPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderPath
+}
+
+func (o *SourceSftpBulkUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSftpBulkUpdate) GetPassword() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Password
+}
+
+func (o *SourceSftpBulkUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceSftpBulkUpdate) GetPrivateKey() *string {
+ if o == nil {
+ return nil
+ }
+ return o.PrivateKey
+}
+
+func (o *SourceSftpBulkUpdate) GetSeparator() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Separator
+}
+
+func (o *SourceSftpBulkUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceSftpBulkUpdate) GetStreamName() string {
+ if o == nil {
+ return ""
+ }
+ return o.StreamName
+}
+
+func (o *SourceSftpBulkUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesftpcreaterequest.go
old mode 100755
new mode 100644
index a84c7ad50..c3d447367
--- a/internal/sdk/pkg/models/shared/sourcesftpcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSftpCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSftpCreateRequest) GetConfiguration() SourceSftp {
+ if o == nil {
+ return SourceSftp{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSftpCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSftpCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSftpCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpputrequest.go b/internal/sdk/pkg/models/shared/sourcesftpputrequest.go
old mode 100755
new mode 100644
index fb99243b1..196713f4c
--- a/internal/sdk/pkg/models/shared/sourcesftpputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpputrequest.go
@@ -7,3 +7,24 @@ type SourceSftpPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSftpPutRequest) GetConfiguration() SourceSftpUpdate {
+ if o == nil {
+ return SourceSftpUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSftpPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSftpPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesftpupdate.go b/internal/sdk/pkg/models/shared/sourcesftpupdate.go
old mode 100755
new mode 100644
index bf10367e4..c7fc59e65
--- a/internal/sdk/pkg/models/shared/sourcesftpupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesftpupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,11 +37,33 @@ func (e *SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethod) U
// SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication - The server authentication method
type SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication struct {
// Connect through ssh key
- AuthMethod SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethod `json:"auth_method"`
+ authMethod SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethod `const:"SSH_KEY_AUTH" json:"auth_method"`
// OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )
AuthSSHKey string `json:"auth_ssh_key"`
}
+func (s SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication) GetAuthMethod() SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethod {
+ return SourceSftpUpdateAuthenticationWildcardSSHKeyAuthenticationAuthMethodSSHKeyAuth
+}
+
+func (o *SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication) GetAuthSSHKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthSSHKey
+}
+
// SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod - Connect through password authentication
type SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod string
@@ -70,11 +92,33 @@ func (e *SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod)
// SourceSftpUpdateAuthenticationWildcardPasswordAuthentication - The server authentication method
type SourceSftpUpdateAuthenticationWildcardPasswordAuthentication struct {
// Connect through password authentication
- AuthMethod SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod `json:"auth_method"`
+ authMethod SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod `const:"SSH_PASSWORD_AUTH" json:"auth_method"`
// OS-level password for logging into the jump server host
AuthUserPassword string `json:"auth_user_password"`
}
+func (s SourceSftpUpdateAuthenticationWildcardPasswordAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpUpdateAuthenticationWildcardPasswordAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpUpdateAuthenticationWildcardPasswordAuthentication) GetAuthMethod() SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethod {
+ return SourceSftpUpdateAuthenticationWildcardPasswordAuthenticationAuthMethodSSHPasswordAuth
+}
+
+func (o *SourceSftpUpdateAuthenticationWildcardPasswordAuthentication) GetAuthUserPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthUserPassword
+}
+
type SourceSftpUpdateAuthenticationWildcardType string
const (
@@ -108,21 +152,16 @@ func CreateSourceSftpUpdateAuthenticationWildcardSourceSftpUpdateAuthenticationW
}
func (u *SourceSftpUpdateAuthenticationWildcard) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSftpUpdateAuthenticationWildcardPasswordAuthentication := new(SourceSftpUpdateAuthenticationWildcardPasswordAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSftpUpdateAuthenticationWildcardPasswordAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSftpUpdateAuthenticationWildcardPasswordAuthentication, "", true, true); err == nil {
u.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication = sourceSftpUpdateAuthenticationWildcardPasswordAuthentication
u.Type = SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdateAuthenticationWildcardPasswordAuthentication
return nil
}
sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication := new(SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication, "", true, true); err == nil {
u.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication = sourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication
u.Type = SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication
return nil
@@ -133,29 +172,89 @@ func (u *SourceSftpUpdateAuthenticationWildcard) UnmarshalJSON(data []byte) erro
func (u SourceSftpUpdateAuthenticationWildcard) MarshalJSON() ([]byte, error) {
if u.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication != nil {
- return json.Marshal(u.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication)
+ return utils.MarshalJSON(u.SourceSftpUpdateAuthenticationWildcardPasswordAuthentication, "", true)
}
if u.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication != nil {
- return json.Marshal(u.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication)
+ return utils.MarshalJSON(u.SourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSftpUpdate struct {
// The server authentication method
Credentials *SourceSftpUpdateAuthenticationWildcard `json:"credentials,omitempty"`
// The regular expression to specify files for sync in a chosen Folder Path
- FilePattern *string `json:"file_pattern,omitempty"`
+ FilePattern *string `default:"" json:"file_pattern"`
// Coma separated file types. Currently only 'csv' and 'json' types are supported.
- FileTypes *string `json:"file_types,omitempty"`
+ FileTypes *string `default:"csv,json" json:"file_types"`
// The directory to search files for sync
- FolderPath *string `json:"folder_path,omitempty"`
+ FolderPath *string `default:"" json:"folder_path"`
// The server host address
Host string `json:"host"`
// The server port
- Port int64 `json:"port"`
+ Port *int64 `default:"22" json:"port"`
// The server user
User string `json:"user"`
}
+
+func (s SourceSftpUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSftpUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSftpUpdate) GetCredentials() *SourceSftpUpdateAuthenticationWildcard {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSftpUpdate) GetFilePattern() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FilePattern
+}
+
+func (o *SourceSftpUpdate) GetFileTypes() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FileTypes
+}
+
+func (o *SourceSftpUpdate) GetFolderPath() *string {
+ if o == nil {
+ return nil
+ }
+ return o.FolderPath
+}
+
+func (o *SourceSftpUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSftpUpdate) GetPort() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.Port
+}
+
+func (o *SourceSftpUpdate) GetUser() string {
+ if o == nil {
+ return ""
+ }
+ return o.User
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshopify.go b/internal/sdk/pkg/models/shared/sourceshopify.go
old mode 100755
new mode 100644
index 4655cca84..572017857
--- a/internal/sdk/pkg/models/shared/sourceshopify.go
+++ b/internal/sdk/pkg/models/shared/sourceshopify.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethod) Unmarshal
type SourceShopifyShopifyAuthorizationMethodAPIPassword struct {
// The API Password for your private application in the `Shopify` store.
APIPassword string `json:"api_password"`
- AuthMethod SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethod `json:"auth_method"`
+ authMethod SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethod `const:"api_password" json:"auth_method"`
+}
+
+func (s SourceShopifyShopifyAuthorizationMethodAPIPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopifyShopifyAuthorizationMethodAPIPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodAPIPassword) GetAPIPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIPassword
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodAPIPassword) GetAuthMethod() SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethod {
+ return SourceShopifyShopifyAuthorizationMethodAPIPasswordAuthMethodAPIPassword
}
type SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod string
@@ -69,13 +91,49 @@ func (e *SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod) UnmarshalJSON
type SourceShopifyShopifyAuthorizationMethodOAuth20 struct {
// The Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthMethod SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ authMethod SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of the Shopify developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of the Shopify developer application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceShopifyShopifyAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopifyShopifyAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodOAuth20) GetAuthMethod() SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethod {
+ return SourceShopifyShopifyAuthorizationMethodOAuth20AuthMethodOauth20
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceShopifyShopifyAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
type SourceShopifyShopifyAuthorizationMethodType string
const (
@@ -109,21 +167,16 @@ func CreateSourceShopifyShopifyAuthorizationMethodSourceShopifyShopifyAuthorizat
}
func (u *SourceShopifyShopifyAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceShopifyShopifyAuthorizationMethodAPIPassword := new(SourceShopifyShopifyAuthorizationMethodAPIPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceShopifyShopifyAuthorizationMethodAPIPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceShopifyShopifyAuthorizationMethodAPIPassword, "", true, true); err == nil {
u.SourceShopifyShopifyAuthorizationMethodAPIPassword = sourceShopifyShopifyAuthorizationMethodAPIPassword
u.Type = SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyShopifyAuthorizationMethodAPIPassword
return nil
}
sourceShopifyShopifyAuthorizationMethodOAuth20 := new(SourceShopifyShopifyAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceShopifyShopifyAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceShopifyShopifyAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceShopifyShopifyAuthorizationMethodOAuth20 = sourceShopifyShopifyAuthorizationMethodOAuth20
u.Type = SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyShopifyAuthorizationMethodOAuth20
return nil
@@ -133,15 +186,15 @@ func (u *SourceShopifyShopifyAuthorizationMethod) UnmarshalJSON(data []byte) err
}
func (u SourceShopifyShopifyAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceShopifyShopifyAuthorizationMethodAPIPassword != nil {
- return json.Marshal(u.SourceShopifyShopifyAuthorizationMethodAPIPassword)
+ if u.SourceShopifyShopifyAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceShopifyShopifyAuthorizationMethodOAuth20, "", true)
}
- if u.SourceShopifyShopifyAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceShopifyShopifyAuthorizationMethodOAuth20)
+ if u.SourceShopifyShopifyAuthorizationMethodAPIPassword != nil {
+ return utils.MarshalJSON(u.SourceShopifyShopifyAuthorizationMethodAPIPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceShopifyShopify string
@@ -173,7 +226,43 @@ type SourceShopify struct {
Credentials *SourceShopifyShopifyAuthorizationMethod `json:"credentials,omitempty"`
// The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.
Shop string `json:"shop"`
- SourceType SourceShopifyShopify `json:"sourceType"`
+ sourceType SourceShopifyShopify `const:"shopify" json:"sourceType"`
// The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2020-01-01" json:"start_date"`
+}
+
+func (s SourceShopify) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopify) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopify) GetCredentials() *SourceShopifyShopifyAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceShopify) GetShop() string {
+ if o == nil {
+ return ""
+ }
+ return o.Shop
+}
+
+func (o *SourceShopify) GetSourceType() SourceShopifyShopify {
+ return SourceShopifyShopifyShopify
+}
+
+func (o *SourceShopify) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceshopifycreaterequest.go b/internal/sdk/pkg/models/shared/sourceshopifycreaterequest.go
old mode 100755
new mode 100644
index 3e37c68da..37be8016c
--- a/internal/sdk/pkg/models/shared/sourceshopifycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceshopifycreaterequest.go
@@ -9,3 +9,31 @@ type SourceShopifyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceShopifyCreateRequest) GetConfiguration() SourceShopify {
+ if o == nil {
+ return SourceShopify{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceShopifyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceShopifyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceShopifyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshopifyputrequest.go b/internal/sdk/pkg/models/shared/sourceshopifyputrequest.go
old mode 100755
new mode 100644
index 15cc16f72..c79070035
--- a/internal/sdk/pkg/models/shared/sourceshopifyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceshopifyputrequest.go
@@ -7,3 +7,24 @@ type SourceShopifyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceShopifyPutRequest) GetConfiguration() SourceShopifyUpdate {
+ if o == nil {
+ return SourceShopifyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceShopifyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceShopifyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshopifyupdate.go b/internal/sdk/pkg/models/shared/sourceshopifyupdate.go
old mode 100755
new mode 100644
index 29285ffe9..ec41e2082
--- a/internal/sdk/pkg/models/shared/sourceshopifyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceshopifyupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethod) Unm
type SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword struct {
// The API Password for your private application in the `Shopify` store.
APIPassword string `json:"api_password"`
- AuthMethod SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethod `json:"auth_method"`
+ authMethod SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethod `const:"api_password" json:"auth_method"`
+}
+
+func (s SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword) GetAPIPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIPassword
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword) GetAuthMethod() SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethod {
+ return SourceShopifyUpdateShopifyAuthorizationMethodAPIPasswordAuthMethodAPIPassword
}
type SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod string
@@ -69,13 +91,49 @@ func (e *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod) Unmarsh
type SourceShopifyUpdateShopifyAuthorizationMethodOAuth20 struct {
// The Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthMethod SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ authMethod SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of the Shopify developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of the Shopify developer application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) GetAuthMethod() SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethod {
+ return SourceShopifyUpdateShopifyAuthorizationMethodOAuth20AuthMethodOauth20
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceShopifyUpdateShopifyAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
type SourceShopifyUpdateShopifyAuthorizationMethodType string
const (
@@ -109,21 +167,16 @@ func CreateSourceShopifyUpdateShopifyAuthorizationMethodSourceShopifyUpdateShopi
}
func (u *SourceShopifyUpdateShopifyAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword := new(SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword, "", true, true); err == nil {
u.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword = sourceShopifyUpdateShopifyAuthorizationMethodAPIPassword
u.Type = SourceShopifyUpdateShopifyAuthorizationMethodTypeSourceShopifyUpdateShopifyAuthorizationMethodAPIPassword
return nil
}
sourceShopifyUpdateShopifyAuthorizationMethodOAuth20 := new(SourceShopifyUpdateShopifyAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceShopifyUpdateShopifyAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceShopifyUpdateShopifyAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20 = sourceShopifyUpdateShopifyAuthorizationMethodOAuth20
u.Type = SourceShopifyUpdateShopifyAuthorizationMethodTypeSourceShopifyUpdateShopifyAuthorizationMethodOAuth20
return nil
@@ -133,15 +186,15 @@ func (u *SourceShopifyUpdateShopifyAuthorizationMethod) UnmarshalJSON(data []byt
}
func (u SourceShopifyUpdateShopifyAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword != nil {
- return json.Marshal(u.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword)
+ if u.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20, "", true)
}
- if u.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceShopifyUpdateShopifyAuthorizationMethodOAuth20)
+ if u.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword != nil {
+ return utils.MarshalJSON(u.SourceShopifyUpdateShopifyAuthorizationMethodAPIPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceShopifyUpdate struct {
@@ -150,5 +203,37 @@ type SourceShopifyUpdate struct {
// The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'.
Shop string `json:"shop"`
// The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2020-01-01" json:"start_date"`
+}
+
+func (s SourceShopifyUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShopifyUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShopifyUpdate) GetCredentials() *SourceShopifyUpdateShopifyAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceShopifyUpdate) GetShop() string {
+ if o == nil {
+ return ""
+ }
+ return o.Shop
+}
+
+func (o *SourceShopifyUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourceshortio.go b/internal/sdk/pkg/models/shared/sourceshortio.go
old mode 100755
new mode 100644
index 27ca24498..1e8062eeb
--- a/internal/sdk/pkg/models/shared/sourceshortio.go
+++ b/internal/sdk/pkg/models/shared/sourceshortio.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -35,7 +36,43 @@ type SourceShortio struct {
DomainID string `json:"domain_id"`
// Short.io Secret Key
SecretKey string `json:"secret_key"`
- SourceType SourceShortioShortio `json:"sourceType"`
+ sourceType SourceShortioShortio `const:"shortio" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (s SourceShortio) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceShortio) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceShortio) GetDomainID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainID
+}
+
+func (o *SourceShortio) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceShortio) GetSourceType() SourceShortioShortio {
+ return SourceShortioShortioShortio
+}
+
+func (o *SourceShortio) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshortiocreaterequest.go b/internal/sdk/pkg/models/shared/sourceshortiocreaterequest.go
old mode 100755
new mode 100644
index 34c443c31..3ea9b2b6c
--- a/internal/sdk/pkg/models/shared/sourceshortiocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceshortiocreaterequest.go
@@ -9,3 +9,31 @@ type SourceShortioCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceShortioCreateRequest) GetConfiguration() SourceShortio {
+ if o == nil {
+ return SourceShortio{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceShortioCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceShortioCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceShortioCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshortioputrequest.go b/internal/sdk/pkg/models/shared/sourceshortioputrequest.go
old mode 100755
new mode 100644
index 2bf56b6c6..30a3c7227
--- a/internal/sdk/pkg/models/shared/sourceshortioputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceshortioputrequest.go
@@ -7,3 +7,24 @@ type SourceShortioPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceShortioPutRequest) GetConfiguration() SourceShortioUpdate {
+ if o == nil {
+ return SourceShortioUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceShortioPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceShortioPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceshortioupdate.go b/internal/sdk/pkg/models/shared/sourceshortioupdate.go
old mode 100755
new mode 100644
index b78384096..cf9a5b081
--- a/internal/sdk/pkg/models/shared/sourceshortioupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceshortioupdate.go
@@ -9,3 +9,24 @@ type SourceShortioUpdate struct {
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate string `json:"start_date"`
}
+
+func (o *SourceShortioUpdate) GetDomainID() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomainID
+}
+
+func (o *SourceShortioUpdate) GetSecretKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.SecretKey
+}
+
+func (o *SourceShortioUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceslack.go b/internal/sdk/pkg/models/shared/sourceslack.go
old mode 100755
new mode 100644
index f852d03f8..bc1ce60b2
--- a/internal/sdk/pkg/models/shared/sourceslack.go
+++ b/internal/sdk/pkg/models/shared/sourceslack.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceSlackAuthenticationMechanismAPITokenOptionTitle) UnmarshalJSON(da
type SourceSlackAuthenticationMechanismAPIToken struct {
// A Slack bot token. See the docs for instructions on how to generate it.
APIToken string `json:"api_token"`
- OptionTitle SourceSlackAuthenticationMechanismAPITokenOptionTitle `json:"option_title"`
+ optionTitle SourceSlackAuthenticationMechanismAPITokenOptionTitle `const:"API Token Credentials" json:"option_title"`
+}
+
+func (s SourceSlackAuthenticationMechanismAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlackAuthenticationMechanismAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlackAuthenticationMechanismAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceSlackAuthenticationMechanismAPIToken) GetOptionTitle() SourceSlackAuthenticationMechanismAPITokenOptionTitle {
+ return SourceSlackAuthenticationMechanismAPITokenOptionTitleAPITokenCredentials
}
type SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitle string
@@ -73,7 +95,43 @@ type SourceSlackAuthenticationMechanismSignInViaSlackOAuth struct {
ClientID string `json:"client_id"`
// Slack client_secret. See our docs if you need help finding this secret.
ClientSecret string `json:"client_secret"`
- OptionTitle SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitle `json:"option_title"`
+ optionTitle SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitle `const:"Default OAuth2.0 authorization" json:"option_title"`
+}
+
+func (s SourceSlackAuthenticationMechanismSignInViaSlackOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlackAuthenticationMechanismSignInViaSlackOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlackAuthenticationMechanismSignInViaSlackOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSlackAuthenticationMechanismSignInViaSlackOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSlackAuthenticationMechanismSignInViaSlackOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSlackAuthenticationMechanismSignInViaSlackOAuth) GetOptionTitle() SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitle {
+ return SourceSlackAuthenticationMechanismSignInViaSlackOAuthOptionTitleDefaultOAuth20Authorization
}
type SourceSlackAuthenticationMechanismType string
@@ -109,21 +167,16 @@ func CreateSourceSlackAuthenticationMechanismSourceSlackAuthenticationMechanismA
}
func (u *SourceSlackAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSlackAuthenticationMechanismAPIToken := new(SourceSlackAuthenticationMechanismAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSlackAuthenticationMechanismAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSlackAuthenticationMechanismAPIToken, "", true, true); err == nil {
u.SourceSlackAuthenticationMechanismAPIToken = sourceSlackAuthenticationMechanismAPIToken
u.Type = SourceSlackAuthenticationMechanismTypeSourceSlackAuthenticationMechanismAPIToken
return nil
}
sourceSlackAuthenticationMechanismSignInViaSlackOAuth := new(SourceSlackAuthenticationMechanismSignInViaSlackOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSlackAuthenticationMechanismSignInViaSlackOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSlackAuthenticationMechanismSignInViaSlackOAuth, "", true, true); err == nil {
u.SourceSlackAuthenticationMechanismSignInViaSlackOAuth = sourceSlackAuthenticationMechanismSignInViaSlackOAuth
u.Type = SourceSlackAuthenticationMechanismTypeSourceSlackAuthenticationMechanismSignInViaSlackOAuth
return nil
@@ -133,15 +186,15 @@ func (u *SourceSlackAuthenticationMechanism) UnmarshalJSON(data []byte) error {
}
func (u SourceSlackAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceSlackAuthenticationMechanismAPIToken != nil {
- return json.Marshal(u.SourceSlackAuthenticationMechanismAPIToken)
+ if u.SourceSlackAuthenticationMechanismSignInViaSlackOAuth != nil {
+ return utils.MarshalJSON(u.SourceSlackAuthenticationMechanismSignInViaSlackOAuth, "", true)
}
- if u.SourceSlackAuthenticationMechanismSignInViaSlackOAuth != nil {
- return json.Marshal(u.SourceSlackAuthenticationMechanismSignInViaSlackOAuth)
+ if u.SourceSlackAuthenticationMechanismAPIToken != nil {
+ return utils.MarshalJSON(u.SourceSlackAuthenticationMechanismAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSlackSlack string
@@ -174,10 +227,60 @@ type SourceSlack struct {
// Choose how to authenticate into Slack
Credentials *SourceSlackAuthenticationMechanism `json:"credentials,omitempty"`
// Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages.
- JoinChannels bool `json:"join_channels"`
+ JoinChannels *bool `default:"true" json:"join_channels"`
// How far into the past to look for messages in threads, default is 0 days
- LookbackWindow int64 `json:"lookback_window"`
- SourceType SourceSlackSlack `json:"sourceType"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
+ sourceType SourceSlackSlack `const:"slack" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceSlack) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlack) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlack) GetChannelFilter() []string {
+ if o == nil {
+ return nil
+ }
+ return o.ChannelFilter
+}
+
+func (o *SourceSlack) GetCredentials() *SourceSlackAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSlack) GetJoinChannels() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.JoinChannels
+}
+
+func (o *SourceSlack) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceSlack) GetSourceType() SourceSlackSlack {
+ return SourceSlackSlackSlack
+}
+
+func (o *SourceSlack) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceslackcreaterequest.go b/internal/sdk/pkg/models/shared/sourceslackcreaterequest.go
old mode 100755
new mode 100644
index c2cb41b73..5128e5eee
--- a/internal/sdk/pkg/models/shared/sourceslackcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceslackcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSlackCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSlackCreateRequest) GetConfiguration() SourceSlack {
+ if o == nil {
+ return SourceSlack{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSlackCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSlackCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSlackCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceslackputrequest.go b/internal/sdk/pkg/models/shared/sourceslackputrequest.go
old mode 100755
new mode 100644
index 8a3240ced..74dd4ca80
--- a/internal/sdk/pkg/models/shared/sourceslackputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceslackputrequest.go
@@ -7,3 +7,24 @@ type SourceSlackPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSlackPutRequest) GetConfiguration() SourceSlackUpdate {
+ if o == nil {
+ return SourceSlackUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSlackPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSlackPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceslackupdate.go b/internal/sdk/pkg/models/shared/sourceslackupdate.go
old mode 100755
new mode 100644
index 4809b8586..4f84f1868
--- a/internal/sdk/pkg/models/shared/sourceslackupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceslackupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitle) UnmarshalJ
type SourceSlackUpdateAuthenticationMechanismAPIToken struct {
// A Slack bot token. See the docs for instructions on how to generate it.
APIToken string `json:"api_token"`
- OptionTitle SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitle `json:"option_title"`
+ optionTitle SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitle `const:"API Token Credentials" json:"option_title"`
+}
+
+func (s SourceSlackUpdateAuthenticationMechanismAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlackUpdateAuthenticationMechanismAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismAPIToken) GetOptionTitle() SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitle {
+ return SourceSlackUpdateAuthenticationMechanismAPITokenOptionTitleAPITokenCredentials
}
type SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitle string
@@ -73,7 +95,43 @@ type SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth struct {
ClientID string `json:"client_id"`
// Slack client_secret. See our docs if you need help finding this secret.
ClientSecret string `json:"client_secret"`
- OptionTitle SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitle `json:"option_title"`
+ optionTitle SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitle `const:"Default OAuth2.0 authorization" json:"option_title"`
+}
+
+func (s SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth) GetOptionTitle() SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitle {
+ return SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuthOptionTitleDefaultOAuth20Authorization
}
type SourceSlackUpdateAuthenticationMechanismType string
@@ -109,21 +167,16 @@ func CreateSourceSlackUpdateAuthenticationMechanismSourceSlackUpdateAuthenticati
}
func (u *SourceSlackUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSlackUpdateAuthenticationMechanismAPIToken := new(SourceSlackUpdateAuthenticationMechanismAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSlackUpdateAuthenticationMechanismAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSlackUpdateAuthenticationMechanismAPIToken, "", true, true); err == nil {
u.SourceSlackUpdateAuthenticationMechanismAPIToken = sourceSlackUpdateAuthenticationMechanismAPIToken
u.Type = SourceSlackUpdateAuthenticationMechanismTypeSourceSlackUpdateAuthenticationMechanismAPIToken
return nil
}
sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth := new(SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth, "", true, true); err == nil {
u.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth = sourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth
u.Type = SourceSlackUpdateAuthenticationMechanismTypeSourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth
return nil
@@ -133,15 +186,15 @@ func (u *SourceSlackUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) er
}
func (u SourceSlackUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) {
- if u.SourceSlackUpdateAuthenticationMechanismAPIToken != nil {
- return json.Marshal(u.SourceSlackUpdateAuthenticationMechanismAPIToken)
+ if u.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth != nil {
+ return utils.MarshalJSON(u.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth, "", true)
}
- if u.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth != nil {
- return json.Marshal(u.SourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth)
+ if u.SourceSlackUpdateAuthenticationMechanismAPIToken != nil {
+ return utils.MarshalJSON(u.SourceSlackUpdateAuthenticationMechanismAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSlackUpdate struct {
@@ -150,9 +203,55 @@ type SourceSlackUpdate struct {
// Choose how to authenticate into Slack
Credentials *SourceSlackUpdateAuthenticationMechanism `json:"credentials,omitempty"`
// Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages.
- JoinChannels bool `json:"join_channels"`
+ JoinChannels *bool `default:"true" json:"join_channels"`
// How far into the past to look for messages in threads, default is 0 days
- LookbackWindow int64 `json:"lookback_window"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceSlackUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSlackUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSlackUpdate) GetChannelFilter() []string {
+ if o == nil {
+ return nil
+ }
+ return o.ChannelFilter
+}
+
+func (o *SourceSlackUpdate) GetCredentials() *SourceSlackUpdateAuthenticationMechanism {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSlackUpdate) GetJoinChannels() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.JoinChannels
+}
+
+func (o *SourceSlackUpdate) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceSlackUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmaily.go b/internal/sdk/pkg/models/shared/sourcesmaily.go
old mode 100755
new mode 100644
index ff5a512af..62fe214e4
--- a/internal/sdk/pkg/models/shared/sourcesmaily.go
+++ b/internal/sdk/pkg/models/shared/sourcesmaily.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceSmaily struct {
APISubdomain string `json:"api_subdomain"`
// API user username. See https://smaily.com/help/api/general/create-api-user/
APIUsername string `json:"api_username"`
- SourceType SourceSmailySmaily `json:"sourceType"`
+ sourceType SourceSmailySmaily `const:"smaily" json:"sourceType"`
+}
+
+func (s SourceSmaily) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmaily) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmaily) GetAPIPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIPassword
+}
+
+func (o *SourceSmaily) GetAPISubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISubdomain
+}
+
+func (o *SourceSmaily) GetAPIUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIUsername
+}
+
+func (o *SourceSmaily) GetSourceType() SourceSmailySmaily {
+ return SourceSmailySmailySmaily
}
diff --git a/internal/sdk/pkg/models/shared/sourcesmailycreaterequest.go b/internal/sdk/pkg/models/shared/sourcesmailycreaterequest.go
old mode 100755
new mode 100644
index 22035852f..02efbca87
--- a/internal/sdk/pkg/models/shared/sourcesmailycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmailycreaterequest.go
@@ -9,3 +9,31 @@ type SourceSmailyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmailyCreateRequest) GetConfiguration() SourceSmaily {
+ if o == nil {
+ return SourceSmaily{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmailyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmailyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSmailyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmailyputrequest.go b/internal/sdk/pkg/models/shared/sourcesmailyputrequest.go
old mode 100755
new mode 100644
index 945e0037f..b1576318e
--- a/internal/sdk/pkg/models/shared/sourcesmailyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmailyputrequest.go
@@ -7,3 +7,24 @@ type SourceSmailyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmailyPutRequest) GetConfiguration() SourceSmailyUpdate {
+ if o == nil {
+ return SourceSmailyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmailyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmailyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmailyupdate.go b/internal/sdk/pkg/models/shared/sourcesmailyupdate.go
old mode 100755
new mode 100644
index 65be48891..870707bd9
--- a/internal/sdk/pkg/models/shared/sourcesmailyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesmailyupdate.go
@@ -10,3 +10,24 @@ type SourceSmailyUpdate struct {
// API user username. See https://smaily.com/help/api/general/create-api-user/
APIUsername string `json:"api_username"`
}
+
+func (o *SourceSmailyUpdate) GetAPIPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIPassword
+}
+
+func (o *SourceSmailyUpdate) GetAPISubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISubdomain
+}
+
+func (o *SourceSmailyUpdate) GetAPIUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIUsername
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartengage.go b/internal/sdk/pkg/models/shared/sourcesmartengage.go
old mode 100755
new mode 100644
index 93e12aab9..6436a8245
--- a/internal/sdk/pkg/models/shared/sourcesmartengage.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartengage.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceSmartengageSmartengage) UnmarshalJSON(data []byte) error {
type SourceSmartengage struct {
// API Key
APIKey string `json:"api_key"`
- SourceType SourceSmartengageSmartengage `json:"sourceType"`
+ sourceType SourceSmartengageSmartengage `const:"smartengage" json:"sourceType"`
+}
+
+func (s SourceSmartengage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartengage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartengage) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSmartengage) GetSourceType() SourceSmartengageSmartengage {
+ return SourceSmartengageSmartengageSmartengage
}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartengagecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesmartengagecreaterequest.go
old mode 100755
new mode 100644
index 2be4072c7..32ae74952
--- a/internal/sdk/pkg/models/shared/sourcesmartengagecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartengagecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSmartengageCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmartengageCreateRequest) GetConfiguration() SourceSmartengage {
+ if o == nil {
+ return SourceSmartengage{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmartengageCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmartengageCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSmartengageCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartengageputrequest.go b/internal/sdk/pkg/models/shared/sourcesmartengageputrequest.go
old mode 100755
new mode 100644
index c98b8167a..8cc023b6a
--- a/internal/sdk/pkg/models/shared/sourcesmartengageputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartengageputrequest.go
@@ -7,3 +7,24 @@ type SourceSmartengagePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmartengagePutRequest) GetConfiguration() SourceSmartengageUpdate {
+ if o == nil {
+ return SourceSmartengageUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmartengagePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmartengagePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartengageupdate.go b/internal/sdk/pkg/models/shared/sourcesmartengageupdate.go
old mode 100755
new mode 100644
index 38e707809..ea63939c3
--- a/internal/sdk/pkg/models/shared/sourcesmartengageupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartengageupdate.go
@@ -6,3 +6,10 @@ type SourceSmartengageUpdate struct {
// API Key
APIKey string `json:"api_key"`
}
+
+func (o *SourceSmartengageUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheets.go b/internal/sdk/pkg/models/shared/sourcesmartsheets.go
old mode 100755
new mode 100644
index 59cf3943b..095a28fbc
--- a/internal/sdk/pkg/models/shared/sourcesmartsheets.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartsheets.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType) UnmarshalJS
type SourceSmartsheetsAuthorizationMethodAPIAccessToken struct {
// The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
AccessToken string `json:"access_token"`
- AuthType *SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceSmartsheetsAuthorizationMethodAPIAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheetsAuthorizationMethodAPIAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodAPIAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodAPIAccessToken) GetAuthType() *SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthType {
+ return SourceSmartsheetsAuthorizationMethodAPIAccessTokenAuthTypeAccessToken.ToPointer()
}
type SourceSmartsheetsAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceSmartsheetsAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data
type SourceSmartsheetsAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceSmartsheetsAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceSmartsheetsAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API ID of the SmartSheets developer application.
ClientID string `json:"client_id"`
// The API Secret the SmartSheets developer application.
@@ -78,6 +100,56 @@ type SourceSmartsheetsAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceSmartsheetsAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheetsAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetAuthType() *SourceSmartsheetsAuthorizationMethodOAuth20AuthType {
+ return SourceSmartsheetsAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSmartsheetsAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceSmartsheetsAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceSmartsheetsAuthorizationMethodSourceSmartsheetsAuthorizationMet
}
func (u *SourceSmartsheetsAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSmartsheetsAuthorizationMethodAPIAccessToken := new(SourceSmartsheetsAuthorizationMethodAPIAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSmartsheetsAuthorizationMethodAPIAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSmartsheetsAuthorizationMethodAPIAccessToken, "", true, true); err == nil {
u.SourceSmartsheetsAuthorizationMethodAPIAccessToken = sourceSmartsheetsAuthorizationMethodAPIAccessToken
u.Type = SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsAuthorizationMethodAPIAccessToken
return nil
}
sourceSmartsheetsAuthorizationMethodOAuth20 := new(SourceSmartsheetsAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSmartsheetsAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSmartsheetsAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceSmartsheetsAuthorizationMethodOAuth20 = sourceSmartsheetsAuthorizationMethodOAuth20
u.Type = SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsAuthorizationMethodOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceSmartsheetsAuthorizationMethod) UnmarshalJSON(data []byte) error
}
func (u SourceSmartsheetsAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceSmartsheetsAuthorizationMethodAPIAccessToken != nil {
- return json.Marshal(u.SourceSmartsheetsAuthorizationMethodAPIAccessToken)
+ if u.SourceSmartsheetsAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceSmartsheetsAuthorizationMethodOAuth20, "", true)
}
- if u.SourceSmartsheetsAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceSmartsheetsAuthorizationMethodOAuth20)
+ if u.SourceSmartsheetsAuthorizationMethodAPIAccessToken != nil {
+ return utils.MarshalJSON(u.SourceSmartsheetsAuthorizationMethodAPIAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSmartsheetsValidenums string
@@ -246,9 +313,52 @@ type SourceSmartsheets struct {
Credentials SourceSmartsheetsAuthorizationMethod `json:"credentials"`
// A List of available columns which metadata can be pulled from.
MetadataFields []SourceSmartsheetsValidenums `json:"metadata_fields,omitempty"`
- SourceType SourceSmartsheetsSmartsheets `json:"sourceType"`
+ sourceType SourceSmartsheetsSmartsheets `const:"smartsheets" json:"sourceType"`
// The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties
SpreadsheetID string `json:"spreadsheet_id"`
// Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00`
- StartDatetime *time.Time `json:"start_datetime,omitempty"`
+ StartDatetime *time.Time `default:"2020-01-01T00:00:00+00:00" json:"start_datetime"`
+}
+
+func (s SourceSmartsheets) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheets) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheets) GetCredentials() SourceSmartsheetsAuthorizationMethod {
+ if o == nil {
+ return SourceSmartsheetsAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceSmartsheets) GetMetadataFields() []SourceSmartsheetsValidenums {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *SourceSmartsheets) GetSourceType() SourceSmartsheetsSmartsheets {
+ return SourceSmartsheetsSmartsheetsSmartsheets
+}
+
+func (o *SourceSmartsheets) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
+
+func (o *SourceSmartsheets) GetStartDatetime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDatetime
}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheetscreaterequest.go b/internal/sdk/pkg/models/shared/sourcesmartsheetscreaterequest.go
old mode 100755
new mode 100644
index ebb759b8c..d108b5219
--- a/internal/sdk/pkg/models/shared/sourcesmartsheetscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartsheetscreaterequest.go
@@ -9,3 +9,31 @@ type SourceSmartsheetsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmartsheetsCreateRequest) GetConfiguration() SourceSmartsheets {
+ if o == nil {
+ return SourceSmartsheets{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmartsheetsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmartsheetsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSmartsheetsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheetsputrequest.go b/internal/sdk/pkg/models/shared/sourcesmartsheetsputrequest.go
old mode 100755
new mode 100644
index 8fa5f23a5..a0d1ef253
--- a/internal/sdk/pkg/models/shared/sourcesmartsheetsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartsheetsputrequest.go
@@ -7,3 +7,24 @@ type SourceSmartsheetsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSmartsheetsPutRequest) GetConfiguration() SourceSmartsheetsUpdate {
+ if o == nil {
+ return SourceSmartsheetsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSmartsheetsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSmartsheetsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go b/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go
old mode 100755
new mode 100644
index bc026d94f..43bf06f6c
--- a/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType) Unmar
type SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken struct {
// The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the setup guide for information on how to obtain this token.
AccessToken string `json:"access_token"`
- AuthType *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken) GetAuthType() *SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthType {
+ return SourceSmartsheetsUpdateAuthorizationMethodAPIAccessTokenAuthTypeAccessToken.ToPointer()
}
type SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSO
type SourceSmartsheetsUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API ID of the SmartSheets developer application.
ClientID string `json:"client_id"`
// The API Secret the SmartSheets developer application.
@@ -78,6 +100,56 @@ type SourceSmartsheetsUpdateAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceSmartsheetsUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetAuthType() *SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceSmartsheetsUpdateAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSmartsheetsUpdateAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceSmartsheetsUpdateAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceSmartsheetsUpdateAuthorizationMethodSourceSmartsheetsUpdateAuth
}
func (u *SourceSmartsheetsUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken := new(SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken, "", true, true); err == nil {
u.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken = sourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken
u.Type = SourceSmartsheetsUpdateAuthorizationMethodTypeSourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken
return nil
}
sourceSmartsheetsUpdateAuthorizationMethodOAuth20 := new(SourceSmartsheetsUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSmartsheetsUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSmartsheetsUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceSmartsheetsUpdateAuthorizationMethodOAuth20 = sourceSmartsheetsUpdateAuthorizationMethodOAuth20
u.Type = SourceSmartsheetsUpdateAuthorizationMethodTypeSourceSmartsheetsUpdateAuthorizationMethodOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceSmartsheetsUpdateAuthorizationMethod) UnmarshalJSON(data []byte)
}
func (u SourceSmartsheetsUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken != nil {
- return json.Marshal(u.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken)
+ if u.SourceSmartsheetsUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceSmartsheetsUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceSmartsheetsUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceSmartsheetsUpdateAuthorizationMethodOAuth20)
+ if u.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken != nil {
+ return utils.MarshalJSON(u.SourceSmartsheetsUpdateAuthorizationMethodAPIAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSmartsheetsUpdateValidenums string
@@ -225,5 +292,44 @@ type SourceSmartsheetsUpdate struct {
// The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties
SpreadsheetID string `json:"spreadsheet_id"`
// Only rows modified after this date/time will be replicated. This should be an ISO 8601 string, for instance: `2000-01-01T13:00:00`
- StartDatetime *time.Time `json:"start_datetime,omitempty"`
+ StartDatetime *time.Time `default:"2020-01-01T00:00:00+00:00" json:"start_datetime"`
+}
+
+func (s SourceSmartsheetsUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSmartsheetsUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSmartsheetsUpdate) GetCredentials() SourceSmartsheetsUpdateAuthorizationMethod {
+ if o == nil {
+ return SourceSmartsheetsUpdateAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceSmartsheetsUpdate) GetMetadataFields() []SourceSmartsheetsUpdateValidenums {
+ if o == nil {
+ return nil
+ }
+ return o.MetadataFields
+}
+
+func (o *SourceSmartsheetsUpdate) GetSpreadsheetID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SpreadsheetID
+}
+
+func (o *SourceSmartsheetsUpdate) GetStartDatetime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDatetime
}
diff --git a/internal/sdk/pkg/models/shared/sourcesnapchatmarketing.go b/internal/sdk/pkg/models/shared/sourcesnapchatmarketing.go
old mode 100755
new mode 100644
index 02941c6b3..e8a33ae20
--- a/internal/sdk/pkg/models/shared/sourcesnapchatmarketing.go
+++ b/internal/sdk/pkg/models/shared/sourcesnapchatmarketing.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -41,7 +42,57 @@ type SourceSnapchatMarketing struct {
EndDate *types.Date `json:"end_date,omitempty"`
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
- SourceType SourceSnapchatMarketingSnapchatMarketing `json:"sourceType"`
+ sourceType SourceSnapchatMarketingSnapchatMarketing `const:"snapchat-marketing" json:"sourceType"`
// Date in the format 2022-01-01. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2022-01-01" json:"start_date"`
+}
+
+func (s SourceSnapchatMarketing) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnapchatMarketing) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnapchatMarketing) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSnapchatMarketing) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSnapchatMarketing) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceSnapchatMarketing) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSnapchatMarketing) GetSourceType() SourceSnapchatMarketingSnapchatMarketing {
+ return SourceSnapchatMarketingSnapchatMarketingSnapchatMarketing
+}
+
+func (o *SourceSnapchatMarketing) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingcreaterequest.go
old mode 100755
new mode 100644
index 8d2e3f544..3b87a251d
--- a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSnapchatMarketingCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSnapchatMarketingCreateRequest) GetConfiguration() SourceSnapchatMarketing {
+ if o == nil {
+ return SourceSnapchatMarketing{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSnapchatMarketingCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSnapchatMarketingCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSnapchatMarketingCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingputrequest.go b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingputrequest.go
old mode 100755
new mode 100644
index c12f881a6..96b869099
--- a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingputrequest.go
@@ -7,3 +7,24 @@ type SourceSnapchatMarketingPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSnapchatMarketingPutRequest) GetConfiguration() SourceSnapchatMarketingUpdate {
+ if o == nil {
+ return SourceSnapchatMarketingUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSnapchatMarketingPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSnapchatMarketingPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingupdate.go b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingupdate.go
old mode 100755
new mode 100644
index 319436d5b..356c0a253
--- a/internal/sdk/pkg/models/shared/sourcesnapchatmarketingupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesnapchatmarketingupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceSnapchatMarketingUpdate struct {
@@ -16,5 +17,51 @@ type SourceSnapchatMarketingUpdate struct {
// Refresh Token to renew the expired Access Token.
RefreshToken string `json:"refresh_token"`
// Date in the format 2022-01-01. Any data before this date will not be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2022-01-01" json:"start_date"`
+}
+
+func (s SourceSnapchatMarketingUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnapchatMarketingUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnapchatMarketingUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSnapchatMarketingUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSnapchatMarketingUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceSnapchatMarketingUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceSnapchatMarketingUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcesnowflake.go b/internal/sdk/pkg/models/shared/sourcesnowflake.go
old mode 100755
new mode 100644
index aa6aac316..6982914c1
--- a/internal/sdk/pkg/models/shared/sourcesnowflake.go
+++ b/internal/sdk/pkg/models/shared/sourcesnowflake.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -34,13 +34,42 @@ func (e *SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthType) Unmarsha
}
type SourceSnowflakeAuthorizationMethodUsernameAndPassword struct {
- AuthType SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthType `json:"auth_type"`
+ authType SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthType `const:"username/password" json:"auth_type"`
// The password associated with the username.
Password string `json:"password"`
// The username you created to allow Airbyte to access the database.
Username string `json:"username"`
}
+func (s SourceSnowflakeAuthorizationMethodUsernameAndPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnowflakeAuthorizationMethodUsernameAndPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnowflakeAuthorizationMethodUsernameAndPassword) GetAuthType() SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthType {
+ return SourceSnowflakeAuthorizationMethodUsernameAndPasswordAuthTypeUsernamePassword
+}
+
+func (o *SourceSnowflakeAuthorizationMethodUsernameAndPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceSnowflakeAuthorizationMethodUsernameAndPassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceSnowflakeAuthorizationMethodOAuth20AuthType string
const (
@@ -68,7 +97,7 @@ func (e *SourceSnowflakeAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data [
type SourceSnowflakeAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType SourceSnowflakeAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceSnowflakeAuthorizationMethodOAuth20AuthType `const:"OAuth" json:"auth_type"`
// The Client ID of your Snowflake developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Snowflake developer application.
@@ -77,6 +106,49 @@ type SourceSnowflakeAuthorizationMethodOAuth20 struct {
RefreshToken *string `json:"refresh_token,omitempty"`
}
+func (s SourceSnowflakeAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnowflakeAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnowflakeAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSnowflakeAuthorizationMethodOAuth20) GetAuthType() SourceSnowflakeAuthorizationMethodOAuth20AuthType {
+ return SourceSnowflakeAuthorizationMethodOAuth20AuthTypeOAuth
+}
+
+func (o *SourceSnowflakeAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSnowflakeAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSnowflakeAuthorizationMethodOAuth20) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
type SourceSnowflakeAuthorizationMethodType string
const (
@@ -110,21 +182,16 @@ func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeAuthorizationMethodU
}
func (u *SourceSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSnowflakeAuthorizationMethodUsernameAndPassword := new(SourceSnowflakeAuthorizationMethodUsernameAndPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSnowflakeAuthorizationMethodUsernameAndPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSnowflakeAuthorizationMethodUsernameAndPassword, "", true, true); err == nil {
u.SourceSnowflakeAuthorizationMethodUsernameAndPassword = sourceSnowflakeAuthorizationMethodUsernameAndPassword
u.Type = SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeAuthorizationMethodUsernameAndPassword
return nil
}
sourceSnowflakeAuthorizationMethodOAuth20 := new(SourceSnowflakeAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSnowflakeAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSnowflakeAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceSnowflakeAuthorizationMethodOAuth20 = sourceSnowflakeAuthorizationMethodOAuth20
u.Type = SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeAuthorizationMethodOAuth20
return nil
@@ -134,15 +201,15 @@ func (u *SourceSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceSnowflakeAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceSnowflakeAuthorizationMethodUsernameAndPassword != nil {
- return json.Marshal(u.SourceSnowflakeAuthorizationMethodUsernameAndPassword)
+ if u.SourceSnowflakeAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceSnowflakeAuthorizationMethodOAuth20, "", true)
}
- if u.SourceSnowflakeAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceSnowflakeAuthorizationMethodOAuth20)
+ if u.SourceSnowflakeAuthorizationMethodUsernameAndPassword != nil {
+ return utils.MarshalJSON(u.SourceSnowflakeAuthorizationMethodUsernameAndPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSnowflakeSnowflake string
@@ -181,7 +248,71 @@ type SourceSnowflake struct {
Role string `json:"role"`
// The source Snowflake schema tables. Leave empty to access tables from multiple schemas.
Schema *string `json:"schema,omitempty"`
- SourceType SourceSnowflakeSnowflake `json:"sourceType"`
+ sourceType SourceSnowflakeSnowflake `const:"snowflake" json:"sourceType"`
// The warehouse you created for Airbyte to access data.
Warehouse string `json:"warehouse"`
}
+
+func (s SourceSnowflake) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnowflake) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnowflake) GetCredentials() *SourceSnowflakeAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSnowflake) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceSnowflake) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSnowflake) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceSnowflake) GetRole() string {
+ if o == nil {
+ return ""
+ }
+ return o.Role
+}
+
+func (o *SourceSnowflake) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *SourceSnowflake) GetSourceType() SourceSnowflakeSnowflake {
+ return SourceSnowflakeSnowflakeSnowflake
+}
+
+func (o *SourceSnowflake) GetWarehouse() string {
+ if o == nil {
+ return ""
+ }
+ return o.Warehouse
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesnowflakecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesnowflakecreaterequest.go
old mode 100755
new mode 100644
index ccb09dbf4..ca9280289
--- a/internal/sdk/pkg/models/shared/sourcesnowflakecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesnowflakecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSnowflakeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSnowflakeCreateRequest) GetConfiguration() SourceSnowflake {
+ if o == nil {
+ return SourceSnowflake{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSnowflakeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSnowflakeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSnowflakeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesnowflakeputrequest.go b/internal/sdk/pkg/models/shared/sourcesnowflakeputrequest.go
old mode 100755
new mode 100644
index 6a6631f62..d7fd86a21
--- a/internal/sdk/pkg/models/shared/sourcesnowflakeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesnowflakeputrequest.go
@@ -7,3 +7,24 @@ type SourceSnowflakePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSnowflakePutRequest) GetConfiguration() SourceSnowflakeUpdate {
+ if o == nil {
+ return SourceSnowflakeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSnowflakePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSnowflakePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go b/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go
old mode 100755
new mode 100644
index 41673aec4..fca9fc3e0
--- a/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -34,13 +34,42 @@ func (e *SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType) Un
}
type SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword struct {
- AuthType SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType `json:"auth_type"`
+ authType SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType `const:"username/password" json:"auth_type"`
// The password associated with the username.
Password string `json:"password"`
// The username you created to allow Airbyte to access the database.
Username string `json:"username"`
}
+func (s SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword) GetAuthType() SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthType {
+ return SourceSnowflakeUpdateAuthorizationMethodUsernameAndPasswordAuthTypeUsernamePassword
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
+
type SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType string
const (
@@ -68,7 +97,7 @@ func (e *SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON(
type SourceSnowflakeUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken *string `json:"access_token,omitempty"`
- AuthType SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type"`
+ authType SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType `const:"OAuth" json:"auth_type"`
// The Client ID of your Snowflake developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Snowflake developer application.
@@ -77,6 +106,49 @@ type SourceSnowflakeUpdateAuthorizationMethodOAuth20 struct {
RefreshToken *string `json:"refresh_token,omitempty"`
}
+func (s SourceSnowflakeUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSnowflakeUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodOAuth20) GetAuthType() SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceSnowflakeUpdateAuthorizationMethodOAuth20AuthTypeOAuth
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSnowflakeUpdateAuthorizationMethodOAuth20) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
type SourceSnowflakeUpdateAuthorizationMethodType string
const (
@@ -110,21 +182,16 @@ func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateAuthoriz
}
func (u *SourceSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword := new(SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword, "", true, true); err == nil {
u.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword = sourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword
u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword
return nil
}
sourceSnowflakeUpdateAuthorizationMethodOAuth20 := new(SourceSnowflakeUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSnowflakeUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceSnowflakeUpdateAuthorizationMethodOAuth20 = sourceSnowflakeUpdateAuthorizationMethodOAuth20
u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateAuthorizationMethodOAuth20
return nil
@@ -134,15 +201,15 @@ func (u *SourceSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) er
}
func (u SourceSnowflakeUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
- return json.Marshal(u.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword)
+ if u.SourceSnowflakeUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceSnowflakeUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceSnowflakeUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceSnowflakeUpdateAuthorizationMethodOAuth20)
+ if u.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword != nil {
+ return utils.MarshalJSON(u.SourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSnowflakeUpdate struct {
@@ -160,3 +227,52 @@ type SourceSnowflakeUpdate struct {
// The warehouse you created for Airbyte to access data.
Warehouse string `json:"warehouse"`
}
+
+func (o *SourceSnowflakeUpdate) GetCredentials() *SourceSnowflakeUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSnowflakeUpdate) GetDatabase() string {
+ if o == nil {
+ return ""
+ }
+ return o.Database
+}
+
+func (o *SourceSnowflakeUpdate) GetHost() string {
+ if o == nil {
+ return ""
+ }
+ return o.Host
+}
+
+func (o *SourceSnowflakeUpdate) GetJdbcURLParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.JdbcURLParams
+}
+
+func (o *SourceSnowflakeUpdate) GetRole() string {
+ if o == nil {
+ return ""
+ }
+ return o.Role
+}
+
+func (o *SourceSnowflakeUpdate) GetSchema() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Schema
+}
+
+func (o *SourceSnowflakeUpdate) GetWarehouse() string {
+ if o == nil {
+ return ""
+ }
+ return o.Warehouse
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesonarcloud.go b/internal/sdk/pkg/models/shared/sourcesonarcloud.go
old mode 100755
new mode 100644
index 8482f3150..b73fb0625
--- a/internal/sdk/pkg/models/shared/sourcesonarcloud.go
+++ b/internal/sdk/pkg/models/shared/sourcesonarcloud.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -39,9 +40,59 @@ type SourceSonarCloud struct {
EndDate *types.Date `json:"end_date,omitempty"`
// Organization key. See here.
Organization string `json:"organization"`
- SourceType SourceSonarCloudSonarCloud `json:"sourceType"`
+ sourceType SourceSonarCloudSonarCloud `const:"sonar-cloud" json:"sourceType"`
// To retrieve issues created after the given date (inclusive).
StartDate *types.Date `json:"start_date,omitempty"`
// Your User Token. See here. The token is case sensitive.
UserToken string `json:"user_token"`
}
+
+func (s SourceSonarCloud) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSonarCloud) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSonarCloud) GetComponentKeys() []interface{} {
+ if o == nil {
+ return []interface{}{}
+ }
+ return o.ComponentKeys
+}
+
+func (o *SourceSonarCloud) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceSonarCloud) GetOrganization() string {
+ if o == nil {
+ return ""
+ }
+ return o.Organization
+}
+
+func (o *SourceSonarCloud) GetSourceType() SourceSonarCloudSonarCloud {
+ return SourceSonarCloudSonarCloudSonarCloud
+}
+
+func (o *SourceSonarCloud) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceSonarCloud) GetUserToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.UserToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesonarcloudcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesonarcloudcreaterequest.go
old mode 100755
new mode 100644
index ac254aa48..75358a1e0
--- a/internal/sdk/pkg/models/shared/sourcesonarcloudcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesonarcloudcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSonarCloudCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSonarCloudCreateRequest) GetConfiguration() SourceSonarCloud {
+ if o == nil {
+ return SourceSonarCloud{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSonarCloudCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSonarCloudCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSonarCloudCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesonarcloudputrequest.go b/internal/sdk/pkg/models/shared/sourcesonarcloudputrequest.go
old mode 100755
new mode 100644
index 547b95d6a..f9a77477f
--- a/internal/sdk/pkg/models/shared/sourcesonarcloudputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesonarcloudputrequest.go
@@ -7,3 +7,24 @@ type SourceSonarCloudPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSonarCloudPutRequest) GetConfiguration() SourceSonarCloudUpdate {
+ if o == nil {
+ return SourceSonarCloudUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSonarCloudPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSonarCloudPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesonarcloudupdate.go b/internal/sdk/pkg/models/shared/sourcesonarcloudupdate.go
old mode 100755
new mode 100644
index 0d2266086..cc98ea6df
--- a/internal/sdk/pkg/models/shared/sourcesonarcloudupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesonarcloudupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceSonarCloudUpdate struct {
@@ -18,3 +19,49 @@ type SourceSonarCloudUpdate struct {
// Your User Token. See here. The token is case sensitive.
UserToken string `json:"user_token"`
}
+
+func (s SourceSonarCloudUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSonarCloudUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSonarCloudUpdate) GetComponentKeys() []interface{} {
+ if o == nil {
+ return []interface{}{}
+ }
+ return o.ComponentKeys
+}
+
+func (o *SourceSonarCloudUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceSonarCloudUpdate) GetOrganization() string {
+ if o == nil {
+ return ""
+ }
+ return o.Organization
+}
+
+func (o *SourceSonarCloudUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceSonarCloudUpdate) GetUserToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.UserToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcespacexapi.go b/internal/sdk/pkg/models/shared/sourcespacexapi.go
old mode 100755
new mode 100644
index 06b864407..b5b3afb46
--- a/internal/sdk/pkg/models/shared/sourcespacexapi.go
+++ b/internal/sdk/pkg/models/shared/sourcespacexapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,34 @@ func (e *SourceSpacexAPISpacexAPI) UnmarshalJSON(data []byte) error {
type SourceSpacexAPI struct {
ID *string `json:"id,omitempty"`
Options *string `json:"options,omitempty"`
- SourceType *SourceSpacexAPISpacexAPI `json:"sourceType,omitempty"`
+ sourceType *SourceSpacexAPISpacexAPI `const:"spacex-api" json:"sourceType,omitempty"`
+}
+
+func (s SourceSpacexAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSpacexAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSpacexAPI) GetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ID
+}
+
+func (o *SourceSpacexAPI) GetOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Options
+}
+
+func (o *SourceSpacexAPI) GetSourceType() *SourceSpacexAPISpacexAPI {
+ return SourceSpacexAPISpacexAPISpacexAPI.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourcespacexapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcespacexapicreaterequest.go
old mode 100755
new mode 100644
index 43c970bde..aa18765d4
--- a/internal/sdk/pkg/models/shared/sourcespacexapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcespacexapicreaterequest.go
@@ -9,3 +9,31 @@ type SourceSpacexAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSpacexAPICreateRequest) GetConfiguration() SourceSpacexAPI {
+ if o == nil {
+ return SourceSpacexAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSpacexAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSpacexAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSpacexAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcespacexapiputrequest.go b/internal/sdk/pkg/models/shared/sourcespacexapiputrequest.go
old mode 100755
new mode 100644
index d561743f3..cbe4f1f30
--- a/internal/sdk/pkg/models/shared/sourcespacexapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcespacexapiputrequest.go
@@ -7,3 +7,24 @@ type SourceSpacexAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSpacexAPIPutRequest) GetConfiguration() SourceSpacexAPIUpdate {
+ if o == nil {
+ return SourceSpacexAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSpacexAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSpacexAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcespacexapiupdate.go b/internal/sdk/pkg/models/shared/sourcespacexapiupdate.go
old mode 100755
new mode 100644
index 7806c9003..62d2057ba
--- a/internal/sdk/pkg/models/shared/sourcespacexapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcespacexapiupdate.go
@@ -6,3 +6,17 @@ type SourceSpacexAPIUpdate struct {
ID *string `json:"id,omitempty"`
Options *string `json:"options,omitempty"`
}
+
+func (o *SourceSpacexAPIUpdate) GetID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ID
+}
+
+func (o *SourceSpacexAPIUpdate) GetOptions() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Options
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesquare.go b/internal/sdk/pkg/models/shared/sourcesquare.go
old mode 100755
new mode 100644
index 8cd8d96ad..fb463ea37
--- a/internal/sdk/pkg/models/shared/sourcesquare.go
+++ b/internal/sdk/pkg/models/shared/sourcesquare.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceSquareAuthenticationAPIKeyAuthType) UnmarshalJSON(data []byte) er
type SourceSquareAuthenticationAPIKey struct {
// The API key for a Square application
APIKey string `json:"api_key"`
- AuthType SourceSquareAuthenticationAPIKeyAuthType `json:"auth_type"`
+ authType SourceSquareAuthenticationAPIKeyAuthType `const:"API Key" json:"auth_type"`
+}
+
+func (s SourceSquareAuthenticationAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquareAuthenticationAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquareAuthenticationAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSquareAuthenticationAPIKey) GetAuthType() SourceSquareAuthenticationAPIKeyAuthType {
+ return SourceSquareAuthenticationAPIKeyAuthTypeAPIKey
}
type SourceSquareAuthenticationOauthAuthenticationAuthType string
@@ -67,7 +89,7 @@ func (e *SourceSquareAuthenticationOauthAuthenticationAuthType) UnmarshalJSON(da
// SourceSquareAuthenticationOauthAuthentication - Choose how to authenticate to Square.
type SourceSquareAuthenticationOauthAuthentication struct {
- AuthType SourceSquareAuthenticationOauthAuthenticationAuthType `json:"auth_type"`
+ authType SourceSquareAuthenticationOauthAuthenticationAuthType `const:"OAuth" json:"auth_type"`
// The Square-issued ID of your application
ClientID string `json:"client_id"`
// The Square-issued application secret for your application
@@ -76,6 +98,42 @@ type SourceSquareAuthenticationOauthAuthentication struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceSquareAuthenticationOauthAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquareAuthenticationOauthAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquareAuthenticationOauthAuthentication) GetAuthType() SourceSquareAuthenticationOauthAuthenticationAuthType {
+ return SourceSquareAuthenticationOauthAuthenticationAuthTypeOAuth
+}
+
+func (o *SourceSquareAuthenticationOauthAuthentication) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSquareAuthenticationOauthAuthentication) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSquareAuthenticationOauthAuthentication) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceSquareAuthenticationType string
const (
@@ -109,21 +167,16 @@ func CreateSourceSquareAuthenticationSourceSquareAuthenticationAPIKey(sourceSqua
}
func (u *SourceSquareAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSquareAuthenticationAPIKey := new(SourceSquareAuthenticationAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSquareAuthenticationAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSquareAuthenticationAPIKey, "", true, true); err == nil {
u.SourceSquareAuthenticationAPIKey = sourceSquareAuthenticationAPIKey
u.Type = SourceSquareAuthenticationTypeSourceSquareAuthenticationAPIKey
return nil
}
sourceSquareAuthenticationOauthAuthentication := new(SourceSquareAuthenticationOauthAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSquareAuthenticationOauthAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSquareAuthenticationOauthAuthentication, "", true, true); err == nil {
u.SourceSquareAuthenticationOauthAuthentication = sourceSquareAuthenticationOauthAuthentication
u.Type = SourceSquareAuthenticationTypeSourceSquareAuthenticationOauthAuthentication
return nil
@@ -133,15 +186,15 @@ func (u *SourceSquareAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceSquareAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceSquareAuthenticationAPIKey != nil {
- return json.Marshal(u.SourceSquareAuthenticationAPIKey)
+ if u.SourceSquareAuthenticationOauthAuthentication != nil {
+ return utils.MarshalJSON(u.SourceSquareAuthenticationOauthAuthentication, "", true)
}
- if u.SourceSquareAuthenticationOauthAuthentication != nil {
- return json.Marshal(u.SourceSquareAuthenticationOauthAuthentication)
+ if u.SourceSquareAuthenticationAPIKey != nil {
+ return utils.MarshalJSON(u.SourceSquareAuthenticationAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSquareSquare string
@@ -172,10 +225,53 @@ type SourceSquare struct {
// Choose how to authenticate to Square.
Credentials *SourceSquareAuthentication `json:"credentials,omitempty"`
// In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes)
- IncludeDeletedObjects *bool `json:"include_deleted_objects,omitempty"`
+ IncludeDeletedObjects *bool `default:"false" json:"include_deleted_objects"`
// Determines whether to use the sandbox or production environment.
- IsSandbox bool `json:"is_sandbox"`
- SourceType SourceSquareSquare `json:"sourceType"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
+ sourceType SourceSquareSquare `const:"square" json:"sourceType"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceSquare) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquare) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquare) GetCredentials() *SourceSquareAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSquare) GetIncludeDeletedObjects() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeletedObjects
+}
+
+func (o *SourceSquare) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourceSquare) GetSourceType() SourceSquareSquare {
+ return SourceSquareSquareSquare
+}
+
+func (o *SourceSquare) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcesquarecreaterequest.go b/internal/sdk/pkg/models/shared/sourcesquarecreaterequest.go
old mode 100755
new mode 100644
index f9ebb5068..f4b43dc86
--- a/internal/sdk/pkg/models/shared/sourcesquarecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesquarecreaterequest.go
@@ -9,3 +9,31 @@ type SourceSquareCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSquareCreateRequest) GetConfiguration() SourceSquare {
+ if o == nil {
+ return SourceSquare{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSquareCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSquareCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSquareCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesquareputrequest.go b/internal/sdk/pkg/models/shared/sourcesquareputrequest.go
old mode 100755
new mode 100644
index 25d6c4e60..5f1ac4577
--- a/internal/sdk/pkg/models/shared/sourcesquareputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesquareputrequest.go
@@ -7,3 +7,24 @@ type SourceSquarePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSquarePutRequest) GetConfiguration() SourceSquareUpdate {
+ if o == nil {
+ return SourceSquareUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSquarePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSquarePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesquareupdate.go b/internal/sdk/pkg/models/shared/sourcesquareupdate.go
old mode 100755
new mode 100644
index 192eaf7e6..d9e4be14f
--- a/internal/sdk/pkg/models/shared/sourcesquareupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesquareupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -38,7 +38,29 @@ func (e *SourceSquareUpdateAuthenticationAPIKeyAuthType) UnmarshalJSON(data []by
type SourceSquareUpdateAuthenticationAPIKey struct {
// The API key for a Square application
APIKey string `json:"api_key"`
- AuthType SourceSquareUpdateAuthenticationAPIKeyAuthType `json:"auth_type"`
+ authType SourceSquareUpdateAuthenticationAPIKeyAuthType `const:"API Key" json:"auth_type"`
+}
+
+func (s SourceSquareUpdateAuthenticationAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquareUpdateAuthenticationAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquareUpdateAuthenticationAPIKey) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceSquareUpdateAuthenticationAPIKey) GetAuthType() SourceSquareUpdateAuthenticationAPIKeyAuthType {
+ return SourceSquareUpdateAuthenticationAPIKeyAuthTypeAPIKey
}
type SourceSquareUpdateAuthenticationOauthAuthenticationAuthType string
@@ -67,7 +89,7 @@ func (e *SourceSquareUpdateAuthenticationOauthAuthenticationAuthType) UnmarshalJ
// SourceSquareUpdateAuthenticationOauthAuthentication - Choose how to authenticate to Square.
type SourceSquareUpdateAuthenticationOauthAuthentication struct {
- AuthType SourceSquareUpdateAuthenticationOauthAuthenticationAuthType `json:"auth_type"`
+ authType SourceSquareUpdateAuthenticationOauthAuthenticationAuthType `const:"OAuth" json:"auth_type"`
// The Square-issued ID of your application
ClientID string `json:"client_id"`
// The Square-issued application secret for your application
@@ -76,6 +98,42 @@ type SourceSquareUpdateAuthenticationOauthAuthentication struct {
RefreshToken string `json:"refresh_token"`
}
+func (s SourceSquareUpdateAuthenticationOauthAuthentication) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquareUpdateAuthenticationOauthAuthentication) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquareUpdateAuthenticationOauthAuthentication) GetAuthType() SourceSquareUpdateAuthenticationOauthAuthenticationAuthType {
+ return SourceSquareUpdateAuthenticationOauthAuthenticationAuthTypeOAuth
+}
+
+func (o *SourceSquareUpdateAuthenticationOauthAuthentication) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceSquareUpdateAuthenticationOauthAuthentication) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceSquareUpdateAuthenticationOauthAuthentication) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
type SourceSquareUpdateAuthenticationType string
const (
@@ -109,21 +167,16 @@ func CreateSourceSquareUpdateAuthenticationSourceSquareUpdateAuthenticationAPIKe
}
func (u *SourceSquareUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSquareUpdateAuthenticationAPIKey := new(SourceSquareUpdateAuthenticationAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSquareUpdateAuthenticationAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSquareUpdateAuthenticationAPIKey, "", true, true); err == nil {
u.SourceSquareUpdateAuthenticationAPIKey = sourceSquareUpdateAuthenticationAPIKey
u.Type = SourceSquareUpdateAuthenticationTypeSourceSquareUpdateAuthenticationAPIKey
return nil
}
sourceSquareUpdateAuthenticationOauthAuthentication := new(SourceSquareUpdateAuthenticationOauthAuthentication)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSquareUpdateAuthenticationOauthAuthentication); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSquareUpdateAuthenticationOauthAuthentication, "", true, true); err == nil {
u.SourceSquareUpdateAuthenticationOauthAuthentication = sourceSquareUpdateAuthenticationOauthAuthentication
u.Type = SourceSquareUpdateAuthenticationTypeSourceSquareUpdateAuthenticationOauthAuthentication
return nil
@@ -133,24 +186,63 @@ func (u *SourceSquareUpdateAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceSquareUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceSquareUpdateAuthenticationAPIKey != nil {
- return json.Marshal(u.SourceSquareUpdateAuthenticationAPIKey)
+ if u.SourceSquareUpdateAuthenticationOauthAuthentication != nil {
+ return utils.MarshalJSON(u.SourceSquareUpdateAuthenticationOauthAuthentication, "", true)
}
- if u.SourceSquareUpdateAuthenticationOauthAuthentication != nil {
- return json.Marshal(u.SourceSquareUpdateAuthenticationOauthAuthentication)
+ if u.SourceSquareUpdateAuthenticationAPIKey != nil {
+ return utils.MarshalJSON(u.SourceSquareUpdateAuthenticationAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSquareUpdate struct {
// Choose how to authenticate to Square.
Credentials *SourceSquareUpdateAuthentication `json:"credentials,omitempty"`
// In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes)
- IncludeDeletedObjects *bool `json:"include_deleted_objects,omitempty"`
+ IncludeDeletedObjects *bool `default:"false" json:"include_deleted_objects"`
// Determines whether to use the sandbox or production environment.
- IsSandbox bool `json:"is_sandbox"`
+ IsSandbox *bool `default:"false" json:"is_sandbox"`
// UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2021-01-01" json:"start_date"`
+}
+
+func (s SourceSquareUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSquareUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSquareUpdate) GetCredentials() *SourceSquareUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSquareUpdate) GetIncludeDeletedObjects() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeletedObjects
+}
+
+func (o *SourceSquareUpdate) GetIsSandbox() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IsSandbox
+}
+
+func (o *SourceSquareUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcesresponse.go b/internal/sdk/pkg/models/shared/sourcesresponse.go
old mode 100755
new mode 100644
index 897114977..295f6aec3
--- a/internal/sdk/pkg/models/shared/sourcesresponse.go
+++ b/internal/sdk/pkg/models/shared/sourcesresponse.go
@@ -7,3 +7,24 @@ type SourcesResponse struct {
Next *string `json:"next,omitempty"`
Previous *string `json:"previous,omitempty"`
}
+
+func (o *SourcesResponse) GetData() []SourceResponse {
+ if o == nil {
+ return []SourceResponse{}
+ }
+ return o.Data
+}
+
+func (o *SourcesResponse) GetNext() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Next
+}
+
+func (o *SourcesResponse) GetPrevious() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Previous
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestrava.go b/internal/sdk/pkg/models/shared/sourcestrava.go
old mode 100755
new mode 100644
index d85532fc0..7446c2afa
--- a/internal/sdk/pkg/models/shared/sourcestrava.go
+++ b/internal/sdk/pkg/models/shared/sourcestrava.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -59,14 +60,68 @@ func (e *SourceStravaStrava) UnmarshalJSON(data []byte) error {
type SourceStrava struct {
// The Athlete ID of your Strava developer application.
AthleteID int64 `json:"athlete_id"`
- AuthType *SourceStravaAuthType `json:"auth_type,omitempty"`
+ authType *SourceStravaAuthType `const:"Client" json:"auth_type"`
// The Client ID of your Strava developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Strava developer application.
ClientSecret string `json:"client_secret"`
// The Refresh Token with the activity: read_all permissions.
RefreshToken string `json:"refresh_token"`
- SourceType SourceStravaStrava `json:"sourceType"`
+ sourceType SourceStravaStrava `const:"strava" json:"sourceType"`
// UTC date and time. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceStrava) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceStrava) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceStrava) GetAthleteID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.AthleteID
+}
+
+func (o *SourceStrava) GetAuthType() *SourceStravaAuthType {
+ return SourceStravaAuthTypeClient.ToPointer()
+}
+
+func (o *SourceStrava) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceStrava) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceStrava) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceStrava) GetSourceType() SourceStravaStrava {
+ return SourceStravaStravaStrava
+}
+
+func (o *SourceStrava) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestravacreaterequest.go b/internal/sdk/pkg/models/shared/sourcestravacreaterequest.go
old mode 100755
new mode 100644
index e6a72f1a6..f12f405d2
--- a/internal/sdk/pkg/models/shared/sourcestravacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcestravacreaterequest.go
@@ -9,3 +9,31 @@ type SourceStravaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceStravaCreateRequest) GetConfiguration() SourceStrava {
+ if o == nil {
+ return SourceStrava{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceStravaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceStravaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceStravaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestravaputrequest.go b/internal/sdk/pkg/models/shared/sourcestravaputrequest.go
old mode 100755
new mode 100644
index 33914b022..8388a552a
--- a/internal/sdk/pkg/models/shared/sourcestravaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcestravaputrequest.go
@@ -7,3 +7,24 @@ type SourceStravaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceStravaPutRequest) GetConfiguration() SourceStravaUpdate {
+ if o == nil {
+ return SourceStravaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceStravaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceStravaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestravaupdate.go b/internal/sdk/pkg/models/shared/sourcestravaupdate.go
old mode 100755
new mode 100644
index 6c42a8bde..4edb5435d
--- a/internal/sdk/pkg/models/shared/sourcestravaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcestravaupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -35,7 +36,7 @@ func (e *SourceStravaUpdateAuthType) UnmarshalJSON(data []byte) error {
type SourceStravaUpdate struct {
// The Athlete ID of your Strava developer application.
AthleteID int64 `json:"athlete_id"`
- AuthType *SourceStravaUpdateAuthType `json:"auth_type,omitempty"`
+ authType *SourceStravaUpdateAuthType `const:"Client" json:"auth_type"`
// The Client ID of your Strava developer application.
ClientID string `json:"client_id"`
// The Client Secret of your Strava developer application.
@@ -45,3 +46,53 @@ type SourceStravaUpdate struct {
// UTC date and time. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceStravaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceStravaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceStravaUpdate) GetAthleteID() int64 {
+ if o == nil {
+ return 0
+ }
+ return o.AthleteID
+}
+
+func (o *SourceStravaUpdate) GetAuthType() *SourceStravaUpdateAuthType {
+ return SourceStravaUpdateAuthTypeClient.ToPointer()
+}
+
+func (o *SourceStravaUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceStravaUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceStravaUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceStravaUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestripe.go b/internal/sdk/pkg/models/shared/sourcestripe.go
old mode 100755
new mode 100644
index ec167d261..4be06b983
--- a/internal/sdk/pkg/models/shared/sourcestripe.go
+++ b/internal/sdk/pkg/models/shared/sourcestripe.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -38,10 +39,60 @@ type SourceStripe struct {
// Stripe API key (usually starts with 'sk_live_'; find yours here).
ClientSecret string `json:"client_secret"`
// When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. Applies only to streams that do not support event-based incremental syncs: CheckoutSessionLineItems, Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks. More info here
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted.
- SliceRange *int64 `json:"slice_range,omitempty"`
- SourceType SourceStripeStripe `json:"sourceType"`
+ SliceRange *int64 `default:"365" json:"slice_range"`
+ sourceType SourceStripeStripe `const:"stripe" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated.
- StartDate *time.Time `json:"start_date,omitempty"`
+ StartDate *time.Time `default:"2017-01-25T00:00:00Z" json:"start_date"`
+}
+
+func (s SourceStripe) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceStripe) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceStripe) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceStripe) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceStripe) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourceStripe) GetSliceRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SliceRange
+}
+
+func (o *SourceStripe) GetSourceType() SourceStripeStripe {
+ return SourceStripeStripeStripe
+}
+
+func (o *SourceStripe) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcestripecreaterequest.go b/internal/sdk/pkg/models/shared/sourcestripecreaterequest.go
old mode 100755
new mode 100644
index b5bb25614..d2e382102
--- a/internal/sdk/pkg/models/shared/sourcestripecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcestripecreaterequest.go
@@ -9,3 +9,31 @@ type SourceStripeCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceStripeCreateRequest) GetConfiguration() SourceStripe {
+ if o == nil {
+ return SourceStripe{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceStripeCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceStripeCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceStripeCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestripeputrequest.go b/internal/sdk/pkg/models/shared/sourcestripeputrequest.go
old mode 100755
new mode 100644
index 2a121b998..fe2ad05e8
--- a/internal/sdk/pkg/models/shared/sourcestripeputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcestripeputrequest.go
@@ -7,3 +7,24 @@ type SourceStripePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceStripePutRequest) GetConfiguration() SourceStripeUpdate {
+ if o == nil {
+ return SourceStripeUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceStripePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceStripePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcestripeupdate.go b/internal/sdk/pkg/models/shared/sourcestripeupdate.go
old mode 100755
new mode 100644
index b4103b482..299df2874
--- a/internal/sdk/pkg/models/shared/sourcestripeupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcestripeupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,9 +13,55 @@ type SourceStripeUpdate struct {
// Stripe API key (usually starts with 'sk_live_'; find yours here).
ClientSecret string `json:"client_secret"`
// When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. Applies only to streams that do not support event-based incremental syncs: CheckoutSessionLineItems, Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks. More info here
- LookbackWindowDays *int64 `json:"lookback_window_days,omitempty"`
+ LookbackWindowDays *int64 `default:"0" json:"lookback_window_days"`
// The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted.
- SliceRange *int64 `json:"slice_range,omitempty"`
+ SliceRange *int64 `default:"365" json:"slice_range"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated.
- StartDate *time.Time `json:"start_date,omitempty"`
+ StartDate *time.Time `default:"2017-01-25T00:00:00Z" json:"start_date"`
+}
+
+func (s SourceStripeUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceStripeUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceStripeUpdate) GetAccountID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountID
+}
+
+func (o *SourceStripeUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceStripeUpdate) GetLookbackWindowDays() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindowDays
+}
+
+func (o *SourceStripeUpdate) GetSliceRange() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.SliceRange
+}
+
+func (o *SourceStripeUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveymonkey.go b/internal/sdk/pkg/models/shared/sourcesurveymonkey.go
old mode 100755
new mode 100644
index fa711d416..8ed5e07fe
--- a/internal/sdk/pkg/models/shared/sourcesurveymonkey.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveymonkey.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -36,13 +37,49 @@ func (e *SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethod) UnmarshalJ
type SourceSurveymonkeySurveyMonkeyAuthorizationMethod struct {
// Access Token for making authenticated requests. See the docs for information on how to generate this key.
AccessToken string `json:"access_token"`
- AuthMethod SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethod `json:"auth_method"`
+ authMethod SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of the SurveyMonkey developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of the SurveyMonkey developer application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceSurveymonkeySurveyMonkeyAuthorizationMethod) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveymonkeySurveyMonkeyAuthorizationMethod) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveymonkeySurveyMonkeyAuthorizationMethod) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSurveymonkeySurveyMonkeyAuthorizationMethod) GetAuthMethod() SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethod {
+ return SourceSurveymonkeySurveyMonkeyAuthorizationMethodAuthMethodOauth20
+}
+
+func (o *SourceSurveymonkeySurveyMonkeyAuthorizationMethod) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceSurveymonkeySurveyMonkeyAuthorizationMethod) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
// SourceSurveymonkeyOriginDatacenterOfTheSurveyMonkeyAccount - Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.
type SourceSurveymonkeyOriginDatacenterOfTheSurveyMonkeyAccount string
@@ -102,10 +139,53 @@ type SourceSurveymonkey struct {
// The authorization method to use to retrieve data from SurveyMonkey
Credentials *SourceSurveymonkeySurveyMonkeyAuthorizationMethod `json:"credentials,omitempty"`
// Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.
- Origin *SourceSurveymonkeyOriginDatacenterOfTheSurveyMonkeyAccount `json:"origin,omitempty"`
- SourceType SourceSurveymonkeySurveymonkey `json:"sourceType"`
+ Origin *SourceSurveymonkeyOriginDatacenterOfTheSurveyMonkeyAccount `default:"USA" json:"origin"`
+ sourceType SourceSurveymonkeySurveymonkey `const:"surveymonkey" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
// IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated.
SurveyIds []string `json:"survey_ids,omitempty"`
}
+
+func (s SourceSurveymonkey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveymonkey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveymonkey) GetCredentials() *SourceSurveymonkeySurveyMonkeyAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSurveymonkey) GetOrigin() *SourceSurveymonkeyOriginDatacenterOfTheSurveyMonkeyAccount {
+ if o == nil {
+ return nil
+ }
+ return o.Origin
+}
+
+func (o *SourceSurveymonkey) GetSourceType() SourceSurveymonkeySurveymonkey {
+ return SourceSurveymonkeySurveymonkeySurveymonkey
+}
+
+func (o *SourceSurveymonkey) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceSurveymonkey) GetSurveyIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyIds
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveymonkeycreaterequest.go b/internal/sdk/pkg/models/shared/sourcesurveymonkeycreaterequest.go
old mode 100755
new mode 100644
index 1192e807f..ea017ee26
--- a/internal/sdk/pkg/models/shared/sourcesurveymonkeycreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveymonkeycreaterequest.go
@@ -9,3 +9,31 @@ type SourceSurveymonkeyCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSurveymonkeyCreateRequest) GetConfiguration() SourceSurveymonkey {
+ if o == nil {
+ return SourceSurveymonkey{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSurveymonkeyCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSurveymonkeyCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSurveymonkeyCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveymonkeyputrequest.go b/internal/sdk/pkg/models/shared/sourcesurveymonkeyputrequest.go
old mode 100755
new mode 100644
index 9f2c7a8b9..af3def0b3
--- a/internal/sdk/pkg/models/shared/sourcesurveymonkeyputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveymonkeyputrequest.go
@@ -7,3 +7,24 @@ type SourceSurveymonkeyPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSurveymonkeyPutRequest) GetConfiguration() SourceSurveymonkeyUpdate {
+ if o == nil {
+ return SourceSurveymonkeyUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSurveymonkeyPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSurveymonkeyPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveymonkeyupdate.go b/internal/sdk/pkg/models/shared/sourcesurveymonkeyupdate.go
old mode 100755
new mode 100644
index bd3bbf9e6..d4c0ec8dc
--- a/internal/sdk/pkg/models/shared/sourcesurveymonkeyupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveymonkeyupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -36,13 +37,49 @@ func (e *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethod) Unma
type SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod struct {
// Access Token for making authenticated requests. See the docs for information on how to generate this key.
AccessToken string `json:"access_token"`
- AuthMethod SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethod `json:"auth_method"`
+ authMethod SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of the SurveyMonkey developer application.
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of the SurveyMonkey developer application.
ClientSecret *string `json:"client_secret,omitempty"`
}
+func (s SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) GetAuthMethod() SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethod {
+ return SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethodAuthMethodOauth20
+}
+
+func (o *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
// SourceSurveymonkeyUpdateOriginDatacenterOfTheSurveyMonkeyAccount - Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.
type SourceSurveymonkeyUpdateOriginDatacenterOfTheSurveyMonkeyAccount string
@@ -78,9 +115,48 @@ type SourceSurveymonkeyUpdate struct {
// The authorization method to use to retrieve data from SurveyMonkey
Credentials *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod `json:"credentials,omitempty"`
// Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different.
- Origin *SourceSurveymonkeyUpdateOriginDatacenterOfTheSurveyMonkeyAccount `json:"origin,omitempty"`
+ Origin *SourceSurveymonkeyUpdateOriginDatacenterOfTheSurveyMonkeyAccount `default:"USA" json:"origin"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
// IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated.
SurveyIds []string `json:"survey_ids,omitempty"`
}
+
+func (s SourceSurveymonkeyUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveymonkeyUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveymonkeyUpdate) GetCredentials() *SourceSurveymonkeyUpdateSurveyMonkeyAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceSurveymonkeyUpdate) GetOrigin() *SourceSurveymonkeyUpdateOriginDatacenterOfTheSurveyMonkeyAccount {
+ if o == nil {
+ return nil
+ }
+ return o.Origin
+}
+
+func (o *SourceSurveymonkeyUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceSurveymonkeyUpdate) GetSurveyIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyIds
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrow.go b/internal/sdk/pkg/models/shared/sourcesurveysparrow.go
old mode 100755
new mode 100644
index 83f9284b2..9ee1b8005
--- a/internal/sdk/pkg/models/shared/sourcesurveysparrow.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveysparrow.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceSurveySparrowBaseURLGlobalAccountURLBase) UnmarshalJSON(data []by
// SourceSurveySparrowBaseURLGlobalAccount - Is your account location is EU based? If yes, the base url to retrieve data will be different.
type SourceSurveySparrowBaseURLGlobalAccount struct {
- URLBase *SourceSurveySparrowBaseURLGlobalAccountURLBase `json:"url_base,omitempty"`
+ urlBase *SourceSurveySparrowBaseURLGlobalAccountURLBase `const:"https://api.surveysparrow.com/v3" json:"url_base,omitempty"`
+}
+
+func (s SourceSurveySparrowBaseURLGlobalAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveySparrowBaseURLGlobalAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveySparrowBaseURLGlobalAccount) GetURLBase() *SourceSurveySparrowBaseURLGlobalAccountURLBase {
+ return SourceSurveySparrowBaseURLGlobalAccountURLBaseHTTPSAPISurveysparrowComV3.ToPointer()
}
type SourceSurveySparrowBaseURLEUBasedAccountURLBase string
@@ -64,7 +79,22 @@ func (e *SourceSurveySparrowBaseURLEUBasedAccountURLBase) UnmarshalJSON(data []b
// SourceSurveySparrowBaseURLEUBasedAccount - Is your account location is EU based? If yes, the base url to retrieve data will be different.
type SourceSurveySparrowBaseURLEUBasedAccount struct {
- URLBase *SourceSurveySparrowBaseURLEUBasedAccountURLBase `json:"url_base,omitempty"`
+ urlBase *SourceSurveySparrowBaseURLEUBasedAccountURLBase `const:"https://eu-api.surveysparrow.com/v3" json:"url_base,omitempty"`
+}
+
+func (s SourceSurveySparrowBaseURLEUBasedAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveySparrowBaseURLEUBasedAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveySparrowBaseURLEUBasedAccount) GetURLBase() *SourceSurveySparrowBaseURLEUBasedAccountURLBase {
+ return SourceSurveySparrowBaseURLEUBasedAccountURLBaseHTTPSEuAPISurveysparrowComV3.ToPointer()
}
type SourceSurveySparrowBaseURLType string
@@ -100,21 +130,16 @@ func CreateSourceSurveySparrowBaseURLSourceSurveySparrowBaseURLGlobalAccount(sou
}
func (u *SourceSurveySparrowBaseURL) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSurveySparrowBaseURLEUBasedAccount := new(SourceSurveySparrowBaseURLEUBasedAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSurveySparrowBaseURLEUBasedAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSurveySparrowBaseURLEUBasedAccount, "", true, true); err == nil {
u.SourceSurveySparrowBaseURLEUBasedAccount = sourceSurveySparrowBaseURLEUBasedAccount
u.Type = SourceSurveySparrowBaseURLTypeSourceSurveySparrowBaseURLEUBasedAccount
return nil
}
sourceSurveySparrowBaseURLGlobalAccount := new(SourceSurveySparrowBaseURLGlobalAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSurveySparrowBaseURLGlobalAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSurveySparrowBaseURLGlobalAccount, "", true, true); err == nil {
u.SourceSurveySparrowBaseURLGlobalAccount = sourceSurveySparrowBaseURLGlobalAccount
u.Type = SourceSurveySparrowBaseURLTypeSourceSurveySparrowBaseURLGlobalAccount
return nil
@@ -125,14 +150,14 @@ func (u *SourceSurveySparrowBaseURL) UnmarshalJSON(data []byte) error {
func (u SourceSurveySparrowBaseURL) MarshalJSON() ([]byte, error) {
if u.SourceSurveySparrowBaseURLEUBasedAccount != nil {
- return json.Marshal(u.SourceSurveySparrowBaseURLEUBasedAccount)
+ return utils.MarshalJSON(u.SourceSurveySparrowBaseURLEUBasedAccount, "", true)
}
if u.SourceSurveySparrowBaseURLGlobalAccount != nil {
- return json.Marshal(u.SourceSurveySparrowBaseURLGlobalAccount)
+ return utils.MarshalJSON(u.SourceSurveySparrowBaseURLGlobalAccount, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSurveySparrowSurveySparrow string
@@ -164,7 +189,43 @@ type SourceSurveySparrow struct {
AccessToken string `json:"access_token"`
// Is your account location is EU based? If yes, the base url to retrieve data will be different.
Region *SourceSurveySparrowBaseURL `json:"region,omitempty"`
- SourceType SourceSurveySparrowSurveySparrow `json:"sourceType"`
+ sourceType SourceSurveySparrowSurveySparrow `const:"survey-sparrow" json:"sourceType"`
// A List of your survey ids for survey-specific stream
SurveyID []interface{} `json:"survey_id,omitempty"`
}
+
+func (s SourceSurveySparrow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveySparrow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveySparrow) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSurveySparrow) GetRegion() *SourceSurveySparrowBaseURL {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceSurveySparrow) GetSourceType() SourceSurveySparrowSurveySparrow {
+ return SourceSurveySparrowSurveySparrowSurveySparrow
+}
+
+func (o *SourceSurveySparrow) GetSurveyID() []interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrowcreaterequest.go b/internal/sdk/pkg/models/shared/sourcesurveysparrowcreaterequest.go
old mode 100755
new mode 100644
index 03d92cbcf..4a24a8693
--- a/internal/sdk/pkg/models/shared/sourcesurveysparrowcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveysparrowcreaterequest.go
@@ -9,3 +9,31 @@ type SourceSurveySparrowCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSurveySparrowCreateRequest) GetConfiguration() SourceSurveySparrow {
+ if o == nil {
+ return SourceSurveySparrow{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSurveySparrowCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSurveySparrowCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceSurveySparrowCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrowputrequest.go b/internal/sdk/pkg/models/shared/sourcesurveysparrowputrequest.go
old mode 100755
new mode 100644
index c10e24eb7..eb12fa858
--- a/internal/sdk/pkg/models/shared/sourcesurveysparrowputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveysparrowputrequest.go
@@ -7,3 +7,24 @@ type SourceSurveySparrowPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceSurveySparrowPutRequest) GetConfiguration() SourceSurveySparrowUpdate {
+ if o == nil {
+ return SourceSurveySparrowUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceSurveySparrowPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceSurveySparrowPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go b/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go
old mode 100755
new mode 100644
index cb829ca15..47fb84ba2
--- a/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -35,7 +35,22 @@ func (e *SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase) UnmarshalJSON(dat
// SourceSurveySparrowUpdateBaseURLGlobalAccount - Is your account location is EU based? If yes, the base url to retrieve data will be different.
type SourceSurveySparrowUpdateBaseURLGlobalAccount struct {
- URLBase *SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase `json:"url_base,omitempty"`
+ urlBase *SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase `const:"https://api.surveysparrow.com/v3" json:"url_base,omitempty"`
+}
+
+func (s SourceSurveySparrowUpdateBaseURLGlobalAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveySparrowUpdateBaseURLGlobalAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveySparrowUpdateBaseURLGlobalAccount) GetURLBase() *SourceSurveySparrowUpdateBaseURLGlobalAccountURLBase {
+ return SourceSurveySparrowUpdateBaseURLGlobalAccountURLBaseHTTPSAPISurveysparrowComV3.ToPointer()
}
type SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase string
@@ -64,7 +79,22 @@ func (e *SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase) UnmarshalJSON(da
// SourceSurveySparrowUpdateBaseURLEUBasedAccount - Is your account location is EU based? If yes, the base url to retrieve data will be different.
type SourceSurveySparrowUpdateBaseURLEUBasedAccount struct {
- URLBase *SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase `json:"url_base,omitempty"`
+ urlBase *SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase `const:"https://eu-api.surveysparrow.com/v3" json:"url_base,omitempty"`
+}
+
+func (s SourceSurveySparrowUpdateBaseURLEUBasedAccount) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceSurveySparrowUpdateBaseURLEUBasedAccount) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceSurveySparrowUpdateBaseURLEUBasedAccount) GetURLBase() *SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBase {
+ return SourceSurveySparrowUpdateBaseURLEUBasedAccountURLBaseHTTPSEuAPISurveysparrowComV3.ToPointer()
}
type SourceSurveySparrowUpdateBaseURLType string
@@ -100,21 +130,16 @@ func CreateSourceSurveySparrowUpdateBaseURLSourceSurveySparrowUpdateBaseURLGloba
}
func (u *SourceSurveySparrowUpdateBaseURL) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceSurveySparrowUpdateBaseURLEUBasedAccount := new(SourceSurveySparrowUpdateBaseURLEUBasedAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSurveySparrowUpdateBaseURLEUBasedAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSurveySparrowUpdateBaseURLEUBasedAccount, "", true, true); err == nil {
u.SourceSurveySparrowUpdateBaseURLEUBasedAccount = sourceSurveySparrowUpdateBaseURLEUBasedAccount
u.Type = SourceSurveySparrowUpdateBaseURLTypeSourceSurveySparrowUpdateBaseURLEUBasedAccount
return nil
}
sourceSurveySparrowUpdateBaseURLGlobalAccount := new(SourceSurveySparrowUpdateBaseURLGlobalAccount)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceSurveySparrowUpdateBaseURLGlobalAccount); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceSurveySparrowUpdateBaseURLGlobalAccount, "", true, true); err == nil {
u.SourceSurveySparrowUpdateBaseURLGlobalAccount = sourceSurveySparrowUpdateBaseURLGlobalAccount
u.Type = SourceSurveySparrowUpdateBaseURLTypeSourceSurveySparrowUpdateBaseURLGlobalAccount
return nil
@@ -125,14 +150,14 @@ func (u *SourceSurveySparrowUpdateBaseURL) UnmarshalJSON(data []byte) error {
func (u SourceSurveySparrowUpdateBaseURL) MarshalJSON() ([]byte, error) {
if u.SourceSurveySparrowUpdateBaseURLEUBasedAccount != nil {
- return json.Marshal(u.SourceSurveySparrowUpdateBaseURLEUBasedAccount)
+ return utils.MarshalJSON(u.SourceSurveySparrowUpdateBaseURLEUBasedAccount, "", true)
}
if u.SourceSurveySparrowUpdateBaseURLGlobalAccount != nil {
- return json.Marshal(u.SourceSurveySparrowUpdateBaseURLGlobalAccount)
+ return utils.MarshalJSON(u.SourceSurveySparrowUpdateBaseURLGlobalAccount, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceSurveySparrowUpdate struct {
@@ -143,3 +168,24 @@ type SourceSurveySparrowUpdate struct {
// A List of your survey ids for survey-specific stream
SurveyID []interface{} `json:"survey_id,omitempty"`
}
+
+func (o *SourceSurveySparrowUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceSurveySparrowUpdate) GetRegion() *SourceSurveySparrowUpdateBaseURL {
+ if o == nil {
+ return nil
+ }
+ return o.Region
+}
+
+func (o *SourceSurveySparrowUpdate) GetSurveyID() []interface{} {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetempo.go b/internal/sdk/pkg/models/shared/sourcetempo.go
old mode 100755
new mode 100644
index b52fcc6dd..0edf8b67c
--- a/internal/sdk/pkg/models/shared/sourcetempo.go
+++ b/internal/sdk/pkg/models/shared/sourcetempo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceTempoTempo) UnmarshalJSON(data []byte) error {
type SourceTempo struct {
// Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.
APIToken string `json:"api_token"`
- SourceType SourceTempoTempo `json:"sourceType"`
+ sourceType SourceTempoTempo `const:"tempo" json:"sourceType"`
+}
+
+func (s SourceTempo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTempo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTempo) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceTempo) GetSourceType() SourceTempoTempo {
+ return SourceTempoTempoTempo
}
diff --git a/internal/sdk/pkg/models/shared/sourcetempocreaterequest.go b/internal/sdk/pkg/models/shared/sourcetempocreaterequest.go
old mode 100755
new mode 100644
index 4859d9ea1..99c11672c
--- a/internal/sdk/pkg/models/shared/sourcetempocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetempocreaterequest.go
@@ -9,3 +9,31 @@ type SourceTempoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTempoCreateRequest) GetConfiguration() SourceTempo {
+ if o == nil {
+ return SourceTempo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTempoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTempoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTempoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetempoputrequest.go b/internal/sdk/pkg/models/shared/sourcetempoputrequest.go
old mode 100755
new mode 100644
index 8ab692d58..7789a9a7a
--- a/internal/sdk/pkg/models/shared/sourcetempoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetempoputrequest.go
@@ -7,3 +7,24 @@ type SourceTempoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTempoPutRequest) GetConfiguration() SourceTempoUpdate {
+ if o == nil {
+ return SourceTempoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTempoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTempoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetempoupdate.go b/internal/sdk/pkg/models/shared/sourcetempoupdate.go
old mode 100755
new mode 100644
index ed660abbb..b60661e87
--- a/internal/sdk/pkg/models/shared/sourcetempoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetempoupdate.go
@@ -6,3 +6,10 @@ type SourceTempoUpdate struct {
// Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration.
APIToken string `json:"api_token"`
}
+
+func (o *SourceTempoUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetheguardianapi.go b/internal/sdk/pkg/models/shared/sourcetheguardianapi.go
old mode 100755
new mode 100644
index 924b6de3b..919dac16c
--- a/internal/sdk/pkg/models/shared/sourcetheguardianapi.go
+++ b/internal/sdk/pkg/models/shared/sourcetheguardianapi.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -40,9 +41,66 @@ type SourceTheGuardianAPI struct {
Query *string `json:"query,omitempty"`
// (Optional) Use this to filter the results by a particular section. See here for a list of all sections, and here for the sections endpoint documentation.
Section *string `json:"section,omitempty"`
- SourceType SourceTheGuardianAPITheGuardianAPI `json:"sourceType"`
+ sourceType SourceTheGuardianAPITheGuardianAPI `const:"the-guardian-api" json:"sourceType"`
// Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown.
StartDate string `json:"start_date"`
// (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint documentation.
Tag *string `json:"tag,omitempty"`
}
+
+func (s SourceTheGuardianAPI) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTheGuardianAPI) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTheGuardianAPI) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceTheGuardianAPI) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTheGuardianAPI) GetQuery() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Query
+}
+
+func (o *SourceTheGuardianAPI) GetSection() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Section
+}
+
+func (o *SourceTheGuardianAPI) GetSourceType() SourceTheGuardianAPITheGuardianAPI {
+ return SourceTheGuardianAPITheGuardianAPITheGuardianAPI
+}
+
+func (o *SourceTheGuardianAPI) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceTheGuardianAPI) GetTag() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Tag
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetheguardianapicreaterequest.go b/internal/sdk/pkg/models/shared/sourcetheguardianapicreaterequest.go
old mode 100755
new mode 100644
index 271ac9548..e5d594e59
--- a/internal/sdk/pkg/models/shared/sourcetheguardianapicreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetheguardianapicreaterequest.go
@@ -9,3 +9,31 @@ type SourceTheGuardianAPICreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTheGuardianAPICreateRequest) GetConfiguration() SourceTheGuardianAPI {
+ if o == nil {
+ return SourceTheGuardianAPI{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTheGuardianAPICreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTheGuardianAPICreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTheGuardianAPICreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetheguardianapiputrequest.go b/internal/sdk/pkg/models/shared/sourcetheguardianapiputrequest.go
old mode 100755
new mode 100644
index 7a31d5eac..9906d86a8
--- a/internal/sdk/pkg/models/shared/sourcetheguardianapiputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetheguardianapiputrequest.go
@@ -7,3 +7,24 @@ type SourceTheGuardianAPIPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTheGuardianAPIPutRequest) GetConfiguration() SourceTheGuardianAPIUpdate {
+ if o == nil {
+ return SourceTheGuardianAPIUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTheGuardianAPIPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTheGuardianAPIPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetheguardianapiupdate.go b/internal/sdk/pkg/models/shared/sourcetheguardianapiupdate.go
old mode 100755
new mode 100644
index 2bd303549..b13596eed
--- a/internal/sdk/pkg/models/shared/sourcetheguardianapiupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetheguardianapiupdate.go
@@ -16,3 +16,45 @@ type SourceTheGuardianAPIUpdate struct {
// (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint documentation.
Tag *string `json:"tag,omitempty"`
}
+
+func (o *SourceTheGuardianAPIUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceTheGuardianAPIUpdate) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTheGuardianAPIUpdate) GetQuery() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Query
+}
+
+func (o *SourceTheGuardianAPIUpdate) GetSection() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Section
+}
+
+func (o *SourceTheGuardianAPIUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceTheGuardianAPIUpdate) GetTag() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Tag
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go
old mode 100755
new mode 100644
index 87cf9ff32..719df845c
--- a/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go
+++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,7 +40,36 @@ type SourceTiktokMarketingAuthenticationMethodSandboxAccessToken struct {
AccessToken string `json:"access_token"`
// The Advertiser ID which generated for the developer's Sandbox application.
AdvertiserID string `json:"advertiser_id"`
- AuthType *SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthType `const:"sandbox_access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceTiktokMarketingAuthenticationMethodSandboxAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketingAuthenticationMethodSandboxAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodSandboxAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodSandboxAccessToken) GetAdvertiserID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AdvertiserID
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodSandboxAccessToken) GetAuthType() *SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthType {
+ return SourceTiktokMarketingAuthenticationMethodSandboxAccessTokenAuthTypeSandboxAccessToken.ToPointer()
}
type SourceTiktokMarketingAuthenticationMethodOAuth20AuthType string
@@ -75,11 +104,54 @@ type SourceTiktokMarketingAuthenticationMethodOAuth20 struct {
AdvertiserID *string `json:"advertiser_id,omitempty"`
// The Developer Application App ID.
AppID string `json:"app_id"`
- AuthType *SourceTiktokMarketingAuthenticationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTiktokMarketingAuthenticationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The Developer Application Secret.
Secret string `json:"secret"`
}
+func (s SourceTiktokMarketingAuthenticationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketingAuthenticationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodOAuth20) GetAdvertiserID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvertiserID
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodOAuth20) GetAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppID
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodOAuth20) GetAuthType() *SourceTiktokMarketingAuthenticationMethodOAuth20AuthType {
+ return SourceTiktokMarketingAuthenticationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTiktokMarketingAuthenticationMethodOAuth20) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
+
type SourceTiktokMarketingAuthenticationMethodType string
const (
@@ -113,21 +185,16 @@ func CreateSourceTiktokMarketingAuthenticationMethodSourceTiktokMarketingAuthent
}
func (u *SourceTiktokMarketingAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTiktokMarketingAuthenticationMethodSandboxAccessToken := new(SourceTiktokMarketingAuthenticationMethodSandboxAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTiktokMarketingAuthenticationMethodSandboxAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingAuthenticationMethodSandboxAccessToken, "", true, true); err == nil {
u.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken = sourceTiktokMarketingAuthenticationMethodSandboxAccessToken
u.Type = SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingAuthenticationMethodSandboxAccessToken
return nil
}
sourceTiktokMarketingAuthenticationMethodOAuth20 := new(SourceTiktokMarketingAuthenticationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTiktokMarketingAuthenticationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingAuthenticationMethodOAuth20, "", true, true); err == nil {
u.SourceTiktokMarketingAuthenticationMethodOAuth20 = sourceTiktokMarketingAuthenticationMethodOAuth20
u.Type = SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingAuthenticationMethodOAuth20
return nil
@@ -137,15 +204,15 @@ func (u *SourceTiktokMarketingAuthenticationMethod) UnmarshalJSON(data []byte) e
}
func (u SourceTiktokMarketingAuthenticationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken != nil {
- return json.Marshal(u.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken)
+ if u.SourceTiktokMarketingAuthenticationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTiktokMarketingAuthenticationMethodOAuth20, "", true)
}
- if u.SourceTiktokMarketingAuthenticationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTiktokMarketingAuthenticationMethodOAuth20)
+ if u.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken != nil {
+ return utils.MarshalJSON(u.SourceTiktokMarketingAuthenticationMethodSandboxAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTiktokMarketingTiktokMarketing string
@@ -174,14 +241,64 @@ func (e *SourceTiktokMarketingTiktokMarketing) UnmarshalJSON(data []byte) error
type SourceTiktokMarketing struct {
// The attribution window in days.
- AttributionWindow *int64 `json:"attribution_window,omitempty"`
+ AttributionWindow *int64 `default:"3" json:"attribution_window"`
// Authentication method
Credentials *SourceTiktokMarketingAuthenticationMethod `json:"credentials,omitempty"`
// The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date.
EndDate *types.Date `json:"end_date,omitempty"`
// Set to active if you want to include deleted data in reports.
- IncludeDeleted *bool `json:"include_deleted,omitempty"`
- SourceType *SourceTiktokMarketingTiktokMarketing `json:"sourceType,omitempty"`
+ IncludeDeleted *bool `default:"false" json:"include_deleted"`
+ sourceType *SourceTiktokMarketingTiktokMarketing `const:"tiktok-marketing" json:"sourceType,omitempty"`
// The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2016-09-01" json:"start_date"`
+}
+
+func (s SourceTiktokMarketing) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketing) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketing) GetAttributionWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AttributionWindow
+}
+
+func (o *SourceTiktokMarketing) GetCredentials() *SourceTiktokMarketingAuthenticationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceTiktokMarketing) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTiktokMarketing) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *SourceTiktokMarketing) GetSourceType() *SourceTiktokMarketingTiktokMarketing {
+ return SourceTiktokMarketingTiktokMarketingTiktokMarketing.ToPointer()
+}
+
+func (o *SourceTiktokMarketing) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketingcreaterequest.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketingcreaterequest.go
old mode 100755
new mode 100644
index 1319e6afa..05f7a9f75
--- a/internal/sdk/pkg/models/shared/sourcetiktokmarketingcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketingcreaterequest.go
@@ -9,3 +9,31 @@ type SourceTiktokMarketingCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTiktokMarketingCreateRequest) GetConfiguration() SourceTiktokMarketing {
+ if o == nil {
+ return SourceTiktokMarketing{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTiktokMarketingCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTiktokMarketingCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTiktokMarketingCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketingputrequest.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketingputrequest.go
old mode 100755
new mode 100644
index 103aff832..e93c355cf
--- a/internal/sdk/pkg/models/shared/sourcetiktokmarketingputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketingputrequest.go
@@ -7,3 +7,24 @@ type SourceTiktokMarketingPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTiktokMarketingPutRequest) GetConfiguration() SourceTiktokMarketingUpdate {
+ if o == nil {
+ return SourceTiktokMarketingUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTiktokMarketingPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTiktokMarketingPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go
old mode 100755
new mode 100644
index 721c98586..22cfd644d
--- a/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go
@@ -4,7 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -40,7 +40,36 @@ type SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken struct {
AccessToken string `json:"access_token"`
// The Advertiser ID which generated for the developer's Sandbox application.
AdvertiserID string `json:"advertiser_id"`
- AuthType *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthType `const:"sandbox_access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken) GetAdvertiserID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AdvertiserID
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken) GetAuthType() *SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthType {
+ return SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessTokenAuthTypeSandboxAccessToken.ToPointer()
}
type SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType string
@@ -75,11 +104,54 @@ type SourceTiktokMarketingUpdateAuthenticationMethodOAuth20 struct {
AdvertiserID *string `json:"advertiser_id,omitempty"`
// The Developer Application App ID.
AppID string `json:"app_id"`
- AuthType *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The Developer Application Secret.
Secret string `json:"secret"`
}
+func (s SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) GetAdvertiserID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AdvertiserID
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) GetAppID() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppID
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) GetAuthType() *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthType {
+ return SourceTiktokMarketingUpdateAuthenticationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTiktokMarketingUpdateAuthenticationMethodOAuth20) GetSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.Secret
+}
+
type SourceTiktokMarketingUpdateAuthenticationMethodType string
const (
@@ -113,21 +185,16 @@ func CreateSourceTiktokMarketingUpdateAuthenticationMethodSourceTiktokMarketingU
}
func (u *SourceTiktokMarketingUpdateAuthenticationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken := new(SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken, "", true, true); err == nil {
u.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken = sourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken
u.Type = SourceTiktokMarketingUpdateAuthenticationMethodTypeSourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken
return nil
}
sourceTiktokMarketingUpdateAuthenticationMethodOAuth20 := new(SourceTiktokMarketingUpdateAuthenticationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTiktokMarketingUpdateAuthenticationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingUpdateAuthenticationMethodOAuth20, "", true, true); err == nil {
u.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20 = sourceTiktokMarketingUpdateAuthenticationMethodOAuth20
u.Type = SourceTiktokMarketingUpdateAuthenticationMethodTypeSourceTiktokMarketingUpdateAuthenticationMethodOAuth20
return nil
@@ -137,26 +204,72 @@ func (u *SourceTiktokMarketingUpdateAuthenticationMethod) UnmarshalJSON(data []b
}
func (u SourceTiktokMarketingUpdateAuthenticationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken != nil {
- return json.Marshal(u.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken)
+ if u.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20, "", true)
}
- if u.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTiktokMarketingUpdateAuthenticationMethodOAuth20)
+ if u.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken != nil {
+ return utils.MarshalJSON(u.SourceTiktokMarketingUpdateAuthenticationMethodSandboxAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTiktokMarketingUpdate struct {
// The attribution window in days.
- AttributionWindow *int64 `json:"attribution_window,omitempty"`
+ AttributionWindow *int64 `default:"3" json:"attribution_window"`
// Authentication method
Credentials *SourceTiktokMarketingUpdateAuthenticationMethod `json:"credentials,omitempty"`
// The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date.
EndDate *types.Date `json:"end_date,omitempty"`
// Set to active if you want to include deleted data in reports.
- IncludeDeleted *bool `json:"include_deleted,omitempty"`
+ IncludeDeleted *bool `default:"false" json:"include_deleted"`
// The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated.
- StartDate *types.Date `json:"start_date,omitempty"`
+ StartDate *types.Date `default:"2016-09-01" json:"start_date"`
+}
+
+func (s SourceTiktokMarketingUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTiktokMarketingUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTiktokMarketingUpdate) GetAttributionWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.AttributionWindow
+}
+
+func (o *SourceTiktokMarketingUpdate) GetCredentials() *SourceTiktokMarketingUpdateAuthenticationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceTiktokMarketingUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTiktokMarketingUpdate) GetIncludeDeleted() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IncludeDeleted
+}
+
+func (o *SourceTiktokMarketingUpdate) GetStartDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
}
diff --git a/internal/sdk/pkg/models/shared/sourcetodoist.go b/internal/sdk/pkg/models/shared/sourcetodoist.go
old mode 100755
new mode 100644
index 365d78a5e..759880caa
--- a/internal/sdk/pkg/models/shared/sourcetodoist.go
+++ b/internal/sdk/pkg/models/shared/sourcetodoist.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,7 +33,29 @@ func (e *SourceTodoistTodoist) UnmarshalJSON(data []byte) error {
}
type SourceTodoist struct {
- SourceType SourceTodoistTodoist `json:"sourceType"`
+ sourceType SourceTodoistTodoist `const:"todoist" json:"sourceType"`
// Your API Token. See here. The token is case sensitive.
Token string `json:"token"`
}
+
+func (s SourceTodoist) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTodoist) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTodoist) GetSourceType() SourceTodoistTodoist {
+ return SourceTodoistTodoistTodoist
+}
+
+func (o *SourceTodoist) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetodoistcreaterequest.go b/internal/sdk/pkg/models/shared/sourcetodoistcreaterequest.go
old mode 100755
new mode 100644
index b85d68c63..05f9dafe3
--- a/internal/sdk/pkg/models/shared/sourcetodoistcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetodoistcreaterequest.go
@@ -9,3 +9,31 @@ type SourceTodoistCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTodoistCreateRequest) GetConfiguration() SourceTodoist {
+ if o == nil {
+ return SourceTodoist{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTodoistCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTodoistCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTodoistCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetodoistputrequest.go b/internal/sdk/pkg/models/shared/sourcetodoistputrequest.go
old mode 100755
new mode 100644
index 4689b29aa..e5a56db9c
--- a/internal/sdk/pkg/models/shared/sourcetodoistputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetodoistputrequest.go
@@ -7,3 +7,24 @@ type SourceTodoistPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTodoistPutRequest) GetConfiguration() SourceTodoistUpdate {
+ if o == nil {
+ return SourceTodoistUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTodoistPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTodoistPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetodoistupdate.go b/internal/sdk/pkg/models/shared/sourcetodoistupdate.go
old mode 100755
new mode 100644
index 22db76dbc..f09962cff
--- a/internal/sdk/pkg/models/shared/sourcetodoistupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetodoistupdate.go
@@ -6,3 +6,10 @@ type SourceTodoistUpdate struct {
// Your API Token. See here. The token is case sensitive.
Token string `json:"token"`
}
+
+func (o *SourceTodoistUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrello.go b/internal/sdk/pkg/models/shared/sourcetrello.go
old mode 100755
new mode 100644
index c30257373..d9ff08242
--- a/internal/sdk/pkg/models/shared/sourcetrello.go
+++ b/internal/sdk/pkg/models/shared/sourcetrello.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -37,9 +38,52 @@ type SourceTrello struct {
BoardIds []string `json:"board_ids,omitempty"`
// Trello API key. See the docs for instructions on how to generate it.
Key string `json:"key"`
- SourceType SourceTrelloTrello `json:"sourceType"`
+ sourceType SourceTrelloTrello `const:"trello" json:"sourceType"`
// UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
// Trello API token. See the docs for instructions on how to generate it.
Token string `json:"token"`
}
+
+func (s SourceTrello) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrello) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrello) GetBoardIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.BoardIds
+}
+
+func (o *SourceTrello) GetKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Key
+}
+
+func (o *SourceTrello) GetSourceType() SourceTrelloTrello {
+ return SourceTrelloTrelloTrello
+}
+
+func (o *SourceTrello) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceTrello) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrellocreaterequest.go b/internal/sdk/pkg/models/shared/sourcetrellocreaterequest.go
old mode 100755
new mode 100644
index c24dc64eb..e98d40a2a
--- a/internal/sdk/pkg/models/shared/sourcetrellocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetrellocreaterequest.go
@@ -9,3 +9,31 @@ type SourceTrelloCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTrelloCreateRequest) GetConfiguration() SourceTrello {
+ if o == nil {
+ return SourceTrello{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTrelloCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTrelloCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTrelloCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrelloputrequest.go b/internal/sdk/pkg/models/shared/sourcetrelloputrequest.go
old mode 100755
new mode 100644
index 718491c5b..fe2472556
--- a/internal/sdk/pkg/models/shared/sourcetrelloputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetrelloputrequest.go
@@ -7,3 +7,24 @@ type SourceTrelloPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTrelloPutRequest) GetConfiguration() SourceTrelloUpdate {
+ if o == nil {
+ return SourceTrelloUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTrelloPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTrelloPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrelloupdate.go b/internal/sdk/pkg/models/shared/sourcetrelloupdate.go
old mode 100755
new mode 100644
index 259dfe316..bff2ae801
--- a/internal/sdk/pkg/models/shared/sourcetrelloupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetrelloupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceTrelloUpdate struct {
// Trello API token. See the docs for instructions on how to generate it.
Token string `json:"token"`
}
+
+func (s SourceTrelloUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrelloUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrelloUpdate) GetBoardIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.BoardIds
+}
+
+func (o *SourceTrelloUpdate) GetKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.Key
+}
+
+func (o *SourceTrelloUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceTrelloUpdate) GetToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.Token
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilot.go b/internal/sdk/pkg/models/shared/sourcetrustpilot.go
old mode 100755
new mode 100644
index dbe483587..8cf94fb1c
--- a/internal/sdk/pkg/models/shared/sourcetrustpilot.go
+++ b/internal/sdk/pkg/models/shared/sourcetrustpilot.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceTrustpilotAuthorizationMethodAPIKeyAuthType) UnmarshalJSON(data [
// SourceTrustpilotAuthorizationMethodAPIKey - The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
type SourceTrustpilotAuthorizationMethodAPIKey struct {
- AuthType *SourceTrustpilotAuthorizationMethodAPIKeyAuthType `json:"auth_type,omitempty"`
+ authType *SourceTrustpilotAuthorizationMethodAPIKeyAuthType `const:"apikey" json:"auth_type,omitempty"`
// The API key of the Trustpilot API application.
ClientID string `json:"client_id"`
}
+func (s SourceTrustpilotAuthorizationMethodAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrustpilotAuthorizationMethodAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrustpilotAuthorizationMethodAPIKey) GetAuthType() *SourceTrustpilotAuthorizationMethodAPIKeyAuthType {
+ return SourceTrustpilotAuthorizationMethodAPIKeyAuthTypeApikey.ToPointer()
+}
+
+func (o *SourceTrustpilotAuthorizationMethodAPIKey) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
type SourceTrustpilotAuthorizationMethodOAuth20AuthType string
const (
@@ -68,7 +90,7 @@ func (e *SourceTrustpilotAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data
type SourceTrustpilotAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceTrustpilotAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTrustpilotAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API key of the Trustpilot API application. (represents the OAuth Client ID)
ClientID string `json:"client_id"`
// The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
@@ -79,6 +101,56 @@ type SourceTrustpilotAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceTrustpilotAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrustpilotAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetAuthType() *SourceTrustpilotAuthorizationMethodOAuth20AuthType {
+ return SourceTrustpilotAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceTrustpilotAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceTrustpilotAuthorizationMethodType string
const (
@@ -112,21 +184,16 @@ func CreateSourceTrustpilotAuthorizationMethodSourceTrustpilotAuthorizationMetho
}
func (u *SourceTrustpilotAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTrustpilotAuthorizationMethodAPIKey := new(SourceTrustpilotAuthorizationMethodAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTrustpilotAuthorizationMethodAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTrustpilotAuthorizationMethodAPIKey, "", true, true); err == nil {
u.SourceTrustpilotAuthorizationMethodAPIKey = sourceTrustpilotAuthorizationMethodAPIKey
u.Type = SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotAuthorizationMethodAPIKey
return nil
}
sourceTrustpilotAuthorizationMethodOAuth20 := new(SourceTrustpilotAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTrustpilotAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTrustpilotAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceTrustpilotAuthorizationMethodOAuth20 = sourceTrustpilotAuthorizationMethodOAuth20
u.Type = SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotAuthorizationMethodOAuth20
return nil
@@ -136,15 +203,15 @@ func (u *SourceTrustpilotAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceTrustpilotAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTrustpilotAuthorizationMethodAPIKey != nil {
- return json.Marshal(u.SourceTrustpilotAuthorizationMethodAPIKey)
+ if u.SourceTrustpilotAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTrustpilotAuthorizationMethodOAuth20, "", true)
}
- if u.SourceTrustpilotAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTrustpilotAuthorizationMethodOAuth20)
+ if u.SourceTrustpilotAuthorizationMethodAPIKey != nil {
+ return utils.MarshalJSON(u.SourceTrustpilotAuthorizationMethodAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTrustpilotTrustpilot string
@@ -175,7 +242,43 @@ type SourceTrustpilot struct {
// The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration.
BusinessUnits []string `json:"business_units"`
Credentials SourceTrustpilotAuthorizationMethod `json:"credentials"`
- SourceType SourceTrustpilotTrustpilot `json:"sourceType"`
+ sourceType SourceTrustpilotTrustpilot `const:"trustpilot" json:"sourceType"`
// For streams with sync. method incremental the start date time to be used
StartDate string `json:"start_date"`
}
+
+func (s SourceTrustpilot) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrustpilot) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrustpilot) GetBusinessUnits() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.BusinessUnits
+}
+
+func (o *SourceTrustpilot) GetCredentials() SourceTrustpilotAuthorizationMethod {
+ if o == nil {
+ return SourceTrustpilotAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceTrustpilot) GetSourceType() SourceTrustpilotTrustpilot {
+ return SourceTrustpilotTrustpilotTrustpilot
+}
+
+func (o *SourceTrustpilot) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilotcreaterequest.go b/internal/sdk/pkg/models/shared/sourcetrustpilotcreaterequest.go
old mode 100755
new mode 100644
index a8affd920..0b0cb8df3
--- a/internal/sdk/pkg/models/shared/sourcetrustpilotcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetrustpilotcreaterequest.go
@@ -9,3 +9,31 @@ type SourceTrustpilotCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTrustpilotCreateRequest) GetConfiguration() SourceTrustpilot {
+ if o == nil {
+ return SourceTrustpilot{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTrustpilotCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTrustpilotCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTrustpilotCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilotputrequest.go b/internal/sdk/pkg/models/shared/sourcetrustpilotputrequest.go
old mode 100755
new mode 100644
index 68c1f35e0..c8006a69e
--- a/internal/sdk/pkg/models/shared/sourcetrustpilotputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetrustpilotputrequest.go
@@ -7,3 +7,24 @@ type SourceTrustpilotPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTrustpilotPutRequest) GetConfiguration() SourceTrustpilotUpdate {
+ if o == nil {
+ return SourceTrustpilotUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTrustpilotPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTrustpilotPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go b/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go
old mode 100755
new mode 100644
index 15bf17aad..3d44a501e
--- a/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,11 +36,33 @@ func (e *SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType) UnmarshalJSON(
// SourceTrustpilotUpdateAuthorizationMethodAPIKey - The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0.
type SourceTrustpilotUpdateAuthorizationMethodAPIKey struct {
- AuthType *SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType `json:"auth_type,omitempty"`
+ authType *SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType `const:"apikey" json:"auth_type,omitempty"`
// The API key of the Trustpilot API application.
ClientID string `json:"client_id"`
}
+func (s SourceTrustpilotUpdateAuthorizationMethodAPIKey) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrustpilotUpdateAuthorizationMethodAPIKey) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodAPIKey) GetAuthType() *SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthType {
+ return SourceTrustpilotUpdateAuthorizationMethodAPIKeyAuthTypeApikey.ToPointer()
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodAPIKey) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
type SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType string
const (
@@ -68,7 +90,7 @@ func (e *SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON
type SourceTrustpilotUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The API key of the Trustpilot API application. (represents the OAuth Client ID)
ClientID string `json:"client_id"`
// The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
@@ -79,6 +101,56 @@ type SourceTrustpilotUpdateAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceTrustpilotUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTrustpilotUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetAuthType() *SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceTrustpilotUpdateAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceTrustpilotUpdateAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceTrustpilotUpdateAuthorizationMethodType string
const (
@@ -112,21 +184,16 @@ func CreateSourceTrustpilotUpdateAuthorizationMethodSourceTrustpilotUpdateAuthor
}
func (u *SourceTrustpilotUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTrustpilotUpdateAuthorizationMethodAPIKey := new(SourceTrustpilotUpdateAuthorizationMethodAPIKey)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTrustpilotUpdateAuthorizationMethodAPIKey); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTrustpilotUpdateAuthorizationMethodAPIKey, "", true, true); err == nil {
u.SourceTrustpilotUpdateAuthorizationMethodAPIKey = sourceTrustpilotUpdateAuthorizationMethodAPIKey
u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateAuthorizationMethodAPIKey
return nil
}
sourceTrustpilotUpdateAuthorizationMethodOAuth20 := new(SourceTrustpilotUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTrustpilotUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTrustpilotUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceTrustpilotUpdateAuthorizationMethodOAuth20 = sourceTrustpilotUpdateAuthorizationMethodOAuth20
u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateAuthorizationMethodOAuth20
return nil
@@ -136,15 +203,15 @@ func (u *SourceTrustpilotUpdateAuthorizationMethod) UnmarshalJSON(data []byte) e
}
func (u SourceTrustpilotUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTrustpilotUpdateAuthorizationMethodAPIKey != nil {
- return json.Marshal(u.SourceTrustpilotUpdateAuthorizationMethodAPIKey)
+ if u.SourceTrustpilotUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTrustpilotUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceTrustpilotUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTrustpilotUpdateAuthorizationMethodOAuth20)
+ if u.SourceTrustpilotUpdateAuthorizationMethodAPIKey != nil {
+ return utils.MarshalJSON(u.SourceTrustpilotUpdateAuthorizationMethodAPIKey, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTrustpilotUpdate struct {
@@ -154,3 +221,24 @@ type SourceTrustpilotUpdate struct {
// For streams with sync. method incremental the start date time to be used
StartDate string `json:"start_date"`
}
+
+func (o *SourceTrustpilotUpdate) GetBusinessUnits() []string {
+ if o == nil {
+ return []string{}
+ }
+ return o.BusinessUnits
+}
+
+func (o *SourceTrustpilotUpdate) GetCredentials() SourceTrustpilotUpdateAuthorizationMethod {
+ if o == nil {
+ return SourceTrustpilotUpdateAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceTrustpilotUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetvmazeschedule.go b/internal/sdk/pkg/models/shared/sourcetvmazeschedule.go
old mode 100755
new mode 100644
index 2a4fe9f53..596afe5f1
--- a/internal/sdk/pkg/models/shared/sourcetvmazeschedule.go
+++ b/internal/sdk/pkg/models/shared/sourcetvmazeschedule.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -37,7 +38,7 @@ type SourceTvmazeSchedule struct {
// End date for TV schedule retrieval. May be in the future. Optional.
//
EndDate *string `json:"end_date,omitempty"`
- SourceType SourceTvmazeScheduleTvmazeSchedule `json:"sourceType"`
+ sourceType SourceTvmazeScheduleTvmazeSchedule `const:"tvmaze-schedule" json:"sourceType"`
// Start date for TV schedule retrieval. May be in the future.
StartDate string `json:"start_date"`
// ISO 3166-1 country code for web TV schedule retrieval. Leave blank for
@@ -46,3 +47,46 @@ type SourceTvmazeSchedule struct {
//
WebScheduleCountryCode *string `json:"web_schedule_country_code,omitempty"`
}
+
+func (s SourceTvmazeSchedule) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTvmazeSchedule) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTvmazeSchedule) GetDomesticScheduleCountryCode() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomesticScheduleCountryCode
+}
+
+func (o *SourceTvmazeSchedule) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTvmazeSchedule) GetSourceType() SourceTvmazeScheduleTvmazeSchedule {
+ return SourceTvmazeScheduleTvmazeScheduleTvmazeSchedule
+}
+
+func (o *SourceTvmazeSchedule) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceTvmazeSchedule) GetWebScheduleCountryCode() *string {
+ if o == nil {
+ return nil
+ }
+ return o.WebScheduleCountryCode
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetvmazeschedulecreaterequest.go b/internal/sdk/pkg/models/shared/sourcetvmazeschedulecreaterequest.go
old mode 100755
new mode 100644
index 1a67adf4b..a2ea61326
--- a/internal/sdk/pkg/models/shared/sourcetvmazeschedulecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetvmazeschedulecreaterequest.go
@@ -9,3 +9,31 @@ type SourceTvmazeScheduleCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTvmazeScheduleCreateRequest) GetConfiguration() SourceTvmazeSchedule {
+ if o == nil {
+ return SourceTvmazeSchedule{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTvmazeScheduleCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTvmazeScheduleCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTvmazeScheduleCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetvmazescheduleputrequest.go b/internal/sdk/pkg/models/shared/sourcetvmazescheduleputrequest.go
old mode 100755
new mode 100644
index 882f84884..6aaed8a85
--- a/internal/sdk/pkg/models/shared/sourcetvmazescheduleputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetvmazescheduleputrequest.go
@@ -7,3 +7,24 @@ type SourceTvmazeSchedulePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTvmazeSchedulePutRequest) GetConfiguration() SourceTvmazeScheduleUpdate {
+ if o == nil {
+ return SourceTvmazeScheduleUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTvmazeSchedulePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTvmazeSchedulePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetvmazescheduleupdate.go b/internal/sdk/pkg/models/shared/sourcetvmazescheduleupdate.go
old mode 100755
new mode 100644
index 4191c57b3..6caacb44e
--- a/internal/sdk/pkg/models/shared/sourcetvmazescheduleupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetvmazescheduleupdate.go
@@ -16,3 +16,31 @@ type SourceTvmazeScheduleUpdate struct {
//
WebScheduleCountryCode *string `json:"web_schedule_country_code,omitempty"`
}
+
+func (o *SourceTvmazeScheduleUpdate) GetDomesticScheduleCountryCode() string {
+ if o == nil {
+ return ""
+ }
+ return o.DomesticScheduleCountryCode
+}
+
+func (o *SourceTvmazeScheduleUpdate) GetEndDate() *string {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTvmazeScheduleUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceTvmazeScheduleUpdate) GetWebScheduleCountryCode() *string {
+ if o == nil {
+ return nil
+ }
+ return o.WebScheduleCountryCode
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwilio.go b/internal/sdk/pkg/models/shared/sourcetwilio.go
old mode 100755
new mode 100644
index 433b544fd..8833da68b
--- a/internal/sdk/pkg/models/shared/sourcetwilio.go
+++ b/internal/sdk/pkg/models/shared/sourcetwilio.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -38,8 +39,51 @@ type SourceTwilio struct {
// Twilio Auth Token.
AuthToken string `json:"auth_token"`
// How far into the past to look for records. (in minutes)
- LookbackWindow *int64 `json:"lookback_window,omitempty"`
- SourceType SourceTwilioTwilio `json:"sourceType"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
+ sourceType SourceTwilioTwilio `const:"twilio" json:"sourceType"`
// UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceTwilio) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTwilio) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTwilio) GetAccountSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountSid
+}
+
+func (o *SourceTwilio) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceTwilio) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceTwilio) GetSourceType() SourceTwilioTwilio {
+ return SourceTwilioTwilioTwilio
+}
+
+func (o *SourceTwilio) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwiliocreaterequest.go b/internal/sdk/pkg/models/shared/sourcetwiliocreaterequest.go
old mode 100755
new mode 100644
index 8e6170383..cf42d6c13
--- a/internal/sdk/pkg/models/shared/sourcetwiliocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwiliocreaterequest.go
@@ -9,3 +9,31 @@ type SourceTwilioCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwilioCreateRequest) GetConfiguration() SourceTwilio {
+ if o == nil {
+ return SourceTwilio{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwilioCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwilioCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTwilioCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwilioputrequest.go b/internal/sdk/pkg/models/shared/sourcetwilioputrequest.go
old mode 100755
new mode 100644
index 63fb7a042..c10923fec
--- a/internal/sdk/pkg/models/shared/sourcetwilioputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwilioputrequest.go
@@ -7,3 +7,24 @@ type SourceTwilioPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwilioPutRequest) GetConfiguration() SourceTwilioUpdate {
+ if o == nil {
+ return SourceTwilioUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwilioPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwilioPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouter.go b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouter.go
old mode 100755
new mode 100644
index a0f698911..e69be8fdf
--- a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouter.go
+++ b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouter.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceTwilioTaskrouter struct {
AccountSid string `json:"account_sid"`
// Twilio Auth Token
AuthToken string `json:"auth_token"`
- SourceType SourceTwilioTaskrouterTwilioTaskrouter `json:"sourceType"`
+ sourceType SourceTwilioTaskrouterTwilioTaskrouter `const:"twilio-taskrouter" json:"sourceType"`
+}
+
+func (s SourceTwilioTaskrouter) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTwilioTaskrouter) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTwilioTaskrouter) GetAccountSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountSid
+}
+
+func (o *SourceTwilioTaskrouter) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceTwilioTaskrouter) GetSourceType() SourceTwilioTaskrouterTwilioTaskrouter {
+ return SourceTwilioTaskrouterTwilioTaskrouterTwilioTaskrouter
}
diff --git a/internal/sdk/pkg/models/shared/sourcetwiliotaskroutercreaterequest.go b/internal/sdk/pkg/models/shared/sourcetwiliotaskroutercreaterequest.go
old mode 100755
new mode 100644
index b76edc67a..184c24f38
--- a/internal/sdk/pkg/models/shared/sourcetwiliotaskroutercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwiliotaskroutercreaterequest.go
@@ -9,3 +9,31 @@ type SourceTwilioTaskrouterCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwilioTaskrouterCreateRequest) GetConfiguration() SourceTwilioTaskrouter {
+ if o == nil {
+ return SourceTwilioTaskrouter{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwilioTaskrouterCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwilioTaskrouterCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTwilioTaskrouterCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterputrequest.go b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterputrequest.go
old mode 100755
new mode 100644
index 2834afd35..543e0733b
--- a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterputrequest.go
@@ -7,3 +7,24 @@ type SourceTwilioTaskrouterPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwilioTaskrouterPutRequest) GetConfiguration() SourceTwilioTaskrouterUpdate {
+ if o == nil {
+ return SourceTwilioTaskrouterUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwilioTaskrouterPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwilioTaskrouterPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterupdate.go b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterupdate.go
old mode 100755
new mode 100644
index fd3358d4e..8a117d671
--- a/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetwiliotaskrouterupdate.go
@@ -8,3 +8,17 @@ type SourceTwilioTaskrouterUpdate struct {
// Twilio Auth Token
AuthToken string `json:"auth_token"`
}
+
+func (o *SourceTwilioTaskrouterUpdate) GetAccountSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountSid
+}
+
+func (o *SourceTwilioTaskrouterUpdate) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwilioupdate.go b/internal/sdk/pkg/models/shared/sourcetwilioupdate.go
old mode 100755
new mode 100644
index ca81407f0..846f6f46e
--- a/internal/sdk/pkg/models/shared/sourcetwilioupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetwilioupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,7 +13,46 @@ type SourceTwilioUpdate struct {
// Twilio Auth Token.
AuthToken string `json:"auth_token"`
// How far into the past to look for records. (in minutes)
- LookbackWindow *int64 `json:"lookback_window,omitempty"`
+ LookbackWindow *int64 `default:"0" json:"lookback_window"`
// UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceTwilioUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTwilioUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTwilioUpdate) GetAccountSid() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccountSid
+}
+
+func (o *SourceTwilioUpdate) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceTwilioUpdate) GetLookbackWindow() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.LookbackWindow
+}
+
+func (o *SourceTwilioUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwitter.go b/internal/sdk/pkg/models/shared/sourcetwitter.go
old mode 100755
new mode 100644
index c8f482674..dbbee955b
--- a/internal/sdk/pkg/models/shared/sourcetwitter.go
+++ b/internal/sdk/pkg/models/shared/sourcetwitter.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -39,7 +40,50 @@ type SourceTwitter struct {
EndDate *time.Time `json:"end_date,omitempty"`
// Query for matching Tweets. You can learn how to build this query by reading build a query guide .
Query string `json:"query"`
- SourceType SourceTwitterTwitter `json:"sourceType"`
+ sourceType SourceTwitterTwitter `const:"twitter" json:"sourceType"`
// The start date for retrieving tweets cannot be more than 7 days in the past.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceTwitter) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTwitter) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTwitter) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceTwitter) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTwitter) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceTwitter) GetSourceType() SourceTwitterTwitter {
+ return SourceTwitterTwitterTwitter
+}
+
+func (o *SourceTwitter) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwittercreaterequest.go b/internal/sdk/pkg/models/shared/sourcetwittercreaterequest.go
old mode 100755
new mode 100644
index d53ada26e..fb42dc131
--- a/internal/sdk/pkg/models/shared/sourcetwittercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwittercreaterequest.go
@@ -9,3 +9,31 @@ type SourceTwitterCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwitterCreateRequest) GetConfiguration() SourceTwitter {
+ if o == nil {
+ return SourceTwitter{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwitterCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwitterCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTwitterCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwitterputrequest.go b/internal/sdk/pkg/models/shared/sourcetwitterputrequest.go
old mode 100755
new mode 100644
index c6a5216be..f24f5bb20
--- a/internal/sdk/pkg/models/shared/sourcetwitterputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetwitterputrequest.go
@@ -7,3 +7,24 @@ type SourceTwitterPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTwitterPutRequest) GetConfiguration() SourceTwitterUpdate {
+ if o == nil {
+ return SourceTwitterUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTwitterPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTwitterPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetwitterupdate.go b/internal/sdk/pkg/models/shared/sourcetwitterupdate.go
old mode 100755
new mode 100644
index 8f75918d7..955ab7f3a
--- a/internal/sdk/pkg/models/shared/sourcetwitterupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetwitterupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -16,3 +17,42 @@ type SourceTwitterUpdate struct {
// The start date for retrieving tweets cannot be more than 7 days in the past.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceTwitterUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTwitterUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTwitterUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceTwitterUpdate) GetEndDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceTwitterUpdate) GetQuery() string {
+ if o == nil {
+ return ""
+ }
+ return o.Query
+}
+
+func (o *SourceTwitterUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetypeform.go b/internal/sdk/pkg/models/shared/sourcetypeform.go
old mode 100755
new mode 100644
index ee27b7786..e4916264a
--- a/internal/sdk/pkg/models/shared/sourcetypeform.go
+++ b/internal/sdk/pkg/models/shared/sourcetypeform.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceTypeformAuthorizationMethodPrivateTokenAuthType) UnmarshalJSON(da
type SourceTypeformAuthorizationMethodPrivateToken struct {
// Log into your Typeform account and then generate a personal Access Token.
AccessToken string `json:"access_token"`
- AuthType *SourceTypeformAuthorizationMethodPrivateTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceTypeformAuthorizationMethodPrivateTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceTypeformAuthorizationMethodPrivateToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeformAuthorizationMethodPrivateToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeformAuthorizationMethodPrivateToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTypeformAuthorizationMethodPrivateToken) GetAuthType() *SourceTypeformAuthorizationMethodPrivateTokenAuthType {
+ return SourceTypeformAuthorizationMethodPrivateTokenAuthTypeAccessToken.ToPointer()
}
type SourceTypeformAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceTypeformAuthorizationMethodOAuth20AuthType) UnmarshalJSON(data []
type SourceTypeformAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceTypeformAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTypeformAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The Client ID of the Typeform developer application.
ClientID string `json:"client_id"`
// The Client Secret the Typeform developer application.
@@ -78,6 +100,56 @@ type SourceTypeformAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceTypeformAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeformAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetAuthType() *SourceTypeformAuthorizationMethodOAuth20AuthType {
+ return SourceTypeformAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceTypeformAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceTypeformAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceTypeformAuthorizationMethodSourceTypeformAuthorizationMethodPri
}
func (u *SourceTypeformAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTypeformAuthorizationMethodPrivateToken := new(SourceTypeformAuthorizationMethodPrivateToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTypeformAuthorizationMethodPrivateToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTypeformAuthorizationMethodPrivateToken, "", true, true); err == nil {
u.SourceTypeformAuthorizationMethodPrivateToken = sourceTypeformAuthorizationMethodPrivateToken
u.Type = SourceTypeformAuthorizationMethodTypeSourceTypeformAuthorizationMethodPrivateToken
return nil
}
sourceTypeformAuthorizationMethodOAuth20 := new(SourceTypeformAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTypeformAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTypeformAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceTypeformAuthorizationMethodOAuth20 = sourceTypeformAuthorizationMethodOAuth20
u.Type = SourceTypeformAuthorizationMethodTypeSourceTypeformAuthorizationMethodOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceTypeformAuthorizationMethod) UnmarshalJSON(data []byte) error {
}
func (u SourceTypeformAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTypeformAuthorizationMethodPrivateToken != nil {
- return json.Marshal(u.SourceTypeformAuthorizationMethodPrivateToken)
+ if u.SourceTypeformAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTypeformAuthorizationMethodOAuth20, "", true)
}
- if u.SourceTypeformAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTypeformAuthorizationMethodOAuth20)
+ if u.SourceTypeformAuthorizationMethodPrivateToken != nil {
+ return utils.MarshalJSON(u.SourceTypeformAuthorizationMethodPrivateToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTypeformTypeform string
@@ -174,7 +241,43 @@ type SourceTypeform struct {
Credentials SourceTypeformAuthorizationMethod `json:"credentials"`
// When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel
FormIds []string `json:"form_ids,omitempty"`
- SourceType SourceTypeformTypeform `json:"sourceType"`
+ sourceType SourceTypeformTypeform `const:"typeform" json:"sourceType"`
// The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceTypeform) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeform) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeform) GetCredentials() SourceTypeformAuthorizationMethod {
+ if o == nil {
+ return SourceTypeformAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceTypeform) GetFormIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.FormIds
+}
+
+func (o *SourceTypeform) GetSourceType() SourceTypeformTypeform {
+ return SourceTypeformTypeformTypeform
+}
+
+func (o *SourceTypeform) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetypeformcreaterequest.go b/internal/sdk/pkg/models/shared/sourcetypeformcreaterequest.go
old mode 100755
new mode 100644
index 525a973c9..ab678eeab
--- a/internal/sdk/pkg/models/shared/sourcetypeformcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetypeformcreaterequest.go
@@ -9,3 +9,31 @@ type SourceTypeformCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTypeformCreateRequest) GetConfiguration() SourceTypeform {
+ if o == nil {
+ return SourceTypeform{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTypeformCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTypeformCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceTypeformCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetypeformputrequest.go b/internal/sdk/pkg/models/shared/sourcetypeformputrequest.go
old mode 100755
new mode 100644
index 28801dfce..16a927351
--- a/internal/sdk/pkg/models/shared/sourcetypeformputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcetypeformputrequest.go
@@ -7,3 +7,24 @@ type SourceTypeformPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceTypeformPutRequest) GetConfiguration() SourceTypeformUpdate {
+ if o == nil {
+ return SourceTypeformUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceTypeformPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceTypeformPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcetypeformupdate.go b/internal/sdk/pkg/models/shared/sourcetypeformupdate.go
old mode 100755
new mode 100644
index b1eac3762..5176d9e61
--- a/internal/sdk/pkg/models/shared/sourcetypeformupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcetypeformupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType) UnmarshalJ
type SourceTypeformUpdateAuthorizationMethodPrivateToken struct {
// Log into your Typeform account and then generate a personal Access Token.
AccessToken string `json:"access_token"`
- AuthType *SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType `const:"access_token" json:"auth_type,omitempty"`
+}
+
+func (s SourceTypeformUpdateAuthorizationMethodPrivateToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeformUpdateAuthorizationMethodPrivateToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodPrivateToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodPrivateToken) GetAuthType() *SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthType {
+ return SourceTypeformUpdateAuthorizationMethodPrivateTokenAuthTypeAccessToken.ToPointer()
}
type SourceTypeformUpdateAuthorizationMethodOAuth20AuthType string
@@ -67,7 +89,7 @@ func (e *SourceTypeformUpdateAuthorizationMethodOAuth20AuthType) UnmarshalJSON(d
type SourceTypeformUpdateAuthorizationMethodOAuth20 struct {
// Access Token for making authenticated requests.
AccessToken string `json:"access_token"`
- AuthType *SourceTypeformUpdateAuthorizationMethodOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceTypeformUpdateAuthorizationMethodOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// The Client ID of the Typeform developer application.
ClientID string `json:"client_id"`
// The Client Secret the Typeform developer application.
@@ -78,6 +100,56 @@ type SourceTypeformUpdateAuthorizationMethodOAuth20 struct {
TokenExpiryDate time.Time `json:"token_expiry_date"`
}
+func (s SourceTypeformUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeformUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetAuthType() *SourceTypeformUpdateAuthorizationMethodOAuth20AuthType {
+ return SourceTypeformUpdateAuthorizationMethodOAuth20AuthTypeOauth20.ToPointer()
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceTypeformUpdateAuthorizationMethodOAuth20) GetTokenExpiryDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.TokenExpiryDate
+}
+
type SourceTypeformUpdateAuthorizationMethodType string
const (
@@ -111,21 +183,16 @@ func CreateSourceTypeformUpdateAuthorizationMethodSourceTypeformUpdateAuthorizat
}
func (u *SourceTypeformUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceTypeformUpdateAuthorizationMethodPrivateToken := new(SourceTypeformUpdateAuthorizationMethodPrivateToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTypeformUpdateAuthorizationMethodPrivateToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTypeformUpdateAuthorizationMethodPrivateToken, "", true, true); err == nil {
u.SourceTypeformUpdateAuthorizationMethodPrivateToken = sourceTypeformUpdateAuthorizationMethodPrivateToken
u.Type = SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdateAuthorizationMethodPrivateToken
return nil
}
sourceTypeformUpdateAuthorizationMethodOAuth20 := new(SourceTypeformUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceTypeformUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceTypeformUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceTypeformUpdateAuthorizationMethodOAuth20 = sourceTypeformUpdateAuthorizationMethodOAuth20
u.Type = SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdateAuthorizationMethodOAuth20
return nil
@@ -135,15 +202,15 @@ func (u *SourceTypeformUpdateAuthorizationMethod) UnmarshalJSON(data []byte) err
}
func (u SourceTypeformUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceTypeformUpdateAuthorizationMethodPrivateToken != nil {
- return json.Marshal(u.SourceTypeformUpdateAuthorizationMethodPrivateToken)
+ if u.SourceTypeformUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceTypeformUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceTypeformUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceTypeformUpdateAuthorizationMethodOAuth20)
+ if u.SourceTypeformUpdateAuthorizationMethodPrivateToken != nil {
+ return utils.MarshalJSON(u.SourceTypeformUpdateAuthorizationMethodPrivateToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceTypeformUpdate struct {
@@ -153,3 +220,35 @@ type SourceTypeformUpdate struct {
// The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
}
+
+func (s SourceTypeformUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceTypeformUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceTypeformUpdate) GetCredentials() SourceTypeformUpdateAuthorizationMethod {
+ if o == nil {
+ return SourceTypeformUpdateAuthorizationMethod{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceTypeformUpdate) GetFormIds() []string {
+ if o == nil {
+ return nil
+ }
+ return o.FormIds
+}
+
+func (o *SourceTypeformUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceuscensus.go b/internal/sdk/pkg/models/shared/sourceuscensus.go
old mode 100755
new mode 100644
index f2c8bfcf2..9ff9d945f
--- a/internal/sdk/pkg/models/shared/sourceuscensus.go
+++ b/internal/sdk/pkg/models/shared/sourceuscensus.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -38,5 +39,41 @@ type SourceUsCensus struct {
QueryParams *string `json:"query_params,omitempty"`
// The path portion of the GET request
QueryPath string `json:"query_path"`
- SourceType SourceUsCensusUsCensus `json:"sourceType"`
+ sourceType SourceUsCensusUsCensus `const:"us-census" json:"sourceType"`
+}
+
+func (s SourceUsCensus) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceUsCensus) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceUsCensus) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceUsCensus) GetQueryParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QueryParams
+}
+
+func (o *SourceUsCensus) GetQueryPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.QueryPath
+}
+
+func (o *SourceUsCensus) GetSourceType() SourceUsCensusUsCensus {
+ return SourceUsCensusUsCensusUsCensus
}
diff --git a/internal/sdk/pkg/models/shared/sourceuscensuscreaterequest.go b/internal/sdk/pkg/models/shared/sourceuscensuscreaterequest.go
old mode 100755
new mode 100644
index 0141948b4..03ec3ca45
--- a/internal/sdk/pkg/models/shared/sourceuscensuscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceuscensuscreaterequest.go
@@ -9,3 +9,31 @@ type SourceUsCensusCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceUsCensusCreateRequest) GetConfiguration() SourceUsCensus {
+ if o == nil {
+ return SourceUsCensus{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceUsCensusCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceUsCensusCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceUsCensusCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceuscensusputrequest.go b/internal/sdk/pkg/models/shared/sourceuscensusputrequest.go
old mode 100755
new mode 100644
index 0858eb357..ea076d60f
--- a/internal/sdk/pkg/models/shared/sourceuscensusputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceuscensusputrequest.go
@@ -7,3 +7,24 @@ type SourceUsCensusPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceUsCensusPutRequest) GetConfiguration() SourceUsCensusUpdate {
+ if o == nil {
+ return SourceUsCensusUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceUsCensusPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceUsCensusPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceuscensusupdate.go b/internal/sdk/pkg/models/shared/sourceuscensusupdate.go
old mode 100755
new mode 100644
index 8daa6b80d..14bee65eb
--- a/internal/sdk/pkg/models/shared/sourceuscensusupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceuscensusupdate.go
@@ -10,3 +10,24 @@ type SourceUsCensusUpdate struct {
// The path portion of the GET request
QueryPath string `json:"query_path"`
}
+
+func (o *SourceUsCensusUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceUsCensusUpdate) GetQueryParams() *string {
+ if o == nil {
+ return nil
+ }
+ return o.QueryParams
+}
+
+func (o *SourceUsCensusUpdate) GetQueryPath() string {
+ if o == nil {
+ return ""
+ }
+ return o.QueryPath
+}
diff --git a/internal/sdk/pkg/models/shared/sourcevantage.go b/internal/sdk/pkg/models/shared/sourcevantage.go
old mode 100755
new mode 100644
index 32f6c6302..12f26c1fc
--- a/internal/sdk/pkg/models/shared/sourcevantage.go
+++ b/internal/sdk/pkg/models/shared/sourcevantage.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceVantageVantage) UnmarshalJSON(data []byte) error {
type SourceVantage struct {
// Your API Access token. See here.
AccessToken string `json:"access_token"`
- SourceType SourceVantageVantage `json:"sourceType"`
+ sourceType SourceVantageVantage `const:"vantage" json:"sourceType"`
+}
+
+func (s SourceVantage) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceVantage) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceVantage) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceVantage) GetSourceType() SourceVantageVantage {
+ return SourceVantageVantageVantage
}
diff --git a/internal/sdk/pkg/models/shared/sourcevantagecreaterequest.go b/internal/sdk/pkg/models/shared/sourcevantagecreaterequest.go
old mode 100755
new mode 100644
index 7b498cc7b..c0e31887d
--- a/internal/sdk/pkg/models/shared/sourcevantagecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcevantagecreaterequest.go
@@ -9,3 +9,31 @@ type SourceVantageCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceVantageCreateRequest) GetConfiguration() SourceVantage {
+ if o == nil {
+ return SourceVantage{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceVantageCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceVantageCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceVantageCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcevantageputrequest.go b/internal/sdk/pkg/models/shared/sourcevantageputrequest.go
old mode 100755
new mode 100644
index 27e664b23..401b23371
--- a/internal/sdk/pkg/models/shared/sourcevantageputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcevantageputrequest.go
@@ -7,3 +7,24 @@ type SourceVantagePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceVantagePutRequest) GetConfiguration() SourceVantageUpdate {
+ if o == nil {
+ return SourceVantageUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceVantagePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceVantagePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcevantageupdate.go b/internal/sdk/pkg/models/shared/sourcevantageupdate.go
old mode 100755
new mode 100644
index d08b4a56f..1bbb87107
--- a/internal/sdk/pkg/models/shared/sourcevantageupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcevantageupdate.go
@@ -6,3 +6,10 @@ type SourceVantageUpdate struct {
// Your API Access token. See here.
AccessToken string `json:"access_token"`
}
+
+func (o *SourceVantageUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewebflow.go b/internal/sdk/pkg/models/shared/sourcewebflow.go
old mode 100755
new mode 100644
index 4eaa0c9b4..502663066
--- a/internal/sdk/pkg/models/shared/sourcewebflow.go
+++ b/internal/sdk/pkg/models/shared/sourcewebflow.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,5 +37,34 @@ type SourceWebflow struct {
APIKey string `json:"api_key"`
// The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites
SiteID string `json:"site_id"`
- SourceType SourceWebflowWebflow `json:"sourceType"`
+ sourceType SourceWebflowWebflow `const:"webflow" json:"sourceType"`
+}
+
+func (s SourceWebflow) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceWebflow) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceWebflow) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceWebflow) GetSiteID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SiteID
+}
+
+func (o *SourceWebflow) GetSourceType() SourceWebflowWebflow {
+ return SourceWebflowWebflowWebflow
}
diff --git a/internal/sdk/pkg/models/shared/sourcewebflowcreaterequest.go b/internal/sdk/pkg/models/shared/sourcewebflowcreaterequest.go
old mode 100755
new mode 100644
index 47b87c346..4143a62c1
--- a/internal/sdk/pkg/models/shared/sourcewebflowcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewebflowcreaterequest.go
@@ -9,3 +9,31 @@ type SourceWebflowCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWebflowCreateRequest) GetConfiguration() SourceWebflow {
+ if o == nil {
+ return SourceWebflow{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWebflowCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWebflowCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceWebflowCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewebflowputrequest.go b/internal/sdk/pkg/models/shared/sourcewebflowputrequest.go
old mode 100755
new mode 100644
index b00c9bddb..9c1984aae
--- a/internal/sdk/pkg/models/shared/sourcewebflowputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewebflowputrequest.go
@@ -7,3 +7,24 @@ type SourceWebflowPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWebflowPutRequest) GetConfiguration() SourceWebflowUpdate {
+ if o == nil {
+ return SourceWebflowUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWebflowPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWebflowPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewebflowupdate.go b/internal/sdk/pkg/models/shared/sourcewebflowupdate.go
old mode 100755
new mode 100644
index da3f7a401..8ca0658ce
--- a/internal/sdk/pkg/models/shared/sourcewebflowupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcewebflowupdate.go
@@ -8,3 +8,17 @@ type SourceWebflowUpdate struct {
// The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites
SiteID string `json:"site_id"`
}
+
+func (o *SourceWebflowUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceWebflowUpdate) GetSiteID() string {
+ if o == nil {
+ return ""
+ }
+ return o.SiteID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewhiskyhunter.go b/internal/sdk/pkg/models/shared/sourcewhiskyhunter.go
old mode 100755
new mode 100644
index 0048d6180..82c4b0d6a
--- a/internal/sdk/pkg/models/shared/sourcewhiskyhunter.go
+++ b/internal/sdk/pkg/models/shared/sourcewhiskyhunter.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,5 +33,20 @@ func (e *SourceWhiskyHunterWhiskyHunter) UnmarshalJSON(data []byte) error {
}
type SourceWhiskyHunter struct {
- SourceType *SourceWhiskyHunterWhiskyHunter `json:"sourceType,omitempty"`
+ sourceType *SourceWhiskyHunterWhiskyHunter `const:"whisky-hunter" json:"sourceType,omitempty"`
+}
+
+func (s SourceWhiskyHunter) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceWhiskyHunter) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceWhiskyHunter) GetSourceType() *SourceWhiskyHunterWhiskyHunter {
+ return SourceWhiskyHunterWhiskyHunterWhiskyHunter.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourcewhiskyhuntercreaterequest.go b/internal/sdk/pkg/models/shared/sourcewhiskyhuntercreaterequest.go
old mode 100755
new mode 100644
index 36589e681..1d4a4f6b8
--- a/internal/sdk/pkg/models/shared/sourcewhiskyhuntercreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewhiskyhuntercreaterequest.go
@@ -9,3 +9,31 @@ type SourceWhiskyHunterCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWhiskyHunterCreateRequest) GetConfiguration() SourceWhiskyHunter {
+ if o == nil {
+ return SourceWhiskyHunter{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWhiskyHunterCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWhiskyHunterCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceWhiskyHunterCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewhiskyhunterputrequest.go b/internal/sdk/pkg/models/shared/sourcewhiskyhunterputrequest.go
old mode 100755
new mode 100644
index 9433e3b78..c52199aaf
--- a/internal/sdk/pkg/models/shared/sourcewhiskyhunterputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewhiskyhunterputrequest.go
@@ -7,3 +7,24 @@ type SourceWhiskyHunterPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWhiskyHunterPutRequest) GetConfiguration() SourceWhiskyHunterUpdate {
+ if o == nil {
+ return SourceWhiskyHunterUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWhiskyHunterPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWhiskyHunterPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewhiskyhunterupdate.go b/internal/sdk/pkg/models/shared/sourcewhiskyhunterupdate.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/sourcewikipediapageviews.go b/internal/sdk/pkg/models/shared/sourcewikipediapageviews.go
old mode 100755
new mode 100644
index 2536d6051..412fdd837
--- a/internal/sdk/pkg/models/shared/sourcewikipediapageviews.go
+++ b/internal/sdk/pkg/models/shared/sourcewikipediapageviews.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -44,7 +45,71 @@ type SourceWikipediaPageviews struct {
End string `json:"end"`
// If you want to filter by project, use the domain of any Wikimedia project.
Project string `json:"project"`
- SourceType SourceWikipediaPageviewsWikipediaPageviews `json:"sourceType"`
+ sourceType SourceWikipediaPageviewsWikipediaPageviews `const:"wikipedia-pageviews" json:"sourceType"`
// The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.
Start string `json:"start"`
}
+
+func (s SourceWikipediaPageviews) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceWikipediaPageviews) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceWikipediaPageviews) GetAccess() string {
+ if o == nil {
+ return ""
+ }
+ return o.Access
+}
+
+func (o *SourceWikipediaPageviews) GetAgent() string {
+ if o == nil {
+ return ""
+ }
+ return o.Agent
+}
+
+func (o *SourceWikipediaPageviews) GetArticle() string {
+ if o == nil {
+ return ""
+ }
+ return o.Article
+}
+
+func (o *SourceWikipediaPageviews) GetCountry() string {
+ if o == nil {
+ return ""
+ }
+ return o.Country
+}
+
+func (o *SourceWikipediaPageviews) GetEnd() string {
+ if o == nil {
+ return ""
+ }
+ return o.End
+}
+
+func (o *SourceWikipediaPageviews) GetProject() string {
+ if o == nil {
+ return ""
+ }
+ return o.Project
+}
+
+func (o *SourceWikipediaPageviews) GetSourceType() SourceWikipediaPageviewsWikipediaPageviews {
+ return SourceWikipediaPageviewsWikipediaPageviewsWikipediaPageviews
+}
+
+func (o *SourceWikipediaPageviews) GetStart() string {
+ if o == nil {
+ return ""
+ }
+ return o.Start
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewikipediapageviewscreaterequest.go b/internal/sdk/pkg/models/shared/sourcewikipediapageviewscreaterequest.go
old mode 100755
new mode 100644
index f587002bf..2c799fe29
--- a/internal/sdk/pkg/models/shared/sourcewikipediapageviewscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewikipediapageviewscreaterequest.go
@@ -9,3 +9,31 @@ type SourceWikipediaPageviewsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWikipediaPageviewsCreateRequest) GetConfiguration() SourceWikipediaPageviews {
+ if o == nil {
+ return SourceWikipediaPageviews{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWikipediaPageviewsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWikipediaPageviewsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceWikipediaPageviewsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewikipediapageviewsputrequest.go b/internal/sdk/pkg/models/shared/sourcewikipediapageviewsputrequest.go
old mode 100755
new mode 100644
index 78e160400..c797d146c
--- a/internal/sdk/pkg/models/shared/sourcewikipediapageviewsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewikipediapageviewsputrequest.go
@@ -7,3 +7,24 @@ type SourceWikipediaPageviewsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWikipediaPageviewsPutRequest) GetConfiguration() SourceWikipediaPageviewsUpdate {
+ if o == nil {
+ return SourceWikipediaPageviewsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWikipediaPageviewsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWikipediaPageviewsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewikipediapageviewsupdate.go b/internal/sdk/pkg/models/shared/sourcewikipediapageviewsupdate.go
old mode 100755
new mode 100644
index 18fd15ffc..41d4ef2d8
--- a/internal/sdk/pkg/models/shared/sourcewikipediapageviewsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcewikipediapageviewsupdate.go
@@ -18,3 +18,52 @@ type SourceWikipediaPageviewsUpdate struct {
// The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format.
Start string `json:"start"`
}
+
+func (o *SourceWikipediaPageviewsUpdate) GetAccess() string {
+ if o == nil {
+ return ""
+ }
+ return o.Access
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetAgent() string {
+ if o == nil {
+ return ""
+ }
+ return o.Agent
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetArticle() string {
+ if o == nil {
+ return ""
+ }
+ return o.Article
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetCountry() string {
+ if o == nil {
+ return ""
+ }
+ return o.Country
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetEnd() string {
+ if o == nil {
+ return ""
+ }
+ return o.End
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetProject() string {
+ if o == nil {
+ return ""
+ }
+ return o.Project
+}
+
+func (o *SourceWikipediaPageviewsUpdate) GetStart() string {
+ if o == nil {
+ return ""
+ }
+ return o.Start
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewoocommerce.go b/internal/sdk/pkg/models/shared/sourcewoocommerce.go
old mode 100755
new mode 100644
index 600f8671f..56749d42b
--- a/internal/sdk/pkg/models/shared/sourcewoocommerce.go
+++ b/internal/sdk/pkg/models/shared/sourcewoocommerce.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -39,7 +40,50 @@ type SourceWoocommerce struct {
APISecret string `json:"api_secret"`
// The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'.
Shop string `json:"shop"`
- SourceType SourceWoocommerceWoocommerce `json:"sourceType"`
+ sourceType SourceWoocommerceWoocommerce `const:"woocommerce" json:"sourceType"`
// The date you would like to replicate data from. Format: YYYY-MM-DD
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceWoocommerce) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceWoocommerce) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceWoocommerce) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceWoocommerce) GetAPISecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISecret
+}
+
+func (o *SourceWoocommerce) GetShop() string {
+ if o == nil {
+ return ""
+ }
+ return o.Shop
+}
+
+func (o *SourceWoocommerce) GetSourceType() SourceWoocommerceWoocommerce {
+ return SourceWoocommerceWoocommerceWoocommerce
+}
+
+func (o *SourceWoocommerce) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewoocommercecreaterequest.go b/internal/sdk/pkg/models/shared/sourcewoocommercecreaterequest.go
old mode 100755
new mode 100644
index 47384fbe4..decd094f1
--- a/internal/sdk/pkg/models/shared/sourcewoocommercecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewoocommercecreaterequest.go
@@ -9,3 +9,31 @@ type SourceWoocommerceCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWoocommerceCreateRequest) GetConfiguration() SourceWoocommerce {
+ if o == nil {
+ return SourceWoocommerce{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWoocommerceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWoocommerceCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceWoocommerceCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewoocommerceputrequest.go b/internal/sdk/pkg/models/shared/sourcewoocommerceputrequest.go
old mode 100755
new mode 100644
index 3184143e6..fe2e48126
--- a/internal/sdk/pkg/models/shared/sourcewoocommerceputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcewoocommerceputrequest.go
@@ -7,3 +7,24 @@ type SourceWoocommercePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceWoocommercePutRequest) GetConfiguration() SourceWoocommerceUpdate {
+ if o == nil {
+ return SourceWoocommerceUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceWoocommercePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceWoocommercePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcewoocommerceupdate.go b/internal/sdk/pkg/models/shared/sourcewoocommerceupdate.go
old mode 100755
new mode 100644
index 95e974a3c..ac3dc592b
--- a/internal/sdk/pkg/models/shared/sourcewoocommerceupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcewoocommerceupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceWoocommerceUpdate struct {
@@ -16,3 +17,42 @@ type SourceWoocommerceUpdate struct {
// The date you would like to replicate data from. Format: YYYY-MM-DD
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceWoocommerceUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceWoocommerceUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceWoocommerceUpdate) GetAPIKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIKey
+}
+
+func (o *SourceWoocommerceUpdate) GetAPISecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.APISecret
+}
+
+func (o *SourceWoocommerceUpdate) GetShop() string {
+ if o == nil {
+ return ""
+ }
+ return o.Shop
+}
+
+func (o *SourceWoocommerceUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexero.go b/internal/sdk/pkg/models/shared/sourcexero.go
old mode 100755
new mode 100644
index ec97d3bd0..39df85abf
--- a/internal/sdk/pkg/models/shared/sourcexero.go
+++ b/internal/sdk/pkg/models/shared/sourcexero.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -21,6 +22,41 @@ type SourceXeroAuthenticateViaXeroOAuth struct {
TokenExpiryDate string `json:"token_expiry_date"`
}
+func (o *SourceXeroAuthenticateViaXeroOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceXeroAuthenticateViaXeroOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceXeroAuthenticateViaXeroOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceXeroAuthenticateViaXeroOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceXeroAuthenticateViaXeroOAuth) GetTokenExpiryDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenExpiryDate
+}
+
type SourceXeroXero string
const (
@@ -47,9 +83,45 @@ func (e *SourceXeroXero) UnmarshalJSON(data []byte) error {
type SourceXero struct {
Authentication SourceXeroAuthenticateViaXeroOAuth `json:"authentication"`
- SourceType SourceXeroXero `json:"sourceType"`
+ sourceType SourceXeroXero `const:"xero" json:"sourceType"`
// UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ. Any data with created_at before this data will not be synced.
StartDate time.Time `json:"start_date"`
// Enter your Xero organization's Tenant ID
TenantID string `json:"tenant_id"`
}
+
+func (s SourceXero) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceXero) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceXero) GetAuthentication() SourceXeroAuthenticateViaXeroOAuth {
+ if o == nil {
+ return SourceXeroAuthenticateViaXeroOAuth{}
+ }
+ return o.Authentication
+}
+
+func (o *SourceXero) GetSourceType() SourceXeroXero {
+ return SourceXeroXeroXero
+}
+
+func (o *SourceXero) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceXero) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexerocreaterequest.go b/internal/sdk/pkg/models/shared/sourcexerocreaterequest.go
old mode 100755
new mode 100644
index 373448520..90c406af4
--- a/internal/sdk/pkg/models/shared/sourcexerocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcexerocreaterequest.go
@@ -9,3 +9,31 @@ type SourceXeroCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceXeroCreateRequest) GetConfiguration() SourceXero {
+ if o == nil {
+ return SourceXero{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceXeroCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceXeroCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceXeroCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexeroputrequest.go b/internal/sdk/pkg/models/shared/sourcexeroputrequest.go
old mode 100755
new mode 100644
index 1eb615235..e705603c4
--- a/internal/sdk/pkg/models/shared/sourcexeroputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcexeroputrequest.go
@@ -7,3 +7,24 @@ type SourceXeroPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceXeroPutRequest) GetConfiguration() SourceXeroUpdate {
+ if o == nil {
+ return SourceXeroUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceXeroPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceXeroPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexeroupdate.go b/internal/sdk/pkg/models/shared/sourcexeroupdate.go
old mode 100755
new mode 100644
index 168ad1257..fd4534a84
--- a/internal/sdk/pkg/models/shared/sourcexeroupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcexeroupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -19,6 +20,41 @@ type SourceXeroUpdateAuthenticateViaXeroOAuth struct {
TokenExpiryDate string `json:"token_expiry_date"`
}
+func (o *SourceXeroUpdateAuthenticateViaXeroOAuth) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceXeroUpdateAuthenticateViaXeroOAuth) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceXeroUpdateAuthenticateViaXeroOAuth) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceXeroUpdateAuthenticateViaXeroOAuth) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceXeroUpdateAuthenticateViaXeroOAuth) GetTokenExpiryDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.TokenExpiryDate
+}
+
type SourceXeroUpdate struct {
Authentication SourceXeroUpdateAuthenticateViaXeroOAuth `json:"authentication"`
// UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ. Any data with created_at before this data will not be synced.
@@ -26,3 +62,35 @@ type SourceXeroUpdate struct {
// Enter your Xero organization's Tenant ID
TenantID string `json:"tenant_id"`
}
+
+func (s SourceXeroUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceXeroUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceXeroUpdate) GetAuthentication() SourceXeroUpdateAuthenticateViaXeroOAuth {
+ if o == nil {
+ return SourceXeroUpdateAuthenticateViaXeroOAuth{}
+ }
+ return o.Authentication
+}
+
+func (o *SourceXeroUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceXeroUpdate) GetTenantID() string {
+ if o == nil {
+ return ""
+ }
+ return o.TenantID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexkcd.go b/internal/sdk/pkg/models/shared/sourcexkcd.go
old mode 100755
new mode 100644
index af0bc4cba..b551c6f2d
--- a/internal/sdk/pkg/models/shared/sourcexkcd.go
+++ b/internal/sdk/pkg/models/shared/sourcexkcd.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -32,5 +33,20 @@ func (e *SourceXkcdXkcd) UnmarshalJSON(data []byte) error {
}
type SourceXkcd struct {
- SourceType *SourceXkcdXkcd `json:"sourceType,omitempty"`
+ sourceType *SourceXkcdXkcd `const:"xkcd" json:"sourceType,omitempty"`
+}
+
+func (s SourceXkcd) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceXkcd) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceXkcd) GetSourceType() *SourceXkcdXkcd {
+ return SourceXkcdXkcdXkcd.ToPointer()
}
diff --git a/internal/sdk/pkg/models/shared/sourcexkcdcreaterequest.go b/internal/sdk/pkg/models/shared/sourcexkcdcreaterequest.go
old mode 100755
new mode 100644
index 40d897e0c..9c98c7bf8
--- a/internal/sdk/pkg/models/shared/sourcexkcdcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcexkcdcreaterequest.go
@@ -9,3 +9,31 @@ type SourceXkcdCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceXkcdCreateRequest) GetConfiguration() SourceXkcd {
+ if o == nil {
+ return SourceXkcd{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceXkcdCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceXkcdCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceXkcdCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexkcdputrequest.go b/internal/sdk/pkg/models/shared/sourcexkcdputrequest.go
old mode 100755
new mode 100644
index 4dda9839a..820cc22ab
--- a/internal/sdk/pkg/models/shared/sourcexkcdputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcexkcdputrequest.go
@@ -7,3 +7,24 @@ type SourceXkcdPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceXkcdPutRequest) GetConfiguration() SourceXkcdUpdate {
+ if o == nil {
+ return SourceXkcdUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceXkcdPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceXkcdPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcexkcdupdate.go b/internal/sdk/pkg/models/shared/sourcexkcdupdate.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/models/shared/sourceyandexmetrica.go b/internal/sdk/pkg/models/shared/sourceyandexmetrica.go
old mode 100755
new mode 100644
index 6aa639bbb..646a91045
--- a/internal/sdk/pkg/models/shared/sourceyandexmetrica.go
+++ b/internal/sdk/pkg/models/shared/sourceyandexmetrica.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -39,7 +40,50 @@ type SourceYandexMetrica struct {
CounterID string `json:"counter_id"`
// Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date.
EndDate *types.Date `json:"end_date,omitempty"`
- SourceType SourceYandexMetricaYandexMetrica `json:"sourceType"`
+ sourceType SourceYandexMetricaYandexMetrica `const:"yandex-metrica" json:"sourceType"`
// Starting point for your data replication, in format of "YYYY-MM-DD".
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceYandexMetrica) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYandexMetrica) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYandexMetrica) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceYandexMetrica) GetCounterID() string {
+ if o == nil {
+ return ""
+ }
+ return o.CounterID
+}
+
+func (o *SourceYandexMetrica) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceYandexMetrica) GetSourceType() SourceYandexMetricaYandexMetrica {
+ return SourceYandexMetricaYandexMetricaYandexMetrica
+}
+
+func (o *SourceYandexMetrica) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyandexmetricacreaterequest.go b/internal/sdk/pkg/models/shared/sourceyandexmetricacreaterequest.go
old mode 100755
new mode 100644
index 73244243c..dd8315f42
--- a/internal/sdk/pkg/models/shared/sourceyandexmetricacreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyandexmetricacreaterequest.go
@@ -9,3 +9,31 @@ type SourceYandexMetricaCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYandexMetricaCreateRequest) GetConfiguration() SourceYandexMetrica {
+ if o == nil {
+ return SourceYandexMetrica{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYandexMetricaCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYandexMetricaCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceYandexMetricaCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyandexmetricaputrequest.go b/internal/sdk/pkg/models/shared/sourceyandexmetricaputrequest.go
old mode 100755
new mode 100644
index a77de3b99..c2738ebd8
--- a/internal/sdk/pkg/models/shared/sourceyandexmetricaputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyandexmetricaputrequest.go
@@ -7,3 +7,24 @@ type SourceYandexMetricaPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYandexMetricaPutRequest) GetConfiguration() SourceYandexMetricaUpdate {
+ if o == nil {
+ return SourceYandexMetricaUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYandexMetricaPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYandexMetricaPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyandexmetricaupdate.go b/internal/sdk/pkg/models/shared/sourceyandexmetricaupdate.go
old mode 100755
new mode 100644
index 73215e315..f981bd0f7
--- a/internal/sdk/pkg/models/shared/sourceyandexmetricaupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceyandexmetricaupdate.go
@@ -4,6 +4,7 @@ package shared
import (
"airbyte/internal/sdk/pkg/types"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceYandexMetricaUpdate struct {
@@ -16,3 +17,42 @@ type SourceYandexMetricaUpdate struct {
// Starting point for your data replication, in format of "YYYY-MM-DD".
StartDate types.Date `json:"start_date"`
}
+
+func (s SourceYandexMetricaUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYandexMetricaUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYandexMetricaUpdate) GetAuthToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AuthToken
+}
+
+func (o *SourceYandexMetricaUpdate) GetCounterID() string {
+ if o == nil {
+ return ""
+ }
+ return o.CounterID
+}
+
+func (o *SourceYandexMetricaUpdate) GetEndDate() *types.Date {
+ if o == nil {
+ return nil
+ }
+ return o.EndDate
+}
+
+func (o *SourceYandexMetricaUpdate) GetStartDate() types.Date {
+ if o == nil {
+ return types.Date{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyotpo.go b/internal/sdk/pkg/models/shared/sourceyotpo.go
old mode 100755
new mode 100644
index c1b66c1f7..fbe79bc51
--- a/internal/sdk/pkg/models/shared/sourceyotpo.go
+++ b/internal/sdk/pkg/models/shared/sourceyotpo.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -38,8 +39,51 @@ type SourceYotpo struct {
// App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)
AppKey string `json:"app_key"`
// Email address registered with yotpo.
- Email string `json:"email"`
- SourceType SourceYotpoYotpo `json:"sourceType"`
+ Email *string `default:"example@gmail.com" json:"email"`
+ sourceType SourceYotpoYotpo `const:"yotpo" json:"sourceType"`
// Date time filter for incremental filter, Specify which date to extract from.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceYotpo) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYotpo) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYotpo) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceYotpo) GetAppKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppKey
+}
+
+func (o *SourceYotpo) GetEmail() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Email
+}
+
+func (o *SourceYotpo) GetSourceType() SourceYotpoYotpo {
+ return SourceYotpoYotpoYotpo
+}
+
+func (o *SourceYotpo) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyotpocreaterequest.go b/internal/sdk/pkg/models/shared/sourceyotpocreaterequest.go
old mode 100755
new mode 100644
index 5cda5576a..509f773d7
--- a/internal/sdk/pkg/models/shared/sourceyotpocreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyotpocreaterequest.go
@@ -9,3 +9,31 @@ type SourceYotpoCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYotpoCreateRequest) GetConfiguration() SourceYotpo {
+ if o == nil {
+ return SourceYotpo{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYotpoCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYotpoCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceYotpoCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyotpoputrequest.go b/internal/sdk/pkg/models/shared/sourceyotpoputrequest.go
old mode 100755
new mode 100644
index 513758ba0..91015e893
--- a/internal/sdk/pkg/models/shared/sourceyotpoputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyotpoputrequest.go
@@ -7,3 +7,24 @@ type SourceYotpoPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYotpoPutRequest) GetConfiguration() SourceYotpoUpdate {
+ if o == nil {
+ return SourceYotpoUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYotpoPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYotpoPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyotpoupdate.go b/internal/sdk/pkg/models/shared/sourceyotpoupdate.go
old mode 100755
new mode 100644
index 8f0691d95..1cd91ce93
--- a/internal/sdk/pkg/models/shared/sourceyotpoupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceyotpoupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"time"
)
@@ -12,7 +13,46 @@ type SourceYotpoUpdate struct {
// App key found at settings (Ref- https://settings.yotpo.com/#/general_settings)
AppKey string `json:"app_key"`
// Email address registered with yotpo.
- Email string `json:"email"`
+ Email *string `default:"example@gmail.com" json:"email"`
// Date time filter for incremental filter, Specify which date to extract from.
StartDate time.Time `json:"start_date"`
}
+
+func (s SourceYotpoUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYotpoUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYotpoUpdate) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceYotpoUpdate) GetAppKey() string {
+ if o == nil {
+ return ""
+ }
+ return o.AppKey
+}
+
+func (o *SourceYotpoUpdate) GetEmail() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Email
+}
+
+func (o *SourceYotpoUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyounium.go b/internal/sdk/pkg/models/shared/sourceyounium.go
old mode 100755
new mode 100644
index 0b45c8f6e..ffce8f192
--- a/internal/sdk/pkg/models/shared/sourceyounium.go
+++ b/internal/sdk/pkg/models/shared/sourceyounium.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -37,8 +38,51 @@ type SourceYounium struct {
// Account password for younium account API key
Password string `json:"password"`
// Property defining if connector is used against playground or production environment
- Playground *bool `json:"playground,omitempty"`
- SourceType SourceYouniumYounium `json:"sourceType"`
+ Playground *bool `default:"false" json:"playground"`
+ sourceType SourceYouniumYounium `const:"younium" json:"sourceType"`
// Username for Younium account
Username string `json:"username"`
}
+
+func (s SourceYounium) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYounium) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYounium) GetLegalEntity() string {
+ if o == nil {
+ return ""
+ }
+ return o.LegalEntity
+}
+
+func (o *SourceYounium) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceYounium) GetPlayground() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Playground
+}
+
+func (o *SourceYounium) GetSourceType() SourceYouniumYounium {
+ return SourceYouniumYouniumYounium
+}
+
+func (o *SourceYounium) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyouniumcreaterequest.go b/internal/sdk/pkg/models/shared/sourceyouniumcreaterequest.go
old mode 100755
new mode 100644
index 4f8b75153..9731cee52
--- a/internal/sdk/pkg/models/shared/sourceyouniumcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyouniumcreaterequest.go
@@ -9,3 +9,31 @@ type SourceYouniumCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYouniumCreateRequest) GetConfiguration() SourceYounium {
+ if o == nil {
+ return SourceYounium{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYouniumCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYouniumCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceYouniumCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyouniumputrequest.go b/internal/sdk/pkg/models/shared/sourceyouniumputrequest.go
old mode 100755
new mode 100644
index 592c5577f..a86b0eb6b
--- a/internal/sdk/pkg/models/shared/sourceyouniumputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyouniumputrequest.go
@@ -7,3 +7,24 @@ type SourceYouniumPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYouniumPutRequest) GetConfiguration() SourceYouniumUpdate {
+ if o == nil {
+ return SourceYouniumUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYouniumPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYouniumPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyouniumupdate.go b/internal/sdk/pkg/models/shared/sourceyouniumupdate.go
old mode 100755
new mode 100644
index ee4d51332..2642b0868
--- a/internal/sdk/pkg/models/shared/sourceyouniumupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceyouniumupdate.go
@@ -2,13 +2,56 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
type SourceYouniumUpdate struct {
// Legal Entity that data should be pulled from
LegalEntity string `json:"legal_entity"`
// Account password for younium account API key
Password string `json:"password"`
// Property defining if connector is used against playground or production environment
- Playground *bool `json:"playground,omitempty"`
+ Playground *bool `default:"false" json:"playground"`
// Username for Younium account
Username string `json:"username"`
}
+
+func (s SourceYouniumUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYouniumUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYouniumUpdate) GetLegalEntity() string {
+ if o == nil {
+ return ""
+ }
+ return o.LegalEntity
+}
+
+func (o *SourceYouniumUpdate) GetPassword() string {
+ if o == nil {
+ return ""
+ }
+ return o.Password
+}
+
+func (o *SourceYouniumUpdate) GetPlayground() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.Playground
+}
+
+func (o *SourceYouniumUpdate) GetUsername() string {
+ if o == nil {
+ return ""
+ }
+ return o.Username
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyoutubeanalytics.go b/internal/sdk/pkg/models/shared/sourceyoutubeanalytics.go
old mode 100755
new mode 100644
index 4b71d5e04..20b0f0a26
--- a/internal/sdk/pkg/models/shared/sourceyoutubeanalytics.go
+++ b/internal/sdk/pkg/models/shared/sourceyoutubeanalytics.go
@@ -3,65 +3,58 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
type SourceYoutubeAnalyticsAuthenticateViaOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The Client ID of your developer application
ClientID string `json:"client_id"`
// The client secret of your developer application
ClientSecret string `json:"client_secret"`
// A refresh token generated using the above client ID and secret
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceYoutubeAnalyticsAuthenticateViaOAuth20 SourceYoutubeAnalyticsAuthenticateViaOAuth20
-
-func (c *SourceYoutubeAnalyticsAuthenticateViaOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceYoutubeAnalyticsAuthenticateViaOAuth20{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceYoutubeAnalyticsAuthenticateViaOAuth20(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceYoutubeAnalyticsAuthenticateViaOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceYoutubeAnalyticsAuthenticateViaOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
return err
}
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceYoutubeAnalyticsAuthenticateViaOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceYoutubeAnalyticsAuthenticateViaOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsAuthenticateViaOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsAuthenticateViaOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsAuthenticateViaOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsAuthenticateViaOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.RefreshToken
}
type SourceYoutubeAnalyticsYoutubeAnalytics string
@@ -90,5 +83,27 @@ func (e *SourceYoutubeAnalyticsYoutubeAnalytics) UnmarshalJSON(data []byte) erro
type SourceYoutubeAnalytics struct {
Credentials SourceYoutubeAnalyticsAuthenticateViaOAuth20 `json:"credentials"`
- SourceType SourceYoutubeAnalyticsYoutubeAnalytics `json:"sourceType"`
+ sourceType SourceYoutubeAnalyticsYoutubeAnalytics `const:"youtube-analytics" json:"sourceType"`
+}
+
+func (s SourceYoutubeAnalytics) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceYoutubeAnalytics) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceYoutubeAnalytics) GetCredentials() SourceYoutubeAnalyticsAuthenticateViaOAuth20 {
+ if o == nil {
+ return SourceYoutubeAnalyticsAuthenticateViaOAuth20{}
+ }
+ return o.Credentials
+}
+
+func (o *SourceYoutubeAnalytics) GetSourceType() SourceYoutubeAnalyticsYoutubeAnalytics {
+ return SourceYoutubeAnalyticsYoutubeAnalyticsYoutubeAnalytics
}
diff --git a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticscreaterequest.go b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticscreaterequest.go
old mode 100755
new mode 100644
index 33b351062..169ac8be8
--- a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticscreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticscreaterequest.go
@@ -9,3 +9,31 @@ type SourceYoutubeAnalyticsCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYoutubeAnalyticsCreateRequest) GetConfiguration() SourceYoutubeAnalytics {
+ if o == nil {
+ return SourceYoutubeAnalytics{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYoutubeAnalyticsCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYoutubeAnalyticsCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceYoutubeAnalyticsCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsputrequest.go b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsputrequest.go
old mode 100755
new mode 100644
index 31640e626..1a3ef5d8c
--- a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsputrequest.go
@@ -7,3 +7,24 @@ type SourceYoutubeAnalyticsPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceYoutubeAnalyticsPutRequest) GetConfiguration() SourceYoutubeAnalyticsUpdate {
+ if o == nil {
+ return SourceYoutubeAnalyticsUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceYoutubeAnalyticsPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceYoutubeAnalyticsPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsupdate.go b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsupdate.go
old mode 100755
new mode 100644
index e287fea81..1dd2c1392
--- a/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsupdate.go
+++ b/internal/sdk/pkg/models/shared/sourceyoutubeanalyticsupdate.go
@@ -3,66 +3,65 @@
package shared
import (
- "encoding/json"
+ "airbyte/internal/sdk/pkg/utils"
)
type SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The Client ID of your developer application
ClientID string `json:"client_id"`
// The client secret of your developer application
ClientSecret string `json:"client_secret"`
// A refresh token generated using the above client ID and secret
RefreshToken string `json:"refresh_token"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20 SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20
-
-func (c *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20(data)
- additionalFields := make(map[string]interface{})
+func (s SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
return err
}
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "refresh_token")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
}
+ return o.ClientID
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
}
+ return o.ClientSecret
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20) GetRefreshToken() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.RefreshToken
}
type SourceYoutubeAnalyticsUpdate struct {
Credentials SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20 `json:"credentials"`
}
+
+func (o *SourceYoutubeAnalyticsUpdate) GetCredentials() SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20 {
+ if o == nil {
+ return SourceYoutubeAnalyticsUpdateAuthenticateViaOAuth20{}
+ }
+ return o.Credentials
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchat.go b/internal/sdk/pkg/models/shared/sourcezendeskchat.go
old mode 100755
new mode 100644
index dd193b085..fc8aa105a
--- a/internal/sdk/pkg/models/shared/sourcezendeskchat.go
+++ b/internal/sdk/pkg/models/shared/sourcezendeskchat.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceZendeskChatAuthorizationMethodAccessTokenCredentials) UnmarshalJS
type SourceZendeskChatAuthorizationMethodAccessToken struct {
// The Access Token to make authenticated requests.
AccessToken string `json:"access_token"`
- Credentials SourceZendeskChatAuthorizationMethodAccessTokenCredentials `json:"credentials"`
+ credentials SourceZendeskChatAuthorizationMethodAccessTokenCredentials `const:"access_token" json:"credentials"`
+}
+
+func (s SourceZendeskChatAuthorizationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChatAuthorizationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChatAuthorizationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskChatAuthorizationMethodAccessToken) GetCredentials() SourceZendeskChatAuthorizationMethodAccessTokenCredentials {
+ return SourceZendeskChatAuthorizationMethodAccessTokenCredentialsAccessToken
}
type SourceZendeskChatAuthorizationMethodOAuth20Credentials string
@@ -71,11 +93,54 @@ type SourceZendeskChatAuthorizationMethodOAuth20 struct {
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
ClientSecret *string `json:"client_secret,omitempty"`
- Credentials SourceZendeskChatAuthorizationMethodOAuth20Credentials `json:"credentials"`
+ credentials SourceZendeskChatAuthorizationMethodOAuth20Credentials `const:"oauth2.0" json:"credentials"`
// Refresh Token to obtain new Access Token, when it's expired.
RefreshToken *string `json:"refresh_token,omitempty"`
}
+func (s SourceZendeskChatAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChatAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChatAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskChatAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceZendeskChatAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZendeskChatAuthorizationMethodOAuth20) GetCredentials() SourceZendeskChatAuthorizationMethodOAuth20Credentials {
+ return SourceZendeskChatAuthorizationMethodOAuth20CredentialsOauth20
+}
+
+func (o *SourceZendeskChatAuthorizationMethodOAuth20) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
type SourceZendeskChatAuthorizationMethodType string
const (
@@ -109,21 +174,16 @@ func CreateSourceZendeskChatAuthorizationMethodSourceZendeskChatAuthorizationMet
}
func (u *SourceZendeskChatAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskChatAuthorizationMethodAccessToken := new(SourceZendeskChatAuthorizationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskChatAuthorizationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskChatAuthorizationMethodAccessToken, "", true, true); err == nil {
u.SourceZendeskChatAuthorizationMethodAccessToken = sourceZendeskChatAuthorizationMethodAccessToken
u.Type = SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatAuthorizationMethodAccessToken
return nil
}
sourceZendeskChatAuthorizationMethodOAuth20 := new(SourceZendeskChatAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskChatAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskChatAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceZendeskChatAuthorizationMethodOAuth20 = sourceZendeskChatAuthorizationMethodOAuth20
u.Type = SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatAuthorizationMethodOAuth20
return nil
@@ -133,15 +193,15 @@ func (u *SourceZendeskChatAuthorizationMethod) UnmarshalJSON(data []byte) error
}
func (u SourceZendeskChatAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskChatAuthorizationMethodAccessToken != nil {
- return json.Marshal(u.SourceZendeskChatAuthorizationMethodAccessToken)
+ if u.SourceZendeskChatAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskChatAuthorizationMethodOAuth20, "", true)
}
- if u.SourceZendeskChatAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceZendeskChatAuthorizationMethodOAuth20)
+ if u.SourceZendeskChatAuthorizationMethodAccessToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskChatAuthorizationMethodAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskChatZendeskChat string
@@ -170,9 +230,45 @@ func (e *SourceZendeskChatZendeskChat) UnmarshalJSON(data []byte) error {
type SourceZendeskChat struct {
Credentials *SourceZendeskChatAuthorizationMethod `json:"credentials,omitempty"`
- SourceType SourceZendeskChatZendeskChat `json:"sourceType"`
+ sourceType SourceZendeskChatZendeskChat `const:"zendesk-chat" json:"sourceType"`
// The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z.
StartDate time.Time `json:"start_date"`
// Required if you access Zendesk Chat from a Zendesk Support subdomain.
- Subdomain *string `json:"subdomain,omitempty"`
+ Subdomain *string `default:"" json:"subdomain"`
+}
+
+func (s SourceZendeskChat) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChat) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChat) GetCredentials() *SourceZendeskChatAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskChat) GetSourceType() SourceZendeskChatZendeskChat {
+ return SourceZendeskChatZendeskChatZendeskChat
+}
+
+func (o *SourceZendeskChat) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskChat) GetSubdomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Subdomain
}
diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchatcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezendeskchatcreaterequest.go
old mode 100755
new mode 100644
index 02ba08e69..deb0a1cb1
--- a/internal/sdk/pkg/models/shared/sourcezendeskchatcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendeskchatcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZendeskChatCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskChatCreateRequest) GetConfiguration() SourceZendeskChat {
+ if o == nil {
+ return SourceZendeskChat{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskChatCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskChatCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZendeskChatCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchatputrequest.go b/internal/sdk/pkg/models/shared/sourcezendeskchatputrequest.go
old mode 100755
new mode 100644
index 75dfdffbd..8e8ddcc1d
--- a/internal/sdk/pkg/models/shared/sourcezendeskchatputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendeskchatputrequest.go
@@ -7,3 +7,24 @@ type SourceZendeskChatPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskChatPutRequest) GetConfiguration() SourceZendeskChatUpdate {
+ if o == nil {
+ return SourceZendeskChatUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskChatPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskChatPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go b/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go
old mode 100755
new mode 100644
index 0aadd5f86..32e3e8c94
--- a/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -37,7 +37,29 @@ func (e *SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentials) Unmar
type SourceZendeskChatUpdateAuthorizationMethodAccessToken struct {
// The Access Token to make authenticated requests.
AccessToken string `json:"access_token"`
- Credentials SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentials `json:"credentials"`
+ credentials SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentials `const:"access_token" json:"credentials"`
+}
+
+func (s SourceZendeskChatUpdateAuthorizationMethodAccessToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChatUpdateAuthorizationMethodAccessToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodAccessToken) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodAccessToken) GetCredentials() SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentials {
+ return SourceZendeskChatUpdateAuthorizationMethodAccessTokenCredentialsAccessToken
}
type SourceZendeskChatUpdateAuthorizationMethodOAuth20Credentials string
@@ -71,11 +93,54 @@ type SourceZendeskChatUpdateAuthorizationMethodOAuth20 struct {
ClientID *string `json:"client_id,omitempty"`
// The Client Secret of your OAuth application.
ClientSecret *string `json:"client_secret,omitempty"`
- Credentials SourceZendeskChatUpdateAuthorizationMethodOAuth20Credentials `json:"credentials"`
+ credentials SourceZendeskChatUpdateAuthorizationMethodOAuth20Credentials `const:"oauth2.0" json:"credentials"`
// Refresh Token to obtain new Access Token, when it's expired.
RefreshToken *string `json:"refresh_token,omitempty"`
}
+func (s SourceZendeskChatUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChatUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodOAuth20) GetAccessToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientID
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodOAuth20) GetCredentials() SourceZendeskChatUpdateAuthorizationMethodOAuth20Credentials {
+ return SourceZendeskChatUpdateAuthorizationMethodOAuth20CredentialsOauth20
+}
+
+func (o *SourceZendeskChatUpdateAuthorizationMethodOAuth20) GetRefreshToken() *string {
+ if o == nil {
+ return nil
+ }
+ return o.RefreshToken
+}
+
type SourceZendeskChatUpdateAuthorizationMethodType string
const (
@@ -109,21 +174,16 @@ func CreateSourceZendeskChatUpdateAuthorizationMethodSourceZendeskChatUpdateAuth
}
func (u *SourceZendeskChatUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskChatUpdateAuthorizationMethodAccessToken := new(SourceZendeskChatUpdateAuthorizationMethodAccessToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskChatUpdateAuthorizationMethodAccessToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskChatUpdateAuthorizationMethodAccessToken, "", true, true); err == nil {
u.SourceZendeskChatUpdateAuthorizationMethodAccessToken = sourceZendeskChatUpdateAuthorizationMethodAccessToken
u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateAuthorizationMethodAccessToken
return nil
}
sourceZendeskChatUpdateAuthorizationMethodOAuth20 := new(SourceZendeskChatUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskChatUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskChatUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceZendeskChatUpdateAuthorizationMethodOAuth20 = sourceZendeskChatUpdateAuthorizationMethodOAuth20
u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateAuthorizationMethodOAuth20
return nil
@@ -133,15 +193,15 @@ func (u *SourceZendeskChatUpdateAuthorizationMethod) UnmarshalJSON(data []byte)
}
func (u SourceZendeskChatUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskChatUpdateAuthorizationMethodAccessToken != nil {
- return json.Marshal(u.SourceZendeskChatUpdateAuthorizationMethodAccessToken)
+ if u.SourceZendeskChatUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskChatUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceZendeskChatUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceZendeskChatUpdateAuthorizationMethodOAuth20)
+ if u.SourceZendeskChatUpdateAuthorizationMethodAccessToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskChatUpdateAuthorizationMethodAccessToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskChatUpdate struct {
@@ -149,5 +209,37 @@ type SourceZendeskChatUpdate struct {
// The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z.
StartDate time.Time `json:"start_date"`
// Required if you access Zendesk Chat from a Zendesk Support subdomain.
- Subdomain *string `json:"subdomain,omitempty"`
+ Subdomain *string `default:"" json:"subdomain"`
+}
+
+func (s SourceZendeskChatUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskChatUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskChatUpdate) GetCredentials() *SourceZendeskChatUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskChatUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskChatUpdate) GetSubdomain() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Subdomain
}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshine.go b/internal/sdk/pkg/models/shared/sourcezendesksunshine.go
old mode 100755
new mode 100644
index 5a06d7458..2bebf3ce5
--- a/internal/sdk/pkg/models/shared/sourcezendesksunshine.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksunshine.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,12 +36,41 @@ func (e *SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethod) UnmarshalJS
type SourceZendeskSunshineAuthorizationMethodAPIToken struct {
// API Token. See the docs for information on how to generate this key.
- APIToken string `json:"api_token"`
- AuthMethod SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethod `json:"auth_method"`
+ APIToken string `json:"api_token"`
+ authMethod *SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethod `const:"api_token" json:"auth_method"`
// The user email for your Zendesk account
Email string `json:"email"`
}
+func (s SourceZendeskSunshineAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshineAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodAPIToken) GetAuthMethod() *SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethod {
+ return SourceZendeskSunshineAuthorizationMethodAPITokenAuthMethodAPIToken.ToPointer()
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
type SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod string
const (
@@ -68,14 +97,50 @@ func (e *SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod) UnmarshalJSO
type SourceZendeskSunshineAuthorizationMethodOAuth20 struct {
// Long-term access Token for making authenticated requests.
- AccessToken string `json:"access_token"`
- AuthMethod SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ AccessToken string `json:"access_token"`
+ authMethod *SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
ClientSecret string `json:"client_secret"`
}
+func (s SourceZendeskSunshineAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshineAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodOAuth20) GetAuthMethod() *SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethod {
+ return SourceZendeskSunshineAuthorizationMethodOAuth20AuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZendeskSunshineAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceZendeskSunshineAuthorizationMethodType string
const (
@@ -109,21 +174,16 @@ func CreateSourceZendeskSunshineAuthorizationMethodSourceZendeskSunshineAuthoriz
}
func (u *SourceZendeskSunshineAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskSunshineAuthorizationMethodAPIToken := new(SourceZendeskSunshineAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSunshineAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceZendeskSunshineAuthorizationMethodAPIToken = sourceZendeskSunshineAuthorizationMethodAPIToken
u.Type = SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineAuthorizationMethodAPIToken
return nil
}
sourceZendeskSunshineAuthorizationMethodOAuth20 := new(SourceZendeskSunshineAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSunshineAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceZendeskSunshineAuthorizationMethodOAuth20 = sourceZendeskSunshineAuthorizationMethodOAuth20
u.Type = SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineAuthorizationMethodOAuth20
return nil
@@ -133,15 +193,15 @@ func (u *SourceZendeskSunshineAuthorizationMethod) UnmarshalJSON(data []byte) er
}
func (u SourceZendeskSunshineAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskSunshineAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceZendeskSunshineAuthorizationMethodAPIToken)
+ if u.SourceZendeskSunshineAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskSunshineAuthorizationMethodOAuth20, "", true)
}
- if u.SourceZendeskSunshineAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceZendeskSunshineAuthorizationMethodOAuth20)
+ if u.SourceZendeskSunshineAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskSunshineAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskSunshineZendeskSunshine string
@@ -170,9 +230,45 @@ func (e *SourceZendeskSunshineZendeskSunshine) UnmarshalJSON(data []byte) error
type SourceZendeskSunshine struct {
Credentials *SourceZendeskSunshineAuthorizationMethod `json:"credentials,omitempty"`
- SourceType SourceZendeskSunshineZendeskSunshine `json:"sourceType"`
+ sourceType SourceZendeskSunshineZendeskSunshine `const:"zendesk-sunshine" json:"sourceType"`
// The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z.
StartDate time.Time `json:"start_date"`
// The subdomain for your Zendesk Account.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskSunshine) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshine) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshine) GetCredentials() *SourceZendeskSunshineAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskSunshine) GetSourceType() SourceZendeskSunshineZendeskSunshine {
+ return SourceZendeskSunshineZendeskSunshineZendeskSunshine
+}
+
+func (o *SourceZendeskSunshine) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskSunshine) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshinecreaterequest.go b/internal/sdk/pkg/models/shared/sourcezendesksunshinecreaterequest.go
old mode 100755
new mode 100644
index 4c095f044..24d728cbe
--- a/internal/sdk/pkg/models/shared/sourcezendesksunshinecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksunshinecreaterequest.go
@@ -9,3 +9,31 @@ type SourceZendeskSunshineCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskSunshineCreateRequest) GetConfiguration() SourceZendeskSunshine {
+ if o == nil {
+ return SourceZendeskSunshine{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskSunshineCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskSunshineCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZendeskSunshineCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshineputrequest.go b/internal/sdk/pkg/models/shared/sourcezendesksunshineputrequest.go
old mode 100755
new mode 100644
index 37e32c281..198d83ee6
--- a/internal/sdk/pkg/models/shared/sourcezendesksunshineputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksunshineputrequest.go
@@ -7,3 +7,24 @@ type SourceZendeskSunshinePutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskSunshinePutRequest) GetConfiguration() SourceZendeskSunshineUpdate {
+ if o == nil {
+ return SourceZendeskSunshineUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskSunshinePutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskSunshinePutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go b/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go
old mode 100755
new mode 100644
index 1866a08d2..c4181802c
--- a/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,12 +36,41 @@ func (e *SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethod) Unmar
type SourceZendeskSunshineUpdateAuthorizationMethodAPIToken struct {
// API Token. See the docs for information on how to generate this key.
- APIToken string `json:"api_token"`
- AuthMethod SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethod `json:"auth_method"`
+ APIToken string `json:"api_token"`
+ authMethod *SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethod `const:"api_token" json:"auth_method"`
// The user email for your Zendesk account
Email string `json:"email"`
}
+func (s SourceZendeskSunshineUpdateAuthorizationMethodAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshineUpdateAuthorizationMethodAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodAPIToken) GetAuthMethod() *SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethod {
+ return SourceZendeskSunshineUpdateAuthorizationMethodAPITokenAuthMethodAPIToken.ToPointer()
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
+ }
+ return o.Email
+}
+
type SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod string
const (
@@ -68,14 +97,50 @@ func (e *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod) Unmars
type SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 struct {
// Long-term access Token for making authenticated requests.
- AccessToken string `json:"access_token"`
- AuthMethod SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod `json:"auth_method"`
+ AccessToken string `json:"access_token"`
+ authMethod *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod `const:"oauth2.0" json:"auth_method"`
// The Client ID of your OAuth application.
ClientID string `json:"client_id"`
// The Client Secret of your OAuth application.
ClientSecret string `json:"client_secret"`
}
+func (s SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.AccessToken
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) GetAuthMethod() *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethod {
+ return SourceZendeskSunshineUpdateAuthorizationMethodOAuth20AuthMethodOauth20.ToPointer()
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZendeskSunshineUpdateAuthorizationMethodOAuth20) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
type SourceZendeskSunshineUpdateAuthorizationMethodType string
const (
@@ -109,21 +174,16 @@ func CreateSourceZendeskSunshineUpdateAuthorizationMethodSourceZendeskSunshineUp
}
func (u *SourceZendeskSunshineUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskSunshineUpdateAuthorizationMethodAPIToken := new(SourceZendeskSunshineUpdateAuthorizationMethodAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSunshineUpdateAuthorizationMethodAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineUpdateAuthorizationMethodAPIToken, "", true, true); err == nil {
u.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken = sourceZendeskSunshineUpdateAuthorizationMethodAPIToken
u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateAuthorizationMethodAPIToken
return nil
}
sourceZendeskSunshineUpdateAuthorizationMethodOAuth20 := new(SourceZendeskSunshineUpdateAuthorizationMethodOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSunshineUpdateAuthorizationMethodOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineUpdateAuthorizationMethodOAuth20, "", true, true); err == nil {
u.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 = sourceZendeskSunshineUpdateAuthorizationMethodOAuth20
u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateAuthorizationMethodOAuth20
return nil
@@ -133,15 +193,15 @@ func (u *SourceZendeskSunshineUpdateAuthorizationMethod) UnmarshalJSON(data []by
}
func (u SourceZendeskSunshineUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken != nil {
- return json.Marshal(u.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken)
+ if u.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20, "", true)
}
- if u.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20 != nil {
- return json.Marshal(u.SourceZendeskSunshineUpdateAuthorizationMethodOAuth20)
+ if u.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskSunshineUpdateAuthorizationMethodAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskSunshineUpdate struct {
@@ -151,3 +211,35 @@ type SourceZendeskSunshineUpdate struct {
// The subdomain for your Zendesk Account.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskSunshineUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSunshineUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSunshineUpdate) GetCredentials() *SourceZendeskSunshineUpdateAuthorizationMethod {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskSunshineUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskSunshineUpdate) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupport.go b/internal/sdk/pkg/models/shared/sourcezendesksupport.go
old mode 100755
new mode 100644
index e6712241c..0195b273d
--- a/internal/sdk/pkg/models/shared/sourcezendesksupport.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksupport.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,59 +36,48 @@ func (e *SourceZendeskSupportAuthenticationAPITokenCredentials) UnmarshalJSON(da
// SourceZendeskSupportAuthenticationAPIToken - Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
type SourceZendeskSupportAuthenticationAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See our full documentation for more information on generating this token.
APIToken string `json:"api_token"`
- Credentials *SourceZendeskSupportAuthenticationAPITokenCredentials `json:"credentials,omitempty"`
+ credentials *SourceZendeskSupportAuthenticationAPITokenCredentials `const:"api_token" json:"credentials,omitempty"`
// The user email for your Zendesk account.
Email string `json:"email"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskSupportAuthenticationAPIToken SourceZendeskSupportAuthenticationAPIToken
-
-func (c *SourceZendeskSupportAuthenticationAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskSupportAuthenticationAPIToken{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskSupportAuthenticationAPIToken(data)
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskSupportAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskSupportAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "credentials")
- delete(additionalFields, "email")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskSupportAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskSupportAuthenticationAPIToken(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskSupportAuthenticationAPIToken) GetCredentials() *SourceZendeskSupportAuthenticationAPITokenCredentials {
+ return SourceZendeskSupportAuthenticationAPITokenCredentialsAPIToken.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.Email
}
type SourceZendeskSupportAuthenticationOAuth20Credentials string
@@ -117,62 +106,57 @@ func (e *SourceZendeskSupportAuthenticationOAuth20Credentials) UnmarshalJSON(dat
// SourceZendeskSupportAuthenticationOAuth20 - Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
type SourceZendeskSupportAuthenticationOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The OAuth access token. See the Zendesk docs for more information on generating this token.
AccessToken string `json:"access_token"`
// The OAuth client's ID. See this guide for more information.
ClientID *string `json:"client_id,omitempty"`
// The OAuth client secret. See this guide for more information.
ClientSecret *string `json:"client_secret,omitempty"`
- Credentials *SourceZendeskSupportAuthenticationOAuth20Credentials `json:"credentials,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ credentials *SourceZendeskSupportAuthenticationOAuth20Credentials `const:"oauth2.0" json:"credentials,omitempty"`
}
-type _SourceZendeskSupportAuthenticationOAuth20 SourceZendeskSupportAuthenticationOAuth20
-func (c *SourceZendeskSupportAuthenticationOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskSupportAuthenticationOAuth20{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskSupportAuthenticationOAuth20(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskSupportAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskSupportAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "access_token")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "credentials")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskSupportAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskSupportAuthenticationOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
}
+ return o.AccessToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceZendeskSupportAuthenticationOAuth20) GetCredentials() *SourceZendeskSupportAuthenticationOAuth20Credentials {
+ return SourceZendeskSupportAuthenticationOAuth20CredentialsOauth20.ToPointer()
}
type SourceZendeskSupportAuthenticationType string
@@ -208,21 +192,16 @@ func CreateSourceZendeskSupportAuthenticationSourceZendeskSupportAuthenticationA
}
func (u *SourceZendeskSupportAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskSupportAuthenticationAPIToken := new(SourceZendeskSupportAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSupportAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSupportAuthenticationAPIToken, "", true, true); err == nil {
u.SourceZendeskSupportAuthenticationAPIToken = sourceZendeskSupportAuthenticationAPIToken
u.Type = SourceZendeskSupportAuthenticationTypeSourceZendeskSupportAuthenticationAPIToken
return nil
}
sourceZendeskSupportAuthenticationOAuth20 := new(SourceZendeskSupportAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSupportAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSupportAuthenticationOAuth20, "", true, true); err == nil {
u.SourceZendeskSupportAuthenticationOAuth20 = sourceZendeskSupportAuthenticationOAuth20
u.Type = SourceZendeskSupportAuthenticationTypeSourceZendeskSupportAuthenticationOAuth20
return nil
@@ -232,15 +211,15 @@ func (u *SourceZendeskSupportAuthentication) UnmarshalJSON(data []byte) error {
}
func (u SourceZendeskSupportAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskSupportAuthenticationAPIToken != nil {
- return json.Marshal(u.SourceZendeskSupportAuthenticationAPIToken)
+ if u.SourceZendeskSupportAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskSupportAuthenticationOAuth20, "", true)
}
- if u.SourceZendeskSupportAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceZendeskSupportAuthenticationOAuth20)
+ if u.SourceZendeskSupportAuthenticationAPIToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskSupportAuthenticationAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskSupportZendeskSupport string
@@ -271,10 +250,53 @@ type SourceZendeskSupport struct {
// Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
Credentials *SourceZendeskSupportAuthentication `json:"credentials,omitempty"`
// Makes each stream read a single page of data.
- IgnorePagination *bool `json:"ignore_pagination,omitempty"`
- SourceType SourceZendeskSupportZendeskSupport `json:"sourceType"`
+ IgnorePagination *bool `default:"false" json:"ignore_pagination"`
+ sourceType SourceZendeskSupportZendeskSupport `const:"zendesk-support" json:"sourceType"`
// The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
// This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskSupport) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSupport) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSupport) GetCredentials() *SourceZendeskSupportAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskSupport) GetIgnorePagination() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IgnorePagination
+}
+
+func (o *SourceZendeskSupport) GetSourceType() SourceZendeskSupportZendeskSupport {
+ return SourceZendeskSupportZendeskSupportZendeskSupport
+}
+
+func (o *SourceZendeskSupport) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskSupport) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupportcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezendesksupportcreaterequest.go
old mode 100755
new mode 100644
index 56e4857ae..378c953be
--- a/internal/sdk/pkg/models/shared/sourcezendesksupportcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksupportcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZendeskSupportCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskSupportCreateRequest) GetConfiguration() SourceZendeskSupport {
+ if o == nil {
+ return SourceZendeskSupport{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskSupportCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskSupportCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZendeskSupportCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupportputrequest.go b/internal/sdk/pkg/models/shared/sourcezendesksupportputrequest.go
old mode 100755
new mode 100644
index c0962a378..9fe434312
--- a/internal/sdk/pkg/models/shared/sourcezendesksupportputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksupportputrequest.go
@@ -7,3 +7,24 @@ type SourceZendeskSupportPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskSupportPutRequest) GetConfiguration() SourceZendeskSupportUpdate {
+ if o == nil {
+ return SourceZendeskSupportUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskSupportPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskSupportPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go b/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go
old mode 100755
new mode 100644
index 0651cb035..633b3b2d1
--- a/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,59 +36,48 @@ func (e *SourceZendeskSupportUpdateAuthenticationAPITokenCredentials) UnmarshalJ
// SourceZendeskSupportUpdateAuthenticationAPIToken - Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
type SourceZendeskSupportUpdateAuthenticationAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See our full documentation for more information on generating this token.
APIToken string `json:"api_token"`
- Credentials *SourceZendeskSupportUpdateAuthenticationAPITokenCredentials `json:"credentials,omitempty"`
+ credentials *SourceZendeskSupportUpdateAuthenticationAPITokenCredentials `const:"api_token" json:"credentials,omitempty"`
// The user email for your Zendesk account.
Email string `json:"email"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskSupportUpdateAuthenticationAPIToken SourceZendeskSupportUpdateAuthenticationAPIToken
-
-func (c *SourceZendeskSupportUpdateAuthenticationAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskSupportUpdateAuthenticationAPIToken{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskSupportUpdateAuthenticationAPIToken(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskSupportUpdateAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskSupportUpdateAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "credentials")
- delete(additionalFields, "email")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskSupportUpdateAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskSupportUpdateAuthenticationAPIToken(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskSupportUpdateAuthenticationAPIToken) GetCredentials() *SourceZendeskSupportUpdateAuthenticationAPITokenCredentials {
+ return SourceZendeskSupportUpdateAuthenticationAPITokenCredentialsAPIToken.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.Email
}
type SourceZendeskSupportUpdateAuthenticationOAuth20Credentials string
@@ -117,62 +106,57 @@ func (e *SourceZendeskSupportUpdateAuthenticationOAuth20Credentials) UnmarshalJS
// SourceZendeskSupportUpdateAuthenticationOAuth20 - Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
type SourceZendeskSupportUpdateAuthenticationOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The OAuth access token. See the Zendesk docs for more information on generating this token.
AccessToken string `json:"access_token"`
// The OAuth client's ID. See this guide for more information.
ClientID *string `json:"client_id,omitempty"`
// The OAuth client secret. See this guide for more information.
ClientSecret *string `json:"client_secret,omitempty"`
- Credentials *SourceZendeskSupportUpdateAuthenticationOAuth20Credentials `json:"credentials,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
+ credentials *SourceZendeskSupportUpdateAuthenticationOAuth20Credentials `const:"oauth2.0" json:"credentials,omitempty"`
}
-type _SourceZendeskSupportUpdateAuthenticationOAuth20 SourceZendeskSupportUpdateAuthenticationOAuth20
-
-func (c *SourceZendeskSupportUpdateAuthenticationOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskSupportUpdateAuthenticationOAuth20{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskSupportUpdateAuthenticationOAuth20(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskSupportUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskSupportUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "access_token")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
- delete(additionalFields, "credentials")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskSupportUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskSupportUpdateAuthenticationOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
}
+ return o.AccessToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientID
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskSupportUpdateAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientSecret
+}
- return json.Marshal(out)
+func (o *SourceZendeskSupportUpdateAuthenticationOAuth20) GetCredentials() *SourceZendeskSupportUpdateAuthenticationOAuth20Credentials {
+ return SourceZendeskSupportUpdateAuthenticationOAuth20CredentialsOauth20.ToPointer()
}
type SourceZendeskSupportUpdateAuthenticationType string
@@ -208,21 +192,16 @@ func CreateSourceZendeskSupportUpdateAuthenticationSourceZendeskSupportUpdateAut
}
func (u *SourceZendeskSupportUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskSupportUpdateAuthenticationAPIToken := new(SourceZendeskSupportUpdateAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSupportUpdateAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSupportUpdateAuthenticationAPIToken, "", true, true); err == nil {
u.SourceZendeskSupportUpdateAuthenticationAPIToken = sourceZendeskSupportUpdateAuthenticationAPIToken
u.Type = SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateAuthenticationAPIToken
return nil
}
sourceZendeskSupportUpdateAuthenticationOAuth20 := new(SourceZendeskSupportUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskSupportUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskSupportUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceZendeskSupportUpdateAuthenticationOAuth20 = sourceZendeskSupportUpdateAuthenticationOAuth20
u.Type = SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateAuthenticationOAuth20
return nil
@@ -232,24 +211,63 @@ func (u *SourceZendeskSupportUpdateAuthentication) UnmarshalJSON(data []byte) er
}
func (u SourceZendeskSupportUpdateAuthentication) MarshalJSON() ([]byte, error) {
- if u.SourceZendeskSupportUpdateAuthenticationAPIToken != nil {
- return json.Marshal(u.SourceZendeskSupportUpdateAuthenticationAPIToken)
+ if u.SourceZendeskSupportUpdateAuthenticationOAuth20 != nil {
+ return utils.MarshalJSON(u.SourceZendeskSupportUpdateAuthenticationOAuth20, "", true)
}
- if u.SourceZendeskSupportUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceZendeskSupportUpdateAuthenticationOAuth20)
+ if u.SourceZendeskSupportUpdateAuthenticationAPIToken != nil {
+ return utils.MarshalJSON(u.SourceZendeskSupportUpdateAuthenticationAPIToken, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskSupportUpdate struct {
// Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users.
Credentials *SourceZendeskSupportUpdateAuthentication `json:"credentials,omitempty"`
// Makes each stream read a single page of data.
- IgnorePagination *bool `json:"ignore_pagination,omitempty"`
+ IgnorePagination *bool `default:"false" json:"ignore_pagination"`
// The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate *time.Time `json:"start_date,omitempty"`
// This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskSupportUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskSupportUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskSupportUpdate) GetCredentials() *SourceZendeskSupportUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskSupportUpdate) GetIgnorePagination() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.IgnorePagination
+}
+
+func (o *SourceZendeskSupportUpdate) GetStartDate() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskSupportUpdate) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalk.go b/internal/sdk/pkg/models/shared/sourcezendesktalk.go
old mode 100755
new mode 100644
index 149275ce1..ca2ada9d0
--- a/internal/sdk/pkg/models/shared/sourcezendesktalk.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesktalk.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,62 +36,57 @@ func (e *SourceZendeskTalkAuthenticationOAuth20AuthType) UnmarshalJSON(data []by
// SourceZendeskTalkAuthenticationOAuth20 - Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`.
type SourceZendeskTalkAuthenticationOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See the docs for more information.
AccessToken string `json:"access_token"`
- AuthType *SourceZendeskTalkAuthenticationOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceZendeskTalkAuthenticationOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Client ID
ClientID *string `json:"client_id,omitempty"`
// Client Secret
ClientSecret *string `json:"client_secret,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskTalkAuthenticationOAuth20 SourceZendeskTalkAuthenticationOAuth20
-
-func (c *SourceZendeskTalkAuthenticationOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskTalkAuthenticationOAuth20{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskTalkAuthenticationOAuth20(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskTalkAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskTalkAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "access_token")
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskTalkAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskTalkAuthenticationOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
}
+ return o.AccessToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskTalkAuthenticationOAuth20) GetAuthType() *SourceZendeskTalkAuthenticationOAuth20AuthType {
+ return SourceZendeskTalkAuthenticationOAuth20AuthTypeOauth20.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientID
+}
- return json.Marshal(out)
+func (o *SourceZendeskTalkAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
}
type SourceZendeskTalkAuthenticationAPITokenAuthType string
@@ -120,59 +115,48 @@ func (e *SourceZendeskTalkAuthenticationAPITokenAuthType) UnmarshalJSON(data []b
// SourceZendeskTalkAuthenticationAPIToken - Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`.
type SourceZendeskTalkAuthenticationAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See the docs for more information.
APIToken string `json:"api_token"`
- AuthType *SourceZendeskTalkAuthenticationAPITokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceZendeskTalkAuthenticationAPITokenAuthType `const:"api_token" json:"auth_type,omitempty"`
// The user email for your Zendesk account.
Email string `json:"email"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskTalkAuthenticationAPIToken SourceZendeskTalkAuthenticationAPIToken
-
-func (c *SourceZendeskTalkAuthenticationAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskTalkAuthenticationAPIToken{}
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskTalkAuthenticationAPIToken(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskTalkAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskTalkAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "auth_type")
- delete(additionalFields, "email")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskTalkAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskTalkAuthenticationAPIToken(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskTalkAuthenticationAPIToken) GetAuthType() *SourceZendeskTalkAuthenticationAPITokenAuthType {
+ return SourceZendeskTalkAuthenticationAPITokenAuthTypeAPIToken.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkAuthenticationAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.Email
}
type SourceZendeskTalkAuthenticationType string
@@ -208,21 +192,16 @@ func CreateSourceZendeskTalkAuthenticationSourceZendeskTalkAuthenticationOAuth20
}
func (u *SourceZendeskTalkAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskTalkAuthenticationAPIToken := new(SourceZendeskTalkAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskTalkAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskTalkAuthenticationAPIToken, "", true, true); err == nil {
u.SourceZendeskTalkAuthenticationAPIToken = sourceZendeskTalkAuthenticationAPIToken
u.Type = SourceZendeskTalkAuthenticationTypeSourceZendeskTalkAuthenticationAPIToken
return nil
}
sourceZendeskTalkAuthenticationOAuth20 := new(SourceZendeskTalkAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskTalkAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskTalkAuthenticationOAuth20, "", true, true); err == nil {
u.SourceZendeskTalkAuthenticationOAuth20 = sourceZendeskTalkAuthenticationOAuth20
u.Type = SourceZendeskTalkAuthenticationTypeSourceZendeskTalkAuthenticationOAuth20
return nil
@@ -233,14 +212,14 @@ func (u *SourceZendeskTalkAuthentication) UnmarshalJSON(data []byte) error {
func (u SourceZendeskTalkAuthentication) MarshalJSON() ([]byte, error) {
if u.SourceZendeskTalkAuthenticationAPIToken != nil {
- return json.Marshal(u.SourceZendeskTalkAuthenticationAPIToken)
+ return utils.MarshalJSON(u.SourceZendeskTalkAuthenticationAPIToken, "", true)
}
if u.SourceZendeskTalkAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceZendeskTalkAuthenticationOAuth20)
+ return utils.MarshalJSON(u.SourceZendeskTalkAuthenticationOAuth20, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskTalkZendeskTalk string
@@ -270,9 +249,45 @@ func (e *SourceZendeskTalkZendeskTalk) UnmarshalJSON(data []byte) error {
type SourceZendeskTalk struct {
// Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`.
Credentials *SourceZendeskTalkAuthentication `json:"credentials,omitempty"`
- SourceType SourceZendeskTalkZendeskTalk `json:"sourceType"`
+ sourceType SourceZendeskTalkZendeskTalk `const:"zendesk-talk" json:"sourceType"`
// The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated.
StartDate time.Time `json:"start_date"`
// This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskTalk) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskTalk) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskTalk) GetCredentials() *SourceZendeskTalkAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskTalk) GetSourceType() SourceZendeskTalkZendeskTalk {
+ return SourceZendeskTalkZendeskTalkZendeskTalk
+}
+
+func (o *SourceZendeskTalk) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskTalk) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalkcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezendesktalkcreaterequest.go
old mode 100755
new mode 100644
index 68278d9d4..1fe4a36a2
--- a/internal/sdk/pkg/models/shared/sourcezendesktalkcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesktalkcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZendeskTalkCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskTalkCreateRequest) GetConfiguration() SourceZendeskTalk {
+ if o == nil {
+ return SourceZendeskTalk{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskTalkCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskTalkCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZendeskTalkCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalkputrequest.go b/internal/sdk/pkg/models/shared/sourcezendesktalkputrequest.go
old mode 100755
new mode 100644
index 83c370cd7..f9280b7c9
--- a/internal/sdk/pkg/models/shared/sourcezendesktalkputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesktalkputrequest.go
@@ -7,3 +7,24 @@ type SourceZendeskTalkPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZendeskTalkPutRequest) GetConfiguration() SourceZendeskTalkUpdate {
+ if o == nil {
+ return SourceZendeskTalkUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZendeskTalkPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZendeskTalkPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go b/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go
old mode 100755
new mode 100644
index 9a61c80b7..4ce2d6a18
--- a/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go
@@ -3,7 +3,7 @@
package shared
import (
- "bytes"
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"errors"
"fmt"
@@ -36,62 +36,57 @@ func (e *SourceZendeskTalkUpdateAuthenticationOAuth20AuthType) UnmarshalJSON(dat
// SourceZendeskTalkUpdateAuthenticationOAuth20 - Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`.
type SourceZendeskTalkUpdateAuthenticationOAuth20 struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See the docs for more information.
AccessToken string `json:"access_token"`
- AuthType *SourceZendeskTalkUpdateAuthenticationOAuth20AuthType `json:"auth_type,omitempty"`
+ authType *SourceZendeskTalkUpdateAuthenticationOAuth20AuthType `const:"oauth2.0" json:"auth_type,omitempty"`
// Client ID
ClientID *string `json:"client_id,omitempty"`
// Client Secret
ClientSecret *string `json:"client_secret,omitempty"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskTalkUpdateAuthenticationOAuth20 SourceZendeskTalkUpdateAuthenticationOAuth20
-
-func (c *SourceZendeskTalkUpdateAuthenticationOAuth20) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskTalkUpdateAuthenticationOAuth20{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskTalkUpdateAuthenticationOAuth20(data)
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskTalkUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskTalkUpdateAuthenticationOAuth20) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "access_token")
- delete(additionalFields, "auth_type")
- delete(additionalFields, "client_id")
- delete(additionalFields, "client_secret")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskTalkUpdateAuthenticationOAuth20) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskTalkUpdateAuthenticationOAuth20(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationOAuth20) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationOAuth20) GetAccessToken() string {
+ if o == nil {
+ return ""
}
+ return o.AccessToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskTalkUpdateAuthenticationOAuth20) GetAuthType() *SourceZendeskTalkUpdateAuthenticationOAuth20AuthType {
+ return SourceZendeskTalkUpdateAuthenticationOAuth20AuthTypeOauth20.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationOAuth20) GetClientID() *string {
+ if o == nil {
+ return nil
}
+ return o.ClientID
+}
- return json.Marshal(out)
+func (o *SourceZendeskTalkUpdateAuthenticationOAuth20) GetClientSecret() *string {
+ if o == nil {
+ return nil
+ }
+ return o.ClientSecret
}
type SourceZendeskTalkUpdateAuthenticationAPITokenAuthType string
@@ -120,59 +115,48 @@ func (e *SourceZendeskTalkUpdateAuthenticationAPITokenAuthType) UnmarshalJSON(da
// SourceZendeskTalkUpdateAuthenticationAPIToken - Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`.
type SourceZendeskTalkUpdateAuthenticationAPIToken struct {
+ AdditionalProperties interface{} `additionalProperties:"true" json:"-"`
// The value of the API token generated. See the docs for more information.
APIToken string `json:"api_token"`
- AuthType *SourceZendeskTalkUpdateAuthenticationAPITokenAuthType `json:"auth_type,omitempty"`
+ authType *SourceZendeskTalkUpdateAuthenticationAPITokenAuthType `const:"api_token" json:"auth_type,omitempty"`
// The user email for your Zendesk account.
Email string `json:"email"`
-
- AdditionalProperties interface{} `json:"-"`
}
-type _SourceZendeskTalkUpdateAuthenticationAPIToken SourceZendeskTalkUpdateAuthenticationAPIToken
-func (c *SourceZendeskTalkUpdateAuthenticationAPIToken) UnmarshalJSON(bs []byte) error {
- data := _SourceZendeskTalkUpdateAuthenticationAPIToken{}
-
- if err := json.Unmarshal(bs, &data); err != nil {
- return err
- }
- *c = SourceZendeskTalkUpdateAuthenticationAPIToken(data)
-
- additionalFields := make(map[string]interface{})
+func (s SourceZendeskTalkUpdateAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
- if err := json.Unmarshal(bs, &additionalFields); err != nil {
+func (s *SourceZendeskTalkUpdateAuthenticationAPIToken) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, true); err != nil {
return err
}
- delete(additionalFields, "api_token")
- delete(additionalFields, "auth_type")
- delete(additionalFields, "email")
-
- c.AdditionalProperties = additionalFields
-
return nil
}
-func (c SourceZendeskTalkUpdateAuthenticationAPIToken) MarshalJSON() ([]byte, error) {
- out := map[string]interface{}{}
- bs, err := json.Marshal(_SourceZendeskTalkUpdateAuthenticationAPIToken(c))
- if err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationAPIToken) GetAdditionalProperties() interface{} {
+ if o == nil {
+ return nil
}
+ return o.AdditionalProperties
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationAPIToken) GetAPIToken() string {
+ if o == nil {
+ return ""
}
+ return o.APIToken
+}
- bs, err = json.Marshal(c.AdditionalProperties)
- if err != nil {
- return nil, err
- }
+func (o *SourceZendeskTalkUpdateAuthenticationAPIToken) GetAuthType() *SourceZendeskTalkUpdateAuthenticationAPITokenAuthType {
+ return SourceZendeskTalkUpdateAuthenticationAPITokenAuthTypeAPIToken.ToPointer()
+}
- if err := json.Unmarshal([]byte(bs), &out); err != nil {
- return nil, err
+func (o *SourceZendeskTalkUpdateAuthenticationAPIToken) GetEmail() string {
+ if o == nil {
+ return ""
}
-
- return json.Marshal(out)
+ return o.Email
}
type SourceZendeskTalkUpdateAuthenticationType string
@@ -208,21 +192,16 @@ func CreateSourceZendeskTalkUpdateAuthenticationSourceZendeskTalkUpdateAuthentic
}
func (u *SourceZendeskTalkUpdateAuthentication) UnmarshalJSON(data []byte) error {
- var d *json.Decoder
sourceZendeskTalkUpdateAuthenticationAPIToken := new(SourceZendeskTalkUpdateAuthenticationAPIToken)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskTalkUpdateAuthenticationAPIToken); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskTalkUpdateAuthenticationAPIToken, "", true, true); err == nil {
u.SourceZendeskTalkUpdateAuthenticationAPIToken = sourceZendeskTalkUpdateAuthenticationAPIToken
u.Type = SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateAuthenticationAPIToken
return nil
}
sourceZendeskTalkUpdateAuthenticationOAuth20 := new(SourceZendeskTalkUpdateAuthenticationOAuth20)
- d = json.NewDecoder(bytes.NewReader(data))
- d.DisallowUnknownFields()
- if err := d.Decode(&sourceZendeskTalkUpdateAuthenticationOAuth20); err == nil {
+ if err := utils.UnmarshalJSON(data, &sourceZendeskTalkUpdateAuthenticationOAuth20, "", true, true); err == nil {
u.SourceZendeskTalkUpdateAuthenticationOAuth20 = sourceZendeskTalkUpdateAuthenticationOAuth20
u.Type = SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateAuthenticationOAuth20
return nil
@@ -233,14 +212,14 @@ func (u *SourceZendeskTalkUpdateAuthentication) UnmarshalJSON(data []byte) error
func (u SourceZendeskTalkUpdateAuthentication) MarshalJSON() ([]byte, error) {
if u.SourceZendeskTalkUpdateAuthenticationAPIToken != nil {
- return json.Marshal(u.SourceZendeskTalkUpdateAuthenticationAPIToken)
+ return utils.MarshalJSON(u.SourceZendeskTalkUpdateAuthenticationAPIToken, "", true)
}
if u.SourceZendeskTalkUpdateAuthenticationOAuth20 != nil {
- return json.Marshal(u.SourceZendeskTalkUpdateAuthenticationOAuth20)
+ return utils.MarshalJSON(u.SourceZendeskTalkUpdateAuthenticationOAuth20, "", true)
}
- return nil, nil
+ return nil, errors.New("could not marshal union type: all fields are null")
}
type SourceZendeskTalkUpdate struct {
@@ -251,3 +230,35 @@ type SourceZendeskTalkUpdate struct {
// This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain.
Subdomain string `json:"subdomain"`
}
+
+func (s SourceZendeskTalkUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZendeskTalkUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZendeskTalkUpdate) GetCredentials() *SourceZendeskTalkUpdateAuthentication {
+ if o == nil {
+ return nil
+ }
+ return o.Credentials
+}
+
+func (o *SourceZendeskTalkUpdate) GetStartDate() time.Time {
+ if o == nil {
+ return time.Time{}
+ }
+ return o.StartDate
+}
+
+func (o *SourceZendeskTalkUpdate) GetSubdomain() string {
+ if o == nil {
+ return ""
+ }
+ return o.Subdomain
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezenloop.go b/internal/sdk/pkg/models/shared/sourcezenloop.go
old mode 100755
new mode 100644
index ca9d890a7..0aea8efd6
--- a/internal/sdk/pkg/models/shared/sourcezenloop.go
+++ b/internal/sdk/pkg/models/shared/sourcezenloop.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -36,9 +37,52 @@ type SourceZenloop struct {
APIToken string `json:"api_token"`
// Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced
DateFrom *string `json:"date_from,omitempty"`
- SourceType SourceZenloopZenloop `json:"sourceType"`
+ sourceType SourceZenloopZenloop `const:"zenloop" json:"sourceType"`
// Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups
SurveyGroupID *string `json:"survey_group_id,omitempty"`
// Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys
SurveyID *string `json:"survey_id,omitempty"`
}
+
+func (s SourceZenloop) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZenloop) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZenloop) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceZenloop) GetDateFrom() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DateFrom
+}
+
+func (o *SourceZenloop) GetSourceType() SourceZenloopZenloop {
+ return SourceZenloopZenloopZenloop
+}
+
+func (o *SourceZenloop) GetSurveyGroupID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyGroupID
+}
+
+func (o *SourceZenloop) GetSurveyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezenloopcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezenloopcreaterequest.go
old mode 100755
new mode 100644
index a498a7f9f..0d898d492
--- a/internal/sdk/pkg/models/shared/sourcezenloopcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezenloopcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZenloopCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZenloopCreateRequest) GetConfiguration() SourceZenloop {
+ if o == nil {
+ return SourceZenloop{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZenloopCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZenloopCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZenloopCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezenloopputrequest.go b/internal/sdk/pkg/models/shared/sourcezenloopputrequest.go
old mode 100755
new mode 100644
index 27d558cf3..b6e529f2e
--- a/internal/sdk/pkg/models/shared/sourcezenloopputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezenloopputrequest.go
@@ -7,3 +7,24 @@ type SourceZenloopPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZenloopPutRequest) GetConfiguration() SourceZenloopUpdate {
+ if o == nil {
+ return SourceZenloopUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZenloopPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZenloopPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezenloopupdate.go b/internal/sdk/pkg/models/shared/sourcezenloopupdate.go
old mode 100755
new mode 100644
index b7e780e0d..86c3fb736
--- a/internal/sdk/pkg/models/shared/sourcezenloopupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezenloopupdate.go
@@ -12,3 +12,31 @@ type SourceZenloopUpdate struct {
// Zenloop Survey ID. Can be found here. Leave empty to pull answers from all surveys
SurveyID *string `json:"survey_id,omitempty"`
}
+
+func (o *SourceZenloopUpdate) GetAPIToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.APIToken
+}
+
+func (o *SourceZenloopUpdate) GetDateFrom() *string {
+ if o == nil {
+ return nil
+ }
+ return o.DateFrom
+}
+
+func (o *SourceZenloopUpdate) GetSurveyGroupID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyGroupID
+}
+
+func (o *SourceZenloopUpdate) GetSurveyID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SurveyID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezohocrm.go b/internal/sdk/pkg/models/shared/sourcezohocrm.go
old mode 100755
new mode 100644
index 27cba7f77..f55462860
--- a/internal/sdk/pkg/models/shared/sourcezohocrm.go
+++ b/internal/sdk/pkg/models/shared/sourcezohocrm.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -148,12 +149,76 @@ type SourceZohoCrm struct {
// Please choose the region of your Data Center location. More info by this Link
DcRegion SourceZohoCrmDataCenterLocation `json:"dc_region"`
// Choose your Edition of Zoho CRM to determine API Concurrency Limits
- Edition SourceZohoCRMZohoCRMEdition `json:"edition"`
+ Edition *SourceZohoCRMZohoCRMEdition `default:"Free" json:"edition"`
// Please choose the environment
Environment SourceZohoCrmEnvironment `json:"environment"`
// OAuth2.0 Refresh Token
RefreshToken string `json:"refresh_token"`
- SourceType SourceZohoCrmZohoCrm `json:"sourceType"`
+ sourceType SourceZohoCrmZohoCrm `const:"zoho-crm" json:"sourceType"`
// ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM`
StartDatetime *time.Time `json:"start_datetime,omitempty"`
}
+
+func (s SourceZohoCrm) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZohoCrm) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZohoCrm) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZohoCrm) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZohoCrm) GetDcRegion() SourceZohoCrmDataCenterLocation {
+ if o == nil {
+ return SourceZohoCrmDataCenterLocation("")
+ }
+ return o.DcRegion
+}
+
+func (o *SourceZohoCrm) GetEdition() *SourceZohoCRMZohoCRMEdition {
+ if o == nil {
+ return nil
+ }
+ return o.Edition
+}
+
+func (o *SourceZohoCrm) GetEnvironment() SourceZohoCrmEnvironment {
+ if o == nil {
+ return SourceZohoCrmEnvironment("")
+ }
+ return o.Environment
+}
+
+func (o *SourceZohoCrm) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceZohoCrm) GetSourceType() SourceZohoCrmZohoCrm {
+ return SourceZohoCrmZohoCrmZohoCrm
+}
+
+func (o *SourceZohoCrm) GetStartDatetime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDatetime
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezohocrmcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezohocrmcreaterequest.go
old mode 100755
new mode 100644
index d53cafd85..9e9b92db1
--- a/internal/sdk/pkg/models/shared/sourcezohocrmcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezohocrmcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZohoCrmCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZohoCrmCreateRequest) GetConfiguration() SourceZohoCrm {
+ if o == nil {
+ return SourceZohoCrm{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZohoCrmCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZohoCrmCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZohoCrmCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezohocrmputrequest.go b/internal/sdk/pkg/models/shared/sourcezohocrmputrequest.go
old mode 100755
new mode 100644
index 1cbadc1fd..e283ab7dd
--- a/internal/sdk/pkg/models/shared/sourcezohocrmputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezohocrmputrequest.go
@@ -7,3 +7,24 @@ type SourceZohoCrmPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZohoCrmPutRequest) GetConfiguration() SourceZohoCrmUpdate {
+ if o == nil {
+ return SourceZohoCrmUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZohoCrmPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZohoCrmPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezohocrmupdate.go b/internal/sdk/pkg/models/shared/sourcezohocrmupdate.go
old mode 100755
new mode 100644
index 468492159..bfa9e3315
--- a/internal/sdk/pkg/models/shared/sourcezohocrmupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezohocrmupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
"time"
@@ -124,7 +125,7 @@ type SourceZohoCrmUpdate struct {
// Please choose the region of your Data Center location. More info by this Link
DcRegion SourceZohoCrmUpdateDataCenterLocation `json:"dc_region"`
// Choose your Edition of Zoho CRM to determine API Concurrency Limits
- Edition SourceZohoCRMUpdateZohoCRMEdition `json:"edition"`
+ Edition *SourceZohoCRMUpdateZohoCRMEdition `default:"Free" json:"edition"`
// Please choose the environment
Environment SourceZohoCrmUpdateEnvironment `json:"environment"`
// OAuth2.0 Refresh Token
@@ -132,3 +133,63 @@ type SourceZohoCrmUpdate struct {
// ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM`
StartDatetime *time.Time `json:"start_datetime,omitempty"`
}
+
+func (s SourceZohoCrmUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZohoCrmUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZohoCrmUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZohoCrmUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZohoCrmUpdate) GetDcRegion() SourceZohoCrmUpdateDataCenterLocation {
+ if o == nil {
+ return SourceZohoCrmUpdateDataCenterLocation("")
+ }
+ return o.DcRegion
+}
+
+func (o *SourceZohoCrmUpdate) GetEdition() *SourceZohoCRMUpdateZohoCRMEdition {
+ if o == nil {
+ return nil
+ }
+ return o.Edition
+}
+
+func (o *SourceZohoCrmUpdate) GetEnvironment() SourceZohoCrmUpdateEnvironment {
+ if o == nil {
+ return SourceZohoCrmUpdateEnvironment("")
+ }
+ return o.Environment
+}
+
+func (o *SourceZohoCrmUpdate) GetRefreshToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.RefreshToken
+}
+
+func (o *SourceZohoCrmUpdate) GetStartDatetime() *time.Time {
+ if o == nil {
+ return nil
+ }
+ return o.StartDatetime
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezoom.go b/internal/sdk/pkg/models/shared/sourcezoom.go
old mode 100755
new mode 100644
index 7a6ec9c19..569280316
--- a/internal/sdk/pkg/models/shared/sourcezoom.go
+++ b/internal/sdk/pkg/models/shared/sourcezoom.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -34,5 +35,27 @@ func (e *SourceZoomZoom) UnmarshalJSON(data []byte) error {
type SourceZoom struct {
// JWT Token
JwtToken string `json:"jwt_token"`
- SourceType SourceZoomZoom `json:"sourceType"`
+ sourceType SourceZoomZoom `const:"zoom" json:"sourceType"`
+}
+
+func (s SourceZoom) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZoom) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZoom) GetJwtToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.JwtToken
+}
+
+func (o *SourceZoom) GetSourceType() SourceZoomZoom {
+ return SourceZoomZoomZoom
}
diff --git a/internal/sdk/pkg/models/shared/sourcezoomcreaterequest.go b/internal/sdk/pkg/models/shared/sourcezoomcreaterequest.go
old mode 100755
new mode 100644
index 7b8eb0843..a400022dc
--- a/internal/sdk/pkg/models/shared/sourcezoomcreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezoomcreaterequest.go
@@ -9,3 +9,31 @@ type SourceZoomCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZoomCreateRequest) GetConfiguration() SourceZoom {
+ if o == nil {
+ return SourceZoom{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZoomCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZoomCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZoomCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezoomputrequest.go b/internal/sdk/pkg/models/shared/sourcezoomputrequest.go
old mode 100755
new mode 100644
index 70c689a81..03af6cb7b
--- a/internal/sdk/pkg/models/shared/sourcezoomputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezoomputrequest.go
@@ -7,3 +7,24 @@ type SourceZoomPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZoomPutRequest) GetConfiguration() SourceZoomUpdate {
+ if o == nil {
+ return SourceZoomUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZoomPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZoomPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezoomupdate.go b/internal/sdk/pkg/models/shared/sourcezoomupdate.go
old mode 100755
new mode 100644
index 9a96197bf..a363112d5
--- a/internal/sdk/pkg/models/shared/sourcezoomupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezoomupdate.go
@@ -6,3 +6,10 @@ type SourceZoomUpdate struct {
// JWT Token
JwtToken string `json:"jwt_token"`
}
+
+func (o *SourceZoomUpdate) GetJwtToken() string {
+ if o == nil {
+ return ""
+ }
+ return o.JwtToken
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezuora.go b/internal/sdk/pkg/models/shared/sourcezuora.go
old mode 100755
new mode 100644
index 364ba8bb6..71c73b062
--- a/internal/sdk/pkg/models/shared/sourcezuora.go
+++ b/internal/sdk/pkg/models/shared/sourcezuora.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -114,12 +115,69 @@ type SourceZuora struct {
// Your OAuth user Client Secret
ClientSecret string `json:"client_secret"`
// Choose between `Live`, or `Unlimited` - the optimized, replicated database at 12 hours freshness for high volume extraction Link
- DataQuery SourceZuoraDataQueryType `json:"data_query"`
- SourceType SourceZuoraZuora `json:"sourceType"`
+ DataQuery *SourceZuoraDataQueryType `default:"Live" json:"data_query"`
+ sourceType SourceZuoraZuora `const:"zuora" json:"sourceType"`
// Start Date in format: YYYY-MM-DD
StartDate string `json:"start_date"`
// Please choose the right endpoint where your Tenant is located. More info by this Link
TenantEndpoint SourceZuoraTenantEndpointLocation `json:"tenant_endpoint"`
// The amount of days for each data-chunk begining from start_date. Bigger the value - faster the fetch. (0.1 - as for couple of hours, 1 - as for a Day; 364 - as for a Year).
- WindowInDays *string `json:"window_in_days,omitempty"`
+ WindowInDays *string `default:"90" json:"window_in_days"`
+}
+
+func (s SourceZuora) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZuora) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZuora) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZuora) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZuora) GetDataQuery() *SourceZuoraDataQueryType {
+ if o == nil {
+ return nil
+ }
+ return o.DataQuery
+}
+
+func (o *SourceZuora) GetSourceType() SourceZuoraZuora {
+ return SourceZuoraZuoraZuora
+}
+
+func (o *SourceZuora) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceZuora) GetTenantEndpoint() SourceZuoraTenantEndpointLocation {
+ if o == nil {
+ return SourceZuoraTenantEndpointLocation("")
+ }
+ return o.TenantEndpoint
+}
+
+func (o *SourceZuora) GetWindowInDays() *string {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/sourcezuoracreaterequest.go b/internal/sdk/pkg/models/shared/sourcezuoracreaterequest.go
old mode 100755
new mode 100644
index 72605450b..df67f85c4
--- a/internal/sdk/pkg/models/shared/sourcezuoracreaterequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezuoracreaterequest.go
@@ -9,3 +9,31 @@ type SourceZuoraCreateRequest struct {
SecretID *string `json:"secretId,omitempty"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZuoraCreateRequest) GetConfiguration() SourceZuora {
+ if o == nil {
+ return SourceZuora{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZuoraCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZuoraCreateRequest) GetSecretID() *string {
+ if o == nil {
+ return nil
+ }
+ return o.SecretID
+}
+
+func (o *SourceZuoraCreateRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezuoraputrequest.go b/internal/sdk/pkg/models/shared/sourcezuoraputrequest.go
old mode 100755
new mode 100644
index a595e0bb1..9107f2a82
--- a/internal/sdk/pkg/models/shared/sourcezuoraputrequest.go
+++ b/internal/sdk/pkg/models/shared/sourcezuoraputrequest.go
@@ -7,3 +7,24 @@ type SourceZuoraPutRequest struct {
Name string `json:"name"`
WorkspaceID string `json:"workspaceId"`
}
+
+func (o *SourceZuoraPutRequest) GetConfiguration() SourceZuoraUpdate {
+ if o == nil {
+ return SourceZuoraUpdate{}
+ }
+ return o.Configuration
+}
+
+func (o *SourceZuoraPutRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *SourceZuoraPutRequest) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
+}
diff --git a/internal/sdk/pkg/models/shared/sourcezuoraupdate.go b/internal/sdk/pkg/models/shared/sourcezuoraupdate.go
old mode 100755
new mode 100644
index b9f92c3df..372804cad
--- a/internal/sdk/pkg/models/shared/sourcezuoraupdate.go
+++ b/internal/sdk/pkg/models/shared/sourcezuoraupdate.go
@@ -3,6 +3,7 @@
package shared
import (
+ "airbyte/internal/sdk/pkg/utils"
"encoding/json"
"fmt"
)
@@ -90,11 +91,64 @@ type SourceZuoraUpdate struct {
// Your OAuth user Client Secret
ClientSecret string `json:"client_secret"`
// Choose between `Live`, or `Unlimited` - the optimized, replicated database at 12 hours freshness for high volume extraction Link
- DataQuery SourceZuoraUpdateDataQueryType `json:"data_query"`
+ DataQuery *SourceZuoraUpdateDataQueryType `default:"Live" json:"data_query"`
// Start Date in format: YYYY-MM-DD
StartDate string `json:"start_date"`
// Please choose the right endpoint where your Tenant is located. More info by this Link
TenantEndpoint SourceZuoraUpdateTenantEndpointLocation `json:"tenant_endpoint"`
// The amount of days for each data-chunk begining from start_date. Bigger the value - faster the fetch. (0.1 - as for couple of hours, 1 - as for a Day; 364 - as for a Year).
- WindowInDays *string `json:"window_in_days,omitempty"`
+ WindowInDays *string `default:"90" json:"window_in_days"`
+}
+
+func (s SourceZuoraUpdate) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(s, "", false)
+}
+
+func (s *SourceZuoraUpdate) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *SourceZuoraUpdate) GetClientID() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientID
+}
+
+func (o *SourceZuoraUpdate) GetClientSecret() string {
+ if o == nil {
+ return ""
+ }
+ return o.ClientSecret
+}
+
+func (o *SourceZuoraUpdate) GetDataQuery() *SourceZuoraUpdateDataQueryType {
+ if o == nil {
+ return nil
+ }
+ return o.DataQuery
+}
+
+func (o *SourceZuoraUpdate) GetStartDate() string {
+ if o == nil {
+ return ""
+ }
+ return o.StartDate
+}
+
+func (o *SourceZuoraUpdate) GetTenantEndpoint() SourceZuoraUpdateTenantEndpointLocation {
+ if o == nil {
+ return SourceZuoraUpdateTenantEndpointLocation("")
+ }
+ return o.TenantEndpoint
+}
+
+func (o *SourceZuoraUpdate) GetWindowInDays() *string {
+ if o == nil {
+ return nil
+ }
+ return o.WindowInDays
}
diff --git a/internal/sdk/pkg/models/shared/streamconfiguration.go b/internal/sdk/pkg/models/shared/streamconfiguration.go
old mode 100755
new mode 100644
index 5b64ec4e6..c9b91a3bd
--- a/internal/sdk/pkg/models/shared/streamconfiguration.go
+++ b/internal/sdk/pkg/models/shared/streamconfiguration.go
@@ -11,3 +11,31 @@ type StreamConfiguration struct {
PrimaryKey [][]string `json:"primaryKey,omitempty"`
SyncMode *ConnectionSyncModeEnum `json:"syncMode,omitempty"`
}
+
+func (o *StreamConfiguration) GetCursorField() []string {
+ if o == nil {
+ return nil
+ }
+ return o.CursorField
+}
+
+func (o *StreamConfiguration) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *StreamConfiguration) GetPrimaryKey() [][]string {
+ if o == nil {
+ return nil
+ }
+ return o.PrimaryKey
+}
+
+func (o *StreamConfiguration) GetSyncMode() *ConnectionSyncModeEnum {
+ if o == nil {
+ return nil
+ }
+ return o.SyncMode
+}
diff --git a/internal/sdk/pkg/models/shared/streamconfigurations.go b/internal/sdk/pkg/models/shared/streamconfigurations.go
old mode 100755
new mode 100644
index 76d2ad439..307fd5d38
--- a/internal/sdk/pkg/models/shared/streamconfigurations.go
+++ b/internal/sdk/pkg/models/shared/streamconfigurations.go
@@ -6,3 +6,10 @@ package shared
type StreamConfigurations struct {
Streams []StreamConfiguration `json:"streams,omitempty"`
}
+
+func (o *StreamConfigurations) GetStreams() []StreamConfiguration {
+ if o == nil {
+ return nil
+ }
+ return o.Streams
+}
diff --git a/internal/sdk/pkg/models/shared/streamproperties.go b/internal/sdk/pkg/models/shared/streamproperties.go
old mode 100755
new mode 100644
index 6fad8f040..e5ac76682
--- a/internal/sdk/pkg/models/shared/streamproperties.go
+++ b/internal/sdk/pkg/models/shared/streamproperties.go
@@ -11,3 +11,45 @@ type StreamProperties struct {
StreamName *string `json:"streamName,omitempty"`
SyncModes []ConnectionSyncModeEnum `json:"syncModes,omitempty"`
}
+
+func (o *StreamProperties) GetDefaultCursorField() []string {
+ if o == nil {
+ return nil
+ }
+ return o.DefaultCursorField
+}
+
+func (o *StreamProperties) GetPropertyFields() [][]string {
+ if o == nil {
+ return nil
+ }
+ return o.PropertyFields
+}
+
+func (o *StreamProperties) GetSourceDefinedCursorField() *bool {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDefinedCursorField
+}
+
+func (o *StreamProperties) GetSourceDefinedPrimaryKey() [][]string {
+ if o == nil {
+ return nil
+ }
+ return o.SourceDefinedPrimaryKey
+}
+
+func (o *StreamProperties) GetStreamName() *string {
+ if o == nil {
+ return nil
+ }
+ return o.StreamName
+}
+
+func (o *StreamProperties) GetSyncModes() []ConnectionSyncModeEnum {
+ if o == nil {
+ return nil
+ }
+ return o.SyncModes
+}
diff --git a/internal/sdk/pkg/models/shared/streampropertiesresponse.go b/internal/sdk/pkg/models/shared/streampropertiesresponse.go
old mode 100755
new mode 100644
index 5661ca882..e41b1c4c5
--- a/internal/sdk/pkg/models/shared/streampropertiesresponse.go
+++ b/internal/sdk/pkg/models/shared/streampropertiesresponse.go
@@ -6,3 +6,10 @@ package shared
type StreamPropertiesResponse struct {
Streams []StreamProperties `json:"streams,omitempty"`
}
+
+func (o *StreamPropertiesResponse) GetStreams() []StreamProperties {
+ if o == nil {
+ return nil
+ }
+ return o.Streams
+}
diff --git a/internal/sdk/pkg/models/shared/workspacecreaterequest.go b/internal/sdk/pkg/models/shared/workspacecreaterequest.go
old mode 100755
new mode 100644
index 3fae9ae53..8640a3ae8
--- a/internal/sdk/pkg/models/shared/workspacecreaterequest.go
+++ b/internal/sdk/pkg/models/shared/workspacecreaterequest.go
@@ -6,3 +6,10 @@ type WorkspaceCreateRequest struct {
// Name of the workspace
Name string `json:"name"`
}
+
+func (o *WorkspaceCreateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/models/shared/workspaceoauthcredentialsrequest.go b/internal/sdk/pkg/models/shared/workspaceoauthcredentialsrequest.go
old mode 100755
new mode 100644
index 03f2bab53..d036eb643
--- a/internal/sdk/pkg/models/shared/workspaceoauthcredentialsrequest.go
+++ b/internal/sdk/pkg/models/shared/workspaceoauthcredentialsrequest.go
@@ -11,3 +11,24 @@ type WorkspaceOAuthCredentialsRequest struct {
// The name of the source i.e. google-ads
Name string `json:"name"`
}
+
+func (o *WorkspaceOAuthCredentialsRequest) GetActorType() ActorTypeEnum {
+ if o == nil {
+ return ActorTypeEnum("")
+ }
+ return o.ActorType
+}
+
+func (o *WorkspaceOAuthCredentialsRequest) GetConfiguration() OAuthCredentialsConfiguration {
+ if o == nil {
+ return OAuthCredentialsConfiguration{}
+ }
+ return o.Configuration
+}
+
+func (o *WorkspaceOAuthCredentialsRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/models/shared/workspaceresponse.go b/internal/sdk/pkg/models/shared/workspaceresponse.go
old mode 100755
new mode 100644
index d549a480c..2f3e20fc1
--- a/internal/sdk/pkg/models/shared/workspaceresponse.go
+++ b/internal/sdk/pkg/models/shared/workspaceresponse.go
@@ -2,9 +2,45 @@
package shared
+import (
+ "airbyte/internal/sdk/pkg/utils"
+)
+
// WorkspaceResponse - Provides details of a single workspace.
type WorkspaceResponse struct {
- DataResidency GeographyEnum `json:"dataResidency"`
- Name string `json:"name"`
- WorkspaceID string `json:"workspaceId"`
+ DataResidency *GeographyEnum `default:"auto" json:"dataResidency"`
+ Name string `json:"name"`
+ WorkspaceID string `json:"workspaceId"`
+}
+
+func (w WorkspaceResponse) MarshalJSON() ([]byte, error) {
+ return utils.MarshalJSON(w, "", false)
+}
+
+func (w *WorkspaceResponse) UnmarshalJSON(data []byte) error {
+ if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (o *WorkspaceResponse) GetDataResidency() *GeographyEnum {
+ if o == nil {
+ return nil
+ }
+ return o.DataResidency
+}
+
+func (o *WorkspaceResponse) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
+
+func (o *WorkspaceResponse) GetWorkspaceID() string {
+ if o == nil {
+ return ""
+ }
+ return o.WorkspaceID
}
diff --git a/internal/sdk/pkg/models/shared/workspacesresponse.go b/internal/sdk/pkg/models/shared/workspacesresponse.go
old mode 100755
new mode 100644
index b35d3295d..1ffa3c0ef
--- a/internal/sdk/pkg/models/shared/workspacesresponse.go
+++ b/internal/sdk/pkg/models/shared/workspacesresponse.go
@@ -7,3 +7,24 @@ type WorkspacesResponse struct {
Next *string `json:"next,omitempty"`
Previous *string `json:"previous,omitempty"`
}
+
+func (o *WorkspacesResponse) GetData() []WorkspaceResponse {
+ if o == nil {
+ return []WorkspaceResponse{}
+ }
+ return o.Data
+}
+
+func (o *WorkspacesResponse) GetNext() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Next
+}
+
+func (o *WorkspacesResponse) GetPrevious() *string {
+ if o == nil {
+ return nil
+ }
+ return o.Previous
+}
diff --git a/internal/sdk/pkg/models/shared/workspaceupdaterequest.go b/internal/sdk/pkg/models/shared/workspaceupdaterequest.go
old mode 100755
new mode 100644
index a5b945625..f53d5af0d
--- a/internal/sdk/pkg/models/shared/workspaceupdaterequest.go
+++ b/internal/sdk/pkg/models/shared/workspaceupdaterequest.go
@@ -6,3 +6,10 @@ type WorkspaceUpdateRequest struct {
// Name of the workspace
Name string `json:"name"`
}
+
+func (o *WorkspaceUpdateRequest) GetName() string {
+ if o == nil {
+ return ""
+ }
+ return o.Name
+}
diff --git a/internal/sdk/pkg/types/bigint.go b/internal/sdk/pkg/types/bigint.go
old mode 100755
new mode 100644
index b37a41537..afd0cd2b8
--- a/internal/sdk/pkg/types/bigint.go
+++ b/internal/sdk/pkg/types/bigint.go
@@ -7,42 +7,15 @@ import (
"math/big"
)
-type BigInt struct {
- big.Int
-}
-
-func (b BigInt) MarshalJSON() ([]byte, error) {
- return []byte(`"` + b.String() + `"`), nil
-}
-
-func (b *BigInt) UnmarshalJSON(p []byte) error {
- if string(p) == "null" {
- return nil
- }
-
- stringVal := string(p)
- if len(stringVal) > 2 && stringVal[0] == '"' && stringVal[len(stringVal)-1] == '"' {
- stringVal = stringVal[1 : len(stringVal)-1]
- }
-
- var z big.Int
- _, ok := z.SetString(string(stringVal), 10)
- if !ok {
- return fmt.Errorf("not a valid big integer: %s", p)
- }
- b.Int = z
- return nil
-}
-
-// MustBigIntFromString provides a helper function to return a big.Int from a string
+// MustNewBigIntFromString returns an instance of big.Int from a string
// The string is assumed to be base 10 and if it is not a valid big.Int
-// then the function will return nil
-func MustBigIntFromString(s string) *BigInt {
+// then the function panics.
+// Avoid using this function in production code.
+func MustNewBigIntFromString(s string) *big.Int {
i, ok := new(big.Int).SetString(s, 10)
if !ok {
- return nil
- }
- return &BigInt{
- Int: *i,
+ panic(fmt.Errorf("failed to parse string as big.Int"))
}
+
+ return i
}
diff --git a/internal/sdk/pkg/types/date.go b/internal/sdk/pkg/types/date.go
old mode 100755
new mode 100644
index 01c69b7ac..c4648fa96
--- a/internal/sdk/pkg/types/date.go
+++ b/internal/sdk/pkg/types/date.go
@@ -67,6 +67,10 @@ func MustDateFromString(str string) Date {
return d
}
+func (d Date) GetTime() time.Time {
+ return d.Time
+}
+
func (d Date) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf(`"%s"`, d.Time.Format("2006-01-02"))), nil
}
diff --git a/internal/sdk/pkg/types/datetime.go b/internal/sdk/pkg/types/datetime.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/types/decimal.go b/internal/sdk/pkg/types/decimal.go
new file mode 100644
index 000000000..a42284b92
--- /dev/null
+++ b/internal/sdk/pkg/types/decimal.go
@@ -0,0 +1,20 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package types
+
+import (
+ "fmt"
+
+ "github.com/ericlagergren/decimal"
+)
+
+// MustNewDecimalFromString returns an instance of Decimal from a string
+// Avoid using this function in production code.
+func MustNewDecimalFromString(s string) *decimal.Big {
+ d, ok := new(decimal.Big).SetString(s)
+ if !ok {
+ panic(fmt.Errorf("failed to parse string as decimal.Big"))
+ }
+
+ return d
+}
diff --git a/internal/sdk/pkg/types/pointers.go b/internal/sdk/pkg/types/pointers.go
new file mode 100644
index 000000000..4f15e99d4
--- /dev/null
+++ b/internal/sdk/pkg/types/pointers.go
@@ -0,0 +1,10 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package types
+
+func String(s string) *string { return &s }
+func Bool(b bool) *bool { return &b }
+func Int(i int) *int { return &i }
+func Int64(i int64) *int64 { return &i }
+func Float32(f float32) *float32 { return &f }
+func Float64(f float64) *float64 { return &f }
diff --git a/internal/sdk/pkg/utils/contenttype.go b/internal/sdk/pkg/utils/contenttype.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/utils/form.go b/internal/sdk/pkg/utils/form.go
old mode 100755
new mode 100644
index 3fea5fd07..4c4666c6f
--- a/internal/sdk/pkg/utils/form.go
+++ b/internal/sdk/pkg/utils/form.go
@@ -10,6 +10,8 @@ import (
"strings"
"time"
+ "github.com/ericlagergren/decimal"
+
"airbyte/internal/sdk/pkg/types"
)
@@ -33,10 +35,10 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
formValues.Add(paramName, valToString(objValue.Interface()))
case types.Date:
formValues.Add(paramName, valToString(objValue.Interface()))
- case types.BigInt:
- formValues.Add(paramName, valToString(objValue.Interface()))
case big.Int:
formValues.Add(paramName, valToString(objValue.Interface()))
+ case decimal.Big:
+ formValues.Add(paramName, valToString(objValue.Interface()))
default:
var items []string
diff --git a/internal/sdk/pkg/utils/headers.go b/internal/sdk/pkg/utils/headers.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/utils/json.go b/internal/sdk/pkg/utils/json.go
new file mode 100644
index 000000000..59b4f8e76
--- /dev/null
+++ b/internal/sdk/pkg/utils/json.go
@@ -0,0 +1,579 @@
+// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
+
+package utils
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "math/big"
+ "reflect"
+ "strings"
+ "time"
+ "unsafe"
+
+ "airbyte/internal/sdk/pkg/types"
+
+ "github.com/ericlagergren/decimal"
+)
+
+func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) {
+ typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v))
+
+ switch {
+ case isModelType(typ):
+ if topLevel {
+ return json.Marshal(v)
+ }
+
+ if isNil(typ, val) {
+ return []byte("null"), nil
+ }
+
+ out := map[string]json.RawMessage{}
+
+ for i := 0; i < typ.NumField(); i++ {
+ field := typ.Field(i)
+ fieldVal := val.Field(i)
+
+ fieldName := field.Name
+
+ omitEmpty := false
+ jsonTag := field.Tag.Get("json")
+ if jsonTag != "" {
+ for _, tag := range strings.Split(jsonTag, ",") {
+ if tag == "omitempty" {
+ omitEmpty = true
+ } else {
+ fieldName = tag
+ }
+ }
+ }
+
+ if isNil(field.Type, fieldVal) {
+ if omitEmpty {
+ continue
+ }
+ }
+
+ if !field.IsExported() && field.Tag.Get("const") == "" {
+ continue
+ }
+
+ additionalProperties := field.Tag.Get("additionalProperties")
+ if fieldName == "-" && additionalProperties == "" {
+ continue
+ }
+
+ if additionalProperties == "true" {
+ if field.Type.Kind() != reflect.Map {
+ return nil, fmt.Errorf("additionalProperties must be a map")
+ }
+
+ for _, key := range fieldVal.MapKeys() {
+ r, err := marshalValue(fieldVal.MapIndex(key).Interface(), field.Tag)
+ if err != nil {
+ return nil, err
+ }
+
+ out[key.String()] = r
+ }
+
+ continue
+ }
+
+ var fv interface{}
+
+ if field.IsExported() {
+ fv = fieldVal.Interface()
+ } else {
+ pt := reflect.New(typ).Elem()
+ pt.Set(val)
+
+ pf := pt.Field(i)
+
+ fv = reflect.NewAt(pf.Type(), unsafe.Pointer(pf.UnsafeAddr())).Elem().Interface()
+ }
+
+ r, err := marshalValue(fv, field.Tag)
+ if err != nil {
+ return nil, err
+ }
+
+ out[fieldName] = r
+ }
+
+ return json.Marshal(out)
+ default:
+ return marshalValue(v, tag)
+ }
+}
+
+func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, disallowUnknownFields bool) error {
+ if reflect.TypeOf(v).Kind() != reflect.Ptr {
+ return fmt.Errorf("v must be a pointer")
+ }
+
+ typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v))
+
+ switch {
+ case isModelType(typ):
+ if topLevel || bytes.Equal(b, []byte("null")) {
+ d := json.NewDecoder(bytes.NewReader(b))
+ if disallowUnknownFields {
+ d.DisallowUnknownFields()
+ }
+ return d.Decode(v)
+ }
+
+ var unmarhsaled map[string]json.RawMessage
+
+ if err := json.Unmarshal(b, &unmarhsaled); err != nil {
+ return err
+ }
+
+ var additionalPropertiesField *reflect.StructField
+ var additionalPropertiesValue *reflect.Value
+
+ for i := 0; i < typ.NumField(); i++ {
+ field := typ.Field(i)
+ fieldVal := val.Field(i)
+
+ fieldName := field.Name
+
+ jsonTag := field.Tag.Get("json")
+ if jsonTag != "" {
+ for _, tag := range strings.Split(jsonTag, ",") {
+ if tag != "omitempty" {
+ fieldName = tag
+ }
+ }
+ }
+
+ if field.Tag.Get("additionalProperties") == "true" {
+ additionalPropertiesField = &field
+ additionalPropertiesValue = &fieldVal
+ continue
+ }
+
+ // If we receive a value for a const field ignore it but mark it as unmarshaled
+ if field.Tag.Get("const") != "" {
+ if r, ok := unmarhsaled[fieldName]; ok {
+ val := string(r)
+ if strings.HasPrefix(val, `"`) && strings.HasSuffix(val, `"`) {
+ val = val[1 : len(val)-1]
+ }
+ if val != field.Tag.Get("const") {
+ return fmt.Errorf("const field %s does not match expected value %s", fieldName, field.Tag.Get("const"))
+ }
+
+ delete(unmarhsaled, fieldName)
+ }
+ } else if !field.IsExported() {
+ continue
+ }
+
+ value, ok := unmarhsaled[fieldName]
+ if !ok {
+ defaultTag := field.Tag.Get("default")
+ if defaultTag != "" {
+ value = handleDefaultConstValue(defaultTag, fieldVal.Interface(), field.Tag)
+ ok = true
+ }
+ } else {
+ delete(unmarhsaled, fieldName)
+ }
+
+ if ok {
+ if err := unmarshalValue(value, fieldVal, field.Tag, disallowUnknownFields); err != nil {
+ return err
+ }
+ }
+ }
+
+ keys := make([]string, 0, len(unmarhsaled))
+ for k := range unmarhsaled {
+ keys = append(keys, k)
+ }
+
+ if len(keys) > 0 {
+ if disallowUnknownFields && (additionalPropertiesField == nil || additionalPropertiesValue == nil) {
+ return fmt.Errorf("unknown fields: %v", keys)
+ }
+
+ if additionalPropertiesField != nil && additionalPropertiesValue != nil {
+ if additionalPropertiesValue.Kind() != reflect.Map {
+ return fmt.Errorf("additionalProperties must be a map")
+ }
+
+ additionalPropertiesValue.Set(reflect.MakeMap(additionalPropertiesField.Type))
+
+ for key, value := range unmarhsaled {
+ val := reflect.New(additionalPropertiesField.Type.Elem())
+
+ if err := unmarshalValue(value, val, additionalPropertiesField.Tag, disallowUnknownFields); err != nil {
+ return err
+ }
+
+ additionalPropertiesValue.SetMapIndex(reflect.ValueOf(key), val.Elem())
+ }
+ }
+ }
+ default:
+ return unmarshalValue(b, reflect.ValueOf(v), tag, disallowUnknownFields)
+ }
+
+ return nil
+}
+
+func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) {
+ constTag := tag.Get("const")
+ if constTag != "" {
+ return handleDefaultConstValue(constTag, v, tag), nil
+ }
+
+ if isNil(reflect.TypeOf(v), reflect.ValueOf(v)) {
+ defaultTag := tag.Get("default")
+ if defaultTag != "" {
+ return handleDefaultConstValue(defaultTag, v, tag), nil
+ }
+
+ return []byte("null"), nil
+ }
+
+ typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v))
+ switch typ.Kind() {
+ case reflect.Map:
+ if isNil(typ, val) {
+ return []byte("null"), nil
+ }
+
+ out := map[string]json.RawMessage{}
+
+ for _, key := range val.MapKeys() {
+ itemVal := val.MapIndex(key)
+
+ if isNil(itemVal.Type(), itemVal) {
+ out[key.String()] = []byte("null")
+ continue
+ }
+
+ r, err := marshalValue(itemVal.Interface(), tag)
+ if err != nil {
+ return nil, err
+ }
+
+ out[key.String()] = r
+ }
+
+ return json.Marshal(out)
+ case reflect.Slice, reflect.Array:
+ if isNil(typ, val) {
+ return []byte("null"), nil
+ }
+
+ out := []json.RawMessage{}
+
+ for i := 0; i < val.Len(); i++ {
+ itemVal := val.Index(i)
+
+ if isNil(itemVal.Type(), itemVal) {
+ out = append(out, []byte("null"))
+ continue
+ }
+
+ r, err := marshalValue(itemVal.Interface(), tag)
+ if err != nil {
+ return nil, err
+ }
+
+ out = append(out, r)
+ }
+
+ return json.Marshal(out)
+ case reflect.Struct:
+ switch typ {
+ case reflect.TypeOf(time.Time{}):
+ return []byte(fmt.Sprintf(`"%s"`, val.Interface().(time.Time).Format(time.RFC3339Nano))), nil
+ case reflect.TypeOf(big.Int{}):
+ format := tag.Get("bigint")
+ if format == "string" {
+ b := val.Interface().(big.Int)
+ return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil
+ }
+ case reflect.TypeOf(decimal.Big{}):
+ format := tag.Get("decimal")
+ if format == "number" {
+ b := val.Interface().(decimal.Big)
+ f, ok := (&b).Float64()
+ if ok {
+ return []byte(b.String()), nil
+ }
+
+ return []byte(fmt.Sprintf(`%f`, f)), nil
+ }
+ }
+ }
+
+ return json.Marshal(v)
+}
+
+func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.StructTag) json.RawMessage {
+ if tagValue == "null" {
+ return []byte("null")
+ }
+
+ typ := dereferenceTypePointer(reflect.TypeOf(val))
+ switch typ {
+ case reflect.TypeOf(time.Time{}):
+ return []byte(fmt.Sprintf(`"%s"`, tagValue))
+ case reflect.TypeOf(big.Int{}):
+ bigIntTag := tag.Get("bigint")
+ if bigIntTag == "string" {
+ return []byte(fmt.Sprintf(`"%s"`, tagValue))
+ }
+ case reflect.TypeOf(decimal.Big{}):
+ decimalTag := tag.Get("decimal")
+ if decimalTag != "number" {
+ return []byte(fmt.Sprintf(`"%s"`, tagValue))
+ }
+ case reflect.TypeOf(types.Date{}):
+ return []byte(fmt.Sprintf(`"%s"`, tagValue))
+ default:
+ if typ.Kind() == reflect.String {
+ return []byte(fmt.Sprintf(`"%s"`, tagValue))
+ }
+ }
+
+ return []byte(tagValue)
+}
+
+func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag, disallowUnknownFields bool) error {
+ if bytes.Equal(value, []byte("null")) {
+ if v.CanAddr() {
+ return json.Unmarshal(value, v.Addr().Interface())
+ } else {
+ return json.Unmarshal(value, v.Interface())
+ }
+ }
+
+ typ := dereferenceTypePointer(v.Type())
+
+ switch typ.Kind() {
+ case reflect.Map:
+ if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) {
+ if v.CanAddr() {
+ return json.Unmarshal(value, v.Addr().Interface())
+ } else {
+ return json.Unmarshal(value, v.Interface())
+ }
+ }
+
+ var unmarhsaled map[string]json.RawMessage
+
+ if err := json.Unmarshal(value, &unmarhsaled); err != nil {
+ return err
+ }
+
+ m := reflect.MakeMap(typ)
+
+ for k, value := range unmarhsaled {
+ itemVal := reflect.New(typ.Elem())
+
+ if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil {
+ return err
+ }
+
+ m.SetMapIndex(reflect.ValueOf(k), itemVal.Elem())
+ }
+
+ v.Set(m)
+ return nil
+ case reflect.Slice, reflect.Array:
+ if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) {
+ if v.CanAddr() {
+ return json.Unmarshal(value, v.Addr().Interface())
+ } else {
+ return json.Unmarshal(value, v.Interface())
+ }
+ }
+
+ var unmarhsaled []json.RawMessage
+
+ if err := json.Unmarshal(value, &unmarhsaled); err != nil {
+ return err
+ }
+
+ arrVal := v
+
+ for _, value := range unmarhsaled {
+ itemVal := reflect.New(typ.Elem())
+
+ if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil {
+ return err
+ }
+
+ arrVal = reflect.Append(arrVal, itemVal.Elem())
+ }
+
+ v.Set(arrVal)
+ return nil
+ case reflect.Struct:
+ switch typ {
+ case reflect.TypeOf(time.Time{}):
+ var s string
+ if err := json.Unmarshal(value, &s); err != nil {
+ return err
+ }
+
+ t, err := time.Parse(time.RFC3339Nano, s)
+ if err != nil {
+ return fmt.Errorf("failed to parse string as time.Time: %w", err)
+ }
+
+ if v.Kind() == reflect.Ptr {
+ if v.IsNil() {
+ v.Set(reflect.New(typ))
+ }
+ v = v.Elem()
+ }
+
+ v.Set(reflect.ValueOf(t))
+ return nil
+ case reflect.TypeOf(big.Int{}):
+ var b *big.Int
+
+ format := tag.Get("bigint")
+ if format == "string" {
+ var s string
+ if err := json.Unmarshal(value, &s); err != nil {
+ return err
+ }
+
+ var ok bool
+ b, ok = new(big.Int).SetString(s, 10)
+ if !ok {
+ return fmt.Errorf("failed to parse string as big.Int")
+ }
+ } else {
+ if err := json.Unmarshal(value, &b); err != nil {
+ return err
+ }
+ }
+
+ if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr {
+ v = v.Elem()
+ }
+
+ v.Set(reflect.ValueOf(b))
+ return nil
+ case reflect.TypeOf(decimal.Big{}):
+ var d *decimal.Big
+ format := tag.Get("decimal")
+ if format == "number" {
+ var ok bool
+ d, ok = new(decimal.Big).SetString(string(value))
+ if !ok {
+ return fmt.Errorf("failed to parse number as decimal.Big")
+ }
+ } else {
+ if err := json.Unmarshal(value, &d); err != nil {
+ return err
+ }
+ }
+
+ if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr {
+ v = v.Elem()
+ }
+
+ v.Set(reflect.ValueOf(d))
+ return nil
+ case reflect.TypeOf(types.Date{}):
+ var s string
+
+ if err := json.Unmarshal(value, &s); err != nil {
+ return err
+ }
+
+ d, err := types.DateFromString(s)
+ if err != nil {
+ return fmt.Errorf("failed to parse string as types.Date: %w", err)
+ }
+
+ if v.Kind() == reflect.Ptr {
+ if v.IsNil() {
+ v.Set(reflect.New(typ))
+ }
+ v = v.Elem()
+ }
+
+ v.Set(reflect.ValueOf(d))
+ return nil
+ }
+ }
+
+ var val interface{}
+
+ if v.CanAddr() {
+ val = v.Addr().Interface()
+ } else {
+ val = v.Interface()
+ }
+
+ d := json.NewDecoder(bytes.NewReader(value))
+ if disallowUnknownFields {
+ d.DisallowUnknownFields()
+ }
+ return d.Decode(val)
+}
+
+func dereferencePointers(typ reflect.Type, val reflect.Value) (reflect.Type, reflect.Value) {
+ if typ.Kind() == reflect.Ptr {
+ typ = typ.Elem()
+ val = val.Elem()
+ } else {
+ return typ, val
+ }
+
+ return dereferencePointers(typ, val)
+}
+
+func dereferenceTypePointer(typ reflect.Type) reflect.Type {
+ if typ.Kind() == reflect.Ptr {
+ typ = typ.Elem()
+ } else {
+ return typ
+ }
+
+ return dereferenceTypePointer(typ)
+}
+
+func isComplexValueType(typ reflect.Type) bool {
+ switch typ.Kind() {
+ case reflect.Struct:
+ switch typ {
+ case reflect.TypeOf(time.Time{}):
+ fallthrough
+ case reflect.TypeOf(big.Int{}):
+ fallthrough
+ case reflect.TypeOf(decimal.Big{}):
+ fallthrough
+ case reflect.TypeOf(types.Date{}):
+ return true
+ }
+ }
+
+ return false
+}
+
+func isModelType(typ reflect.Type) bool {
+ if isComplexValueType(typ) {
+ return false
+ }
+
+ if typ.Kind() == reflect.Struct {
+ return true
+ }
+
+ return false
+}
diff --git a/internal/sdk/pkg/utils/pathparams.go b/internal/sdk/pkg/utils/pathparams.go
old mode 100755
new mode 100644
index 1e0dcac84..9c297a792
--- a/internal/sdk/pkg/utils/pathparams.go
+++ b/internal/sdk/pkg/utils/pathparams.go
@@ -5,9 +5,15 @@ package utils
import (
"context"
"fmt"
+ "math/big"
"net/url"
"reflect"
"strings"
+ "time"
+
+ "github.com/ericlagergren/decimal"
+
+ "airbyte/internal/sdk/pkg/types"
)
func GenerateURL(ctx context.Context, serverURL, path string, pathParams interface{}, globals map[string]map[string]map[string]interface{}) (string, error) {
@@ -95,31 +101,42 @@ func getSimplePathParams(ctx context.Context, parentName string, objType reflect
}
pathParams[parentName] = strings.Join(ppVals, ",")
case reflect.Struct:
- var ppVals []string
- for i := 0; i < objType.NumField(); i++ {
- fieldType := objType.Field(i)
- valType := objValue.Field(i)
-
- ppTag := parseParamTag(pathParamTagKey, fieldType, "simple", explode)
- if ppTag == nil {
- continue
- }
+ switch objValue.Interface().(type) {
+ case time.Time:
+ pathParams[parentName] = valToString(objValue.Interface())
+ case types.Date:
+ pathParams[parentName] = valToString(objValue.Interface())
+ case big.Int:
+ pathParams[parentName] = valToString(objValue.Interface())
+ case decimal.Big:
+ pathParams[parentName] = valToString(objValue.Interface())
+ default:
+ var ppVals []string
+ for i := 0; i < objType.NumField(); i++ {
+ fieldType := objType.Field(i)
+ valType := objValue.Field(i)
+
+ ppTag := parseParamTag(pathParamTagKey, fieldType, "simple", explode)
+ if ppTag == nil {
+ continue
+ }
- if isNil(fieldType.Type, valType) {
- continue
- }
+ if isNil(fieldType.Type, valType) {
+ continue
+ }
- if fieldType.Type.Kind() == reflect.Pointer {
- valType = valType.Elem()
- }
+ if fieldType.Type.Kind() == reflect.Pointer {
+ valType = valType.Elem()
+ }
- if explode {
- ppVals = append(ppVals, fmt.Sprintf("%s=%s", ppTag.ParamName, valToString(valType.Interface())))
- } else {
- ppVals = append(ppVals, fmt.Sprintf("%s,%s", ppTag.ParamName, valToString(valType.Interface())))
+ if explode {
+ ppVals = append(ppVals, fmt.Sprintf("%s=%s", ppTag.ParamName, valToString(valType.Interface())))
+ } else {
+ ppVals = append(ppVals, fmt.Sprintf("%s,%s", ppTag.ParamName, valToString(valType.Interface())))
+ }
}
+ pathParams[parentName] = strings.Join(ppVals, ",")
}
- pathParams[parentName] = strings.Join(ppVals, ",")
default:
pathParams[parentName] = valToString(objValue.Interface())
}
diff --git a/internal/sdk/pkg/utils/queryparams.go b/internal/sdk/pkg/utils/queryparams.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/utils/requestbody.go b/internal/sdk/pkg/utils/requestbody.go
old mode 100755
new mode 100644
index d9fcbdaab..950f39a31
--- a/internal/sdk/pkg/utils/requestbody.go
+++ b/internal/sdk/pkg/utils/requestbody.go
@@ -5,7 +5,6 @@ package utils
import (
"bytes"
"context"
- "encoding/json"
"fmt"
"io"
"mime/multipart"
@@ -26,12 +25,16 @@ var (
urlEncodedEncodingRegex = regexp.MustCompile(`application\/x-www-form-urlencoded.*`)
)
-func SerializeRequestBody(ctx context.Context, request interface{}, requestFieldName string, serializationMethod string) (io.Reader, string, error) {
+func SerializeRequestBody(ctx context.Context, request interface{}, nullable, optional bool, requestFieldName, serializationMethod, tag string) (io.Reader, string, error) {
requestStructType := reflect.TypeOf(request)
requestValType := reflect.ValueOf(request)
if isNil(requestStructType, requestValType) {
- return nil, "", nil
+ if !nullable && optional {
+ return nil, "", nil
+ }
+
+ return serializeContentType(requestFieldName, SerializationMethodToContentType[serializationMethod], requestValType, tag)
}
if requestStructType.Kind() == reflect.Pointer {
@@ -40,7 +43,7 @@ func SerializeRequestBody(ctx context.Context, request interface{}, requestField
}
if requestStructType.Kind() != reflect.Struct {
- return serializeContentType(requestFieldName, SerializationMethodToContentType[serializationMethod], requestValType)
+ return serializeContentType(requestFieldName, SerializationMethodToContentType[serializationMethod], requestValType, tag)
}
requestField, ok := requestStructType.FieldByName(requestFieldName)
@@ -51,23 +54,43 @@ func SerializeRequestBody(ctx context.Context, request interface{}, requestField
// request object (non-flattened)
requestVal := requestValType.FieldByName(requestFieldName)
if isNil(requestField.Type, requestVal) {
- return nil, "", nil
+ if !nullable && optional {
+ return nil, "", nil
+ }
+
+ return serializeContentType(requestFieldName, tag.MediaType, requestVal, string(requestField.Tag))
}
- return serializeContentType(requestFieldName, tag.MediaType, requestVal)
+ return serializeContentType(requestFieldName, tag.MediaType, requestVal, string(requestField.Tag))
}
}
// flattened request object
- return serializeContentType(requestFieldName, SerializationMethodToContentType[serializationMethod], requestValType)
+ return serializeContentType(requestFieldName, SerializationMethodToContentType[serializationMethod], reflect.ValueOf(request), tag)
}
-func serializeContentType(fieldName string, mediaType string, val reflect.Value) (*bytes.Buffer, string, error) {
+func serializeContentType(fieldName string, mediaType string, val reflect.Value, tag string) (*bytes.Buffer, string, error) {
buf := &bytes.Buffer{}
+ if isNil(val.Type(), val) {
+ // TODO: what does a null mean for other content types? Just returning an empty buffer for now
+ if jsonEncodingRegex.MatchString(mediaType) {
+ if _, err := buf.Write([]byte("null")); err != nil {
+ return nil, "", err
+ }
+ }
+
+ return buf, mediaType, nil
+ }
+
switch {
case jsonEncodingRegex.MatchString(mediaType):
- if err := json.NewEncoder(buf).Encode(val.Interface()); err != nil {
+ data, err := MarshalJSON(val.Interface(), reflect.StructTag(tag), true)
+ if err != nil {
+ return nil, "", err
+ }
+
+ if _, err := buf.Write(data); err != nil {
return nil, "", err
}
case multipartEncodingRegex.MatchString(mediaType):
@@ -137,7 +160,7 @@ func encodeMultipartFormData(w io.Writer, data interface{}) (string, error) {
writer.Close()
return "", err
}
- d, err := json.Marshal(valType.Interface())
+ d, err := MarshalJSON(valType.Interface(), field.Tag, true)
if err != nil {
writer.Close()
return "", err
@@ -242,7 +265,7 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error {
tag := parseFormTag(field)
if tag.JSON {
- data, err := json.Marshal(valType.Interface())
+ data, err := MarshalJSON(valType.Interface(), field.Tag, true)
if err != nil {
return err
}
diff --git a/internal/sdk/pkg/utils/retries.go b/internal/sdk/pkg/utils/retries.go
old mode 100755
new mode 100644
diff --git a/internal/sdk/pkg/utils/security.go b/internal/sdk/pkg/utils/security.go
old mode 100755
new mode 100644
index 675cd5758..fa5eff7df
--- a/internal/sdk/pkg/utils/security.go
+++ b/internal/sdk/pkg/utils/security.go
@@ -3,6 +3,7 @@
package utils
import (
+ "context"
"encoding/base64"
"fmt"
"net/http"
@@ -26,51 +27,73 @@ type securityTag struct {
SubType string
}
-type SecurityClient struct {
- client HTTPClient
+type securityConfig struct {
headers map[string]string
queryParams map[string]string
}
-func newSecurityClient(client HTTPClient) *SecurityClient {
+type SecurityClient struct {
+ HTTPClient
+ security func(ctx context.Context) (interface{}, error)
+}
+
+func newSecurityClient(client HTTPClient, security func(ctx context.Context) (interface{}, error)) *SecurityClient {
return &SecurityClient{
- client: client,
- headers: make(map[string]string),
- queryParams: make(map[string]string),
+ HTTPClient: client,
+ security: security,
}
}
func (c *SecurityClient) Do(req *http.Request) (*http.Response, error) {
- for k, v := range c.headers {
+ securityCtx, err := c.security(req.Context())
+ if err != nil {
+ return nil, err
+ }
+
+ ctx := securityConfig{
+ headers: make(map[string]string),
+ queryParams: make(map[string]string),
+ }
+ parseSecurityStruct(&ctx, securityCtx)
+
+ for k, v := range ctx.headers {
req.Header.Set(k, v)
}
queryParams := req.URL.Query()
- for k, v := range c.queryParams {
- queryParams.Set(k, v)
+ for k, v := range ctx.queryParams {
+ queryParams.Add(k, v)
}
req.URL.RawQuery = queryParams.Encode()
- return c.client.Do(req)
+ return c.HTTPClient.Do(req)
}
-func ConfigureSecurityClient(c HTTPClient, security interface{}) *SecurityClient {
- client := parseSecurityStruct(c, security)
- if client != nil {
- return client
- }
+func ConfigureSecurityClient(c HTTPClient, security func(ctx context.Context) (interface{}, error)) *SecurityClient {
+ return newSecurityClient(c, security)
+}
- return newSecurityClient(c)
+func trueReflectValue(val reflect.Value) reflect.Value {
+ kind := val.Type().Kind()
+ for kind == reflect.Interface || kind == reflect.Ptr {
+ innerVal := val.Elem()
+ if !innerVal.IsValid() {
+ break
+ }
+ val = innerVal
+ kind = val.Type().Kind()
+ }
+ return val
}
-func parseSecurityStruct(c HTTPClient, security interface{}) *SecurityClient {
- securityStructType := reflect.TypeOf(security)
- securityValType := reflect.ValueOf(security)
+func parseSecurityStruct(c *securityConfig, security interface{}) {
+ securityValType := trueReflectValue(reflect.ValueOf(security))
+ securityStructType := securityValType.Type()
if isNil(securityStructType, securityValType) {
- return nil
+ return
}
if securityStructType.Kind() == reflect.Ptr {
@@ -78,8 +101,6 @@ func parseSecurityStruct(c HTTPClient, security interface{}) *SecurityClient {
securityValType = securityValType.Elem()
}
- client := newSecurityClient(c)
-
for i := 0; i < securityStructType.NumField(); i++ {
fieldType := securityStructType.Field(i)
valType := securityValType.Field(i)
@@ -97,66 +118,51 @@ func parseSecurityStruct(c HTTPClient, security interface{}) *SecurityClient {
secTag := parseSecurityTag(fieldType)
if secTag != nil {
if secTag.Option {
- return parseSecurityOption(c, valType.Interface())
+ handleSecurityOption(c, valType.Interface())
} else if secTag.Scheme {
// Special case for basic auth which could be a flattened struct
if secTag.SubType == "basic" && kind != reflect.Struct {
- parseSecurityScheme(client, secTag, security)
- return client
+ parseSecurityScheme(c, secTag, security)
} else {
- parseSecurityScheme(client, secTag, valType.Interface())
+ parseSecurityScheme(c, secTag, valType.Interface())
}
}
}
}
-
- return client
}
-func parseSecurityOption(c HTTPClient, option interface{}) *SecurityClient {
- optionStructType := reflect.TypeOf(option)
- optionValType := reflect.ValueOf(option)
+func handleSecurityOption(c *securityConfig, option interface{}) error {
+ optionValType := trueReflectValue(reflect.ValueOf(option))
+ optionStructType := optionValType.Type()
if isNil(optionStructType, optionValType) {
return nil
}
- if optionStructType.Kind() == reflect.Ptr {
- optionStructType = optionStructType.Elem()
- optionValType = optionValType.Elem()
- }
-
- client := newSecurityClient(c)
-
for i := 0; i < optionStructType.NumField(); i++ {
fieldType := optionStructType.Field(i)
valType := optionValType.Field(i)
secTag := parseSecurityTag(fieldType)
if secTag != nil && secTag.Scheme {
- parseSecurityScheme(client, secTag, valType.Interface())
+ parseSecurityScheme(c, secTag, valType.Interface())
}
}
- return client
+ return nil
}
-func parseSecurityScheme(client *SecurityClient, schemeTag *securityTag, scheme interface{}) {
- schemeType := reflect.TypeOf(scheme)
- schemeVal := reflect.ValueOf(scheme)
+func parseSecurityScheme(client *securityConfig, schemeTag *securityTag, scheme interface{}) {
+ schemeVal := trueReflectValue(reflect.ValueOf(scheme))
+ schemeType := schemeVal.Type()
if isNil(schemeType, schemeVal) {
return
}
- if schemeType.Kind() == reflect.Ptr {
- schemeType = schemeType.Elem()
- schemeVal = schemeVal.Elem()
- }
-
if schemeType.Kind() == reflect.Struct {
if schemeTag.Type == "http" && schemeTag.SubType == "basic" {
- parseBasicAuthScheme(client, schemeVal.Interface())
+ handleBasicAuthScheme(client, schemeVal.Interface())
return
}
@@ -184,7 +190,7 @@ func parseSecurityScheme(client *SecurityClient, schemeTag *securityTag, scheme
}
}
-func parseSecuritySchemeValue(client *SecurityClient, schemeTag *securityTag, secTag *securityTag, val interface{}) {
+func parseSecuritySchemeValue(client *securityConfig, schemeTag *securityTag, secTag *securityTag, val interface{}) {
switch schemeTag.Type {
case "apiKey":
switch schemeTag.SubType {
@@ -221,7 +227,7 @@ func prefixBearer(authHeaderValue string) string {
return fmt.Sprintf("Bearer %s", authHeaderValue)
}
-func parseBasicAuthScheme(client *SecurityClient, scheme interface{}) {
+func handleBasicAuthScheme(client *securityConfig, scheme interface{}) {
schemeStructType := reflect.TypeOf(scheme)
schemeValType := reflect.ValueOf(scheme)
diff --git a/internal/sdk/pkg/utils/utils.go b/internal/sdk/pkg/utils/utils.go
old mode 100755
new mode 100644
index 7accc1699..f630a3294
--- a/internal/sdk/pkg/utils/utils.go
+++ b/internal/sdk/pkg/utils/utils.go
@@ -3,7 +3,6 @@
package utils
import (
- "encoding/json"
"fmt"
"io"
"math/big"
@@ -12,7 +11,7 @@ import (
"strings"
"time"
- "airbyte/internal/sdk/pkg/types"
+ "github.com/ericlagergren/decimal"
)
const (
@@ -32,12 +31,12 @@ var (
}
)
-func UnmarshalJsonFromResponseBody(body io.Reader, out interface{}) error {
+func UnmarshalJsonFromResponseBody(body io.Reader, out interface{}, tag string) error {
data, err := io.ReadAll(body)
if err != nil {
return fmt.Errorf("error reading response body: %w", err)
}
- if err := json.Unmarshal(data, &out); err != nil {
+ if err := UnmarshalJSON(data, out, reflect.StructTag(tag), true, false); err != nil {
return fmt.Errorf("error unmarshalling json response body: %w", err)
}
@@ -127,10 +126,10 @@ func valToString(val interface{}) string {
switch v := val.(type) {
case time.Time:
return v.Format(time.RFC3339Nano)
- case types.BigInt:
- return v.String()
case big.Int:
return v.String()
+ case decimal.Big:
+ return v.String()
default:
return fmt.Sprintf("%v", v)
}
diff --git a/internal/sdk/sdk.go b/internal/sdk/sdk.go
old mode 100755
new mode 100644
index 3f1332596..70f5dc3b4
--- a/internal/sdk/sdk.go
+++ b/internal/sdk/sdk.go
@@ -5,6 +5,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
+ "context"
"fmt"
"net/http"
"time"
@@ -42,13 +43,15 @@ func Float64(f float64) *float64 { return &f }
type sdkConfiguration struct {
DefaultClient HTTPClient
SecurityClient HTTPClient
- Security *shared.Security
+ Security func(context.Context) (interface{}, error)
ServerURL string
ServerIndex int
Language string
OpenAPIDocVersion string
SDKVersion string
GenVersion string
+ UserAgent string
+ RetryConfig *utils.RetryConfig
}
func (c *sdkConfiguration) GetServerDetails() (string, map[string]string) {
@@ -109,10 +112,31 @@ func WithClient(client HTTPClient) SDKOption {
}
}
+func withSecurity(security interface{}) func(context.Context) (interface{}, error) {
+ return func(context.Context) (interface{}, error) {
+ return &security, nil
+ }
+}
+
// WithSecurity configures the SDK to use the provided security details
func WithSecurity(security shared.Security) SDKOption {
return func(sdk *SDK) {
- sdk.sdkConfiguration.Security = &security
+ sdk.sdkConfiguration.Security = withSecurity(security)
+ }
+}
+
+// WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
+func WithSecuritySource(security func(context.Context) (shared.Security, error)) SDKOption {
+ return func(sdk *SDK) {
+ sdk.sdkConfiguration.Security = func(ctx context.Context) (interface{}, error) {
+ return security(ctx)
+ }
+ }
+}
+
+func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption {
+ return func(sdk *SDK) {
+ sdk.sdkConfiguration.RetryConfig = &retryConfig
}
}
@@ -120,10 +144,11 @@ func WithSecurity(security shared.Security) SDKOption {
func New(opts ...SDKOption) *SDK {
sdk := &SDK{
sdkConfiguration: sdkConfiguration{
- Language: "terraform",
+ Language: "go",
OpenAPIDocVersion: "1.0.0",
SDKVersion: "0.3.4",
- GenVersion: "2.108.3",
+ GenVersion: "internal",
+ UserAgent: "speakeasy-sdk/go 0.3.4 internal 1.0.0 airbyte",
},
}
for _, opt := range opts {
diff --git a/internal/sdk/sources.go b/internal/sdk/sources.go
old mode 100755
new mode 100644
index 632fff7ce..e2a4a8d98
--- a/internal/sdk/sources.go
+++ b/internal/sdk/sources.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -26,15 +27,14 @@ func newSources(sdkConfig sdkConfiguration) *sources {
// CreateSource - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSource(ctx context.Context, request shared.SourceCreateRequest) (*operations.CreateSourceResponse, error) {
+func (s *sources) CreateSource(ctx context.Context, request *shared.SourceCreateRequest) (*operations.CreateSourceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43,7 +43,7 @@ func (s *sources) CreateSource(ctx context.Context, request shared.SourceCreateR
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -76,12 +76,14 @@ func (s *sources) CreateSource(ctx context.Context, request shared.SourceCreateR
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -93,15 +95,14 @@ func (s *sources) CreateSource(ctx context.Context, request shared.SourceCreateR
// CreateSourceAha - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAha(ctx context.Context, request shared.SourceAhaCreateRequest) (*operations.CreateSourceAhaResponse, error) {
+func (s *sources) CreateSourceAha(ctx context.Context, request *shared.SourceAhaCreateRequest) (*operations.CreateSourceAhaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Aha"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -110,7 +111,7 @@ func (s *sources) CreateSourceAha(ctx context.Context, request shared.SourceAhaC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -143,12 +144,14 @@ func (s *sources) CreateSourceAha(ctx context.Context, request shared.SourceAhaC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -160,15 +163,14 @@ func (s *sources) CreateSourceAha(ctx context.Context, request shared.SourceAhaC
// CreateSourceAircall - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAircall(ctx context.Context, request shared.SourceAircallCreateRequest) (*operations.CreateSourceAircallResponse, error) {
+func (s *sources) CreateSourceAircall(ctx context.Context, request *shared.SourceAircallCreateRequest) (*operations.CreateSourceAircallResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Aircall"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -177,7 +179,7 @@ func (s *sources) CreateSourceAircall(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -210,12 +212,14 @@ func (s *sources) CreateSourceAircall(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -227,15 +231,14 @@ func (s *sources) CreateSourceAircall(ctx context.Context, request shared.Source
// CreateSourceAirtable - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAirtable(ctx context.Context, request shared.SourceAirtableCreateRequest) (*operations.CreateSourceAirtableResponse, error) {
+func (s *sources) CreateSourceAirtable(ctx context.Context, request *shared.SourceAirtableCreateRequest) (*operations.CreateSourceAirtableResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Airtable"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -244,7 +247,7 @@ func (s *sources) CreateSourceAirtable(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -277,12 +280,14 @@ func (s *sources) CreateSourceAirtable(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -294,15 +299,14 @@ func (s *sources) CreateSourceAirtable(ctx context.Context, request shared.Sourc
// CreateSourceAlloydb - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAlloydb(ctx context.Context, request shared.SourceAlloydbCreateRequest) (*operations.CreateSourceAlloydbResponse, error) {
+func (s *sources) CreateSourceAlloydb(ctx context.Context, request *shared.SourceAlloydbCreateRequest) (*operations.CreateSourceAlloydbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Alloydb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -311,7 +315,7 @@ func (s *sources) CreateSourceAlloydb(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -344,12 +348,14 @@ func (s *sources) CreateSourceAlloydb(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -361,15 +367,14 @@ func (s *sources) CreateSourceAlloydb(ctx context.Context, request shared.Source
// CreateSourceAmazonAds - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAmazonAds(ctx context.Context, request shared.SourceAmazonAdsCreateRequest) (*operations.CreateSourceAmazonAdsResponse, error) {
+func (s *sources) CreateSourceAmazonAds(ctx context.Context, request *shared.SourceAmazonAdsCreateRequest) (*operations.CreateSourceAmazonAdsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AmazonAds"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -378,7 +383,7 @@ func (s *sources) CreateSourceAmazonAds(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -411,12 +416,14 @@ func (s *sources) CreateSourceAmazonAds(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -428,15 +435,14 @@ func (s *sources) CreateSourceAmazonAds(ctx context.Context, request shared.Sour
// CreateSourceAmazonSellerPartner - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAmazonSellerPartner(ctx context.Context, request shared.SourceAmazonSellerPartnerCreateRequest) (*operations.CreateSourceAmazonSellerPartnerResponse, error) {
+func (s *sources) CreateSourceAmazonSellerPartner(ctx context.Context, request *shared.SourceAmazonSellerPartnerCreateRequest) (*operations.CreateSourceAmazonSellerPartnerResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AmazonSellerPartner"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -445,7 +451,7 @@ func (s *sources) CreateSourceAmazonSellerPartner(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -478,12 +484,14 @@ func (s *sources) CreateSourceAmazonSellerPartner(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -495,15 +503,14 @@ func (s *sources) CreateSourceAmazonSellerPartner(ctx context.Context, request s
// CreateSourceAmazonSqs - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAmazonSqs(ctx context.Context, request shared.SourceAmazonSqsCreateRequest) (*operations.CreateSourceAmazonSqsResponse, error) {
+func (s *sources) CreateSourceAmazonSqs(ctx context.Context, request *shared.SourceAmazonSqsCreateRequest) (*operations.CreateSourceAmazonSqsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AmazonSqs"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -512,7 +519,7 @@ func (s *sources) CreateSourceAmazonSqs(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -545,12 +552,14 @@ func (s *sources) CreateSourceAmazonSqs(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -562,15 +571,14 @@ func (s *sources) CreateSourceAmazonSqs(ctx context.Context, request shared.Sour
// CreateSourceAmplitude - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAmplitude(ctx context.Context, request shared.SourceAmplitudeCreateRequest) (*operations.CreateSourceAmplitudeResponse, error) {
+func (s *sources) CreateSourceAmplitude(ctx context.Context, request *shared.SourceAmplitudeCreateRequest) (*operations.CreateSourceAmplitudeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Amplitude"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -579,7 +587,7 @@ func (s *sources) CreateSourceAmplitude(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -612,12 +620,14 @@ func (s *sources) CreateSourceAmplitude(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -629,15 +639,14 @@ func (s *sources) CreateSourceAmplitude(ctx context.Context, request shared.Sour
// CreateSourceApifyDataset - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceApifyDataset(ctx context.Context, request shared.SourceApifyDatasetCreateRequest) (*operations.CreateSourceApifyDatasetResponse, error) {
+func (s *sources) CreateSourceApifyDataset(ctx context.Context, request *shared.SourceApifyDatasetCreateRequest) (*operations.CreateSourceApifyDatasetResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ApifyDataset"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -646,7 +655,7 @@ func (s *sources) CreateSourceApifyDataset(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -679,12 +688,14 @@ func (s *sources) CreateSourceApifyDataset(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -696,15 +707,14 @@ func (s *sources) CreateSourceApifyDataset(ctx context.Context, request shared.S
// CreateSourceAppfollow - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAppfollow(ctx context.Context, request shared.SourceAppfollowCreateRequest) (*operations.CreateSourceAppfollowResponse, error) {
+func (s *sources) CreateSourceAppfollow(ctx context.Context, request *shared.SourceAppfollowCreateRequest) (*operations.CreateSourceAppfollowResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Appfollow"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -713,7 +723,7 @@ func (s *sources) CreateSourceAppfollow(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -746,12 +756,14 @@ func (s *sources) CreateSourceAppfollow(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -763,15 +775,14 @@ func (s *sources) CreateSourceAppfollow(ctx context.Context, request shared.Sour
// CreateSourceAsana - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAsana(ctx context.Context, request shared.SourceAsanaCreateRequest) (*operations.CreateSourceAsanaResponse, error) {
+func (s *sources) CreateSourceAsana(ctx context.Context, request *shared.SourceAsanaCreateRequest) (*operations.CreateSourceAsanaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Asana"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -780,7 +791,7 @@ func (s *sources) CreateSourceAsana(ctx context.Context, request shared.SourceAs
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -813,12 +824,14 @@ func (s *sources) CreateSourceAsana(ctx context.Context, request shared.SourceAs
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -830,15 +843,14 @@ func (s *sources) CreateSourceAsana(ctx context.Context, request shared.SourceAs
// CreateSourceAuth0 - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAuth0(ctx context.Context, request shared.SourceAuth0CreateRequest) (*operations.CreateSourceAuth0Response, error) {
+func (s *sources) CreateSourceAuth0(ctx context.Context, request *shared.SourceAuth0CreateRequest) (*operations.CreateSourceAuth0Response, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Auth0"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -847,7 +859,7 @@ func (s *sources) CreateSourceAuth0(ctx context.Context, request shared.SourceAu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -880,12 +892,14 @@ func (s *sources) CreateSourceAuth0(ctx context.Context, request shared.SourceAu
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -897,15 +911,14 @@ func (s *sources) CreateSourceAuth0(ctx context.Context, request shared.SourceAu
// CreateSourceAwsCloudtrail - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAwsCloudtrail(ctx context.Context, request shared.SourceAwsCloudtrailCreateRequest) (*operations.CreateSourceAwsCloudtrailResponse, error) {
+func (s *sources) CreateSourceAwsCloudtrail(ctx context.Context, request *shared.SourceAwsCloudtrailCreateRequest) (*operations.CreateSourceAwsCloudtrailResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AwsCloudtrail"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -914,7 +927,7 @@ func (s *sources) CreateSourceAwsCloudtrail(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -947,12 +960,14 @@ func (s *sources) CreateSourceAwsCloudtrail(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -964,15 +979,14 @@ func (s *sources) CreateSourceAwsCloudtrail(ctx context.Context, request shared.
// CreateSourceAzureBlobStorage - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAzureBlobStorage(ctx context.Context, request shared.SourceAzureBlobStorageCreateRequest) (*operations.CreateSourceAzureBlobStorageResponse, error) {
+func (s *sources) CreateSourceAzureBlobStorage(ctx context.Context, request *shared.SourceAzureBlobStorageCreateRequest) (*operations.CreateSourceAzureBlobStorageResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AzureBlobStorage"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -981,7 +995,7 @@ func (s *sources) CreateSourceAzureBlobStorage(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1014,12 +1028,14 @@ func (s *sources) CreateSourceAzureBlobStorage(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1031,15 +1047,14 @@ func (s *sources) CreateSourceAzureBlobStorage(ctx context.Context, request shar
// CreateSourceAzureTable - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceAzureTable(ctx context.Context, request shared.SourceAzureTableCreateRequest) (*operations.CreateSourceAzureTableResponse, error) {
+func (s *sources) CreateSourceAzureTable(ctx context.Context, request *shared.SourceAzureTableCreateRequest) (*operations.CreateSourceAzureTableResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#AzureTable"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1048,7 +1063,7 @@ func (s *sources) CreateSourceAzureTable(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1081,12 +1096,14 @@ func (s *sources) CreateSourceAzureTable(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1098,15 +1115,14 @@ func (s *sources) CreateSourceAzureTable(ctx context.Context, request shared.Sou
// CreateSourceBambooHr - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBambooHr(ctx context.Context, request shared.SourceBambooHrCreateRequest) (*operations.CreateSourceBambooHrResponse, error) {
+func (s *sources) CreateSourceBambooHr(ctx context.Context, request *shared.SourceBambooHrCreateRequest) (*operations.CreateSourceBambooHrResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#BambooHr"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1115,7 +1131,7 @@ func (s *sources) CreateSourceBambooHr(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1148,12 +1164,14 @@ func (s *sources) CreateSourceBambooHr(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1165,15 +1183,14 @@ func (s *sources) CreateSourceBambooHr(ctx context.Context, request shared.Sourc
// CreateSourceBigcommerce - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBigcommerce(ctx context.Context, request shared.SourceBigcommerceCreateRequest) (*operations.CreateSourceBigcommerceResponse, error) {
+func (s *sources) CreateSourceBigcommerce(ctx context.Context, request *shared.SourceBigcommerceCreateRequest) (*operations.CreateSourceBigcommerceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Bigcommerce"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1182,7 +1199,7 @@ func (s *sources) CreateSourceBigcommerce(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1215,12 +1232,14 @@ func (s *sources) CreateSourceBigcommerce(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1232,15 +1251,14 @@ func (s *sources) CreateSourceBigcommerce(ctx context.Context, request shared.So
// CreateSourceBigquery - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBigquery(ctx context.Context, request shared.SourceBigqueryCreateRequest) (*operations.CreateSourceBigqueryResponse, error) {
+func (s *sources) CreateSourceBigquery(ctx context.Context, request *shared.SourceBigqueryCreateRequest) (*operations.CreateSourceBigqueryResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Bigquery"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1249,7 +1267,7 @@ func (s *sources) CreateSourceBigquery(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1282,12 +1300,14 @@ func (s *sources) CreateSourceBigquery(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1299,15 +1319,14 @@ func (s *sources) CreateSourceBigquery(ctx context.Context, request shared.Sourc
// CreateSourceBingAds - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBingAds(ctx context.Context, request shared.SourceBingAdsCreateRequest) (*operations.CreateSourceBingAdsResponse, error) {
+func (s *sources) CreateSourceBingAds(ctx context.Context, request *shared.SourceBingAdsCreateRequest) (*operations.CreateSourceBingAdsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#BingAds"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1316,7 +1335,7 @@ func (s *sources) CreateSourceBingAds(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1349,12 +1368,14 @@ func (s *sources) CreateSourceBingAds(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1366,15 +1387,14 @@ func (s *sources) CreateSourceBingAds(ctx context.Context, request shared.Source
// CreateSourceBraintree - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBraintree(ctx context.Context, request shared.SourceBraintreeCreateRequest) (*operations.CreateSourceBraintreeResponse, error) {
+func (s *sources) CreateSourceBraintree(ctx context.Context, request *shared.SourceBraintreeCreateRequest) (*operations.CreateSourceBraintreeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Braintree"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1383,7 +1403,7 @@ func (s *sources) CreateSourceBraintree(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1416,12 +1436,14 @@ func (s *sources) CreateSourceBraintree(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1433,15 +1455,14 @@ func (s *sources) CreateSourceBraintree(ctx context.Context, request shared.Sour
// CreateSourceBraze - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceBraze(ctx context.Context, request shared.SourceBrazeCreateRequest) (*operations.CreateSourceBrazeResponse, error) {
+func (s *sources) CreateSourceBraze(ctx context.Context, request *shared.SourceBrazeCreateRequest) (*operations.CreateSourceBrazeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Braze"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1450,7 +1471,7 @@ func (s *sources) CreateSourceBraze(ctx context.Context, request shared.SourceBr
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1483,12 +1504,14 @@ func (s *sources) CreateSourceBraze(ctx context.Context, request shared.SourceBr
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1500,15 +1523,14 @@ func (s *sources) CreateSourceBraze(ctx context.Context, request shared.SourceBr
// CreateSourceChargebee - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceChargebee(ctx context.Context, request shared.SourceChargebeeCreateRequest) (*operations.CreateSourceChargebeeResponse, error) {
+func (s *sources) CreateSourceChargebee(ctx context.Context, request *shared.SourceChargebeeCreateRequest) (*operations.CreateSourceChargebeeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Chargebee"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1517,7 +1539,7 @@ func (s *sources) CreateSourceChargebee(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1550,12 +1572,14 @@ func (s *sources) CreateSourceChargebee(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1567,15 +1591,14 @@ func (s *sources) CreateSourceChargebee(ctx context.Context, request shared.Sour
// CreateSourceChartmogul - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceChartmogul(ctx context.Context, request shared.SourceChartmogulCreateRequest) (*operations.CreateSourceChartmogulResponse, error) {
+func (s *sources) CreateSourceChartmogul(ctx context.Context, request *shared.SourceChartmogulCreateRequest) (*operations.CreateSourceChartmogulResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Chartmogul"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1584,7 +1607,7 @@ func (s *sources) CreateSourceChartmogul(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1617,12 +1640,14 @@ func (s *sources) CreateSourceChartmogul(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1634,15 +1659,14 @@ func (s *sources) CreateSourceChartmogul(ctx context.Context, request shared.Sou
// CreateSourceClickhouse - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceClickhouse(ctx context.Context, request shared.SourceClickhouseCreateRequest) (*operations.CreateSourceClickhouseResponse, error) {
+func (s *sources) CreateSourceClickhouse(ctx context.Context, request *shared.SourceClickhouseCreateRequest) (*operations.CreateSourceClickhouseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Clickhouse"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1651,7 +1675,7 @@ func (s *sources) CreateSourceClickhouse(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1684,12 +1708,14 @@ func (s *sources) CreateSourceClickhouse(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1701,15 +1727,14 @@ func (s *sources) CreateSourceClickhouse(ctx context.Context, request shared.Sou
// CreateSourceClickupAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceClickupAPI(ctx context.Context, request shared.SourceClickupAPICreateRequest) (*operations.CreateSourceClickupAPIResponse, error) {
+func (s *sources) CreateSourceClickupAPI(ctx context.Context, request *shared.SourceClickupAPICreateRequest) (*operations.CreateSourceClickupAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ClickupApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1718,7 +1743,7 @@ func (s *sources) CreateSourceClickupAPI(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1751,12 +1776,14 @@ func (s *sources) CreateSourceClickupAPI(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1768,15 +1795,14 @@ func (s *sources) CreateSourceClickupAPI(ctx context.Context, request shared.Sou
// CreateSourceClockify - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceClockify(ctx context.Context, request shared.SourceClockifyCreateRequest) (*operations.CreateSourceClockifyResponse, error) {
+func (s *sources) CreateSourceClockify(ctx context.Context, request *shared.SourceClockifyCreateRequest) (*operations.CreateSourceClockifyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Clockify"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1785,7 +1811,7 @@ func (s *sources) CreateSourceClockify(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1818,12 +1844,14 @@ func (s *sources) CreateSourceClockify(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1835,15 +1863,14 @@ func (s *sources) CreateSourceClockify(ctx context.Context, request shared.Sourc
// CreateSourceCloseCom - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceCloseCom(ctx context.Context, request shared.SourceCloseComCreateRequest) (*operations.CreateSourceCloseComResponse, error) {
+func (s *sources) CreateSourceCloseCom(ctx context.Context, request *shared.SourceCloseComCreateRequest) (*operations.CreateSourceCloseComResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#CloseCom"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1852,7 +1879,7 @@ func (s *sources) CreateSourceCloseCom(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1885,12 +1912,14 @@ func (s *sources) CreateSourceCloseCom(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1902,15 +1931,14 @@ func (s *sources) CreateSourceCloseCom(ctx context.Context, request shared.Sourc
// CreateSourceCoda - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceCoda(ctx context.Context, request shared.SourceCodaCreateRequest) (*operations.CreateSourceCodaResponse, error) {
+func (s *sources) CreateSourceCoda(ctx context.Context, request *shared.SourceCodaCreateRequest) (*operations.CreateSourceCodaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Coda"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1919,7 +1947,7 @@ func (s *sources) CreateSourceCoda(ctx context.Context, request shared.SourceCod
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -1952,12 +1980,14 @@ func (s *sources) CreateSourceCoda(ctx context.Context, request shared.SourceCod
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -1969,15 +1999,14 @@ func (s *sources) CreateSourceCoda(ctx context.Context, request shared.SourceCod
// CreateSourceCoinAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceCoinAPI(ctx context.Context, request shared.SourceCoinAPICreateRequest) (*operations.CreateSourceCoinAPIResponse, error) {
+func (s *sources) CreateSourceCoinAPI(ctx context.Context, request *shared.SourceCoinAPICreateRequest) (*operations.CreateSourceCoinAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#CoinApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -1986,7 +2015,7 @@ func (s *sources) CreateSourceCoinAPI(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2019,12 +2048,14 @@ func (s *sources) CreateSourceCoinAPI(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2036,15 +2067,14 @@ func (s *sources) CreateSourceCoinAPI(ctx context.Context, request shared.Source
// CreateSourceCoinmarketcap - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceCoinmarketcap(ctx context.Context, request shared.SourceCoinmarketcapCreateRequest) (*operations.CreateSourceCoinmarketcapResponse, error) {
+func (s *sources) CreateSourceCoinmarketcap(ctx context.Context, request *shared.SourceCoinmarketcapCreateRequest) (*operations.CreateSourceCoinmarketcapResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Coinmarketcap"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2053,7 +2083,7 @@ func (s *sources) CreateSourceCoinmarketcap(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2086,12 +2116,14 @@ func (s *sources) CreateSourceCoinmarketcap(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2103,15 +2135,14 @@ func (s *sources) CreateSourceCoinmarketcap(ctx context.Context, request shared.
// CreateSourceConfigcat - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceConfigcat(ctx context.Context, request shared.SourceConfigcatCreateRequest) (*operations.CreateSourceConfigcatResponse, error) {
+func (s *sources) CreateSourceConfigcat(ctx context.Context, request *shared.SourceConfigcatCreateRequest) (*operations.CreateSourceConfigcatResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Configcat"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2120,7 +2151,7 @@ func (s *sources) CreateSourceConfigcat(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2153,12 +2184,14 @@ func (s *sources) CreateSourceConfigcat(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2170,15 +2203,14 @@ func (s *sources) CreateSourceConfigcat(ctx context.Context, request shared.Sour
// CreateSourceConfluence - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceConfluence(ctx context.Context, request shared.SourceConfluenceCreateRequest) (*operations.CreateSourceConfluenceResponse, error) {
+func (s *sources) CreateSourceConfluence(ctx context.Context, request *shared.SourceConfluenceCreateRequest) (*operations.CreateSourceConfluenceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Confluence"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2187,7 +2219,7 @@ func (s *sources) CreateSourceConfluence(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2220,12 +2252,14 @@ func (s *sources) CreateSourceConfluence(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2237,15 +2271,14 @@ func (s *sources) CreateSourceConfluence(ctx context.Context, request shared.Sou
// CreateSourceConvex - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceConvex(ctx context.Context, request shared.SourceConvexCreateRequest) (*operations.CreateSourceConvexResponse, error) {
+func (s *sources) CreateSourceConvex(ctx context.Context, request *shared.SourceConvexCreateRequest) (*operations.CreateSourceConvexResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Convex"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2254,7 +2287,7 @@ func (s *sources) CreateSourceConvex(ctx context.Context, request shared.SourceC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2287,12 +2320,14 @@ func (s *sources) CreateSourceConvex(ctx context.Context, request shared.SourceC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2304,15 +2339,14 @@ func (s *sources) CreateSourceConvex(ctx context.Context, request shared.SourceC
// CreateSourceDatascope - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDatascope(ctx context.Context, request shared.SourceDatascopeCreateRequest) (*operations.CreateSourceDatascopeResponse, error) {
+func (s *sources) CreateSourceDatascope(ctx context.Context, request *shared.SourceDatascopeCreateRequest) (*operations.CreateSourceDatascopeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Datascope"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2321,7 +2355,7 @@ func (s *sources) CreateSourceDatascope(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2354,12 +2388,14 @@ func (s *sources) CreateSourceDatascope(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2371,15 +2407,14 @@ func (s *sources) CreateSourceDatascope(ctx context.Context, request shared.Sour
// CreateSourceDelighted - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDelighted(ctx context.Context, request shared.SourceDelightedCreateRequest) (*operations.CreateSourceDelightedResponse, error) {
+func (s *sources) CreateSourceDelighted(ctx context.Context, request *shared.SourceDelightedCreateRequest) (*operations.CreateSourceDelightedResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Delighted"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2388,7 +2423,7 @@ func (s *sources) CreateSourceDelighted(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2421,12 +2456,14 @@ func (s *sources) CreateSourceDelighted(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2438,15 +2475,14 @@ func (s *sources) CreateSourceDelighted(ctx context.Context, request shared.Sour
// CreateSourceDixa - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDixa(ctx context.Context, request shared.SourceDixaCreateRequest) (*operations.CreateSourceDixaResponse, error) {
+func (s *sources) CreateSourceDixa(ctx context.Context, request *shared.SourceDixaCreateRequest) (*operations.CreateSourceDixaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Dixa"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2455,7 +2491,7 @@ func (s *sources) CreateSourceDixa(ctx context.Context, request shared.SourceDix
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2488,12 +2524,14 @@ func (s *sources) CreateSourceDixa(ctx context.Context, request shared.SourceDix
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2505,15 +2543,14 @@ func (s *sources) CreateSourceDixa(ctx context.Context, request shared.SourceDix
// CreateSourceDockerhub - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDockerhub(ctx context.Context, request shared.SourceDockerhubCreateRequest) (*operations.CreateSourceDockerhubResponse, error) {
+func (s *sources) CreateSourceDockerhub(ctx context.Context, request *shared.SourceDockerhubCreateRequest) (*operations.CreateSourceDockerhubResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Dockerhub"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2522,7 +2559,7 @@ func (s *sources) CreateSourceDockerhub(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2555,12 +2592,14 @@ func (s *sources) CreateSourceDockerhub(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2572,15 +2611,14 @@ func (s *sources) CreateSourceDockerhub(ctx context.Context, request shared.Sour
// CreateSourceDremio - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDremio(ctx context.Context, request shared.SourceDremioCreateRequest) (*operations.CreateSourceDremioResponse, error) {
+func (s *sources) CreateSourceDremio(ctx context.Context, request *shared.SourceDremioCreateRequest) (*operations.CreateSourceDremioResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Dremio"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2589,7 +2627,7 @@ func (s *sources) CreateSourceDremio(ctx context.Context, request shared.SourceD
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2622,12 +2660,14 @@ func (s *sources) CreateSourceDremio(ctx context.Context, request shared.SourceD
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2639,15 +2679,14 @@ func (s *sources) CreateSourceDremio(ctx context.Context, request shared.SourceD
// CreateSourceDynamodb - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceDynamodb(ctx context.Context, request shared.SourceDynamodbCreateRequest) (*operations.CreateSourceDynamodbResponse, error) {
+func (s *sources) CreateSourceDynamodb(ctx context.Context, request *shared.SourceDynamodbCreateRequest) (*operations.CreateSourceDynamodbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Dynamodb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2656,7 +2695,7 @@ func (s *sources) CreateSourceDynamodb(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2689,12 +2728,14 @@ func (s *sources) CreateSourceDynamodb(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2706,15 +2747,14 @@ func (s *sources) CreateSourceDynamodb(ctx context.Context, request shared.Sourc
// CreateSourceE2eTestCloud - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceE2eTestCloud(ctx context.Context, request shared.SourceE2eTestCloudCreateRequest) (*operations.CreateSourceE2eTestCloudResponse, error) {
+func (s *sources) CreateSourceE2eTestCloud(ctx context.Context, request *shared.SourceE2eTestCloudCreateRequest) (*operations.CreateSourceE2eTestCloudResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#E2eTestCloud"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2723,7 +2763,7 @@ func (s *sources) CreateSourceE2eTestCloud(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2756,12 +2796,14 @@ func (s *sources) CreateSourceE2eTestCloud(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2773,15 +2815,14 @@ func (s *sources) CreateSourceE2eTestCloud(ctx context.Context, request shared.S
// CreateSourceEmailoctopus - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceEmailoctopus(ctx context.Context, request shared.SourceEmailoctopusCreateRequest) (*operations.CreateSourceEmailoctopusResponse, error) {
+func (s *sources) CreateSourceEmailoctopus(ctx context.Context, request *shared.SourceEmailoctopusCreateRequest) (*operations.CreateSourceEmailoctopusResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Emailoctopus"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2790,7 +2831,7 @@ func (s *sources) CreateSourceEmailoctopus(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2823,12 +2864,14 @@ func (s *sources) CreateSourceEmailoctopus(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2840,15 +2883,14 @@ func (s *sources) CreateSourceEmailoctopus(ctx context.Context, request shared.S
// CreateSourceExchangeRates - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceExchangeRates(ctx context.Context, request shared.SourceExchangeRatesCreateRequest) (*operations.CreateSourceExchangeRatesResponse, error) {
+func (s *sources) CreateSourceExchangeRates(ctx context.Context, request *shared.SourceExchangeRatesCreateRequest) (*operations.CreateSourceExchangeRatesResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ExchangeRates"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2857,7 +2899,7 @@ func (s *sources) CreateSourceExchangeRates(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2890,12 +2932,14 @@ func (s *sources) CreateSourceExchangeRates(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2907,15 +2951,14 @@ func (s *sources) CreateSourceExchangeRates(ctx context.Context, request shared.
// CreateSourceFacebookMarketing - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFacebookMarketing(ctx context.Context, request shared.SourceFacebookMarketingCreateRequest) (*operations.CreateSourceFacebookMarketingResponse, error) {
+func (s *sources) CreateSourceFacebookMarketing(ctx context.Context, request *shared.SourceFacebookMarketingCreateRequest) (*operations.CreateSourceFacebookMarketingResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#FacebookMarketing"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2924,7 +2967,7 @@ func (s *sources) CreateSourceFacebookMarketing(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -2957,12 +3000,14 @@ func (s *sources) CreateSourceFacebookMarketing(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -2974,15 +3019,14 @@ func (s *sources) CreateSourceFacebookMarketing(ctx context.Context, request sha
// CreateSourceFacebookPages - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFacebookPages(ctx context.Context, request shared.SourceFacebookPagesCreateRequest) (*operations.CreateSourceFacebookPagesResponse, error) {
+func (s *sources) CreateSourceFacebookPages(ctx context.Context, request *shared.SourceFacebookPagesCreateRequest) (*operations.CreateSourceFacebookPagesResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#FacebookPages"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -2991,7 +3035,7 @@ func (s *sources) CreateSourceFacebookPages(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3024,12 +3068,14 @@ func (s *sources) CreateSourceFacebookPages(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3041,15 +3087,14 @@ func (s *sources) CreateSourceFacebookPages(ctx context.Context, request shared.
// CreateSourceFaker - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFaker(ctx context.Context, request shared.SourceFakerCreateRequest) (*operations.CreateSourceFakerResponse, error) {
+func (s *sources) CreateSourceFaker(ctx context.Context, request *shared.SourceFakerCreateRequest) (*operations.CreateSourceFakerResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Faker"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3058,7 +3103,7 @@ func (s *sources) CreateSourceFaker(ctx context.Context, request shared.SourceFa
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3091,12 +3136,14 @@ func (s *sources) CreateSourceFaker(ctx context.Context, request shared.SourceFa
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3108,15 +3155,14 @@ func (s *sources) CreateSourceFaker(ctx context.Context, request shared.SourceFa
// CreateSourceFauna - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFauna(ctx context.Context, request shared.SourceFaunaCreateRequest) (*operations.CreateSourceFaunaResponse, error) {
+func (s *sources) CreateSourceFauna(ctx context.Context, request *shared.SourceFaunaCreateRequest) (*operations.CreateSourceFaunaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Fauna"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3125,7 +3171,7 @@ func (s *sources) CreateSourceFauna(ctx context.Context, request shared.SourceFa
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3158,12 +3204,14 @@ func (s *sources) CreateSourceFauna(ctx context.Context, request shared.SourceFa
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3175,15 +3223,14 @@ func (s *sources) CreateSourceFauna(ctx context.Context, request shared.SourceFa
// CreateSourceFileSecure - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFileSecure(ctx context.Context, request shared.SourceFileSecureCreateRequest) (*operations.CreateSourceFileSecureResponse, error) {
+func (s *sources) CreateSourceFileSecure(ctx context.Context, request *shared.SourceFileSecureCreateRequest) (*operations.CreateSourceFileSecureResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#FileSecure"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3192,7 +3239,7 @@ func (s *sources) CreateSourceFileSecure(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3225,12 +3272,14 @@ func (s *sources) CreateSourceFileSecure(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3242,15 +3291,14 @@ func (s *sources) CreateSourceFileSecure(ctx context.Context, request shared.Sou
// CreateSourceFirebolt - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFirebolt(ctx context.Context, request shared.SourceFireboltCreateRequest) (*operations.CreateSourceFireboltResponse, error) {
+func (s *sources) CreateSourceFirebolt(ctx context.Context, request *shared.SourceFireboltCreateRequest) (*operations.CreateSourceFireboltResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Firebolt"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3259,7 +3307,7 @@ func (s *sources) CreateSourceFirebolt(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3292,12 +3340,14 @@ func (s *sources) CreateSourceFirebolt(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3309,15 +3359,14 @@ func (s *sources) CreateSourceFirebolt(ctx context.Context, request shared.Sourc
// CreateSourceFreshcaller - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFreshcaller(ctx context.Context, request shared.SourceFreshcallerCreateRequest) (*operations.CreateSourceFreshcallerResponse, error) {
+func (s *sources) CreateSourceFreshcaller(ctx context.Context, request *shared.SourceFreshcallerCreateRequest) (*operations.CreateSourceFreshcallerResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Freshcaller"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3326,7 +3375,7 @@ func (s *sources) CreateSourceFreshcaller(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3359,12 +3408,14 @@ func (s *sources) CreateSourceFreshcaller(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3376,15 +3427,14 @@ func (s *sources) CreateSourceFreshcaller(ctx context.Context, request shared.So
// CreateSourceFreshdesk - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFreshdesk(ctx context.Context, request shared.SourceFreshdeskCreateRequest) (*operations.CreateSourceFreshdeskResponse, error) {
+func (s *sources) CreateSourceFreshdesk(ctx context.Context, request *shared.SourceFreshdeskCreateRequest) (*operations.CreateSourceFreshdeskResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Freshdesk"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3393,7 +3443,7 @@ func (s *sources) CreateSourceFreshdesk(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3426,12 +3476,14 @@ func (s *sources) CreateSourceFreshdesk(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3443,15 +3495,14 @@ func (s *sources) CreateSourceFreshdesk(ctx context.Context, request shared.Sour
// CreateSourceFreshsales - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceFreshsales(ctx context.Context, request shared.SourceFreshsalesCreateRequest) (*operations.CreateSourceFreshsalesResponse, error) {
+func (s *sources) CreateSourceFreshsales(ctx context.Context, request *shared.SourceFreshsalesCreateRequest) (*operations.CreateSourceFreshsalesResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Freshsales"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3460,7 +3511,7 @@ func (s *sources) CreateSourceFreshsales(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3493,12 +3544,14 @@ func (s *sources) CreateSourceFreshsales(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3510,15 +3563,14 @@ func (s *sources) CreateSourceFreshsales(ctx context.Context, request shared.Sou
// CreateSourceGainsightPx - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGainsightPx(ctx context.Context, request shared.SourceGainsightPxCreateRequest) (*operations.CreateSourceGainsightPxResponse, error) {
+func (s *sources) CreateSourceGainsightPx(ctx context.Context, request *shared.SourceGainsightPxCreateRequest) (*operations.CreateSourceGainsightPxResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GainsightPx"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3527,7 +3579,7 @@ func (s *sources) CreateSourceGainsightPx(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3560,12 +3612,14 @@ func (s *sources) CreateSourceGainsightPx(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3577,15 +3631,14 @@ func (s *sources) CreateSourceGainsightPx(ctx context.Context, request shared.So
// CreateSourceGcs - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGcs(ctx context.Context, request shared.SourceGcsCreateRequest) (*operations.CreateSourceGcsResponse, error) {
+func (s *sources) CreateSourceGcs(ctx context.Context, request *shared.SourceGcsCreateRequest) (*operations.CreateSourceGcsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Gcs"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3594,7 +3647,7 @@ func (s *sources) CreateSourceGcs(ctx context.Context, request shared.SourceGcsC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3627,12 +3680,14 @@ func (s *sources) CreateSourceGcs(ctx context.Context, request shared.SourceGcsC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3644,15 +3699,14 @@ func (s *sources) CreateSourceGcs(ctx context.Context, request shared.SourceGcsC
// CreateSourceGetlago - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGetlago(ctx context.Context, request shared.SourceGetlagoCreateRequest) (*operations.CreateSourceGetlagoResponse, error) {
+func (s *sources) CreateSourceGetlago(ctx context.Context, request *shared.SourceGetlagoCreateRequest) (*operations.CreateSourceGetlagoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Getlago"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3661,7 +3715,7 @@ func (s *sources) CreateSourceGetlago(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3694,12 +3748,14 @@ func (s *sources) CreateSourceGetlago(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3711,15 +3767,14 @@ func (s *sources) CreateSourceGetlago(ctx context.Context, request shared.Source
// CreateSourceGithub - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGithub(ctx context.Context, request shared.SourceGithubCreateRequest) (*operations.CreateSourceGithubResponse, error) {
+func (s *sources) CreateSourceGithub(ctx context.Context, request *shared.SourceGithubCreateRequest) (*operations.CreateSourceGithubResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Github"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3728,7 +3783,7 @@ func (s *sources) CreateSourceGithub(ctx context.Context, request shared.SourceG
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3761,12 +3816,14 @@ func (s *sources) CreateSourceGithub(ctx context.Context, request shared.SourceG
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3778,15 +3835,14 @@ func (s *sources) CreateSourceGithub(ctx context.Context, request shared.SourceG
// CreateSourceGitlab - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGitlab(ctx context.Context, request shared.SourceGitlabCreateRequest) (*operations.CreateSourceGitlabResponse, error) {
+func (s *sources) CreateSourceGitlab(ctx context.Context, request *shared.SourceGitlabCreateRequest) (*operations.CreateSourceGitlabResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Gitlab"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3795,7 +3851,7 @@ func (s *sources) CreateSourceGitlab(ctx context.Context, request shared.SourceG
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3828,12 +3884,14 @@ func (s *sources) CreateSourceGitlab(ctx context.Context, request shared.SourceG
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3845,15 +3903,14 @@ func (s *sources) CreateSourceGitlab(ctx context.Context, request shared.SourceG
// CreateSourceGlassfrog - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGlassfrog(ctx context.Context, request shared.SourceGlassfrogCreateRequest) (*operations.CreateSourceGlassfrogResponse, error) {
+func (s *sources) CreateSourceGlassfrog(ctx context.Context, request *shared.SourceGlassfrogCreateRequest) (*operations.CreateSourceGlassfrogResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Glassfrog"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3862,7 +3919,7 @@ func (s *sources) CreateSourceGlassfrog(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3895,12 +3952,14 @@ func (s *sources) CreateSourceGlassfrog(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3912,15 +3971,14 @@ func (s *sources) CreateSourceGlassfrog(ctx context.Context, request shared.Sour
// CreateSourceGnews - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGnews(ctx context.Context, request shared.SourceGnewsCreateRequest) (*operations.CreateSourceGnewsResponse, error) {
+func (s *sources) CreateSourceGnews(ctx context.Context, request *shared.SourceGnewsCreateRequest) (*operations.CreateSourceGnewsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Gnews"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3929,7 +3987,7 @@ func (s *sources) CreateSourceGnews(ctx context.Context, request shared.SourceGn
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -3962,12 +4020,14 @@ func (s *sources) CreateSourceGnews(ctx context.Context, request shared.SourceGn
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -3979,15 +4039,14 @@ func (s *sources) CreateSourceGnews(ctx context.Context, request shared.SourceGn
// CreateSourceGoogleAds - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleAds(ctx context.Context, request shared.SourceGoogleAdsCreateRequest) (*operations.CreateSourceGoogleAdsResponse, error) {
+func (s *sources) CreateSourceGoogleAds(ctx context.Context, request *shared.SourceGoogleAdsCreateRequest) (*operations.CreateSourceGoogleAdsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleAds"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -3996,7 +4055,7 @@ func (s *sources) CreateSourceGoogleAds(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4029,12 +4088,14 @@ func (s *sources) CreateSourceGoogleAds(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4046,15 +4107,14 @@ func (s *sources) CreateSourceGoogleAds(ctx context.Context, request shared.Sour
// CreateSourceGoogleAnalyticsDataAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request shared.SourceGoogleAnalyticsDataAPICreateRequest) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) {
+func (s *sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, request *shared.SourceGoogleAnalyticsDataAPICreateRequest) (*operations.CreateSourceGoogleAnalyticsDataAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleAnalyticsDataApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4063,7 +4123,7 @@ func (s *sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4096,12 +4156,14 @@ func (s *sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4113,15 +4175,14 @@ func (s *sources) CreateSourceGoogleAnalyticsDataAPI(ctx context.Context, reques
// CreateSourceGoogleAnalyticsV4 - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleAnalyticsV4(ctx context.Context, request shared.SourceGoogleAnalyticsV4CreateRequest) (*operations.CreateSourceGoogleAnalyticsV4Response, error) {
+func (s *sources) CreateSourceGoogleAnalyticsV4(ctx context.Context, request *shared.SourceGoogleAnalyticsV4CreateRequest) (*operations.CreateSourceGoogleAnalyticsV4Response, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleAnalyticsV4"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4130,7 +4191,7 @@ func (s *sources) CreateSourceGoogleAnalyticsV4(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4163,12 +4224,14 @@ func (s *sources) CreateSourceGoogleAnalyticsV4(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4180,15 +4243,14 @@ func (s *sources) CreateSourceGoogleAnalyticsV4(ctx context.Context, request sha
// CreateSourceGoogleDirectory - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleDirectory(ctx context.Context, request shared.SourceGoogleDirectoryCreateRequest) (*operations.CreateSourceGoogleDirectoryResponse, error) {
+func (s *sources) CreateSourceGoogleDirectory(ctx context.Context, request *shared.SourceGoogleDirectoryCreateRequest) (*operations.CreateSourceGoogleDirectoryResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleDirectory"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4197,7 +4259,7 @@ func (s *sources) CreateSourceGoogleDirectory(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4230,12 +4292,14 @@ func (s *sources) CreateSourceGoogleDirectory(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4247,15 +4311,14 @@ func (s *sources) CreateSourceGoogleDirectory(ctx context.Context, request share
// CreateSourceGooglePagespeedInsights - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGooglePagespeedInsights(ctx context.Context, request shared.SourceGooglePagespeedInsightsCreateRequest) (*operations.CreateSourceGooglePagespeedInsightsResponse, error) {
+func (s *sources) CreateSourceGooglePagespeedInsights(ctx context.Context, request *shared.SourceGooglePagespeedInsightsCreateRequest) (*operations.CreateSourceGooglePagespeedInsightsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GooglePagespeedInsights"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4264,7 +4327,7 @@ func (s *sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4297,12 +4360,14 @@ func (s *sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4314,15 +4379,14 @@ func (s *sources) CreateSourceGooglePagespeedInsights(ctx context.Context, reque
// CreateSourceGoogleSearchConsole - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleSearchConsole(ctx context.Context, request shared.SourceGoogleSearchConsoleCreateRequest) (*operations.CreateSourceGoogleSearchConsoleResponse, error) {
+func (s *sources) CreateSourceGoogleSearchConsole(ctx context.Context, request *shared.SourceGoogleSearchConsoleCreateRequest) (*operations.CreateSourceGoogleSearchConsoleResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleSearchConsole"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4331,7 +4395,7 @@ func (s *sources) CreateSourceGoogleSearchConsole(ctx context.Context, request s
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4364,12 +4428,14 @@ func (s *sources) CreateSourceGoogleSearchConsole(ctx context.Context, request s
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4381,15 +4447,14 @@ func (s *sources) CreateSourceGoogleSearchConsole(ctx context.Context, request s
// CreateSourceGoogleSheets - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleSheets(ctx context.Context, request shared.SourceGoogleSheetsCreateRequest) (*operations.CreateSourceGoogleSheetsResponse, error) {
+func (s *sources) CreateSourceGoogleSheets(ctx context.Context, request *shared.SourceGoogleSheetsCreateRequest) (*operations.CreateSourceGoogleSheetsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleSheets"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4398,7 +4463,7 @@ func (s *sources) CreateSourceGoogleSheets(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4431,12 +4496,14 @@ func (s *sources) CreateSourceGoogleSheets(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4448,15 +4515,14 @@ func (s *sources) CreateSourceGoogleSheets(ctx context.Context, request shared.S
// CreateSourceGoogleWebfonts - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleWebfonts(ctx context.Context, request shared.SourceGoogleWebfontsCreateRequest) (*operations.CreateSourceGoogleWebfontsResponse, error) {
+func (s *sources) CreateSourceGoogleWebfonts(ctx context.Context, request *shared.SourceGoogleWebfontsCreateRequest) (*operations.CreateSourceGoogleWebfontsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleWebfonts"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4465,7 +4531,7 @@ func (s *sources) CreateSourceGoogleWebfonts(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4498,12 +4564,14 @@ func (s *sources) CreateSourceGoogleWebfonts(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4515,15 +4583,14 @@ func (s *sources) CreateSourceGoogleWebfonts(ctx context.Context, request shared
// CreateSourceGoogleWorkspaceAdminReports - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGoogleWorkspaceAdminReports(ctx context.Context, request shared.SourceGoogleWorkspaceAdminReportsCreateRequest) (*operations.CreateSourceGoogleWorkspaceAdminReportsResponse, error) {
+func (s *sources) CreateSourceGoogleWorkspaceAdminReports(ctx context.Context, request *shared.SourceGoogleWorkspaceAdminReportsCreateRequest) (*operations.CreateSourceGoogleWorkspaceAdminReportsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#GoogleWorkspaceAdminReports"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4532,7 +4599,7 @@ func (s *sources) CreateSourceGoogleWorkspaceAdminReports(ctx context.Context, r
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4565,12 +4632,14 @@ func (s *sources) CreateSourceGoogleWorkspaceAdminReports(ctx context.Context, r
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4582,15 +4651,14 @@ func (s *sources) CreateSourceGoogleWorkspaceAdminReports(ctx context.Context, r
// CreateSourceGreenhouse - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGreenhouse(ctx context.Context, request shared.SourceGreenhouseCreateRequest) (*operations.CreateSourceGreenhouseResponse, error) {
+func (s *sources) CreateSourceGreenhouse(ctx context.Context, request *shared.SourceGreenhouseCreateRequest) (*operations.CreateSourceGreenhouseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Greenhouse"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4599,7 +4667,7 @@ func (s *sources) CreateSourceGreenhouse(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4632,12 +4700,14 @@ func (s *sources) CreateSourceGreenhouse(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4649,15 +4719,14 @@ func (s *sources) CreateSourceGreenhouse(ctx context.Context, request shared.Sou
// CreateSourceGridly - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceGridly(ctx context.Context, request shared.SourceGridlyCreateRequest) (*operations.CreateSourceGridlyResponse, error) {
+func (s *sources) CreateSourceGridly(ctx context.Context, request *shared.SourceGridlyCreateRequest) (*operations.CreateSourceGridlyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Gridly"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4666,7 +4735,7 @@ func (s *sources) CreateSourceGridly(ctx context.Context, request shared.SourceG
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4699,12 +4768,14 @@ func (s *sources) CreateSourceGridly(ctx context.Context, request shared.SourceG
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4716,15 +4787,14 @@ func (s *sources) CreateSourceGridly(ctx context.Context, request shared.SourceG
// CreateSourceHarvest - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceHarvest(ctx context.Context, request shared.SourceHarvestCreateRequest) (*operations.CreateSourceHarvestResponse, error) {
+func (s *sources) CreateSourceHarvest(ctx context.Context, request *shared.SourceHarvestCreateRequest) (*operations.CreateSourceHarvestResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Harvest"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4733,7 +4803,7 @@ func (s *sources) CreateSourceHarvest(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4766,12 +4836,14 @@ func (s *sources) CreateSourceHarvest(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4783,15 +4855,14 @@ func (s *sources) CreateSourceHarvest(ctx context.Context, request shared.Source
// CreateSourceHubplanner - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceHubplanner(ctx context.Context, request shared.SourceHubplannerCreateRequest) (*operations.CreateSourceHubplannerResponse, error) {
+func (s *sources) CreateSourceHubplanner(ctx context.Context, request *shared.SourceHubplannerCreateRequest) (*operations.CreateSourceHubplannerResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Hubplanner"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4800,7 +4871,7 @@ func (s *sources) CreateSourceHubplanner(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4833,12 +4904,14 @@ func (s *sources) CreateSourceHubplanner(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4850,15 +4923,14 @@ func (s *sources) CreateSourceHubplanner(ctx context.Context, request shared.Sou
// CreateSourceHubspot - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceHubspot(ctx context.Context, request shared.SourceHubspotCreateRequest) (*operations.CreateSourceHubspotResponse, error) {
+func (s *sources) CreateSourceHubspot(ctx context.Context, request *shared.SourceHubspotCreateRequest) (*operations.CreateSourceHubspotResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Hubspot"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4867,7 +4939,7 @@ func (s *sources) CreateSourceHubspot(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4900,12 +4972,14 @@ func (s *sources) CreateSourceHubspot(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4917,15 +4991,14 @@ func (s *sources) CreateSourceHubspot(ctx context.Context, request shared.Source
// CreateSourceInsightly - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceInsightly(ctx context.Context, request shared.SourceInsightlyCreateRequest) (*operations.CreateSourceInsightlyResponse, error) {
+func (s *sources) CreateSourceInsightly(ctx context.Context, request *shared.SourceInsightlyCreateRequest) (*operations.CreateSourceInsightlyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Insightly"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -4934,7 +5007,7 @@ func (s *sources) CreateSourceInsightly(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -4967,12 +5040,14 @@ func (s *sources) CreateSourceInsightly(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -4984,15 +5059,14 @@ func (s *sources) CreateSourceInsightly(ctx context.Context, request shared.Sour
// CreateSourceInstagram - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceInstagram(ctx context.Context, request shared.SourceInstagramCreateRequest) (*operations.CreateSourceInstagramResponse, error) {
+func (s *sources) CreateSourceInstagram(ctx context.Context, request *shared.SourceInstagramCreateRequest) (*operations.CreateSourceInstagramResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Instagram"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5001,7 +5075,7 @@ func (s *sources) CreateSourceInstagram(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5034,12 +5108,14 @@ func (s *sources) CreateSourceInstagram(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5051,15 +5127,14 @@ func (s *sources) CreateSourceInstagram(ctx context.Context, request shared.Sour
// CreateSourceInstatus - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceInstatus(ctx context.Context, request shared.SourceInstatusCreateRequest) (*operations.CreateSourceInstatusResponse, error) {
+func (s *sources) CreateSourceInstatus(ctx context.Context, request *shared.SourceInstatusCreateRequest) (*operations.CreateSourceInstatusResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Instatus"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5068,7 +5143,7 @@ func (s *sources) CreateSourceInstatus(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5101,12 +5176,14 @@ func (s *sources) CreateSourceInstatus(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5118,15 +5195,14 @@ func (s *sources) CreateSourceInstatus(ctx context.Context, request shared.Sourc
// CreateSourceIntercom - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceIntercom(ctx context.Context, request shared.SourceIntercomCreateRequest) (*operations.CreateSourceIntercomResponse, error) {
+func (s *sources) CreateSourceIntercom(ctx context.Context, request *shared.SourceIntercomCreateRequest) (*operations.CreateSourceIntercomResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Intercom"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5135,7 +5211,7 @@ func (s *sources) CreateSourceIntercom(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5168,12 +5244,14 @@ func (s *sources) CreateSourceIntercom(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5185,15 +5263,14 @@ func (s *sources) CreateSourceIntercom(ctx context.Context, request shared.Sourc
// CreateSourceIp2whois - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceIp2whois(ctx context.Context, request shared.SourceIp2whoisCreateRequest) (*operations.CreateSourceIp2whoisResponse, error) {
+func (s *sources) CreateSourceIp2whois(ctx context.Context, request *shared.SourceIp2whoisCreateRequest) (*operations.CreateSourceIp2whoisResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Ip2whois"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5202,7 +5279,7 @@ func (s *sources) CreateSourceIp2whois(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5235,12 +5312,14 @@ func (s *sources) CreateSourceIp2whois(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5252,15 +5331,14 @@ func (s *sources) CreateSourceIp2whois(ctx context.Context, request shared.Sourc
// CreateSourceIterable - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceIterable(ctx context.Context, request shared.SourceIterableCreateRequest) (*operations.CreateSourceIterableResponse, error) {
+func (s *sources) CreateSourceIterable(ctx context.Context, request *shared.SourceIterableCreateRequest) (*operations.CreateSourceIterableResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Iterable"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5269,7 +5347,7 @@ func (s *sources) CreateSourceIterable(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5302,12 +5380,14 @@ func (s *sources) CreateSourceIterable(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5319,15 +5399,14 @@ func (s *sources) CreateSourceIterable(ctx context.Context, request shared.Sourc
// CreateSourceJira - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceJira(ctx context.Context, request shared.SourceJiraCreateRequest) (*operations.CreateSourceJiraResponse, error) {
+func (s *sources) CreateSourceJira(ctx context.Context, request *shared.SourceJiraCreateRequest) (*operations.CreateSourceJiraResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Jira"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5336,7 +5415,7 @@ func (s *sources) CreateSourceJira(ctx context.Context, request shared.SourceJir
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5369,12 +5448,14 @@ func (s *sources) CreateSourceJira(ctx context.Context, request shared.SourceJir
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5386,15 +5467,14 @@ func (s *sources) CreateSourceJira(ctx context.Context, request shared.SourceJir
// CreateSourceK6Cloud - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceK6Cloud(ctx context.Context, request shared.SourceK6CloudCreateRequest) (*operations.CreateSourceK6CloudResponse, error) {
+func (s *sources) CreateSourceK6Cloud(ctx context.Context, request *shared.SourceK6CloudCreateRequest) (*operations.CreateSourceK6CloudResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#K6Cloud"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5403,7 +5483,7 @@ func (s *sources) CreateSourceK6Cloud(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5436,12 +5516,14 @@ func (s *sources) CreateSourceK6Cloud(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5453,15 +5535,14 @@ func (s *sources) CreateSourceK6Cloud(ctx context.Context, request shared.Source
// CreateSourceKlarna - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceKlarna(ctx context.Context, request shared.SourceKlarnaCreateRequest) (*operations.CreateSourceKlarnaResponse, error) {
+func (s *sources) CreateSourceKlarna(ctx context.Context, request *shared.SourceKlarnaCreateRequest) (*operations.CreateSourceKlarnaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Klarna"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5470,7 +5551,7 @@ func (s *sources) CreateSourceKlarna(ctx context.Context, request shared.SourceK
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5503,12 +5584,14 @@ func (s *sources) CreateSourceKlarna(ctx context.Context, request shared.SourceK
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5520,15 +5603,14 @@ func (s *sources) CreateSourceKlarna(ctx context.Context, request shared.SourceK
// CreateSourceKlaviyo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceKlaviyo(ctx context.Context, request shared.SourceKlaviyoCreateRequest) (*operations.CreateSourceKlaviyoResponse, error) {
+func (s *sources) CreateSourceKlaviyo(ctx context.Context, request *shared.SourceKlaviyoCreateRequest) (*operations.CreateSourceKlaviyoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Klaviyo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5537,7 +5619,7 @@ func (s *sources) CreateSourceKlaviyo(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5570,12 +5652,14 @@ func (s *sources) CreateSourceKlaviyo(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5587,15 +5671,14 @@ func (s *sources) CreateSourceKlaviyo(ctx context.Context, request shared.Source
// CreateSourceKustomerSinger - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceKustomerSinger(ctx context.Context, request shared.SourceKustomerSingerCreateRequest) (*operations.CreateSourceKustomerSingerResponse, error) {
+func (s *sources) CreateSourceKustomerSinger(ctx context.Context, request *shared.SourceKustomerSingerCreateRequest) (*operations.CreateSourceKustomerSingerResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#KustomerSinger"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5604,7 +5687,7 @@ func (s *sources) CreateSourceKustomerSinger(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5637,12 +5720,14 @@ func (s *sources) CreateSourceKustomerSinger(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5654,15 +5739,14 @@ func (s *sources) CreateSourceKustomerSinger(ctx context.Context, request shared
// CreateSourceKyve - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceKyve(ctx context.Context, request shared.SourceKyveCreateRequest) (*operations.CreateSourceKyveResponse, error) {
+func (s *sources) CreateSourceKyve(ctx context.Context, request *shared.SourceKyveCreateRequest) (*operations.CreateSourceKyveResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Kyve"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5671,7 +5755,7 @@ func (s *sources) CreateSourceKyve(ctx context.Context, request shared.SourceKyv
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5704,12 +5788,14 @@ func (s *sources) CreateSourceKyve(ctx context.Context, request shared.SourceKyv
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5721,15 +5807,14 @@ func (s *sources) CreateSourceKyve(ctx context.Context, request shared.SourceKyv
// CreateSourceLaunchdarkly - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLaunchdarkly(ctx context.Context, request shared.SourceLaunchdarklyCreateRequest) (*operations.CreateSourceLaunchdarklyResponse, error) {
+func (s *sources) CreateSourceLaunchdarkly(ctx context.Context, request *shared.SourceLaunchdarklyCreateRequest) (*operations.CreateSourceLaunchdarklyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Launchdarkly"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5738,7 +5823,7 @@ func (s *sources) CreateSourceLaunchdarkly(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5771,12 +5856,14 @@ func (s *sources) CreateSourceLaunchdarkly(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5788,15 +5875,14 @@ func (s *sources) CreateSourceLaunchdarkly(ctx context.Context, request shared.S
// CreateSourceLemlist - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLemlist(ctx context.Context, request shared.SourceLemlistCreateRequest) (*operations.CreateSourceLemlistResponse, error) {
+func (s *sources) CreateSourceLemlist(ctx context.Context, request *shared.SourceLemlistCreateRequest) (*operations.CreateSourceLemlistResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Lemlist"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5805,7 +5891,7 @@ func (s *sources) CreateSourceLemlist(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5838,12 +5924,14 @@ func (s *sources) CreateSourceLemlist(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5855,15 +5943,14 @@ func (s *sources) CreateSourceLemlist(ctx context.Context, request shared.Source
// CreateSourceLeverHiring - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLeverHiring(ctx context.Context, request shared.SourceLeverHiringCreateRequest) (*operations.CreateSourceLeverHiringResponse, error) {
+func (s *sources) CreateSourceLeverHiring(ctx context.Context, request *shared.SourceLeverHiringCreateRequest) (*operations.CreateSourceLeverHiringResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#LeverHiring"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5872,7 +5959,7 @@ func (s *sources) CreateSourceLeverHiring(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5905,12 +5992,14 @@ func (s *sources) CreateSourceLeverHiring(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5922,15 +6011,14 @@ func (s *sources) CreateSourceLeverHiring(ctx context.Context, request shared.So
// CreateSourceLinkedinAds - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLinkedinAds(ctx context.Context, request shared.SourceLinkedinAdsCreateRequest) (*operations.CreateSourceLinkedinAdsResponse, error) {
+func (s *sources) CreateSourceLinkedinAds(ctx context.Context, request *shared.SourceLinkedinAdsCreateRequest) (*operations.CreateSourceLinkedinAdsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#LinkedinAds"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -5939,7 +6027,7 @@ func (s *sources) CreateSourceLinkedinAds(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -5972,12 +6060,14 @@ func (s *sources) CreateSourceLinkedinAds(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -5989,15 +6079,14 @@ func (s *sources) CreateSourceLinkedinAds(ctx context.Context, request shared.So
// CreateSourceLinkedinPages - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLinkedinPages(ctx context.Context, request shared.SourceLinkedinPagesCreateRequest) (*operations.CreateSourceLinkedinPagesResponse, error) {
+func (s *sources) CreateSourceLinkedinPages(ctx context.Context, request *shared.SourceLinkedinPagesCreateRequest) (*operations.CreateSourceLinkedinPagesResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#LinkedinPages"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6006,7 +6095,7 @@ func (s *sources) CreateSourceLinkedinPages(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6039,12 +6128,14 @@ func (s *sources) CreateSourceLinkedinPages(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6056,15 +6147,14 @@ func (s *sources) CreateSourceLinkedinPages(ctx context.Context, request shared.
// CreateSourceLinnworks - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLinnworks(ctx context.Context, request shared.SourceLinnworksCreateRequest) (*operations.CreateSourceLinnworksResponse, error) {
+func (s *sources) CreateSourceLinnworks(ctx context.Context, request *shared.SourceLinnworksCreateRequest) (*operations.CreateSourceLinnworksResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Linnworks"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6073,7 +6163,7 @@ func (s *sources) CreateSourceLinnworks(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6106,12 +6196,14 @@ func (s *sources) CreateSourceLinnworks(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6123,15 +6215,14 @@ func (s *sources) CreateSourceLinnworks(ctx context.Context, request shared.Sour
// CreateSourceLokalise - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceLokalise(ctx context.Context, request shared.SourceLokaliseCreateRequest) (*operations.CreateSourceLokaliseResponse, error) {
+func (s *sources) CreateSourceLokalise(ctx context.Context, request *shared.SourceLokaliseCreateRequest) (*operations.CreateSourceLokaliseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Lokalise"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6140,7 +6231,7 @@ func (s *sources) CreateSourceLokalise(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6173,12 +6264,14 @@ func (s *sources) CreateSourceLokalise(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6190,15 +6283,14 @@ func (s *sources) CreateSourceLokalise(ctx context.Context, request shared.Sourc
// CreateSourceMailchimp - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMailchimp(ctx context.Context, request shared.SourceMailchimpCreateRequest) (*operations.CreateSourceMailchimpResponse, error) {
+func (s *sources) CreateSourceMailchimp(ctx context.Context, request *shared.SourceMailchimpCreateRequest) (*operations.CreateSourceMailchimpResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mailchimp"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6207,7 +6299,7 @@ func (s *sources) CreateSourceMailchimp(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6240,12 +6332,14 @@ func (s *sources) CreateSourceMailchimp(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6257,15 +6351,14 @@ func (s *sources) CreateSourceMailchimp(ctx context.Context, request shared.Sour
// CreateSourceMailgun - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMailgun(ctx context.Context, request shared.SourceMailgunCreateRequest) (*operations.CreateSourceMailgunResponse, error) {
+func (s *sources) CreateSourceMailgun(ctx context.Context, request *shared.SourceMailgunCreateRequest) (*operations.CreateSourceMailgunResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mailgun"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6274,7 +6367,7 @@ func (s *sources) CreateSourceMailgun(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6307,12 +6400,14 @@ func (s *sources) CreateSourceMailgun(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6324,15 +6419,14 @@ func (s *sources) CreateSourceMailgun(ctx context.Context, request shared.Source
// CreateSourceMailjetSms - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMailjetSms(ctx context.Context, request shared.SourceMailjetSmsCreateRequest) (*operations.CreateSourceMailjetSmsResponse, error) {
+func (s *sources) CreateSourceMailjetSms(ctx context.Context, request *shared.SourceMailjetSmsCreateRequest) (*operations.CreateSourceMailjetSmsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#MailjetSms"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6341,7 +6435,7 @@ func (s *sources) CreateSourceMailjetSms(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6374,12 +6468,14 @@ func (s *sources) CreateSourceMailjetSms(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6391,15 +6487,14 @@ func (s *sources) CreateSourceMailjetSms(ctx context.Context, request shared.Sou
// CreateSourceMarketo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMarketo(ctx context.Context, request shared.SourceMarketoCreateRequest) (*operations.CreateSourceMarketoResponse, error) {
+func (s *sources) CreateSourceMarketo(ctx context.Context, request *shared.SourceMarketoCreateRequest) (*operations.CreateSourceMarketoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Marketo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6408,7 +6503,7 @@ func (s *sources) CreateSourceMarketo(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6441,12 +6536,14 @@ func (s *sources) CreateSourceMarketo(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6458,15 +6555,14 @@ func (s *sources) CreateSourceMarketo(ctx context.Context, request shared.Source
// CreateSourceMetabase - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMetabase(ctx context.Context, request shared.SourceMetabaseCreateRequest) (*operations.CreateSourceMetabaseResponse, error) {
+func (s *sources) CreateSourceMetabase(ctx context.Context, request *shared.SourceMetabaseCreateRequest) (*operations.CreateSourceMetabaseResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Metabase"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6475,7 +6571,7 @@ func (s *sources) CreateSourceMetabase(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6508,12 +6604,14 @@ func (s *sources) CreateSourceMetabase(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6525,15 +6623,14 @@ func (s *sources) CreateSourceMetabase(ctx context.Context, request shared.Sourc
// CreateSourceMicrosoftTeams - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMicrosoftTeams(ctx context.Context, request shared.SourceMicrosoftTeamsCreateRequest) (*operations.CreateSourceMicrosoftTeamsResponse, error) {
+func (s *sources) CreateSourceMicrosoftTeams(ctx context.Context, request *shared.SourceMicrosoftTeamsCreateRequest) (*operations.CreateSourceMicrosoftTeamsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#MicrosoftTeams"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6542,7 +6639,7 @@ func (s *sources) CreateSourceMicrosoftTeams(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6575,12 +6672,14 @@ func (s *sources) CreateSourceMicrosoftTeams(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6592,15 +6691,14 @@ func (s *sources) CreateSourceMicrosoftTeams(ctx context.Context, request shared
// CreateSourceMixpanel - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMixpanel(ctx context.Context, request shared.SourceMixpanelCreateRequest) (*operations.CreateSourceMixpanelResponse, error) {
+func (s *sources) CreateSourceMixpanel(ctx context.Context, request *shared.SourceMixpanelCreateRequest) (*operations.CreateSourceMixpanelResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mixpanel"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6609,7 +6707,7 @@ func (s *sources) CreateSourceMixpanel(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6642,12 +6740,14 @@ func (s *sources) CreateSourceMixpanel(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6659,15 +6759,14 @@ func (s *sources) CreateSourceMixpanel(ctx context.Context, request shared.Sourc
// CreateSourceMonday - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMonday(ctx context.Context, request shared.SourceMondayCreateRequest) (*operations.CreateSourceMondayResponse, error) {
+func (s *sources) CreateSourceMonday(ctx context.Context, request *shared.SourceMondayCreateRequest) (*operations.CreateSourceMondayResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Monday"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6676,7 +6775,7 @@ func (s *sources) CreateSourceMonday(ctx context.Context, request shared.SourceM
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6709,12 +6808,14 @@ func (s *sources) CreateSourceMonday(ctx context.Context, request shared.SourceM
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6726,15 +6827,14 @@ func (s *sources) CreateSourceMonday(ctx context.Context, request shared.SourceM
// CreateSourceMongodb - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMongodb(ctx context.Context, request shared.SourceMongodbCreateRequest) (*operations.CreateSourceMongodbResponse, error) {
+func (s *sources) CreateSourceMongodb(ctx context.Context, request *shared.SourceMongodbCreateRequest) (*operations.CreateSourceMongodbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mongodb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6743,7 +6843,7 @@ func (s *sources) CreateSourceMongodb(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6776,12 +6876,14 @@ func (s *sources) CreateSourceMongodb(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6793,15 +6895,14 @@ func (s *sources) CreateSourceMongodb(ctx context.Context, request shared.Source
// CreateSourceMongodbInternalPoc - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMongodbInternalPoc(ctx context.Context, request shared.SourceMongodbInternalPocCreateRequest) (*operations.CreateSourceMongodbInternalPocResponse, error) {
+func (s *sources) CreateSourceMongodbInternalPoc(ctx context.Context, request *shared.SourceMongodbInternalPocCreateRequest) (*operations.CreateSourceMongodbInternalPocResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#MongodbInternalPoc"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6810,7 +6911,7 @@ func (s *sources) CreateSourceMongodbInternalPoc(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6843,12 +6944,14 @@ func (s *sources) CreateSourceMongodbInternalPoc(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6860,15 +6963,14 @@ func (s *sources) CreateSourceMongodbInternalPoc(ctx context.Context, request sh
// CreateSourceMssql - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMssql(ctx context.Context, request shared.SourceMssqlCreateRequest) (*operations.CreateSourceMssqlResponse, error) {
+func (s *sources) CreateSourceMssql(ctx context.Context, request *shared.SourceMssqlCreateRequest) (*operations.CreateSourceMssqlResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mssql"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6877,7 +6979,7 @@ func (s *sources) CreateSourceMssql(ctx context.Context, request shared.SourceMs
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6910,12 +7012,14 @@ func (s *sources) CreateSourceMssql(ctx context.Context, request shared.SourceMs
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6927,15 +7031,14 @@ func (s *sources) CreateSourceMssql(ctx context.Context, request shared.SourceMs
// CreateSourceMyHours - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMyHours(ctx context.Context, request shared.SourceMyHoursCreateRequest) (*operations.CreateSourceMyHoursResponse, error) {
+func (s *sources) CreateSourceMyHours(ctx context.Context, request *shared.SourceMyHoursCreateRequest) (*operations.CreateSourceMyHoursResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#MyHours"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -6944,7 +7047,7 @@ func (s *sources) CreateSourceMyHours(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -6977,12 +7080,14 @@ func (s *sources) CreateSourceMyHours(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -6994,15 +7099,14 @@ func (s *sources) CreateSourceMyHours(ctx context.Context, request shared.Source
// CreateSourceMysql - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceMysql(ctx context.Context, request shared.SourceMysqlCreateRequest) (*operations.CreateSourceMysqlResponse, error) {
+func (s *sources) CreateSourceMysql(ctx context.Context, request *shared.SourceMysqlCreateRequest) (*operations.CreateSourceMysqlResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Mysql"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7011,7 +7115,7 @@ func (s *sources) CreateSourceMysql(ctx context.Context, request shared.SourceMy
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7044,12 +7148,14 @@ func (s *sources) CreateSourceMysql(ctx context.Context, request shared.SourceMy
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7061,15 +7167,14 @@ func (s *sources) CreateSourceMysql(ctx context.Context, request shared.SourceMy
// CreateSourceNetsuite - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceNetsuite(ctx context.Context, request shared.SourceNetsuiteCreateRequest) (*operations.CreateSourceNetsuiteResponse, error) {
+func (s *sources) CreateSourceNetsuite(ctx context.Context, request *shared.SourceNetsuiteCreateRequest) (*operations.CreateSourceNetsuiteResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Netsuite"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7078,7 +7183,7 @@ func (s *sources) CreateSourceNetsuite(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7111,12 +7216,14 @@ func (s *sources) CreateSourceNetsuite(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7128,15 +7235,14 @@ func (s *sources) CreateSourceNetsuite(ctx context.Context, request shared.Sourc
// CreateSourceNotion - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceNotion(ctx context.Context, request shared.SourceNotionCreateRequest) (*operations.CreateSourceNotionResponse, error) {
+func (s *sources) CreateSourceNotion(ctx context.Context, request *shared.SourceNotionCreateRequest) (*operations.CreateSourceNotionResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Notion"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7145,7 +7251,7 @@ func (s *sources) CreateSourceNotion(ctx context.Context, request shared.SourceN
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7178,12 +7284,14 @@ func (s *sources) CreateSourceNotion(ctx context.Context, request shared.SourceN
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7195,15 +7303,14 @@ func (s *sources) CreateSourceNotion(ctx context.Context, request shared.SourceN
// CreateSourceNytimes - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceNytimes(ctx context.Context, request shared.SourceNytimesCreateRequest) (*operations.CreateSourceNytimesResponse, error) {
+func (s *sources) CreateSourceNytimes(ctx context.Context, request *shared.SourceNytimesCreateRequest) (*operations.CreateSourceNytimesResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Nytimes"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7212,7 +7319,7 @@ func (s *sources) CreateSourceNytimes(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7245,12 +7352,14 @@ func (s *sources) CreateSourceNytimes(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7262,15 +7371,14 @@ func (s *sources) CreateSourceNytimes(ctx context.Context, request shared.Source
// CreateSourceOkta - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOkta(ctx context.Context, request shared.SourceOktaCreateRequest) (*operations.CreateSourceOktaResponse, error) {
+func (s *sources) CreateSourceOkta(ctx context.Context, request *shared.SourceOktaCreateRequest) (*operations.CreateSourceOktaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Okta"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7279,7 +7387,7 @@ func (s *sources) CreateSourceOkta(ctx context.Context, request shared.SourceOkt
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7312,12 +7420,14 @@ func (s *sources) CreateSourceOkta(ctx context.Context, request shared.SourceOkt
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7329,15 +7439,14 @@ func (s *sources) CreateSourceOkta(ctx context.Context, request shared.SourceOkt
// CreateSourceOmnisend - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOmnisend(ctx context.Context, request shared.SourceOmnisendCreateRequest) (*operations.CreateSourceOmnisendResponse, error) {
+func (s *sources) CreateSourceOmnisend(ctx context.Context, request *shared.SourceOmnisendCreateRequest) (*operations.CreateSourceOmnisendResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Omnisend"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7346,7 +7455,7 @@ func (s *sources) CreateSourceOmnisend(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7379,12 +7488,14 @@ func (s *sources) CreateSourceOmnisend(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7396,15 +7507,14 @@ func (s *sources) CreateSourceOmnisend(ctx context.Context, request shared.Sourc
// CreateSourceOnesignal - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOnesignal(ctx context.Context, request shared.SourceOnesignalCreateRequest) (*operations.CreateSourceOnesignalResponse, error) {
+func (s *sources) CreateSourceOnesignal(ctx context.Context, request *shared.SourceOnesignalCreateRequest) (*operations.CreateSourceOnesignalResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Onesignal"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7413,7 +7523,7 @@ func (s *sources) CreateSourceOnesignal(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7446,12 +7556,14 @@ func (s *sources) CreateSourceOnesignal(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7463,15 +7575,14 @@ func (s *sources) CreateSourceOnesignal(ctx context.Context, request shared.Sour
// CreateSourceOracle - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOracle(ctx context.Context, request shared.SourceOracleCreateRequest) (*operations.CreateSourceOracleResponse, error) {
+func (s *sources) CreateSourceOracle(ctx context.Context, request *shared.SourceOracleCreateRequest) (*operations.CreateSourceOracleResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Oracle"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7480,7 +7591,7 @@ func (s *sources) CreateSourceOracle(ctx context.Context, request shared.SourceO
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7513,12 +7624,14 @@ func (s *sources) CreateSourceOracle(ctx context.Context, request shared.SourceO
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7530,15 +7643,14 @@ func (s *sources) CreateSourceOracle(ctx context.Context, request shared.SourceO
// CreateSourceOrb - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOrb(ctx context.Context, request shared.SourceOrbCreateRequest) (*operations.CreateSourceOrbResponse, error) {
+func (s *sources) CreateSourceOrb(ctx context.Context, request *shared.SourceOrbCreateRequest) (*operations.CreateSourceOrbResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Orb"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7547,7 +7659,7 @@ func (s *sources) CreateSourceOrb(ctx context.Context, request shared.SourceOrbC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7580,12 +7692,14 @@ func (s *sources) CreateSourceOrb(ctx context.Context, request shared.SourceOrbC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7597,15 +7711,14 @@ func (s *sources) CreateSourceOrb(ctx context.Context, request shared.SourceOrbC
// CreateSourceOrbit - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOrbit(ctx context.Context, request shared.SourceOrbitCreateRequest) (*operations.CreateSourceOrbitResponse, error) {
+func (s *sources) CreateSourceOrbit(ctx context.Context, request *shared.SourceOrbitCreateRequest) (*operations.CreateSourceOrbitResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Orbit"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7614,7 +7727,7 @@ func (s *sources) CreateSourceOrbit(ctx context.Context, request shared.SourceOr
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7647,12 +7760,14 @@ func (s *sources) CreateSourceOrbit(ctx context.Context, request shared.SourceOr
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7664,15 +7779,14 @@ func (s *sources) CreateSourceOrbit(ctx context.Context, request shared.SourceOr
// CreateSourceOutbrainAmplify - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOutbrainAmplify(ctx context.Context, request shared.SourceOutbrainAmplifyCreateRequest) (*operations.CreateSourceOutbrainAmplifyResponse, error) {
+func (s *sources) CreateSourceOutbrainAmplify(ctx context.Context, request *shared.SourceOutbrainAmplifyCreateRequest) (*operations.CreateSourceOutbrainAmplifyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#OutbrainAmplify"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7681,7 +7795,7 @@ func (s *sources) CreateSourceOutbrainAmplify(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7714,12 +7828,14 @@ func (s *sources) CreateSourceOutbrainAmplify(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7731,15 +7847,14 @@ func (s *sources) CreateSourceOutbrainAmplify(ctx context.Context, request share
// CreateSourceOutreach - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceOutreach(ctx context.Context, request shared.SourceOutreachCreateRequest) (*operations.CreateSourceOutreachResponse, error) {
+func (s *sources) CreateSourceOutreach(ctx context.Context, request *shared.SourceOutreachCreateRequest) (*operations.CreateSourceOutreachResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Outreach"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7748,7 +7863,7 @@ func (s *sources) CreateSourceOutreach(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7781,12 +7896,14 @@ func (s *sources) CreateSourceOutreach(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7798,15 +7915,14 @@ func (s *sources) CreateSourceOutreach(ctx context.Context, request shared.Sourc
// CreateSourcePaypalTransaction - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePaypalTransaction(ctx context.Context, request shared.SourcePaypalTransactionCreateRequest) (*operations.CreateSourcePaypalTransactionResponse, error) {
+func (s *sources) CreateSourcePaypalTransaction(ctx context.Context, request *shared.SourcePaypalTransactionCreateRequest) (*operations.CreateSourcePaypalTransactionResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#PaypalTransaction"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7815,7 +7931,7 @@ func (s *sources) CreateSourcePaypalTransaction(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7848,12 +7964,14 @@ func (s *sources) CreateSourcePaypalTransaction(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7865,15 +7983,14 @@ func (s *sources) CreateSourcePaypalTransaction(ctx context.Context, request sha
// CreateSourcePaystack - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePaystack(ctx context.Context, request shared.SourcePaystackCreateRequest) (*operations.CreateSourcePaystackResponse, error) {
+func (s *sources) CreateSourcePaystack(ctx context.Context, request *shared.SourcePaystackCreateRequest) (*operations.CreateSourcePaystackResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Paystack"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7882,7 +7999,7 @@ func (s *sources) CreateSourcePaystack(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7915,12 +8032,14 @@ func (s *sources) CreateSourcePaystack(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7932,15 +8051,14 @@ func (s *sources) CreateSourcePaystack(ctx context.Context, request shared.Sourc
// CreateSourcePendo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePendo(ctx context.Context, request shared.SourcePendoCreateRequest) (*operations.CreateSourcePendoResponse, error) {
+func (s *sources) CreateSourcePendo(ctx context.Context, request *shared.SourcePendoCreateRequest) (*operations.CreateSourcePendoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pendo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -7949,7 +8067,7 @@ func (s *sources) CreateSourcePendo(ctx context.Context, request shared.SourcePe
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -7982,12 +8100,14 @@ func (s *sources) CreateSourcePendo(ctx context.Context, request shared.SourcePe
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -7999,15 +8119,14 @@ func (s *sources) CreateSourcePendo(ctx context.Context, request shared.SourcePe
// CreateSourcePersistiq - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePersistiq(ctx context.Context, request shared.SourcePersistiqCreateRequest) (*operations.CreateSourcePersistiqResponse, error) {
+func (s *sources) CreateSourcePersistiq(ctx context.Context, request *shared.SourcePersistiqCreateRequest) (*operations.CreateSourcePersistiqResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Persistiq"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8016,7 +8135,7 @@ func (s *sources) CreateSourcePersistiq(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8049,12 +8168,14 @@ func (s *sources) CreateSourcePersistiq(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8066,15 +8187,14 @@ func (s *sources) CreateSourcePersistiq(ctx context.Context, request shared.Sour
// CreateSourcePexelsAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePexelsAPI(ctx context.Context, request shared.SourcePexelsAPICreateRequest) (*operations.CreateSourcePexelsAPIResponse, error) {
+func (s *sources) CreateSourcePexelsAPI(ctx context.Context, request *shared.SourcePexelsAPICreateRequest) (*operations.CreateSourcePexelsAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#PexelsApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8083,7 +8203,7 @@ func (s *sources) CreateSourcePexelsAPI(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8116,12 +8236,14 @@ func (s *sources) CreateSourcePexelsAPI(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8133,15 +8255,14 @@ func (s *sources) CreateSourcePexelsAPI(ctx context.Context, request shared.Sour
// CreateSourcePinterest - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePinterest(ctx context.Context, request shared.SourcePinterestCreateRequest) (*operations.CreateSourcePinterestResponse, error) {
+func (s *sources) CreateSourcePinterest(ctx context.Context, request *shared.SourcePinterestCreateRequest) (*operations.CreateSourcePinterestResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pinterest"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8150,7 +8271,7 @@ func (s *sources) CreateSourcePinterest(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8183,12 +8304,14 @@ func (s *sources) CreateSourcePinterest(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8200,15 +8323,14 @@ func (s *sources) CreateSourcePinterest(ctx context.Context, request shared.Sour
// CreateSourcePipedrive - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePipedrive(ctx context.Context, request shared.SourcePipedriveCreateRequest) (*operations.CreateSourcePipedriveResponse, error) {
+func (s *sources) CreateSourcePipedrive(ctx context.Context, request *shared.SourcePipedriveCreateRequest) (*operations.CreateSourcePipedriveResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pipedrive"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8217,7 +8339,7 @@ func (s *sources) CreateSourcePipedrive(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8250,12 +8372,14 @@ func (s *sources) CreateSourcePipedrive(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8267,15 +8391,14 @@ func (s *sources) CreateSourcePipedrive(ctx context.Context, request shared.Sour
// CreateSourcePocket - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePocket(ctx context.Context, request shared.SourcePocketCreateRequest) (*operations.CreateSourcePocketResponse, error) {
+func (s *sources) CreateSourcePocket(ctx context.Context, request *shared.SourcePocketCreateRequest) (*operations.CreateSourcePocketResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pocket"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8284,7 +8407,7 @@ func (s *sources) CreateSourcePocket(ctx context.Context, request shared.SourceP
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8317,12 +8440,14 @@ func (s *sources) CreateSourcePocket(ctx context.Context, request shared.SourceP
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8334,15 +8459,14 @@ func (s *sources) CreateSourcePocket(ctx context.Context, request shared.SourceP
// CreateSourcePokeapi - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePokeapi(ctx context.Context, request shared.SourcePokeapiCreateRequest) (*operations.CreateSourcePokeapiResponse, error) {
+func (s *sources) CreateSourcePokeapi(ctx context.Context, request *shared.SourcePokeapiCreateRequest) (*operations.CreateSourcePokeapiResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pokeapi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8351,7 +8475,7 @@ func (s *sources) CreateSourcePokeapi(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8384,12 +8508,14 @@ func (s *sources) CreateSourcePokeapi(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8401,15 +8527,14 @@ func (s *sources) CreateSourcePokeapi(ctx context.Context, request shared.Source
// CreateSourcePolygonStockAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePolygonStockAPI(ctx context.Context, request shared.SourcePolygonStockAPICreateRequest) (*operations.CreateSourcePolygonStockAPIResponse, error) {
+func (s *sources) CreateSourcePolygonStockAPI(ctx context.Context, request *shared.SourcePolygonStockAPICreateRequest) (*operations.CreateSourcePolygonStockAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#PolygonStockApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8418,7 +8543,7 @@ func (s *sources) CreateSourcePolygonStockAPI(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8451,12 +8576,14 @@ func (s *sources) CreateSourcePolygonStockAPI(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8468,15 +8595,14 @@ func (s *sources) CreateSourcePolygonStockAPI(ctx context.Context, request share
// CreateSourcePostgres - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePostgres(ctx context.Context, request shared.SourcePostgresCreateRequest) (*operations.CreateSourcePostgresResponse, error) {
+func (s *sources) CreateSourcePostgres(ctx context.Context, request *shared.SourcePostgresCreateRequest) (*operations.CreateSourcePostgresResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Postgres"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8485,7 +8611,7 @@ func (s *sources) CreateSourcePostgres(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8518,12 +8644,14 @@ func (s *sources) CreateSourcePostgres(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8535,15 +8663,14 @@ func (s *sources) CreateSourcePostgres(ctx context.Context, request shared.Sourc
// CreateSourcePosthog - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePosthog(ctx context.Context, request shared.SourcePosthogCreateRequest) (*operations.CreateSourcePosthogResponse, error) {
+func (s *sources) CreateSourcePosthog(ctx context.Context, request *shared.SourcePosthogCreateRequest) (*operations.CreateSourcePosthogResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Posthog"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8552,7 +8679,7 @@ func (s *sources) CreateSourcePosthog(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8585,12 +8712,14 @@ func (s *sources) CreateSourcePosthog(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8602,15 +8731,14 @@ func (s *sources) CreateSourcePosthog(ctx context.Context, request shared.Source
// CreateSourcePostmarkapp - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePostmarkapp(ctx context.Context, request shared.SourcePostmarkappCreateRequest) (*operations.CreateSourcePostmarkappResponse, error) {
+func (s *sources) CreateSourcePostmarkapp(ctx context.Context, request *shared.SourcePostmarkappCreateRequest) (*operations.CreateSourcePostmarkappResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Postmarkapp"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8619,7 +8747,7 @@ func (s *sources) CreateSourcePostmarkapp(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8652,12 +8780,14 @@ func (s *sources) CreateSourcePostmarkapp(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8669,15 +8799,14 @@ func (s *sources) CreateSourcePostmarkapp(ctx context.Context, request shared.So
// CreateSourcePrestashop - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePrestashop(ctx context.Context, request shared.SourcePrestashopCreateRequest) (*operations.CreateSourcePrestashopResponse, error) {
+func (s *sources) CreateSourcePrestashop(ctx context.Context, request *shared.SourcePrestashopCreateRequest) (*operations.CreateSourcePrestashopResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Prestashop"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8686,7 +8815,7 @@ func (s *sources) CreateSourcePrestashop(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8719,12 +8848,14 @@ func (s *sources) CreateSourcePrestashop(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8736,15 +8867,14 @@ func (s *sources) CreateSourcePrestashop(ctx context.Context, request shared.Sou
// CreateSourcePunkAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePunkAPI(ctx context.Context, request shared.SourcePunkAPICreateRequest) (*operations.CreateSourcePunkAPIResponse, error) {
+func (s *sources) CreateSourcePunkAPI(ctx context.Context, request *shared.SourcePunkAPICreateRequest) (*operations.CreateSourcePunkAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#PunkApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8753,7 +8883,7 @@ func (s *sources) CreateSourcePunkAPI(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8786,12 +8916,14 @@ func (s *sources) CreateSourcePunkAPI(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8803,15 +8935,14 @@ func (s *sources) CreateSourcePunkAPI(ctx context.Context, request shared.Source
// CreateSourcePypi - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourcePypi(ctx context.Context, request shared.SourcePypiCreateRequest) (*operations.CreateSourcePypiResponse, error) {
+func (s *sources) CreateSourcePypi(ctx context.Context, request *shared.SourcePypiCreateRequest) (*operations.CreateSourcePypiResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Pypi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8820,7 +8951,7 @@ func (s *sources) CreateSourcePypi(ctx context.Context, request shared.SourcePyp
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8853,12 +8984,14 @@ func (s *sources) CreateSourcePypi(ctx context.Context, request shared.SourcePyp
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8870,15 +9003,14 @@ func (s *sources) CreateSourcePypi(ctx context.Context, request shared.SourcePyp
// CreateSourceQualaroo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceQualaroo(ctx context.Context, request shared.SourceQualarooCreateRequest) (*operations.CreateSourceQualarooResponse, error) {
+func (s *sources) CreateSourceQualaroo(ctx context.Context, request *shared.SourceQualarooCreateRequest) (*operations.CreateSourceQualarooResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Qualaroo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8887,7 +9019,7 @@ func (s *sources) CreateSourceQualaroo(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8920,12 +9052,14 @@ func (s *sources) CreateSourceQualaroo(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -8937,15 +9071,14 @@ func (s *sources) CreateSourceQualaroo(ctx context.Context, request shared.Sourc
// CreateSourceQuickbooks - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceQuickbooks(ctx context.Context, request shared.SourceQuickbooksCreateRequest) (*operations.CreateSourceQuickbooksResponse, error) {
+func (s *sources) CreateSourceQuickbooks(ctx context.Context, request *shared.SourceQuickbooksCreateRequest) (*operations.CreateSourceQuickbooksResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Quickbooks"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -8954,7 +9087,7 @@ func (s *sources) CreateSourceQuickbooks(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -8987,12 +9120,14 @@ func (s *sources) CreateSourceQuickbooks(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9004,15 +9139,14 @@ func (s *sources) CreateSourceQuickbooks(ctx context.Context, request shared.Sou
// CreateSourceRailz - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRailz(ctx context.Context, request shared.SourceRailzCreateRequest) (*operations.CreateSourceRailzResponse, error) {
+func (s *sources) CreateSourceRailz(ctx context.Context, request *shared.SourceRailzCreateRequest) (*operations.CreateSourceRailzResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Railz"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9021,7 +9155,7 @@ func (s *sources) CreateSourceRailz(ctx context.Context, request shared.SourceRa
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9054,12 +9188,14 @@ func (s *sources) CreateSourceRailz(ctx context.Context, request shared.SourceRa
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9071,15 +9207,14 @@ func (s *sources) CreateSourceRailz(ctx context.Context, request shared.SourceRa
// CreateSourceRecharge - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRecharge(ctx context.Context, request shared.SourceRechargeCreateRequest) (*operations.CreateSourceRechargeResponse, error) {
+func (s *sources) CreateSourceRecharge(ctx context.Context, request *shared.SourceRechargeCreateRequest) (*operations.CreateSourceRechargeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Recharge"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9088,7 +9223,7 @@ func (s *sources) CreateSourceRecharge(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9121,12 +9256,14 @@ func (s *sources) CreateSourceRecharge(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9138,15 +9275,14 @@ func (s *sources) CreateSourceRecharge(ctx context.Context, request shared.Sourc
// CreateSourceRecreation - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRecreation(ctx context.Context, request shared.SourceRecreationCreateRequest) (*operations.CreateSourceRecreationResponse, error) {
+func (s *sources) CreateSourceRecreation(ctx context.Context, request *shared.SourceRecreationCreateRequest) (*operations.CreateSourceRecreationResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Recreation"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9155,7 +9291,7 @@ func (s *sources) CreateSourceRecreation(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9188,12 +9324,14 @@ func (s *sources) CreateSourceRecreation(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9205,15 +9343,14 @@ func (s *sources) CreateSourceRecreation(ctx context.Context, request shared.Sou
// CreateSourceRecruitee - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRecruitee(ctx context.Context, request shared.SourceRecruiteeCreateRequest) (*operations.CreateSourceRecruiteeResponse, error) {
+func (s *sources) CreateSourceRecruitee(ctx context.Context, request *shared.SourceRecruiteeCreateRequest) (*operations.CreateSourceRecruiteeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Recruitee"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9222,7 +9359,7 @@ func (s *sources) CreateSourceRecruitee(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9255,12 +9392,14 @@ func (s *sources) CreateSourceRecruitee(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9272,15 +9411,14 @@ func (s *sources) CreateSourceRecruitee(ctx context.Context, request shared.Sour
// CreateSourceRecurly - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRecurly(ctx context.Context, request shared.SourceRecurlyCreateRequest) (*operations.CreateSourceRecurlyResponse, error) {
+func (s *sources) CreateSourceRecurly(ctx context.Context, request *shared.SourceRecurlyCreateRequest) (*operations.CreateSourceRecurlyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Recurly"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9289,7 +9427,7 @@ func (s *sources) CreateSourceRecurly(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9322,12 +9460,14 @@ func (s *sources) CreateSourceRecurly(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9339,15 +9479,14 @@ func (s *sources) CreateSourceRecurly(ctx context.Context, request shared.Source
// CreateSourceRedshift - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRedshift(ctx context.Context, request shared.SourceRedshiftCreateRequest) (*operations.CreateSourceRedshiftResponse, error) {
+func (s *sources) CreateSourceRedshift(ctx context.Context, request *shared.SourceRedshiftCreateRequest) (*operations.CreateSourceRedshiftResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Redshift"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9356,7 +9495,7 @@ func (s *sources) CreateSourceRedshift(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9389,12 +9528,14 @@ func (s *sources) CreateSourceRedshift(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9406,15 +9547,14 @@ func (s *sources) CreateSourceRedshift(ctx context.Context, request shared.Sourc
// CreateSourceRetently - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRetently(ctx context.Context, request shared.SourceRetentlyCreateRequest) (*operations.CreateSourceRetentlyResponse, error) {
+func (s *sources) CreateSourceRetently(ctx context.Context, request *shared.SourceRetentlyCreateRequest) (*operations.CreateSourceRetentlyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Retently"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9423,7 +9563,7 @@ func (s *sources) CreateSourceRetently(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9456,12 +9596,14 @@ func (s *sources) CreateSourceRetently(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9473,15 +9615,14 @@ func (s *sources) CreateSourceRetently(ctx context.Context, request shared.Sourc
// CreateSourceRkiCovid - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRkiCovid(ctx context.Context, request shared.SourceRkiCovidCreateRequest) (*operations.CreateSourceRkiCovidResponse, error) {
+func (s *sources) CreateSourceRkiCovid(ctx context.Context, request *shared.SourceRkiCovidCreateRequest) (*operations.CreateSourceRkiCovidResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#RkiCovid"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9490,7 +9631,7 @@ func (s *sources) CreateSourceRkiCovid(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9523,12 +9664,14 @@ func (s *sources) CreateSourceRkiCovid(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9540,15 +9683,14 @@ func (s *sources) CreateSourceRkiCovid(ctx context.Context, request shared.Sourc
// CreateSourceRss - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceRss(ctx context.Context, request shared.SourceRssCreateRequest) (*operations.CreateSourceRssResponse, error) {
+func (s *sources) CreateSourceRss(ctx context.Context, request *shared.SourceRssCreateRequest) (*operations.CreateSourceRssResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Rss"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9557,7 +9699,7 @@ func (s *sources) CreateSourceRss(ctx context.Context, request shared.SourceRssC
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9590,12 +9732,14 @@ func (s *sources) CreateSourceRss(ctx context.Context, request shared.SourceRssC
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9607,15 +9751,14 @@ func (s *sources) CreateSourceRss(ctx context.Context, request shared.SourceRssC
// CreateSourceS3 - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceS3(ctx context.Context, request shared.SourceS3CreateRequest) (*operations.CreateSourceS3Response, error) {
+func (s *sources) CreateSourceS3(ctx context.Context, request *shared.SourceS3CreateRequest) (*operations.CreateSourceS3Response, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#S3"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9624,7 +9767,7 @@ func (s *sources) CreateSourceS3(ctx context.Context, request shared.SourceS3Cre
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9657,12 +9800,14 @@ func (s *sources) CreateSourceS3(ctx context.Context, request shared.SourceS3Cre
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9674,15 +9819,14 @@ func (s *sources) CreateSourceS3(ctx context.Context, request shared.SourceS3Cre
// CreateSourceSalesforce - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSalesforce(ctx context.Context, request shared.SourceSalesforceCreateRequest) (*operations.CreateSourceSalesforceResponse, error) {
+func (s *sources) CreateSourceSalesforce(ctx context.Context, request *shared.SourceSalesforceCreateRequest) (*operations.CreateSourceSalesforceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Salesforce"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9691,7 +9835,7 @@ func (s *sources) CreateSourceSalesforce(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9724,12 +9868,14 @@ func (s *sources) CreateSourceSalesforce(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9741,15 +9887,14 @@ func (s *sources) CreateSourceSalesforce(ctx context.Context, request shared.Sou
// CreateSourceSalesloft - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSalesloft(ctx context.Context, request shared.SourceSalesloftCreateRequest) (*operations.CreateSourceSalesloftResponse, error) {
+func (s *sources) CreateSourceSalesloft(ctx context.Context, request *shared.SourceSalesloftCreateRequest) (*operations.CreateSourceSalesloftResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Salesloft"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9758,7 +9903,7 @@ func (s *sources) CreateSourceSalesloft(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9791,12 +9936,14 @@ func (s *sources) CreateSourceSalesloft(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9808,15 +9955,14 @@ func (s *sources) CreateSourceSalesloft(ctx context.Context, request shared.Sour
// CreateSourceSapFieldglass - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSapFieldglass(ctx context.Context, request shared.SourceSapFieldglassCreateRequest) (*operations.CreateSourceSapFieldglassResponse, error) {
+func (s *sources) CreateSourceSapFieldglass(ctx context.Context, request *shared.SourceSapFieldglassCreateRequest) (*operations.CreateSourceSapFieldglassResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SapFieldglass"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9825,7 +9971,7 @@ func (s *sources) CreateSourceSapFieldglass(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9858,12 +10004,14 @@ func (s *sources) CreateSourceSapFieldglass(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9875,15 +10023,14 @@ func (s *sources) CreateSourceSapFieldglass(ctx context.Context, request shared.
// CreateSourceSecoda - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSecoda(ctx context.Context, request shared.SourceSecodaCreateRequest) (*operations.CreateSourceSecodaResponse, error) {
+func (s *sources) CreateSourceSecoda(ctx context.Context, request *shared.SourceSecodaCreateRequest) (*operations.CreateSourceSecodaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Secoda"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9892,7 +10039,7 @@ func (s *sources) CreateSourceSecoda(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9925,12 +10072,14 @@ func (s *sources) CreateSourceSecoda(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -9942,15 +10091,14 @@ func (s *sources) CreateSourceSecoda(ctx context.Context, request shared.SourceS
// CreateSourceSendgrid - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSendgrid(ctx context.Context, request shared.SourceSendgridCreateRequest) (*operations.CreateSourceSendgridResponse, error) {
+func (s *sources) CreateSourceSendgrid(ctx context.Context, request *shared.SourceSendgridCreateRequest) (*operations.CreateSourceSendgridResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Sendgrid"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -9959,7 +10107,7 @@ func (s *sources) CreateSourceSendgrid(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -9992,12 +10140,14 @@ func (s *sources) CreateSourceSendgrid(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10009,15 +10159,14 @@ func (s *sources) CreateSourceSendgrid(ctx context.Context, request shared.Sourc
// CreateSourceSendinblue - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSendinblue(ctx context.Context, request shared.SourceSendinblueCreateRequest) (*operations.CreateSourceSendinblueResponse, error) {
+func (s *sources) CreateSourceSendinblue(ctx context.Context, request *shared.SourceSendinblueCreateRequest) (*operations.CreateSourceSendinblueResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Sendinblue"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10026,7 +10175,7 @@ func (s *sources) CreateSourceSendinblue(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10059,12 +10208,14 @@ func (s *sources) CreateSourceSendinblue(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10076,15 +10227,14 @@ func (s *sources) CreateSourceSendinblue(ctx context.Context, request shared.Sou
// CreateSourceSenseforce - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSenseforce(ctx context.Context, request shared.SourceSenseforceCreateRequest) (*operations.CreateSourceSenseforceResponse, error) {
+func (s *sources) CreateSourceSenseforce(ctx context.Context, request *shared.SourceSenseforceCreateRequest) (*operations.CreateSourceSenseforceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Senseforce"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10093,7 +10243,7 @@ func (s *sources) CreateSourceSenseforce(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10126,12 +10276,14 @@ func (s *sources) CreateSourceSenseforce(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10143,15 +10295,14 @@ func (s *sources) CreateSourceSenseforce(ctx context.Context, request shared.Sou
// CreateSourceSentry - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSentry(ctx context.Context, request shared.SourceSentryCreateRequest) (*operations.CreateSourceSentryResponse, error) {
+func (s *sources) CreateSourceSentry(ctx context.Context, request *shared.SourceSentryCreateRequest) (*operations.CreateSourceSentryResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Sentry"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10160,7 +10311,7 @@ func (s *sources) CreateSourceSentry(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10193,12 +10344,14 @@ func (s *sources) CreateSourceSentry(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10210,15 +10363,14 @@ func (s *sources) CreateSourceSentry(ctx context.Context, request shared.SourceS
// CreateSourceSftp - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSftp(ctx context.Context, request shared.SourceSftpCreateRequest) (*operations.CreateSourceSftpResponse, error) {
+func (s *sources) CreateSourceSftp(ctx context.Context, request *shared.SourceSftpCreateRequest) (*operations.CreateSourceSftpResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Sftp"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10227,7 +10379,7 @@ func (s *sources) CreateSourceSftp(ctx context.Context, request shared.SourceSft
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10260,12 +10412,14 @@ func (s *sources) CreateSourceSftp(ctx context.Context, request shared.SourceSft
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10277,15 +10431,14 @@ func (s *sources) CreateSourceSftp(ctx context.Context, request shared.SourceSft
// CreateSourceSftpBulk - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSftpBulk(ctx context.Context, request shared.SourceSftpBulkCreateRequest) (*operations.CreateSourceSftpBulkResponse, error) {
+func (s *sources) CreateSourceSftpBulk(ctx context.Context, request *shared.SourceSftpBulkCreateRequest) (*operations.CreateSourceSftpBulkResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SftpBulk"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10294,7 +10447,7 @@ func (s *sources) CreateSourceSftpBulk(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10327,12 +10480,14 @@ func (s *sources) CreateSourceSftpBulk(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10344,15 +10499,14 @@ func (s *sources) CreateSourceSftpBulk(ctx context.Context, request shared.Sourc
// CreateSourceShopify - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceShopify(ctx context.Context, request shared.SourceShopifyCreateRequest) (*operations.CreateSourceShopifyResponse, error) {
+func (s *sources) CreateSourceShopify(ctx context.Context, request *shared.SourceShopifyCreateRequest) (*operations.CreateSourceShopifyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Shopify"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10361,7 +10515,7 @@ func (s *sources) CreateSourceShopify(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10394,12 +10548,14 @@ func (s *sources) CreateSourceShopify(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10411,15 +10567,14 @@ func (s *sources) CreateSourceShopify(ctx context.Context, request shared.Source
// CreateSourceShortio - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceShortio(ctx context.Context, request shared.SourceShortioCreateRequest) (*operations.CreateSourceShortioResponse, error) {
+func (s *sources) CreateSourceShortio(ctx context.Context, request *shared.SourceShortioCreateRequest) (*operations.CreateSourceShortioResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Shortio"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10428,7 +10583,7 @@ func (s *sources) CreateSourceShortio(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10461,12 +10616,14 @@ func (s *sources) CreateSourceShortio(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10478,15 +10635,14 @@ func (s *sources) CreateSourceShortio(ctx context.Context, request shared.Source
// CreateSourceSlack - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSlack(ctx context.Context, request shared.SourceSlackCreateRequest) (*operations.CreateSourceSlackResponse, error) {
+func (s *sources) CreateSourceSlack(ctx context.Context, request *shared.SourceSlackCreateRequest) (*operations.CreateSourceSlackResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Slack"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10495,7 +10651,7 @@ func (s *sources) CreateSourceSlack(ctx context.Context, request shared.SourceSl
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10528,12 +10684,14 @@ func (s *sources) CreateSourceSlack(ctx context.Context, request shared.SourceSl
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10545,15 +10703,14 @@ func (s *sources) CreateSourceSlack(ctx context.Context, request shared.SourceSl
// CreateSourceSmaily - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSmaily(ctx context.Context, request shared.SourceSmailyCreateRequest) (*operations.CreateSourceSmailyResponse, error) {
+func (s *sources) CreateSourceSmaily(ctx context.Context, request *shared.SourceSmailyCreateRequest) (*operations.CreateSourceSmailyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Smaily"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10562,7 +10719,7 @@ func (s *sources) CreateSourceSmaily(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10595,12 +10752,14 @@ func (s *sources) CreateSourceSmaily(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10612,15 +10771,14 @@ func (s *sources) CreateSourceSmaily(ctx context.Context, request shared.SourceS
// CreateSourceSmartengage - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSmartengage(ctx context.Context, request shared.SourceSmartengageCreateRequest) (*operations.CreateSourceSmartengageResponse, error) {
+func (s *sources) CreateSourceSmartengage(ctx context.Context, request *shared.SourceSmartengageCreateRequest) (*operations.CreateSourceSmartengageResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Smartengage"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10629,7 +10787,7 @@ func (s *sources) CreateSourceSmartengage(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10662,12 +10820,14 @@ func (s *sources) CreateSourceSmartengage(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10679,15 +10839,14 @@ func (s *sources) CreateSourceSmartengage(ctx context.Context, request shared.So
// CreateSourceSmartsheets - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSmartsheets(ctx context.Context, request shared.SourceSmartsheetsCreateRequest) (*operations.CreateSourceSmartsheetsResponse, error) {
+func (s *sources) CreateSourceSmartsheets(ctx context.Context, request *shared.SourceSmartsheetsCreateRequest) (*operations.CreateSourceSmartsheetsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Smartsheets"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10696,7 +10855,7 @@ func (s *sources) CreateSourceSmartsheets(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10729,12 +10888,14 @@ func (s *sources) CreateSourceSmartsheets(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10746,15 +10907,14 @@ func (s *sources) CreateSourceSmartsheets(ctx context.Context, request shared.So
// CreateSourceSnapchatMarketing - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSnapchatMarketing(ctx context.Context, request shared.SourceSnapchatMarketingCreateRequest) (*operations.CreateSourceSnapchatMarketingResponse, error) {
+func (s *sources) CreateSourceSnapchatMarketing(ctx context.Context, request *shared.SourceSnapchatMarketingCreateRequest) (*operations.CreateSourceSnapchatMarketingResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SnapchatMarketing"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10763,7 +10923,7 @@ func (s *sources) CreateSourceSnapchatMarketing(ctx context.Context, request sha
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10796,12 +10956,14 @@ func (s *sources) CreateSourceSnapchatMarketing(ctx context.Context, request sha
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10813,15 +10975,14 @@ func (s *sources) CreateSourceSnapchatMarketing(ctx context.Context, request sha
// CreateSourceSnowflake - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSnowflake(ctx context.Context, request shared.SourceSnowflakeCreateRequest) (*operations.CreateSourceSnowflakeResponse, error) {
+func (s *sources) CreateSourceSnowflake(ctx context.Context, request *shared.SourceSnowflakeCreateRequest) (*operations.CreateSourceSnowflakeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Snowflake"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10830,7 +10991,7 @@ func (s *sources) CreateSourceSnowflake(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10863,12 +11024,14 @@ func (s *sources) CreateSourceSnowflake(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10880,15 +11043,14 @@ func (s *sources) CreateSourceSnowflake(ctx context.Context, request shared.Sour
// CreateSourceSonarCloud - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSonarCloud(ctx context.Context, request shared.SourceSonarCloudCreateRequest) (*operations.CreateSourceSonarCloudResponse, error) {
+func (s *sources) CreateSourceSonarCloud(ctx context.Context, request *shared.SourceSonarCloudCreateRequest) (*operations.CreateSourceSonarCloudResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SonarCloud"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10897,7 +11059,7 @@ func (s *sources) CreateSourceSonarCloud(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10930,12 +11092,14 @@ func (s *sources) CreateSourceSonarCloud(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -10947,15 +11111,14 @@ func (s *sources) CreateSourceSonarCloud(ctx context.Context, request shared.Sou
// CreateSourceSpacexAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSpacexAPI(ctx context.Context, request shared.SourceSpacexAPICreateRequest) (*operations.CreateSourceSpacexAPIResponse, error) {
+func (s *sources) CreateSourceSpacexAPI(ctx context.Context, request *shared.SourceSpacexAPICreateRequest) (*operations.CreateSourceSpacexAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SpacexApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -10964,7 +11127,7 @@ func (s *sources) CreateSourceSpacexAPI(ctx context.Context, request shared.Sour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -10997,12 +11160,14 @@ func (s *sources) CreateSourceSpacexAPI(ctx context.Context, request shared.Sour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11014,15 +11179,14 @@ func (s *sources) CreateSourceSpacexAPI(ctx context.Context, request shared.Sour
// CreateSourceSquare - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSquare(ctx context.Context, request shared.SourceSquareCreateRequest) (*operations.CreateSourceSquareResponse, error) {
+func (s *sources) CreateSourceSquare(ctx context.Context, request *shared.SourceSquareCreateRequest) (*operations.CreateSourceSquareResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Square"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11031,7 +11195,7 @@ func (s *sources) CreateSourceSquare(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11064,12 +11228,14 @@ func (s *sources) CreateSourceSquare(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11081,15 +11247,14 @@ func (s *sources) CreateSourceSquare(ctx context.Context, request shared.SourceS
// CreateSourceStrava - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceStrava(ctx context.Context, request shared.SourceStravaCreateRequest) (*operations.CreateSourceStravaResponse, error) {
+func (s *sources) CreateSourceStrava(ctx context.Context, request *shared.SourceStravaCreateRequest) (*operations.CreateSourceStravaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Strava"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11098,7 +11263,7 @@ func (s *sources) CreateSourceStrava(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11131,12 +11296,14 @@ func (s *sources) CreateSourceStrava(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11148,15 +11315,14 @@ func (s *sources) CreateSourceStrava(ctx context.Context, request shared.SourceS
// CreateSourceStripe - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceStripe(ctx context.Context, request shared.SourceStripeCreateRequest) (*operations.CreateSourceStripeResponse, error) {
+func (s *sources) CreateSourceStripe(ctx context.Context, request *shared.SourceStripeCreateRequest) (*operations.CreateSourceStripeResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Stripe"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11165,7 +11331,7 @@ func (s *sources) CreateSourceStripe(ctx context.Context, request shared.SourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11198,12 +11364,14 @@ func (s *sources) CreateSourceStripe(ctx context.Context, request shared.SourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11215,15 +11383,14 @@ func (s *sources) CreateSourceStripe(ctx context.Context, request shared.SourceS
// CreateSourceSurveySparrow - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSurveySparrow(ctx context.Context, request shared.SourceSurveySparrowCreateRequest) (*operations.CreateSourceSurveySparrowResponse, error) {
+func (s *sources) CreateSourceSurveySparrow(ctx context.Context, request *shared.SourceSurveySparrowCreateRequest) (*operations.CreateSourceSurveySparrowResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#SurveySparrow"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11232,7 +11399,7 @@ func (s *sources) CreateSourceSurveySparrow(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11265,12 +11432,14 @@ func (s *sources) CreateSourceSurveySparrow(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11282,15 +11451,14 @@ func (s *sources) CreateSourceSurveySparrow(ctx context.Context, request shared.
// CreateSourceSurveymonkey - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceSurveymonkey(ctx context.Context, request shared.SourceSurveymonkeyCreateRequest) (*operations.CreateSourceSurveymonkeyResponse, error) {
+func (s *sources) CreateSourceSurveymonkey(ctx context.Context, request *shared.SourceSurveymonkeyCreateRequest) (*operations.CreateSourceSurveymonkeyResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Surveymonkey"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11299,7 +11467,7 @@ func (s *sources) CreateSourceSurveymonkey(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11332,12 +11500,14 @@ func (s *sources) CreateSourceSurveymonkey(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11349,15 +11519,14 @@ func (s *sources) CreateSourceSurveymonkey(ctx context.Context, request shared.S
// CreateSourceTempo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTempo(ctx context.Context, request shared.SourceTempoCreateRequest) (*operations.CreateSourceTempoResponse, error) {
+func (s *sources) CreateSourceTempo(ctx context.Context, request *shared.SourceTempoCreateRequest) (*operations.CreateSourceTempoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Tempo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11366,7 +11535,7 @@ func (s *sources) CreateSourceTempo(ctx context.Context, request shared.SourceTe
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11399,12 +11568,14 @@ func (s *sources) CreateSourceTempo(ctx context.Context, request shared.SourceTe
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11416,15 +11587,14 @@ func (s *sources) CreateSourceTempo(ctx context.Context, request shared.SourceTe
// CreateSourceTheGuardianAPI - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTheGuardianAPI(ctx context.Context, request shared.SourceTheGuardianAPICreateRequest) (*operations.CreateSourceTheGuardianAPIResponse, error) {
+func (s *sources) CreateSourceTheGuardianAPI(ctx context.Context, request *shared.SourceTheGuardianAPICreateRequest) (*operations.CreateSourceTheGuardianAPIResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#TheGuardianApi"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11433,7 +11603,7 @@ func (s *sources) CreateSourceTheGuardianAPI(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11466,12 +11636,14 @@ func (s *sources) CreateSourceTheGuardianAPI(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11483,15 +11655,14 @@ func (s *sources) CreateSourceTheGuardianAPI(ctx context.Context, request shared
// CreateSourceTiktokMarketing - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTiktokMarketing(ctx context.Context, request shared.SourceTiktokMarketingCreateRequest) (*operations.CreateSourceTiktokMarketingResponse, error) {
+func (s *sources) CreateSourceTiktokMarketing(ctx context.Context, request *shared.SourceTiktokMarketingCreateRequest) (*operations.CreateSourceTiktokMarketingResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#TiktokMarketing"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11500,7 +11671,7 @@ func (s *sources) CreateSourceTiktokMarketing(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11533,12 +11704,14 @@ func (s *sources) CreateSourceTiktokMarketing(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11550,15 +11723,14 @@ func (s *sources) CreateSourceTiktokMarketing(ctx context.Context, request share
// CreateSourceTodoist - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTodoist(ctx context.Context, request shared.SourceTodoistCreateRequest) (*operations.CreateSourceTodoistResponse, error) {
+func (s *sources) CreateSourceTodoist(ctx context.Context, request *shared.SourceTodoistCreateRequest) (*operations.CreateSourceTodoistResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Todoist"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11567,7 +11739,7 @@ func (s *sources) CreateSourceTodoist(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11600,12 +11772,14 @@ func (s *sources) CreateSourceTodoist(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11617,15 +11791,14 @@ func (s *sources) CreateSourceTodoist(ctx context.Context, request shared.Source
// CreateSourceTrello - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTrello(ctx context.Context, request shared.SourceTrelloCreateRequest) (*operations.CreateSourceTrelloResponse, error) {
+func (s *sources) CreateSourceTrello(ctx context.Context, request *shared.SourceTrelloCreateRequest) (*operations.CreateSourceTrelloResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Trello"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11634,7 +11807,7 @@ func (s *sources) CreateSourceTrello(ctx context.Context, request shared.SourceT
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11667,12 +11840,14 @@ func (s *sources) CreateSourceTrello(ctx context.Context, request shared.SourceT
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11684,15 +11859,14 @@ func (s *sources) CreateSourceTrello(ctx context.Context, request shared.SourceT
// CreateSourceTrustpilot - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTrustpilot(ctx context.Context, request shared.SourceTrustpilotCreateRequest) (*operations.CreateSourceTrustpilotResponse, error) {
+func (s *sources) CreateSourceTrustpilot(ctx context.Context, request *shared.SourceTrustpilotCreateRequest) (*operations.CreateSourceTrustpilotResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Trustpilot"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11701,7 +11875,7 @@ func (s *sources) CreateSourceTrustpilot(ctx context.Context, request shared.Sou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11734,12 +11908,14 @@ func (s *sources) CreateSourceTrustpilot(ctx context.Context, request shared.Sou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11751,15 +11927,14 @@ func (s *sources) CreateSourceTrustpilot(ctx context.Context, request shared.Sou
// CreateSourceTvmazeSchedule - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTvmazeSchedule(ctx context.Context, request shared.SourceTvmazeScheduleCreateRequest) (*operations.CreateSourceTvmazeScheduleResponse, error) {
+func (s *sources) CreateSourceTvmazeSchedule(ctx context.Context, request *shared.SourceTvmazeScheduleCreateRequest) (*operations.CreateSourceTvmazeScheduleResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#TvmazeSchedule"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11768,7 +11943,7 @@ func (s *sources) CreateSourceTvmazeSchedule(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11801,12 +11976,14 @@ func (s *sources) CreateSourceTvmazeSchedule(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11818,15 +11995,14 @@ func (s *sources) CreateSourceTvmazeSchedule(ctx context.Context, request shared
// CreateSourceTwilio - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTwilio(ctx context.Context, request shared.SourceTwilioCreateRequest) (*operations.CreateSourceTwilioResponse, error) {
+func (s *sources) CreateSourceTwilio(ctx context.Context, request *shared.SourceTwilioCreateRequest) (*operations.CreateSourceTwilioResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Twilio"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11835,7 +12011,7 @@ func (s *sources) CreateSourceTwilio(ctx context.Context, request shared.SourceT
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11868,12 +12044,14 @@ func (s *sources) CreateSourceTwilio(ctx context.Context, request shared.SourceT
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11885,15 +12063,14 @@ func (s *sources) CreateSourceTwilio(ctx context.Context, request shared.SourceT
// CreateSourceTwilioTaskrouter - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTwilioTaskrouter(ctx context.Context, request shared.SourceTwilioTaskrouterCreateRequest) (*operations.CreateSourceTwilioTaskrouterResponse, error) {
+func (s *sources) CreateSourceTwilioTaskrouter(ctx context.Context, request *shared.SourceTwilioTaskrouterCreateRequest) (*operations.CreateSourceTwilioTaskrouterResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#TwilioTaskrouter"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11902,7 +12079,7 @@ func (s *sources) CreateSourceTwilioTaskrouter(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -11935,12 +12112,14 @@ func (s *sources) CreateSourceTwilioTaskrouter(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -11952,15 +12131,14 @@ func (s *sources) CreateSourceTwilioTaskrouter(ctx context.Context, request shar
// CreateSourceTwitter - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTwitter(ctx context.Context, request shared.SourceTwitterCreateRequest) (*operations.CreateSourceTwitterResponse, error) {
+func (s *sources) CreateSourceTwitter(ctx context.Context, request *shared.SourceTwitterCreateRequest) (*operations.CreateSourceTwitterResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Twitter"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -11969,7 +12147,7 @@ func (s *sources) CreateSourceTwitter(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12002,12 +12180,14 @@ func (s *sources) CreateSourceTwitter(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12019,15 +12199,14 @@ func (s *sources) CreateSourceTwitter(ctx context.Context, request shared.Source
// CreateSourceTypeform - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceTypeform(ctx context.Context, request shared.SourceTypeformCreateRequest) (*operations.CreateSourceTypeformResponse, error) {
+func (s *sources) CreateSourceTypeform(ctx context.Context, request *shared.SourceTypeformCreateRequest) (*operations.CreateSourceTypeformResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Typeform"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12036,7 +12215,7 @@ func (s *sources) CreateSourceTypeform(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12069,12 +12248,14 @@ func (s *sources) CreateSourceTypeform(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12086,15 +12267,14 @@ func (s *sources) CreateSourceTypeform(ctx context.Context, request shared.Sourc
// CreateSourceUsCensus - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceUsCensus(ctx context.Context, request shared.SourceUsCensusCreateRequest) (*operations.CreateSourceUsCensusResponse, error) {
+func (s *sources) CreateSourceUsCensus(ctx context.Context, request *shared.SourceUsCensusCreateRequest) (*operations.CreateSourceUsCensusResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#UsCensus"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12103,7 +12283,7 @@ func (s *sources) CreateSourceUsCensus(ctx context.Context, request shared.Sourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12136,12 +12316,14 @@ func (s *sources) CreateSourceUsCensus(ctx context.Context, request shared.Sourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12153,15 +12335,14 @@ func (s *sources) CreateSourceUsCensus(ctx context.Context, request shared.Sourc
// CreateSourceVantage - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceVantage(ctx context.Context, request shared.SourceVantageCreateRequest) (*operations.CreateSourceVantageResponse, error) {
+func (s *sources) CreateSourceVantage(ctx context.Context, request *shared.SourceVantageCreateRequest) (*operations.CreateSourceVantageResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Vantage"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12170,7 +12351,7 @@ func (s *sources) CreateSourceVantage(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12203,12 +12384,14 @@ func (s *sources) CreateSourceVantage(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12220,15 +12403,14 @@ func (s *sources) CreateSourceVantage(ctx context.Context, request shared.Source
// CreateSourceWebflow - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceWebflow(ctx context.Context, request shared.SourceWebflowCreateRequest) (*operations.CreateSourceWebflowResponse, error) {
+func (s *sources) CreateSourceWebflow(ctx context.Context, request *shared.SourceWebflowCreateRequest) (*operations.CreateSourceWebflowResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Webflow"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12237,7 +12419,7 @@ func (s *sources) CreateSourceWebflow(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12270,12 +12452,14 @@ func (s *sources) CreateSourceWebflow(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12287,15 +12471,14 @@ func (s *sources) CreateSourceWebflow(ctx context.Context, request shared.Source
// CreateSourceWhiskyHunter - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceWhiskyHunter(ctx context.Context, request shared.SourceWhiskyHunterCreateRequest) (*operations.CreateSourceWhiskyHunterResponse, error) {
+func (s *sources) CreateSourceWhiskyHunter(ctx context.Context, request *shared.SourceWhiskyHunterCreateRequest) (*operations.CreateSourceWhiskyHunterResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#WhiskyHunter"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12304,7 +12487,7 @@ func (s *sources) CreateSourceWhiskyHunter(ctx context.Context, request shared.S
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12337,12 +12520,14 @@ func (s *sources) CreateSourceWhiskyHunter(ctx context.Context, request shared.S
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12354,15 +12539,14 @@ func (s *sources) CreateSourceWhiskyHunter(ctx context.Context, request shared.S
// CreateSourceWikipediaPageviews - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceWikipediaPageviews(ctx context.Context, request shared.SourceWikipediaPageviewsCreateRequest) (*operations.CreateSourceWikipediaPageviewsResponse, error) {
+func (s *sources) CreateSourceWikipediaPageviews(ctx context.Context, request *shared.SourceWikipediaPageviewsCreateRequest) (*operations.CreateSourceWikipediaPageviewsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#WikipediaPageviews"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12371,7 +12555,7 @@ func (s *sources) CreateSourceWikipediaPageviews(ctx context.Context, request sh
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12404,12 +12588,14 @@ func (s *sources) CreateSourceWikipediaPageviews(ctx context.Context, request sh
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12421,15 +12607,14 @@ func (s *sources) CreateSourceWikipediaPageviews(ctx context.Context, request sh
// CreateSourceWoocommerce - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceWoocommerce(ctx context.Context, request shared.SourceWoocommerceCreateRequest) (*operations.CreateSourceWoocommerceResponse, error) {
+func (s *sources) CreateSourceWoocommerce(ctx context.Context, request *shared.SourceWoocommerceCreateRequest) (*operations.CreateSourceWoocommerceResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Woocommerce"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12438,7 +12623,7 @@ func (s *sources) CreateSourceWoocommerce(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12471,12 +12656,14 @@ func (s *sources) CreateSourceWoocommerce(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12488,15 +12675,14 @@ func (s *sources) CreateSourceWoocommerce(ctx context.Context, request shared.So
// CreateSourceXero - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceXero(ctx context.Context, request shared.SourceXeroCreateRequest) (*operations.CreateSourceXeroResponse, error) {
+func (s *sources) CreateSourceXero(ctx context.Context, request *shared.SourceXeroCreateRequest) (*operations.CreateSourceXeroResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Xero"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12505,7 +12691,7 @@ func (s *sources) CreateSourceXero(ctx context.Context, request shared.SourceXer
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12538,12 +12724,14 @@ func (s *sources) CreateSourceXero(ctx context.Context, request shared.SourceXer
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12555,15 +12743,14 @@ func (s *sources) CreateSourceXero(ctx context.Context, request shared.SourceXer
// CreateSourceXkcd - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceXkcd(ctx context.Context, request shared.SourceXkcdCreateRequest) (*operations.CreateSourceXkcdResponse, error) {
+func (s *sources) CreateSourceXkcd(ctx context.Context, request *shared.SourceXkcdCreateRequest) (*operations.CreateSourceXkcdResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Xkcd"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12572,7 +12759,7 @@ func (s *sources) CreateSourceXkcd(ctx context.Context, request shared.SourceXkc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12605,12 +12792,14 @@ func (s *sources) CreateSourceXkcd(ctx context.Context, request shared.SourceXkc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12622,15 +12811,14 @@ func (s *sources) CreateSourceXkcd(ctx context.Context, request shared.SourceXkc
// CreateSourceYandexMetrica - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceYandexMetrica(ctx context.Context, request shared.SourceYandexMetricaCreateRequest) (*operations.CreateSourceYandexMetricaResponse, error) {
+func (s *sources) CreateSourceYandexMetrica(ctx context.Context, request *shared.SourceYandexMetricaCreateRequest) (*operations.CreateSourceYandexMetricaResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#YandexMetrica"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12639,7 +12827,7 @@ func (s *sources) CreateSourceYandexMetrica(ctx context.Context, request shared.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12672,12 +12860,14 @@ func (s *sources) CreateSourceYandexMetrica(ctx context.Context, request shared.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12689,15 +12879,14 @@ func (s *sources) CreateSourceYandexMetrica(ctx context.Context, request shared.
// CreateSourceYotpo - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceYotpo(ctx context.Context, request shared.SourceYotpoCreateRequest) (*operations.CreateSourceYotpoResponse, error) {
+func (s *sources) CreateSourceYotpo(ctx context.Context, request *shared.SourceYotpoCreateRequest) (*operations.CreateSourceYotpoResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Yotpo"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12706,7 +12895,7 @@ func (s *sources) CreateSourceYotpo(ctx context.Context, request shared.SourceYo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12739,12 +12928,14 @@ func (s *sources) CreateSourceYotpo(ctx context.Context, request shared.SourceYo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12756,15 +12947,14 @@ func (s *sources) CreateSourceYotpo(ctx context.Context, request shared.SourceYo
// CreateSourceYounium - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceYounium(ctx context.Context, request shared.SourceYouniumCreateRequest) (*operations.CreateSourceYouniumResponse, error) {
+func (s *sources) CreateSourceYounium(ctx context.Context, request *shared.SourceYouniumCreateRequest) (*operations.CreateSourceYouniumResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Younium"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12773,7 +12963,7 @@ func (s *sources) CreateSourceYounium(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12806,12 +12996,14 @@ func (s *sources) CreateSourceYounium(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12823,15 +13015,14 @@ func (s *sources) CreateSourceYounium(ctx context.Context, request shared.Source
// CreateSourceYoutubeAnalytics - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceYoutubeAnalytics(ctx context.Context, request shared.SourceYoutubeAnalyticsCreateRequest) (*operations.CreateSourceYoutubeAnalyticsResponse, error) {
+func (s *sources) CreateSourceYoutubeAnalytics(ctx context.Context, request *shared.SourceYoutubeAnalyticsCreateRequest) (*operations.CreateSourceYoutubeAnalyticsResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#YoutubeAnalytics"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12840,7 +13031,7 @@ func (s *sources) CreateSourceYoutubeAnalytics(ctx context.Context, request shar
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12873,12 +13064,14 @@ func (s *sources) CreateSourceYoutubeAnalytics(ctx context.Context, request shar
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12890,15 +13083,14 @@ func (s *sources) CreateSourceYoutubeAnalytics(ctx context.Context, request shar
// CreateSourceZendeskChat - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZendeskChat(ctx context.Context, request shared.SourceZendeskChatCreateRequest) (*operations.CreateSourceZendeskChatResponse, error) {
+func (s *sources) CreateSourceZendeskChat(ctx context.Context, request *shared.SourceZendeskChatCreateRequest) (*operations.CreateSourceZendeskChatResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ZendeskChat"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12907,7 +13099,7 @@ func (s *sources) CreateSourceZendeskChat(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -12940,12 +13132,14 @@ func (s *sources) CreateSourceZendeskChat(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -12957,15 +13151,14 @@ func (s *sources) CreateSourceZendeskChat(ctx context.Context, request shared.So
// CreateSourceZendeskSunshine - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZendeskSunshine(ctx context.Context, request shared.SourceZendeskSunshineCreateRequest) (*operations.CreateSourceZendeskSunshineResponse, error) {
+func (s *sources) CreateSourceZendeskSunshine(ctx context.Context, request *shared.SourceZendeskSunshineCreateRequest) (*operations.CreateSourceZendeskSunshineResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ZendeskSunshine"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -12974,7 +13167,7 @@ func (s *sources) CreateSourceZendeskSunshine(ctx context.Context, request share
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13007,12 +13200,14 @@ func (s *sources) CreateSourceZendeskSunshine(ctx context.Context, request share
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13024,15 +13219,14 @@ func (s *sources) CreateSourceZendeskSunshine(ctx context.Context, request share
// CreateSourceZendeskSupport - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZendeskSupport(ctx context.Context, request shared.SourceZendeskSupportCreateRequest) (*operations.CreateSourceZendeskSupportResponse, error) {
+func (s *sources) CreateSourceZendeskSupport(ctx context.Context, request *shared.SourceZendeskSupportCreateRequest) (*operations.CreateSourceZendeskSupportResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ZendeskSupport"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13041,7 +13235,7 @@ func (s *sources) CreateSourceZendeskSupport(ctx context.Context, request shared
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13074,12 +13268,14 @@ func (s *sources) CreateSourceZendeskSupport(ctx context.Context, request shared
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13091,15 +13287,14 @@ func (s *sources) CreateSourceZendeskSupport(ctx context.Context, request shared
// CreateSourceZendeskTalk - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZendeskTalk(ctx context.Context, request shared.SourceZendeskTalkCreateRequest) (*operations.CreateSourceZendeskTalkResponse, error) {
+func (s *sources) CreateSourceZendeskTalk(ctx context.Context, request *shared.SourceZendeskTalkCreateRequest) (*operations.CreateSourceZendeskTalkResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ZendeskTalk"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13108,7 +13303,7 @@ func (s *sources) CreateSourceZendeskTalk(ctx context.Context, request shared.So
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13141,12 +13336,14 @@ func (s *sources) CreateSourceZendeskTalk(ctx context.Context, request shared.So
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13158,15 +13355,14 @@ func (s *sources) CreateSourceZendeskTalk(ctx context.Context, request shared.So
// CreateSourceZenloop - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZenloop(ctx context.Context, request shared.SourceZenloopCreateRequest) (*operations.CreateSourceZenloopResponse, error) {
+func (s *sources) CreateSourceZenloop(ctx context.Context, request *shared.SourceZenloopCreateRequest) (*operations.CreateSourceZenloopResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Zenloop"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13175,7 +13371,7 @@ func (s *sources) CreateSourceZenloop(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13208,12 +13404,14 @@ func (s *sources) CreateSourceZenloop(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13225,15 +13423,14 @@ func (s *sources) CreateSourceZenloop(ctx context.Context, request shared.Source
// CreateSourceZohoCrm - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZohoCrm(ctx context.Context, request shared.SourceZohoCrmCreateRequest) (*operations.CreateSourceZohoCrmResponse, error) {
+func (s *sources) CreateSourceZohoCrm(ctx context.Context, request *shared.SourceZohoCrmCreateRequest) (*operations.CreateSourceZohoCrmResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#ZohoCrm"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13242,7 +13439,7 @@ func (s *sources) CreateSourceZohoCrm(ctx context.Context, request shared.Source
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13275,12 +13472,14 @@ func (s *sources) CreateSourceZohoCrm(ctx context.Context, request shared.Source
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13292,15 +13491,14 @@ func (s *sources) CreateSourceZohoCrm(ctx context.Context, request shared.Source
// CreateSourceZoom - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZoom(ctx context.Context, request shared.SourceZoomCreateRequest) (*operations.CreateSourceZoomResponse, error) {
+func (s *sources) CreateSourceZoom(ctx context.Context, request *shared.SourceZoomCreateRequest) (*operations.CreateSourceZoomResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Zoom"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13309,7 +13507,7 @@ func (s *sources) CreateSourceZoom(ctx context.Context, request shared.SourceZoo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13342,12 +13540,14 @@ func (s *sources) CreateSourceZoom(ctx context.Context, request shared.SourceZoo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13359,15 +13559,14 @@ func (s *sources) CreateSourceZoom(ctx context.Context, request shared.SourceZoo
// CreateSourceZuora - Create a source
// Creates a source given a name, workspace id, and a json blob containing the configuration for the source.
-func (s *sources) CreateSourceZuora(ctx context.Context, request shared.SourceZuoraCreateRequest) (*operations.CreateSourceZuoraResponse, error) {
+func (s *sources) CreateSourceZuora(ctx context.Context, request *shared.SourceZuoraCreateRequest) (*operations.CreateSourceZuoraResponse, error) {
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources#Zuora"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -13376,7 +13575,7 @@ func (s *sources) CreateSourceZuora(ctx context.Context, request shared.SourceZu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -13409,12 +13608,14 @@ func (s *sources) CreateSourceZuora(ctx context.Context, request shared.SourceZu
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -13437,7 +13638,7 @@ func (s *sources) DeleteSource(ctx context.Context, request operations.DeleteSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13487,7 +13688,7 @@ func (s *sources) DeleteSourceAha(ctx context.Context, request operations.Delete
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13537,7 +13738,7 @@ func (s *sources) DeleteSourceAircall(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13587,7 +13788,7 @@ func (s *sources) DeleteSourceAirtable(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13637,7 +13838,7 @@ func (s *sources) DeleteSourceAlloydb(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13687,7 +13888,7 @@ func (s *sources) DeleteSourceAmazonAds(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13737,7 +13938,7 @@ func (s *sources) DeleteSourceAmazonSellerPartner(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13787,7 +13988,7 @@ func (s *sources) DeleteSourceAmazonSqs(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13837,7 +14038,7 @@ func (s *sources) DeleteSourceAmplitude(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13887,7 +14088,7 @@ func (s *sources) DeleteSourceApifyDataset(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13937,7 +14138,7 @@ func (s *sources) DeleteSourceAppfollow(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -13987,7 +14188,7 @@ func (s *sources) DeleteSourceAsana(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14037,7 +14238,7 @@ func (s *sources) DeleteSourceAuth0(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14087,7 +14288,7 @@ func (s *sources) DeleteSourceAwsCloudtrail(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14137,7 +14338,7 @@ func (s *sources) DeleteSourceAzureBlobStorage(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14187,7 +14388,7 @@ func (s *sources) DeleteSourceAzureTable(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14237,7 +14438,7 @@ func (s *sources) DeleteSourceBambooHr(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14287,7 +14488,7 @@ func (s *sources) DeleteSourceBigcommerce(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14337,7 +14538,7 @@ func (s *sources) DeleteSourceBigquery(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14387,7 +14588,7 @@ func (s *sources) DeleteSourceBingAds(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14437,7 +14638,7 @@ func (s *sources) DeleteSourceBraintree(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14487,7 +14688,7 @@ func (s *sources) DeleteSourceBraze(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14537,7 +14738,7 @@ func (s *sources) DeleteSourceChargebee(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14587,7 +14788,7 @@ func (s *sources) DeleteSourceChartmogul(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14637,7 +14838,7 @@ func (s *sources) DeleteSourceClickhouse(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14687,7 +14888,7 @@ func (s *sources) DeleteSourceClickupAPI(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14737,7 +14938,7 @@ func (s *sources) DeleteSourceClockify(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14787,7 +14988,7 @@ func (s *sources) DeleteSourceCloseCom(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14837,7 +15038,7 @@ func (s *sources) DeleteSourceCoda(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14887,7 +15088,7 @@ func (s *sources) DeleteSourceCoinAPI(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14937,7 +15138,7 @@ func (s *sources) DeleteSourceCoinmarketcap(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -14987,7 +15188,7 @@ func (s *sources) DeleteSourceConfigcat(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15037,7 +15238,7 @@ func (s *sources) DeleteSourceConfluence(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15087,7 +15288,7 @@ func (s *sources) DeleteSourceConvex(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15137,7 +15338,7 @@ func (s *sources) DeleteSourceDatascope(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15187,7 +15388,7 @@ func (s *sources) DeleteSourceDelighted(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15237,7 +15438,7 @@ func (s *sources) DeleteSourceDixa(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15287,7 +15488,7 @@ func (s *sources) DeleteSourceDockerhub(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15337,7 +15538,7 @@ func (s *sources) DeleteSourceDremio(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15387,7 +15588,7 @@ func (s *sources) DeleteSourceDynamodb(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15437,7 +15638,7 @@ func (s *sources) DeleteSourceE2eTestCloud(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15487,7 +15688,7 @@ func (s *sources) DeleteSourceEmailoctopus(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15537,7 +15738,7 @@ func (s *sources) DeleteSourceExchangeRates(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15587,7 +15788,7 @@ func (s *sources) DeleteSourceFacebookMarketing(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15637,7 +15838,7 @@ func (s *sources) DeleteSourceFacebookPages(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15687,7 +15888,7 @@ func (s *sources) DeleteSourceFaker(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15737,7 +15938,7 @@ func (s *sources) DeleteSourceFauna(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15787,7 +15988,7 @@ func (s *sources) DeleteSourceFileSecure(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15837,7 +16038,7 @@ func (s *sources) DeleteSourceFirebolt(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15887,7 +16088,7 @@ func (s *sources) DeleteSourceFreshcaller(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15937,7 +16138,7 @@ func (s *sources) DeleteSourceFreshdesk(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -15987,7 +16188,7 @@ func (s *sources) DeleteSourceFreshsales(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16037,7 +16238,7 @@ func (s *sources) DeleteSourceGainsightPx(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16087,7 +16288,7 @@ func (s *sources) DeleteSourceGcs(ctx context.Context, request operations.Delete
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16137,7 +16338,7 @@ func (s *sources) DeleteSourceGetlago(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16187,7 +16388,7 @@ func (s *sources) DeleteSourceGithub(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16237,7 +16438,7 @@ func (s *sources) DeleteSourceGitlab(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16287,7 +16488,7 @@ func (s *sources) DeleteSourceGlassfrog(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16337,7 +16538,7 @@ func (s *sources) DeleteSourceGnews(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16387,7 +16588,7 @@ func (s *sources) DeleteSourceGoogleAds(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16437,7 +16638,7 @@ func (s *sources) DeleteSourceGoogleAnalyticsDataAPI(ctx context.Context, reques
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16487,7 +16688,7 @@ func (s *sources) DeleteSourceGoogleAnalyticsV4(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16537,7 +16738,7 @@ func (s *sources) DeleteSourceGoogleDirectory(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16587,7 +16788,7 @@ func (s *sources) DeleteSourceGooglePagespeedInsights(ctx context.Context, reque
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16637,7 +16838,7 @@ func (s *sources) DeleteSourceGoogleSearchConsole(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16687,7 +16888,7 @@ func (s *sources) DeleteSourceGoogleSheets(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16737,7 +16938,7 @@ func (s *sources) DeleteSourceGoogleWebfonts(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16787,7 +16988,7 @@ func (s *sources) DeleteSourceGoogleWorkspaceAdminReports(ctx context.Context, r
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16837,7 +17038,7 @@ func (s *sources) DeleteSourceGreenhouse(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16887,7 +17088,7 @@ func (s *sources) DeleteSourceGridly(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16937,7 +17138,7 @@ func (s *sources) DeleteSourceHarvest(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -16987,7 +17188,7 @@ func (s *sources) DeleteSourceHubplanner(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17037,7 +17238,7 @@ func (s *sources) DeleteSourceHubspot(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17087,7 +17288,7 @@ func (s *sources) DeleteSourceInsightly(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17137,7 +17338,7 @@ func (s *sources) DeleteSourceInstagram(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17187,7 +17388,7 @@ func (s *sources) DeleteSourceInstatus(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17237,7 +17438,7 @@ func (s *sources) DeleteSourceIntercom(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17287,7 +17488,7 @@ func (s *sources) DeleteSourceIp2whois(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17337,7 +17538,7 @@ func (s *sources) DeleteSourceIterable(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17387,7 +17588,7 @@ func (s *sources) DeleteSourceJira(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17437,7 +17638,7 @@ func (s *sources) DeleteSourceK6Cloud(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17487,7 +17688,7 @@ func (s *sources) DeleteSourceKlarna(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17537,7 +17738,7 @@ func (s *sources) DeleteSourceKlaviyo(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17587,7 +17788,7 @@ func (s *sources) DeleteSourceKustomerSinger(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17637,7 +17838,7 @@ func (s *sources) DeleteSourceKyve(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17687,7 +17888,7 @@ func (s *sources) DeleteSourceLaunchdarkly(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17737,7 +17938,7 @@ func (s *sources) DeleteSourceLemlist(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17787,7 +17988,7 @@ func (s *sources) DeleteSourceLeverHiring(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17837,7 +18038,7 @@ func (s *sources) DeleteSourceLinkedinAds(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17887,7 +18088,7 @@ func (s *sources) DeleteSourceLinkedinPages(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17937,7 +18138,7 @@ func (s *sources) DeleteSourceLinnworks(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -17987,7 +18188,7 @@ func (s *sources) DeleteSourceLokalise(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18037,7 +18238,7 @@ func (s *sources) DeleteSourceMailchimp(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18087,7 +18288,7 @@ func (s *sources) DeleteSourceMailgun(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18137,7 +18338,7 @@ func (s *sources) DeleteSourceMailjetSms(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18187,7 +18388,7 @@ func (s *sources) DeleteSourceMarketo(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18237,7 +18438,7 @@ func (s *sources) DeleteSourceMetabase(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18287,7 +18488,7 @@ func (s *sources) DeleteSourceMicrosoftTeams(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18337,7 +18538,7 @@ func (s *sources) DeleteSourceMixpanel(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18387,7 +18588,7 @@ func (s *sources) DeleteSourceMonday(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18437,7 +18638,7 @@ func (s *sources) DeleteSourceMongodb(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18487,7 +18688,7 @@ func (s *sources) DeleteSourceMongodbInternalPoc(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18537,7 +18738,7 @@ func (s *sources) DeleteSourceMssql(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18587,7 +18788,7 @@ func (s *sources) DeleteSourceMyHours(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18637,7 +18838,7 @@ func (s *sources) DeleteSourceMysql(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18687,7 +18888,7 @@ func (s *sources) DeleteSourceNetsuite(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18737,7 +18938,7 @@ func (s *sources) DeleteSourceNotion(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18787,7 +18988,7 @@ func (s *sources) DeleteSourceNytimes(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18837,7 +19038,7 @@ func (s *sources) DeleteSourceOkta(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18887,7 +19088,7 @@ func (s *sources) DeleteSourceOmnisend(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18937,7 +19138,7 @@ func (s *sources) DeleteSourceOnesignal(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -18987,7 +19188,7 @@ func (s *sources) DeleteSourceOracle(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19037,7 +19238,7 @@ func (s *sources) DeleteSourceOrb(ctx context.Context, request operations.Delete
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19087,7 +19288,7 @@ func (s *sources) DeleteSourceOrbit(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19137,7 +19338,7 @@ func (s *sources) DeleteSourceOutbrainAmplify(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19187,7 +19388,7 @@ func (s *sources) DeleteSourceOutreach(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19237,7 +19438,7 @@ func (s *sources) DeleteSourcePaypalTransaction(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19287,7 +19488,7 @@ func (s *sources) DeleteSourcePaystack(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19337,7 +19538,7 @@ func (s *sources) DeleteSourcePendo(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19387,7 +19588,7 @@ func (s *sources) DeleteSourcePersistiq(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19437,7 +19638,7 @@ func (s *sources) DeleteSourcePexelsAPI(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19487,7 +19688,7 @@ func (s *sources) DeleteSourcePinterest(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19537,7 +19738,7 @@ func (s *sources) DeleteSourcePipedrive(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19587,7 +19788,7 @@ func (s *sources) DeleteSourcePocket(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19637,7 +19838,7 @@ func (s *sources) DeleteSourcePokeapi(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19687,7 +19888,7 @@ func (s *sources) DeleteSourcePolygonStockAPI(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19737,7 +19938,7 @@ func (s *sources) DeleteSourcePostgres(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19787,7 +19988,7 @@ func (s *sources) DeleteSourcePosthog(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19837,7 +20038,7 @@ func (s *sources) DeleteSourcePostmarkapp(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19887,7 +20088,7 @@ func (s *sources) DeleteSourcePrestashop(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19937,7 +20138,7 @@ func (s *sources) DeleteSourcePunkAPI(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -19987,7 +20188,7 @@ func (s *sources) DeleteSourcePypi(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20037,7 +20238,7 @@ func (s *sources) DeleteSourceQualaroo(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20087,7 +20288,7 @@ func (s *sources) DeleteSourceQuickbooks(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20137,7 +20338,7 @@ func (s *sources) DeleteSourceRailz(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20187,7 +20388,7 @@ func (s *sources) DeleteSourceRecharge(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20237,7 +20438,7 @@ func (s *sources) DeleteSourceRecreation(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20287,7 +20488,7 @@ func (s *sources) DeleteSourceRecruitee(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20337,7 +20538,7 @@ func (s *sources) DeleteSourceRecurly(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20387,7 +20588,7 @@ func (s *sources) DeleteSourceRedshift(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20437,7 +20638,7 @@ func (s *sources) DeleteSourceRetently(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20487,7 +20688,7 @@ func (s *sources) DeleteSourceRkiCovid(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20537,7 +20738,7 @@ func (s *sources) DeleteSourceRss(ctx context.Context, request operations.Delete
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20587,7 +20788,7 @@ func (s *sources) DeleteSourceS3(ctx context.Context, request operations.DeleteS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20637,7 +20838,7 @@ func (s *sources) DeleteSourceSalesforce(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20687,7 +20888,7 @@ func (s *sources) DeleteSourceSalesloft(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20737,7 +20938,7 @@ func (s *sources) DeleteSourceSapFieldglass(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20787,7 +20988,7 @@ func (s *sources) DeleteSourceSecoda(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20837,7 +21038,7 @@ func (s *sources) DeleteSourceSendgrid(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20887,7 +21088,7 @@ func (s *sources) DeleteSourceSendinblue(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20937,7 +21138,7 @@ func (s *sources) DeleteSourceSenseforce(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -20987,7 +21188,7 @@ func (s *sources) DeleteSourceSentry(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21037,7 +21238,7 @@ func (s *sources) DeleteSourceSftp(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21087,7 +21288,7 @@ func (s *sources) DeleteSourceSftpBulk(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21137,7 +21338,7 @@ func (s *sources) DeleteSourceShopify(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21187,7 +21388,7 @@ func (s *sources) DeleteSourceShortio(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21237,7 +21438,7 @@ func (s *sources) DeleteSourceSlack(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21287,7 +21488,7 @@ func (s *sources) DeleteSourceSmaily(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21337,7 +21538,7 @@ func (s *sources) DeleteSourceSmartengage(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21387,7 +21588,7 @@ func (s *sources) DeleteSourceSmartsheets(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21437,7 +21638,7 @@ func (s *sources) DeleteSourceSnapchatMarketing(ctx context.Context, request ope
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21487,7 +21688,7 @@ func (s *sources) DeleteSourceSnowflake(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21537,7 +21738,7 @@ func (s *sources) DeleteSourceSonarCloud(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21587,7 +21788,7 @@ func (s *sources) DeleteSourceSpacexAPI(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21637,7 +21838,7 @@ func (s *sources) DeleteSourceSquare(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21687,7 +21888,7 @@ func (s *sources) DeleteSourceStrava(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21737,7 +21938,7 @@ func (s *sources) DeleteSourceStripe(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21787,7 +21988,7 @@ func (s *sources) DeleteSourceSurveySparrow(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21837,7 +22038,7 @@ func (s *sources) DeleteSourceSurveymonkey(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21887,7 +22088,7 @@ func (s *sources) DeleteSourceTempo(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21937,7 +22138,7 @@ func (s *sources) DeleteSourceTheGuardianAPI(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -21987,7 +22188,7 @@ func (s *sources) DeleteSourceTiktokMarketing(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22037,7 +22238,7 @@ func (s *sources) DeleteSourceTodoist(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22087,7 +22288,7 @@ func (s *sources) DeleteSourceTrello(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22137,7 +22338,7 @@ func (s *sources) DeleteSourceTrustpilot(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22187,7 +22388,7 @@ func (s *sources) DeleteSourceTvmazeSchedule(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22237,7 +22438,7 @@ func (s *sources) DeleteSourceTwilio(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22287,7 +22488,7 @@ func (s *sources) DeleteSourceTwilioTaskrouter(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22337,7 +22538,7 @@ func (s *sources) DeleteSourceTwitter(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22387,7 +22588,7 @@ func (s *sources) DeleteSourceTypeform(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22437,7 +22638,7 @@ func (s *sources) DeleteSourceUsCensus(ctx context.Context, request operations.D
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22487,7 +22688,7 @@ func (s *sources) DeleteSourceVantage(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22537,7 +22738,7 @@ func (s *sources) DeleteSourceWebflow(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22587,7 +22788,7 @@ func (s *sources) DeleteSourceWhiskyHunter(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22637,7 +22838,7 @@ func (s *sources) DeleteSourceWikipediaPageviews(ctx context.Context, request op
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22687,7 +22888,7 @@ func (s *sources) DeleteSourceWoocommerce(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22737,7 +22938,7 @@ func (s *sources) DeleteSourceXero(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22787,7 +22988,7 @@ func (s *sources) DeleteSourceXkcd(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22837,7 +23038,7 @@ func (s *sources) DeleteSourceYandexMetrica(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22887,7 +23088,7 @@ func (s *sources) DeleteSourceYotpo(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22937,7 +23138,7 @@ func (s *sources) DeleteSourceYounium(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -22987,7 +23188,7 @@ func (s *sources) DeleteSourceYoutubeAnalytics(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23037,7 +23238,7 @@ func (s *sources) DeleteSourceZendeskChat(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23087,7 +23288,7 @@ func (s *sources) DeleteSourceZendeskSunshine(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23137,7 +23338,7 @@ func (s *sources) DeleteSourceZendeskSupport(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23187,7 +23388,7 @@ func (s *sources) DeleteSourceZendeskTalk(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23237,7 +23438,7 @@ func (s *sources) DeleteSourceZenloop(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23287,7 +23488,7 @@ func (s *sources) DeleteSourceZohoCrm(ctx context.Context, request operations.De
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23337,7 +23538,7 @@ func (s *sources) DeleteSourceZoom(ctx context.Context, request operations.Delet
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23387,7 +23588,7 @@ func (s *sources) DeleteSourceZuora(ctx context.Context, request operations.Dele
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23437,7 +23638,7 @@ func (s *sources) GetSource(ctx context.Context, request operations.GetSourceReq
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23467,12 +23668,14 @@ func (s *sources) GetSource(ctx context.Context, request operations.GetSourceReq
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23495,7 +23698,7 @@ func (s *sources) GetSourceAha(ctx context.Context, request operations.GetSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23525,12 +23728,14 @@ func (s *sources) GetSourceAha(ctx context.Context, request operations.GetSource
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23553,7 +23758,7 @@ func (s *sources) GetSourceAircall(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23583,12 +23788,14 @@ func (s *sources) GetSourceAircall(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23611,7 +23818,7 @@ func (s *sources) GetSourceAirtable(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23641,12 +23848,14 @@ func (s *sources) GetSourceAirtable(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23669,7 +23878,7 @@ func (s *sources) GetSourceAlloydb(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23699,12 +23908,14 @@ func (s *sources) GetSourceAlloydb(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23727,7 +23938,7 @@ func (s *sources) GetSourceAmazonAds(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23757,12 +23968,14 @@ func (s *sources) GetSourceAmazonAds(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23785,7 +23998,7 @@ func (s *sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23815,12 +24028,14 @@ func (s *sources) GetSourceAmazonSellerPartner(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23843,7 +24058,7 @@ func (s *sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23873,12 +24088,14 @@ func (s *sources) GetSourceAmazonSqs(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23901,7 +24118,7 @@ func (s *sources) GetSourceAmplitude(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23931,12 +24148,14 @@ func (s *sources) GetSourceAmplitude(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -23959,7 +24178,7 @@ func (s *sources) GetSourceApifyDataset(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -23989,12 +24208,14 @@ func (s *sources) GetSourceApifyDataset(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24017,7 +24238,7 @@ func (s *sources) GetSourceAppfollow(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24047,12 +24268,14 @@ func (s *sources) GetSourceAppfollow(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24075,7 +24298,7 @@ func (s *sources) GetSourceAsana(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24105,12 +24328,14 @@ func (s *sources) GetSourceAsana(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24133,7 +24358,7 @@ func (s *sources) GetSourceAuth0(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24163,12 +24388,14 @@ func (s *sources) GetSourceAuth0(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24191,7 +24418,7 @@ func (s *sources) GetSourceAwsCloudtrail(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24221,12 +24448,14 @@ func (s *sources) GetSourceAwsCloudtrail(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24249,7 +24478,7 @@ func (s *sources) GetSourceAzureBlobStorage(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24279,12 +24508,14 @@ func (s *sources) GetSourceAzureBlobStorage(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24307,7 +24538,7 @@ func (s *sources) GetSourceAzureTable(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24337,12 +24568,14 @@ func (s *sources) GetSourceAzureTable(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24365,7 +24598,7 @@ func (s *sources) GetSourceBambooHr(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24395,12 +24628,14 @@ func (s *sources) GetSourceBambooHr(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24423,7 +24658,7 @@ func (s *sources) GetSourceBigcommerce(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24453,12 +24688,14 @@ func (s *sources) GetSourceBigcommerce(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24481,7 +24718,7 @@ func (s *sources) GetSourceBigquery(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24511,12 +24748,14 @@ func (s *sources) GetSourceBigquery(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24539,7 +24778,7 @@ func (s *sources) GetSourceBingAds(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24569,12 +24808,14 @@ func (s *sources) GetSourceBingAds(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24597,7 +24838,7 @@ func (s *sources) GetSourceBraintree(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24627,12 +24868,14 @@ func (s *sources) GetSourceBraintree(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24655,7 +24898,7 @@ func (s *sources) GetSourceBraze(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24685,12 +24928,14 @@ func (s *sources) GetSourceBraze(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24713,7 +24958,7 @@ func (s *sources) GetSourceChargebee(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24743,12 +24988,14 @@ func (s *sources) GetSourceChargebee(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24771,7 +25018,7 @@ func (s *sources) GetSourceChartmogul(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24801,12 +25048,14 @@ func (s *sources) GetSourceChartmogul(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24829,7 +25078,7 @@ func (s *sources) GetSourceClickhouse(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24859,12 +25108,14 @@ func (s *sources) GetSourceClickhouse(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24887,7 +25138,7 @@ func (s *sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24917,12 +25168,14 @@ func (s *sources) GetSourceClickupAPI(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -24945,7 +25198,7 @@ func (s *sources) GetSourceClockify(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -24975,12 +25228,14 @@ func (s *sources) GetSourceClockify(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25003,7 +25258,7 @@ func (s *sources) GetSourceCloseCom(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25033,12 +25288,14 @@ func (s *sources) GetSourceCloseCom(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25061,7 +25318,7 @@ func (s *sources) GetSourceCoda(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25091,12 +25348,14 @@ func (s *sources) GetSourceCoda(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25119,7 +25378,7 @@ func (s *sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25149,12 +25408,14 @@ func (s *sources) GetSourceCoinAPI(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25177,7 +25438,7 @@ func (s *sources) GetSourceCoinmarketcap(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25207,12 +25468,14 @@ func (s *sources) GetSourceCoinmarketcap(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25235,7 +25498,7 @@ func (s *sources) GetSourceConfigcat(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25265,12 +25528,14 @@ func (s *sources) GetSourceConfigcat(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25293,7 +25558,7 @@ func (s *sources) GetSourceConfluence(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25323,12 +25588,14 @@ func (s *sources) GetSourceConfluence(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25351,7 +25618,7 @@ func (s *sources) GetSourceConvex(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25381,12 +25648,14 @@ func (s *sources) GetSourceConvex(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25409,7 +25678,7 @@ func (s *sources) GetSourceDatascope(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25439,12 +25708,14 @@ func (s *sources) GetSourceDatascope(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25467,7 +25738,7 @@ func (s *sources) GetSourceDelighted(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25497,12 +25768,14 @@ func (s *sources) GetSourceDelighted(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25525,7 +25798,7 @@ func (s *sources) GetSourceDixa(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25555,12 +25828,14 @@ func (s *sources) GetSourceDixa(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25583,7 +25858,7 @@ func (s *sources) GetSourceDockerhub(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25613,12 +25888,14 @@ func (s *sources) GetSourceDockerhub(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25641,7 +25918,7 @@ func (s *sources) GetSourceDremio(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25671,12 +25948,14 @@ func (s *sources) GetSourceDremio(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25699,7 +25978,7 @@ func (s *sources) GetSourceDynamodb(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25729,12 +26008,14 @@ func (s *sources) GetSourceDynamodb(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25757,7 +26038,7 @@ func (s *sources) GetSourceE2eTestCloud(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25787,12 +26068,14 @@ func (s *sources) GetSourceE2eTestCloud(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25815,7 +26098,7 @@ func (s *sources) GetSourceEmailoctopus(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25845,12 +26128,14 @@ func (s *sources) GetSourceEmailoctopus(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25873,7 +26158,7 @@ func (s *sources) GetSourceExchangeRates(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25903,12 +26188,14 @@ func (s *sources) GetSourceExchangeRates(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25931,7 +26218,7 @@ func (s *sources) GetSourceFacebookMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -25961,12 +26248,14 @@ func (s *sources) GetSourceFacebookMarketing(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -25989,7 +26278,7 @@ func (s *sources) GetSourceFacebookPages(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26019,12 +26308,14 @@ func (s *sources) GetSourceFacebookPages(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26047,7 +26338,7 @@ func (s *sources) GetSourceFaker(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26077,12 +26368,14 @@ func (s *sources) GetSourceFaker(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26105,7 +26398,7 @@ func (s *sources) GetSourceFauna(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26135,12 +26428,14 @@ func (s *sources) GetSourceFauna(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26163,7 +26458,7 @@ func (s *sources) GetSourceFileSecure(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26193,12 +26488,14 @@ func (s *sources) GetSourceFileSecure(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26221,7 +26518,7 @@ func (s *sources) GetSourceFirebolt(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26251,12 +26548,14 @@ func (s *sources) GetSourceFirebolt(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26279,7 +26578,7 @@ func (s *sources) GetSourceFreshcaller(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26309,12 +26608,14 @@ func (s *sources) GetSourceFreshcaller(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26337,7 +26638,7 @@ func (s *sources) GetSourceFreshdesk(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26367,12 +26668,14 @@ func (s *sources) GetSourceFreshdesk(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26395,7 +26698,7 @@ func (s *sources) GetSourceFreshsales(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26425,12 +26728,14 @@ func (s *sources) GetSourceFreshsales(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26453,7 +26758,7 @@ func (s *sources) GetSourceGainsightPx(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26483,12 +26788,14 @@ func (s *sources) GetSourceGainsightPx(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26511,7 +26818,7 @@ func (s *sources) GetSourceGcs(ctx context.Context, request operations.GetSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26541,12 +26848,14 @@ func (s *sources) GetSourceGcs(ctx context.Context, request operations.GetSource
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26569,7 +26878,7 @@ func (s *sources) GetSourceGetlago(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26599,12 +26908,14 @@ func (s *sources) GetSourceGetlago(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26627,7 +26938,7 @@ func (s *sources) GetSourceGithub(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26657,12 +26968,14 @@ func (s *sources) GetSourceGithub(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26685,7 +26998,7 @@ func (s *sources) GetSourceGitlab(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26715,12 +27028,14 @@ func (s *sources) GetSourceGitlab(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26743,7 +27058,7 @@ func (s *sources) GetSourceGlassfrog(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26773,12 +27088,14 @@ func (s *sources) GetSourceGlassfrog(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26801,7 +27118,7 @@ func (s *sources) GetSourceGnews(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26831,12 +27148,14 @@ func (s *sources) GetSourceGnews(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26859,7 +27178,7 @@ func (s *sources) GetSourceGoogleAds(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26889,12 +27208,14 @@ func (s *sources) GetSourceGoogleAds(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26917,7 +27238,7 @@ func (s *sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -26947,12 +27268,14 @@ func (s *sources) GetSourceGoogleAnalyticsDataAPI(ctx context.Context, request o
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -26975,7 +27298,7 @@ func (s *sources) GetSourceGoogleAnalyticsV4(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27005,12 +27328,14 @@ func (s *sources) GetSourceGoogleAnalyticsV4(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27033,7 +27358,7 @@ func (s *sources) GetSourceGoogleDirectory(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27063,12 +27388,14 @@ func (s *sources) GetSourceGoogleDirectory(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27091,7 +27418,7 @@ func (s *sources) GetSourceGooglePagespeedInsights(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27121,12 +27448,14 @@ func (s *sources) GetSourceGooglePagespeedInsights(ctx context.Context, request
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27149,7 +27478,7 @@ func (s *sources) GetSourceGoogleSearchConsole(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27179,12 +27508,14 @@ func (s *sources) GetSourceGoogleSearchConsole(ctx context.Context, request oper
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27207,7 +27538,7 @@ func (s *sources) GetSourceGoogleSheets(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27237,12 +27568,14 @@ func (s *sources) GetSourceGoogleSheets(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27265,7 +27598,7 @@ func (s *sources) GetSourceGoogleWebfonts(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27295,12 +27628,14 @@ func (s *sources) GetSourceGoogleWebfonts(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27323,7 +27658,7 @@ func (s *sources) GetSourceGoogleWorkspaceAdminReports(ctx context.Context, requ
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27353,12 +27688,14 @@ func (s *sources) GetSourceGoogleWorkspaceAdminReports(ctx context.Context, requ
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27381,7 +27718,7 @@ func (s *sources) GetSourceGreenhouse(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27411,12 +27748,14 @@ func (s *sources) GetSourceGreenhouse(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27439,7 +27778,7 @@ func (s *sources) GetSourceGridly(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27469,12 +27808,14 @@ func (s *sources) GetSourceGridly(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27497,7 +27838,7 @@ func (s *sources) GetSourceHarvest(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27527,12 +27868,14 @@ func (s *sources) GetSourceHarvest(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27555,7 +27898,7 @@ func (s *sources) GetSourceHubplanner(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27585,12 +27928,14 @@ func (s *sources) GetSourceHubplanner(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27613,7 +27958,7 @@ func (s *sources) GetSourceHubspot(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27643,12 +27988,14 @@ func (s *sources) GetSourceHubspot(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27671,7 +28018,7 @@ func (s *sources) GetSourceInsightly(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27701,12 +28048,14 @@ func (s *sources) GetSourceInsightly(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27729,7 +28078,7 @@ func (s *sources) GetSourceInstagram(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27759,12 +28108,14 @@ func (s *sources) GetSourceInstagram(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27787,7 +28138,7 @@ func (s *sources) GetSourceInstatus(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27817,12 +28168,14 @@ func (s *sources) GetSourceInstatus(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27845,7 +28198,7 @@ func (s *sources) GetSourceIntercom(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27875,12 +28228,14 @@ func (s *sources) GetSourceIntercom(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27903,7 +28258,7 @@ func (s *sources) GetSourceIp2whois(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27933,12 +28288,14 @@ func (s *sources) GetSourceIp2whois(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -27961,7 +28318,7 @@ func (s *sources) GetSourceIterable(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -27991,12 +28348,14 @@ func (s *sources) GetSourceIterable(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28019,7 +28378,7 @@ func (s *sources) GetSourceJira(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28049,12 +28408,14 @@ func (s *sources) GetSourceJira(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28077,7 +28438,7 @@ func (s *sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28107,12 +28468,14 @@ func (s *sources) GetSourceK6Cloud(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28135,7 +28498,7 @@ func (s *sources) GetSourceKlarna(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28165,12 +28528,14 @@ func (s *sources) GetSourceKlarna(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28193,7 +28558,7 @@ func (s *sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28223,12 +28588,14 @@ func (s *sources) GetSourceKlaviyo(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28251,7 +28618,7 @@ func (s *sources) GetSourceKustomerSinger(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28281,12 +28648,14 @@ func (s *sources) GetSourceKustomerSinger(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28309,7 +28678,7 @@ func (s *sources) GetSourceKyve(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28339,12 +28708,14 @@ func (s *sources) GetSourceKyve(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28367,7 +28738,7 @@ func (s *sources) GetSourceLaunchdarkly(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28397,12 +28768,14 @@ func (s *sources) GetSourceLaunchdarkly(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28425,7 +28798,7 @@ func (s *sources) GetSourceLemlist(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28455,12 +28828,14 @@ func (s *sources) GetSourceLemlist(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28483,7 +28858,7 @@ func (s *sources) GetSourceLeverHiring(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28513,12 +28888,14 @@ func (s *sources) GetSourceLeverHiring(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28541,7 +28918,7 @@ func (s *sources) GetSourceLinkedinAds(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28571,12 +28948,14 @@ func (s *sources) GetSourceLinkedinAds(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28599,7 +28978,7 @@ func (s *sources) GetSourceLinkedinPages(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28629,12 +29008,14 @@ func (s *sources) GetSourceLinkedinPages(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28657,7 +29038,7 @@ func (s *sources) GetSourceLinnworks(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28687,12 +29068,14 @@ func (s *sources) GetSourceLinnworks(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28715,7 +29098,7 @@ func (s *sources) GetSourceLokalise(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28745,12 +29128,14 @@ func (s *sources) GetSourceLokalise(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28773,7 +29158,7 @@ func (s *sources) GetSourceMailchimp(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28803,12 +29188,14 @@ func (s *sources) GetSourceMailchimp(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28831,7 +29218,7 @@ func (s *sources) GetSourceMailgun(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28861,12 +29248,14 @@ func (s *sources) GetSourceMailgun(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28889,7 +29278,7 @@ func (s *sources) GetSourceMailjetSms(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28919,12 +29308,14 @@ func (s *sources) GetSourceMailjetSms(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -28947,7 +29338,7 @@ func (s *sources) GetSourceMarketo(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -28977,12 +29368,14 @@ func (s *sources) GetSourceMarketo(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29005,7 +29398,7 @@ func (s *sources) GetSourceMetabase(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29035,12 +29428,14 @@ func (s *sources) GetSourceMetabase(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29063,7 +29458,7 @@ func (s *sources) GetSourceMicrosoftTeams(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29093,12 +29488,14 @@ func (s *sources) GetSourceMicrosoftTeams(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29121,7 +29518,7 @@ func (s *sources) GetSourceMixpanel(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29151,12 +29548,14 @@ func (s *sources) GetSourceMixpanel(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29179,7 +29578,7 @@ func (s *sources) GetSourceMonday(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29209,12 +29608,14 @@ func (s *sources) GetSourceMonday(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29237,7 +29638,7 @@ func (s *sources) GetSourceMongodb(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29267,12 +29668,14 @@ func (s *sources) GetSourceMongodb(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29295,7 +29698,7 @@ func (s *sources) GetSourceMongodbInternalPoc(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29325,12 +29728,14 @@ func (s *sources) GetSourceMongodbInternalPoc(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29353,7 +29758,7 @@ func (s *sources) GetSourceMssql(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29383,12 +29788,14 @@ func (s *sources) GetSourceMssql(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29411,7 +29818,7 @@ func (s *sources) GetSourceMyHours(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29441,12 +29848,14 @@ func (s *sources) GetSourceMyHours(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29469,7 +29878,7 @@ func (s *sources) GetSourceMysql(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29499,12 +29908,14 @@ func (s *sources) GetSourceMysql(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29527,7 +29938,7 @@ func (s *sources) GetSourceNetsuite(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29557,12 +29968,14 @@ func (s *sources) GetSourceNetsuite(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29585,7 +29998,7 @@ func (s *sources) GetSourceNotion(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29615,12 +30028,14 @@ func (s *sources) GetSourceNotion(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29643,7 +30058,7 @@ func (s *sources) GetSourceNytimes(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29673,12 +30088,14 @@ func (s *sources) GetSourceNytimes(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29701,7 +30118,7 @@ func (s *sources) GetSourceOkta(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29731,12 +30148,14 @@ func (s *sources) GetSourceOkta(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29759,7 +30178,7 @@ func (s *sources) GetSourceOmnisend(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29789,12 +30208,14 @@ func (s *sources) GetSourceOmnisend(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29817,7 +30238,7 @@ func (s *sources) GetSourceOnesignal(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29847,12 +30268,14 @@ func (s *sources) GetSourceOnesignal(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29875,7 +30298,7 @@ func (s *sources) GetSourceOracle(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29905,12 +30328,14 @@ func (s *sources) GetSourceOracle(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29933,7 +30358,7 @@ func (s *sources) GetSourceOrb(ctx context.Context, request operations.GetSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -29963,12 +30388,14 @@ func (s *sources) GetSourceOrb(ctx context.Context, request operations.GetSource
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -29991,7 +30418,7 @@ func (s *sources) GetSourceOrbit(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30021,12 +30448,14 @@ func (s *sources) GetSourceOrbit(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30049,7 +30478,7 @@ func (s *sources) GetSourceOutbrainAmplify(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30079,12 +30508,14 @@ func (s *sources) GetSourceOutbrainAmplify(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30107,7 +30538,7 @@ func (s *sources) GetSourceOutreach(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30137,12 +30568,14 @@ func (s *sources) GetSourceOutreach(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30165,7 +30598,7 @@ func (s *sources) GetSourcePaypalTransaction(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30195,12 +30628,14 @@ func (s *sources) GetSourcePaypalTransaction(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30223,7 +30658,7 @@ func (s *sources) GetSourcePaystack(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30253,12 +30688,14 @@ func (s *sources) GetSourcePaystack(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30281,7 +30718,7 @@ func (s *sources) GetSourcePendo(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30311,12 +30748,14 @@ func (s *sources) GetSourcePendo(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30339,7 +30778,7 @@ func (s *sources) GetSourcePersistiq(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30369,12 +30808,14 @@ func (s *sources) GetSourcePersistiq(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30397,7 +30838,7 @@ func (s *sources) GetSourcePexelsAPI(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30427,12 +30868,14 @@ func (s *sources) GetSourcePexelsAPI(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30455,7 +30898,7 @@ func (s *sources) GetSourcePinterest(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30485,12 +30928,14 @@ func (s *sources) GetSourcePinterest(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30513,7 +30958,7 @@ func (s *sources) GetSourcePipedrive(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30543,12 +30988,14 @@ func (s *sources) GetSourcePipedrive(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30571,7 +31018,7 @@ func (s *sources) GetSourcePocket(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30601,12 +31048,14 @@ func (s *sources) GetSourcePocket(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30629,7 +31078,7 @@ func (s *sources) GetSourcePokeapi(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30659,12 +31108,14 @@ func (s *sources) GetSourcePokeapi(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30687,7 +31138,7 @@ func (s *sources) GetSourcePolygonStockAPI(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30717,12 +31168,14 @@ func (s *sources) GetSourcePolygonStockAPI(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30745,7 +31198,7 @@ func (s *sources) GetSourcePostgres(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30775,12 +31228,14 @@ func (s *sources) GetSourcePostgres(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30803,7 +31258,7 @@ func (s *sources) GetSourcePosthog(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30833,12 +31288,14 @@ func (s *sources) GetSourcePosthog(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30861,7 +31318,7 @@ func (s *sources) GetSourcePostmarkapp(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30891,12 +31348,14 @@ func (s *sources) GetSourcePostmarkapp(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30919,7 +31378,7 @@ func (s *sources) GetSourcePrestashop(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -30949,12 +31408,14 @@ func (s *sources) GetSourcePrestashop(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -30977,7 +31438,7 @@ func (s *sources) GetSourcePunkAPI(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31007,12 +31468,14 @@ func (s *sources) GetSourcePunkAPI(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31035,7 +31498,7 @@ func (s *sources) GetSourcePypi(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31065,12 +31528,14 @@ func (s *sources) GetSourcePypi(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31093,7 +31558,7 @@ func (s *sources) GetSourceQualaroo(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31123,12 +31588,14 @@ func (s *sources) GetSourceQualaroo(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31151,7 +31618,7 @@ func (s *sources) GetSourceQuickbooks(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31181,12 +31648,14 @@ func (s *sources) GetSourceQuickbooks(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31209,7 +31678,7 @@ func (s *sources) GetSourceRailz(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31239,12 +31708,14 @@ func (s *sources) GetSourceRailz(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31267,7 +31738,7 @@ func (s *sources) GetSourceRecharge(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31297,12 +31768,14 @@ func (s *sources) GetSourceRecharge(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31325,7 +31798,7 @@ func (s *sources) GetSourceRecreation(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31355,12 +31828,14 @@ func (s *sources) GetSourceRecreation(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31383,7 +31858,7 @@ func (s *sources) GetSourceRecruitee(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31413,12 +31888,14 @@ func (s *sources) GetSourceRecruitee(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31441,7 +31918,7 @@ func (s *sources) GetSourceRecurly(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31471,12 +31948,14 @@ func (s *sources) GetSourceRecurly(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31499,7 +31978,7 @@ func (s *sources) GetSourceRedshift(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31529,12 +32008,14 @@ func (s *sources) GetSourceRedshift(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31557,7 +32038,7 @@ func (s *sources) GetSourceRetently(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31587,12 +32068,14 @@ func (s *sources) GetSourceRetently(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31615,7 +32098,7 @@ func (s *sources) GetSourceRkiCovid(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31645,12 +32128,14 @@ func (s *sources) GetSourceRkiCovid(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31673,7 +32158,7 @@ func (s *sources) GetSourceRss(ctx context.Context, request operations.GetSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31703,12 +32188,14 @@ func (s *sources) GetSourceRss(ctx context.Context, request operations.GetSource
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31731,7 +32218,7 @@ func (s *sources) GetSourceS3(ctx context.Context, request operations.GetSourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31761,12 +32248,14 @@ func (s *sources) GetSourceS3(ctx context.Context, request operations.GetSourceS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31789,7 +32278,7 @@ func (s *sources) GetSourceSalesforce(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31819,12 +32308,14 @@ func (s *sources) GetSourceSalesforce(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31847,7 +32338,7 @@ func (s *sources) GetSourceSalesloft(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31877,12 +32368,14 @@ func (s *sources) GetSourceSalesloft(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31905,7 +32398,7 @@ func (s *sources) GetSourceSapFieldglass(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31935,12 +32428,14 @@ func (s *sources) GetSourceSapFieldglass(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -31963,7 +32458,7 @@ func (s *sources) GetSourceSecoda(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -31993,12 +32488,14 @@ func (s *sources) GetSourceSecoda(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32021,7 +32518,7 @@ func (s *sources) GetSourceSendgrid(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32051,12 +32548,14 @@ func (s *sources) GetSourceSendgrid(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32079,7 +32578,7 @@ func (s *sources) GetSourceSendinblue(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32109,12 +32608,14 @@ func (s *sources) GetSourceSendinblue(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32137,7 +32638,7 @@ func (s *sources) GetSourceSenseforce(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32167,12 +32668,14 @@ func (s *sources) GetSourceSenseforce(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32195,7 +32698,7 @@ func (s *sources) GetSourceSentry(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32225,12 +32728,14 @@ func (s *sources) GetSourceSentry(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32253,7 +32758,7 @@ func (s *sources) GetSourceSftp(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32283,12 +32788,14 @@ func (s *sources) GetSourceSftp(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32311,7 +32818,7 @@ func (s *sources) GetSourceSftpBulk(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32341,12 +32848,14 @@ func (s *sources) GetSourceSftpBulk(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32369,7 +32878,7 @@ func (s *sources) GetSourceShopify(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32399,12 +32908,14 @@ func (s *sources) GetSourceShopify(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32427,7 +32938,7 @@ func (s *sources) GetSourceShortio(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32457,12 +32968,14 @@ func (s *sources) GetSourceShortio(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32485,7 +32998,7 @@ func (s *sources) GetSourceSlack(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32515,12 +33028,14 @@ func (s *sources) GetSourceSlack(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32543,7 +33058,7 @@ func (s *sources) GetSourceSmaily(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32573,12 +33088,14 @@ func (s *sources) GetSourceSmaily(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32601,7 +33118,7 @@ func (s *sources) GetSourceSmartengage(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32631,12 +33148,14 @@ func (s *sources) GetSourceSmartengage(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32659,7 +33178,7 @@ func (s *sources) GetSourceSmartsheets(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32689,12 +33208,14 @@ func (s *sources) GetSourceSmartsheets(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32717,7 +33238,7 @@ func (s *sources) GetSourceSnapchatMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32747,12 +33268,14 @@ func (s *sources) GetSourceSnapchatMarketing(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32775,7 +33298,7 @@ func (s *sources) GetSourceSnowflake(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32805,12 +33328,14 @@ func (s *sources) GetSourceSnowflake(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32833,7 +33358,7 @@ func (s *sources) GetSourceSonarCloud(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32863,12 +33388,14 @@ func (s *sources) GetSourceSonarCloud(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32891,7 +33418,7 @@ func (s *sources) GetSourceSpacexAPI(ctx context.Context, request operations.Get
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32921,12 +33448,14 @@ func (s *sources) GetSourceSpacexAPI(ctx context.Context, request operations.Get
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -32949,7 +33478,7 @@ func (s *sources) GetSourceSquare(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -32979,12 +33508,14 @@ func (s *sources) GetSourceSquare(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33007,7 +33538,7 @@ func (s *sources) GetSourceStrava(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33037,12 +33568,14 @@ func (s *sources) GetSourceStrava(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33065,7 +33598,7 @@ func (s *sources) GetSourceStripe(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33095,12 +33628,14 @@ func (s *sources) GetSourceStripe(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33123,7 +33658,7 @@ func (s *sources) GetSourceSurveySparrow(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33153,12 +33688,14 @@ func (s *sources) GetSourceSurveySparrow(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33181,7 +33718,7 @@ func (s *sources) GetSourceSurveymonkey(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33211,12 +33748,14 @@ func (s *sources) GetSourceSurveymonkey(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33239,7 +33778,7 @@ func (s *sources) GetSourceTempo(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33269,12 +33808,14 @@ func (s *sources) GetSourceTempo(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33297,7 +33838,7 @@ func (s *sources) GetSourceTheGuardianAPI(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33327,12 +33868,14 @@ func (s *sources) GetSourceTheGuardianAPI(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33355,7 +33898,7 @@ func (s *sources) GetSourceTiktokMarketing(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33385,12 +33928,14 @@ func (s *sources) GetSourceTiktokMarketing(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33413,7 +33958,7 @@ func (s *sources) GetSourceTodoist(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33443,12 +33988,14 @@ func (s *sources) GetSourceTodoist(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33471,7 +34018,7 @@ func (s *sources) GetSourceTrello(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33501,12 +34048,14 @@ func (s *sources) GetSourceTrello(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33529,7 +34078,7 @@ func (s *sources) GetSourceTrustpilot(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33559,12 +34108,14 @@ func (s *sources) GetSourceTrustpilot(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33587,7 +34138,7 @@ func (s *sources) GetSourceTvmazeSchedule(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33617,12 +34168,14 @@ func (s *sources) GetSourceTvmazeSchedule(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33645,7 +34198,7 @@ func (s *sources) GetSourceTwilio(ctx context.Context, request operations.GetSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33675,12 +34228,14 @@ func (s *sources) GetSourceTwilio(ctx context.Context, request operations.GetSou
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33703,7 +34258,7 @@ func (s *sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33733,12 +34288,14 @@ func (s *sources) GetSourceTwilioTaskrouter(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33761,7 +34318,7 @@ func (s *sources) GetSourceTwitter(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33791,12 +34348,14 @@ func (s *sources) GetSourceTwitter(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33819,7 +34378,7 @@ func (s *sources) GetSourceTypeform(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33849,12 +34408,14 @@ func (s *sources) GetSourceTypeform(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33877,7 +34438,7 @@ func (s *sources) GetSourceUsCensus(ctx context.Context, request operations.GetS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33907,12 +34468,14 @@ func (s *sources) GetSourceUsCensus(ctx context.Context, request operations.GetS
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33935,7 +34498,7 @@ func (s *sources) GetSourceVantage(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -33965,12 +34528,14 @@ func (s *sources) GetSourceVantage(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -33993,7 +34558,7 @@ func (s *sources) GetSourceWebflow(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34023,12 +34588,14 @@ func (s *sources) GetSourceWebflow(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34051,7 +34618,7 @@ func (s *sources) GetSourceWhiskyHunter(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34081,12 +34648,14 @@ func (s *sources) GetSourceWhiskyHunter(ctx context.Context, request operations.
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34109,7 +34678,7 @@ func (s *sources) GetSourceWikipediaPageviews(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34139,12 +34708,14 @@ func (s *sources) GetSourceWikipediaPageviews(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34167,7 +34738,7 @@ func (s *sources) GetSourceWoocommerce(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34197,12 +34768,14 @@ func (s *sources) GetSourceWoocommerce(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34225,7 +34798,7 @@ func (s *sources) GetSourceXero(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34255,12 +34828,14 @@ func (s *sources) GetSourceXero(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34283,7 +34858,7 @@ func (s *sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34313,12 +34888,14 @@ func (s *sources) GetSourceXkcd(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34341,7 +34918,7 @@ func (s *sources) GetSourceYandexMetrica(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34371,12 +34948,14 @@ func (s *sources) GetSourceYandexMetrica(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34399,7 +34978,7 @@ func (s *sources) GetSourceYotpo(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34429,12 +35008,14 @@ func (s *sources) GetSourceYotpo(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34457,7 +35038,7 @@ func (s *sources) GetSourceYounium(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34487,12 +35068,14 @@ func (s *sources) GetSourceYounium(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34515,7 +35098,7 @@ func (s *sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34545,12 +35128,14 @@ func (s *sources) GetSourceYoutubeAnalytics(ctx context.Context, request operati
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34573,7 +35158,7 @@ func (s *sources) GetSourceZendeskChat(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34603,12 +35188,14 @@ func (s *sources) GetSourceZendeskChat(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34631,7 +35218,7 @@ func (s *sources) GetSourceZendeskSunshine(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34661,12 +35248,14 @@ func (s *sources) GetSourceZendeskSunshine(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34689,7 +35278,7 @@ func (s *sources) GetSourceZendeskSupport(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34719,12 +35308,14 @@ func (s *sources) GetSourceZendeskSupport(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34747,7 +35338,7 @@ func (s *sources) GetSourceZendeskTalk(ctx context.Context, request operations.G
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34777,12 +35368,14 @@ func (s *sources) GetSourceZendeskTalk(ctx context.Context, request operations.G
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34805,7 +35398,7 @@ func (s *sources) GetSourceZenloop(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34835,12 +35428,14 @@ func (s *sources) GetSourceZenloop(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34863,7 +35458,7 @@ func (s *sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34893,12 +35488,14 @@ func (s *sources) GetSourceZohoCrm(ctx context.Context, request operations.GetSo
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34921,7 +35518,7 @@ func (s *sources) GetSourceZoom(ctx context.Context, request operations.GetSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -34951,12 +35548,14 @@ func (s *sources) GetSourceZoom(ctx context.Context, request operations.GetSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -34979,7 +35578,7 @@ func (s *sources) GetSourceZuora(ctx context.Context, request operations.GetSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -35009,12 +35608,14 @@ func (s *sources) GetSourceZuora(ctx context.Context, request operations.GetSour
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -35034,7 +35635,7 @@ func (s *sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/sources/initiateOAuth"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -35050,7 +35651,7 @@ func (s *sources) InitiateOAuth(ctx context.Context, request shared.InitiateOaut
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35100,7 +35701,7 @@ func (s *sources) ListSources(ctx context.Context, request operations.ListSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -35134,12 +35735,14 @@ func (s *sources) ListSources(ctx context.Context, request operations.ListSource
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourcesResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourcesResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourcesResponse = out
+ res.SourcesResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -35157,11 +35760,10 @@ func (s *sources) PatchSource(ctx context.Context, request operations.PatchSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePatchRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePatchRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35170,7 +35772,7 @@ func (s *sources) PatchSource(ctx context.Context, request operations.PatchSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35203,12 +35805,14 @@ func (s *sources) PatchSource(ctx context.Context, request operations.PatchSourc
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -35226,11 +35830,10 @@ func (s *sources) PutSource(ctx context.Context, request operations.PutSourceReq
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35239,7 +35842,7 @@ func (s *sources) PutSource(ctx context.Context, request operations.PutSourceReq
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35272,12 +35875,14 @@ func (s *sources) PutSource(ctx context.Context, request operations.PutSourceReq
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.SourceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.SourceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.SourceResponse = out
+ res.SourceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -35295,11 +35900,10 @@ func (s *sources) PutSourceAha(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAhaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAhaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35308,7 +35912,7 @@ func (s *sources) PutSourceAha(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35356,11 +35960,10 @@ func (s *sources) PutSourceAircall(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAircallPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAircallPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35369,7 +35972,7 @@ func (s *sources) PutSourceAircall(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35417,11 +36020,10 @@ func (s *sources) PutSourceAirtable(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAirtablePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAirtablePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35430,7 +36032,7 @@ func (s *sources) PutSourceAirtable(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35478,11 +36080,10 @@ func (s *sources) PutSourceAlloydb(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAlloydbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAlloydbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35491,7 +36092,7 @@ func (s *sources) PutSourceAlloydb(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35539,11 +36140,10 @@ func (s *sources) PutSourceAmazonAds(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAmazonAdsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonAdsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35552,7 +36152,7 @@ func (s *sources) PutSourceAmazonAds(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35600,11 +36200,10 @@ func (s *sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAmazonSellerPartnerPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonSellerPartnerPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35613,7 +36212,7 @@ func (s *sources) PutSourceAmazonSellerPartner(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35661,11 +36260,10 @@ func (s *sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAmazonSqsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmazonSqsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35674,7 +36272,7 @@ func (s *sources) PutSourceAmazonSqs(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35722,11 +36320,10 @@ func (s *sources) PutSourceAmplitude(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAmplitudePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAmplitudePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35735,7 +36332,7 @@ func (s *sources) PutSourceAmplitude(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35783,11 +36380,10 @@ func (s *sources) PutSourceApifyDataset(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceApifyDatasetPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceApifyDatasetPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35796,7 +36392,7 @@ func (s *sources) PutSourceApifyDataset(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35844,11 +36440,10 @@ func (s *sources) PutSourceAppfollow(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAppfollowPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAppfollowPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35857,7 +36452,7 @@ func (s *sources) PutSourceAppfollow(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35905,11 +36500,10 @@ func (s *sources) PutSourceAsana(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAsanaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAsanaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35918,7 +36512,7 @@ func (s *sources) PutSourceAsana(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -35966,11 +36560,10 @@ func (s *sources) PutSourceAuth0(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAuth0PutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAuth0PutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -35979,7 +36572,7 @@ func (s *sources) PutSourceAuth0(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36027,11 +36620,10 @@ func (s *sources) PutSourceAwsCloudtrail(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAwsCloudtrailPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAwsCloudtrailPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36040,7 +36632,7 @@ func (s *sources) PutSourceAwsCloudtrail(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36088,11 +36680,10 @@ func (s *sources) PutSourceAzureBlobStorage(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAzureBlobStoragePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAzureBlobStoragePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36101,7 +36692,7 @@ func (s *sources) PutSourceAzureBlobStorage(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36149,11 +36740,10 @@ func (s *sources) PutSourceAzureTable(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceAzureTablePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceAzureTablePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36162,7 +36752,7 @@ func (s *sources) PutSourceAzureTable(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36210,11 +36800,10 @@ func (s *sources) PutSourceBambooHr(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBambooHrPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBambooHrPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36223,7 +36812,7 @@ func (s *sources) PutSourceBambooHr(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36271,11 +36860,10 @@ func (s *sources) PutSourceBigcommerce(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBigcommercePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBigcommercePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36284,7 +36872,7 @@ func (s *sources) PutSourceBigcommerce(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36332,11 +36920,10 @@ func (s *sources) PutSourceBigquery(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBigqueryPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBigqueryPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36345,7 +36932,7 @@ func (s *sources) PutSourceBigquery(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36393,11 +36980,10 @@ func (s *sources) PutSourceBingAds(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBingAdsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBingAdsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36406,7 +36992,7 @@ func (s *sources) PutSourceBingAds(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36454,11 +37040,10 @@ func (s *sources) PutSourceBraintree(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBraintreePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBraintreePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36467,7 +37052,7 @@ func (s *sources) PutSourceBraintree(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36515,11 +37100,10 @@ func (s *sources) PutSourceBraze(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceBrazePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceBrazePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36528,7 +37112,7 @@ func (s *sources) PutSourceBraze(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36576,11 +37160,10 @@ func (s *sources) PutSourceChargebee(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceChargebeePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChargebeePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36589,7 +37172,7 @@ func (s *sources) PutSourceChargebee(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36637,11 +37220,10 @@ func (s *sources) PutSourceChartmogul(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceChartmogulPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceChartmogulPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36650,7 +37232,7 @@ func (s *sources) PutSourceChartmogul(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36698,11 +37280,10 @@ func (s *sources) PutSourceClickhouse(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceClickhousePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickhousePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36711,7 +37292,7 @@ func (s *sources) PutSourceClickhouse(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36759,11 +37340,10 @@ func (s *sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceClickupAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClickupAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36772,7 +37352,7 @@ func (s *sources) PutSourceClickupAPI(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36820,11 +37400,10 @@ func (s *sources) PutSourceClockify(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceClockifyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceClockifyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36833,7 +37412,7 @@ func (s *sources) PutSourceClockify(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36881,11 +37460,10 @@ func (s *sources) PutSourceCloseCom(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceCloseComPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCloseComPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36894,7 +37472,7 @@ func (s *sources) PutSourceCloseCom(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -36942,11 +37520,10 @@ func (s *sources) PutSourceCoda(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceCodaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCodaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -36955,7 +37532,7 @@ func (s *sources) PutSourceCoda(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37003,11 +37580,10 @@ func (s *sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceCoinAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCoinAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37016,7 +37592,7 @@ func (s *sources) PutSourceCoinAPI(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37064,11 +37640,10 @@ func (s *sources) PutSourceCoinmarketcap(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceCoinmarketcapPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceCoinmarketcapPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37077,7 +37652,7 @@ func (s *sources) PutSourceCoinmarketcap(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37125,11 +37700,10 @@ func (s *sources) PutSourceConfigcat(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceConfigcatPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfigcatPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37138,7 +37712,7 @@ func (s *sources) PutSourceConfigcat(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37186,11 +37760,10 @@ func (s *sources) PutSourceConfluence(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceConfluencePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConfluencePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37199,7 +37772,7 @@ func (s *sources) PutSourceConfluence(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37247,11 +37820,10 @@ func (s *sources) PutSourceConvex(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceConvexPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceConvexPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37260,7 +37832,7 @@ func (s *sources) PutSourceConvex(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37308,11 +37880,10 @@ func (s *sources) PutSourceDatascope(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDatascopePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDatascopePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37321,7 +37892,7 @@ func (s *sources) PutSourceDatascope(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37369,11 +37940,10 @@ func (s *sources) PutSourceDelighted(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDelightedPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDelightedPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37382,7 +37952,7 @@ func (s *sources) PutSourceDelighted(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37430,11 +38000,10 @@ func (s *sources) PutSourceDixa(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDixaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDixaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37443,7 +38012,7 @@ func (s *sources) PutSourceDixa(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37491,11 +38060,10 @@ func (s *sources) PutSourceDockerhub(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDockerhubPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDockerhubPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37504,7 +38072,7 @@ func (s *sources) PutSourceDockerhub(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37552,11 +38120,10 @@ func (s *sources) PutSourceDremio(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDremioPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDremioPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37565,7 +38132,7 @@ func (s *sources) PutSourceDremio(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37613,11 +38180,10 @@ func (s *sources) PutSourceDynamodb(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceDynamodbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceDynamodbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37626,7 +38192,7 @@ func (s *sources) PutSourceDynamodb(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37674,11 +38240,10 @@ func (s *sources) PutSourceE2eTestCloud(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceE2eTestCloudPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceE2eTestCloudPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37687,7 +38252,7 @@ func (s *sources) PutSourceE2eTestCloud(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37735,11 +38300,10 @@ func (s *sources) PutSourceEmailoctopus(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceEmailoctopusPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceEmailoctopusPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37748,7 +38312,7 @@ func (s *sources) PutSourceEmailoctopus(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37796,11 +38360,10 @@ func (s *sources) PutSourceExchangeRates(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceExchangeRatesPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceExchangeRatesPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37809,7 +38372,7 @@ func (s *sources) PutSourceExchangeRates(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37857,11 +38420,10 @@ func (s *sources) PutSourceFacebookMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFacebookMarketingPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFacebookMarketingPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37870,7 +38432,7 @@ func (s *sources) PutSourceFacebookMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37918,11 +38480,10 @@ func (s *sources) PutSourceFacebookPages(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFacebookPagesPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFacebookPagesPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37931,7 +38492,7 @@ func (s *sources) PutSourceFacebookPages(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -37979,11 +38540,10 @@ func (s *sources) PutSourceFaker(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFakerPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFakerPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -37992,7 +38552,7 @@ func (s *sources) PutSourceFaker(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38040,11 +38600,10 @@ func (s *sources) PutSourceFauna(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFaunaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFaunaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38053,7 +38612,7 @@ func (s *sources) PutSourceFauna(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38101,11 +38660,10 @@ func (s *sources) PutSourceFileSecure(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFileSecurePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFileSecurePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38114,7 +38672,7 @@ func (s *sources) PutSourceFileSecure(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38162,11 +38720,10 @@ func (s *sources) PutSourceFirebolt(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFireboltPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFireboltPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38175,7 +38732,7 @@ func (s *sources) PutSourceFirebolt(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38223,11 +38780,10 @@ func (s *sources) PutSourceFreshcaller(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFreshcallerPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshcallerPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38236,7 +38792,7 @@ func (s *sources) PutSourceFreshcaller(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38284,11 +38840,10 @@ func (s *sources) PutSourceFreshdesk(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFreshdeskPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshdeskPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38297,7 +38852,7 @@ func (s *sources) PutSourceFreshdesk(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38345,11 +38900,10 @@ func (s *sources) PutSourceFreshsales(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceFreshsalesPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceFreshsalesPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38358,7 +38912,7 @@ func (s *sources) PutSourceFreshsales(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38406,11 +38960,10 @@ func (s *sources) PutSourceGainsightPx(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGainsightPxPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGainsightPxPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38419,7 +38972,7 @@ func (s *sources) PutSourceGainsightPx(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38467,11 +39020,10 @@ func (s *sources) PutSourceGcs(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGcsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGcsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38480,7 +39032,7 @@ func (s *sources) PutSourceGcs(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38528,11 +39080,10 @@ func (s *sources) PutSourceGetlago(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGetlagoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGetlagoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38541,7 +39092,7 @@ func (s *sources) PutSourceGetlago(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38589,11 +39140,10 @@ func (s *sources) PutSourceGithub(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGithubPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGithubPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38602,7 +39152,7 @@ func (s *sources) PutSourceGithub(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38650,11 +39200,10 @@ func (s *sources) PutSourceGitlab(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGitlabPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGitlabPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38663,7 +39212,7 @@ func (s *sources) PutSourceGitlab(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38711,11 +39260,10 @@ func (s *sources) PutSourceGlassfrog(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGlassfrogPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGlassfrogPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38724,7 +39272,7 @@ func (s *sources) PutSourceGlassfrog(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38772,11 +39320,10 @@ func (s *sources) PutSourceGnews(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGnewsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGnewsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38785,7 +39332,7 @@ func (s *sources) PutSourceGnews(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38833,11 +39380,10 @@ func (s *sources) PutSourceGoogleAds(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleAdsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAdsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38846,7 +39392,7 @@ func (s *sources) PutSourceGoogleAds(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38894,11 +39440,10 @@ func (s *sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleAnalyticsDataAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsDataAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38907,7 +39452,7 @@ func (s *sources) PutSourceGoogleAnalyticsDataAPI(ctx context.Context, request o
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -38955,11 +39500,10 @@ func (s *sources) PutSourceGoogleAnalyticsV4(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleAnalyticsV4PutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleAnalyticsV4PutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -38968,7 +39512,7 @@ func (s *sources) PutSourceGoogleAnalyticsV4(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39016,11 +39560,10 @@ func (s *sources) PutSourceGoogleDirectory(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleDirectoryPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleDirectoryPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39029,7 +39572,7 @@ func (s *sources) PutSourceGoogleDirectory(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39077,11 +39620,10 @@ func (s *sources) PutSourceGooglePagespeedInsights(ctx context.Context, request
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGooglePagespeedInsightsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGooglePagespeedInsightsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39090,7 +39632,7 @@ func (s *sources) PutSourceGooglePagespeedInsights(ctx context.Context, request
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39138,11 +39680,10 @@ func (s *sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleSearchConsolePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSearchConsolePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39151,7 +39692,7 @@ func (s *sources) PutSourceGoogleSearchConsole(ctx context.Context, request oper
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39199,11 +39740,10 @@ func (s *sources) PutSourceGoogleSheets(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleSheetsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleSheetsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39212,7 +39752,7 @@ func (s *sources) PutSourceGoogleSheets(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39260,11 +39800,10 @@ func (s *sources) PutSourceGoogleWebfonts(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleWebfontsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleWebfontsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39273,7 +39812,7 @@ func (s *sources) PutSourceGoogleWebfonts(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39321,11 +39860,10 @@ func (s *sources) PutSourceGoogleWorkspaceAdminReports(ctx context.Context, requ
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGoogleWorkspaceAdminReportsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGoogleWorkspaceAdminReportsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39334,7 +39872,7 @@ func (s *sources) PutSourceGoogleWorkspaceAdminReports(ctx context.Context, requ
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39382,11 +39920,10 @@ func (s *sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGreenhousePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGreenhousePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39395,7 +39932,7 @@ func (s *sources) PutSourceGreenhouse(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39443,11 +39980,10 @@ func (s *sources) PutSourceGridly(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceGridlyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceGridlyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39456,7 +39992,7 @@ func (s *sources) PutSourceGridly(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39504,11 +40040,10 @@ func (s *sources) PutSourceHarvest(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceHarvestPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHarvestPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39517,7 +40052,7 @@ func (s *sources) PutSourceHarvest(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39565,11 +40100,10 @@ func (s *sources) PutSourceHubplanner(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceHubplannerPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubplannerPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39578,7 +40112,7 @@ func (s *sources) PutSourceHubplanner(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39626,11 +40160,10 @@ func (s *sources) PutSourceHubspot(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceHubspotPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceHubspotPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39639,7 +40172,7 @@ func (s *sources) PutSourceHubspot(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39687,11 +40220,10 @@ func (s *sources) PutSourceInsightly(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceInsightlyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInsightlyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39700,7 +40232,7 @@ func (s *sources) PutSourceInsightly(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39748,11 +40280,10 @@ func (s *sources) PutSourceInstagram(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceInstagramPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstagramPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39761,7 +40292,7 @@ func (s *sources) PutSourceInstagram(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39809,11 +40340,10 @@ func (s *sources) PutSourceInstatus(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceInstatusPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceInstatusPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39822,7 +40352,7 @@ func (s *sources) PutSourceInstatus(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39870,11 +40400,10 @@ func (s *sources) PutSourceIntercom(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceIntercomPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIntercomPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39883,7 +40412,7 @@ func (s *sources) PutSourceIntercom(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39931,11 +40460,10 @@ func (s *sources) PutSourceIp2whois(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceIp2whoisPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIp2whoisPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -39944,7 +40472,7 @@ func (s *sources) PutSourceIp2whois(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -39992,11 +40520,10 @@ func (s *sources) PutSourceIterable(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceIterablePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceIterablePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40005,7 +40532,7 @@ func (s *sources) PutSourceIterable(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40053,11 +40580,10 @@ func (s *sources) PutSourceJira(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceJiraPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceJiraPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40066,7 +40592,7 @@ func (s *sources) PutSourceJira(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40114,11 +40640,10 @@ func (s *sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceK6CloudPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceK6CloudPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40127,7 +40652,7 @@ func (s *sources) PutSourceK6Cloud(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40175,11 +40700,10 @@ func (s *sources) PutSourceKlarna(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceKlarnaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlarnaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40188,7 +40712,7 @@ func (s *sources) PutSourceKlarna(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40236,11 +40760,10 @@ func (s *sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceKlaviyoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKlaviyoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40249,7 +40772,7 @@ func (s *sources) PutSourceKlaviyo(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40297,11 +40820,10 @@ func (s *sources) PutSourceKustomerSinger(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceKustomerSingerPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKustomerSingerPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40310,7 +40832,7 @@ func (s *sources) PutSourceKustomerSinger(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40358,11 +40880,10 @@ func (s *sources) PutSourceKyve(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceKyvePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceKyvePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40371,7 +40892,7 @@ func (s *sources) PutSourceKyve(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40419,11 +40940,10 @@ func (s *sources) PutSourceLaunchdarkly(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLaunchdarklyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLaunchdarklyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40432,7 +40952,7 @@ func (s *sources) PutSourceLaunchdarkly(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40480,11 +41000,10 @@ func (s *sources) PutSourceLemlist(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLemlistPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLemlistPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40493,7 +41012,7 @@ func (s *sources) PutSourceLemlist(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40541,11 +41060,10 @@ func (s *sources) PutSourceLeverHiring(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLeverHiringPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLeverHiringPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40554,7 +41072,7 @@ func (s *sources) PutSourceLeverHiring(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40602,11 +41120,10 @@ func (s *sources) PutSourceLinkedinAds(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLinkedinAdsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinAdsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40615,7 +41132,7 @@ func (s *sources) PutSourceLinkedinAds(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40663,11 +41180,10 @@ func (s *sources) PutSourceLinkedinPages(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLinkedinPagesPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinkedinPagesPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40676,7 +41192,7 @@ func (s *sources) PutSourceLinkedinPages(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40724,11 +41240,10 @@ func (s *sources) PutSourceLinnworks(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLinnworksPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLinnworksPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40737,7 +41252,7 @@ func (s *sources) PutSourceLinnworks(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40785,11 +41300,10 @@ func (s *sources) PutSourceLokalise(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceLokalisePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceLokalisePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40798,7 +41312,7 @@ func (s *sources) PutSourceLokalise(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40846,11 +41360,10 @@ func (s *sources) PutSourceMailchimp(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMailchimpPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailchimpPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40859,7 +41372,7 @@ func (s *sources) PutSourceMailchimp(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40907,11 +41420,10 @@ func (s *sources) PutSourceMailgun(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMailgunPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailgunPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40920,7 +41432,7 @@ func (s *sources) PutSourceMailgun(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -40968,11 +41480,10 @@ func (s *sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMailjetSmsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMailjetSmsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -40981,7 +41492,7 @@ func (s *sources) PutSourceMailjetSms(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41029,11 +41540,10 @@ func (s *sources) PutSourceMarketo(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMarketoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMarketoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41042,7 +41552,7 @@ func (s *sources) PutSourceMarketo(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41090,11 +41600,10 @@ func (s *sources) PutSourceMetabase(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMetabasePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMetabasePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41103,7 +41612,7 @@ func (s *sources) PutSourceMetabase(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41151,11 +41660,10 @@ func (s *sources) PutSourceMicrosoftTeams(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMicrosoftTeamsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMicrosoftTeamsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41164,7 +41672,7 @@ func (s *sources) PutSourceMicrosoftTeams(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41212,11 +41720,10 @@ func (s *sources) PutSourceMixpanel(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMixpanelPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMixpanelPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41225,7 +41732,7 @@ func (s *sources) PutSourceMixpanel(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41273,11 +41780,10 @@ func (s *sources) PutSourceMonday(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMondayPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMondayPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41286,7 +41792,7 @@ func (s *sources) PutSourceMonday(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41334,11 +41840,10 @@ func (s *sources) PutSourceMongodb(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMongodbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMongodbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41347,7 +41852,7 @@ func (s *sources) PutSourceMongodb(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41395,11 +41900,10 @@ func (s *sources) PutSourceMongodbInternalPoc(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMongodbInternalPocPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMongodbInternalPocPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41408,7 +41912,7 @@ func (s *sources) PutSourceMongodbInternalPoc(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41456,11 +41960,10 @@ func (s *sources) PutSourceMssql(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMssqlPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMssqlPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41469,7 +41972,7 @@ func (s *sources) PutSourceMssql(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41517,11 +42020,10 @@ func (s *sources) PutSourceMyHours(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMyHoursPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMyHoursPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41530,7 +42032,7 @@ func (s *sources) PutSourceMyHours(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41578,11 +42080,10 @@ func (s *sources) PutSourceMysql(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceMysqlPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceMysqlPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41591,7 +42092,7 @@ func (s *sources) PutSourceMysql(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41639,11 +42140,10 @@ func (s *sources) PutSourceNetsuite(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceNetsuitePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNetsuitePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41652,7 +42152,7 @@ func (s *sources) PutSourceNetsuite(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41700,11 +42200,10 @@ func (s *sources) PutSourceNotion(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceNotionPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNotionPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41713,7 +42212,7 @@ func (s *sources) PutSourceNotion(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41761,11 +42260,10 @@ func (s *sources) PutSourceNytimes(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceNytimesPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceNytimesPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41774,7 +42272,7 @@ func (s *sources) PutSourceNytimes(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41822,11 +42320,10 @@ func (s *sources) PutSourceOkta(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOktaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOktaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41835,7 +42332,7 @@ func (s *sources) PutSourceOkta(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41883,11 +42380,10 @@ func (s *sources) PutSourceOmnisend(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOmnisendPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOmnisendPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41896,7 +42392,7 @@ func (s *sources) PutSourceOmnisend(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -41944,11 +42440,10 @@ func (s *sources) PutSourceOnesignal(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOnesignalPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOnesignalPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -41957,7 +42452,7 @@ func (s *sources) PutSourceOnesignal(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42005,11 +42500,10 @@ func (s *sources) PutSourceOracle(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOraclePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOraclePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42018,7 +42512,7 @@ func (s *sources) PutSourceOracle(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42066,11 +42560,10 @@ func (s *sources) PutSourceOrb(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOrbPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42079,7 +42572,7 @@ func (s *sources) PutSourceOrb(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42127,11 +42620,10 @@ func (s *sources) PutSourceOrbit(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOrbitPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOrbitPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42140,7 +42632,7 @@ func (s *sources) PutSourceOrbit(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42188,11 +42680,10 @@ func (s *sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOutbrainAmplifyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutbrainAmplifyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42201,7 +42692,7 @@ func (s *sources) PutSourceOutbrainAmplify(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42249,11 +42740,10 @@ func (s *sources) PutSourceOutreach(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceOutreachPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceOutreachPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42262,7 +42752,7 @@ func (s *sources) PutSourceOutreach(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42310,11 +42800,10 @@ func (s *sources) PutSourcePaypalTransaction(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePaypalTransactionPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaypalTransactionPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42323,7 +42812,7 @@ func (s *sources) PutSourcePaypalTransaction(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42371,11 +42860,10 @@ func (s *sources) PutSourcePaystack(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePaystackPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePaystackPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42384,7 +42872,7 @@ func (s *sources) PutSourcePaystack(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42432,11 +42920,10 @@ func (s *sources) PutSourcePendo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePendoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePendoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42445,7 +42932,7 @@ func (s *sources) PutSourcePendo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42493,11 +42980,10 @@ func (s *sources) PutSourcePersistiq(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePersistiqPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePersistiqPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42506,7 +42992,7 @@ func (s *sources) PutSourcePersistiq(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42554,11 +43040,10 @@ func (s *sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePexelsAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePexelsAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42567,7 +43052,7 @@ func (s *sources) PutSourcePexelsAPI(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42615,11 +43100,10 @@ func (s *sources) PutSourcePinterest(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePinterestPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePinterestPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42628,7 +43112,7 @@ func (s *sources) PutSourcePinterest(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42676,11 +43160,10 @@ func (s *sources) PutSourcePipedrive(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePipedrivePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePipedrivePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42689,7 +43172,7 @@ func (s *sources) PutSourcePipedrive(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42737,11 +43220,10 @@ func (s *sources) PutSourcePocket(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePocketPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePocketPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42750,7 +43232,7 @@ func (s *sources) PutSourcePocket(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42798,11 +43280,10 @@ func (s *sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePokeapiPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePokeapiPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42811,7 +43292,7 @@ func (s *sources) PutSourcePokeapi(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42859,11 +43340,10 @@ func (s *sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePolygonStockAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePolygonStockAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42872,7 +43352,7 @@ func (s *sources) PutSourcePolygonStockAPI(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42920,11 +43400,10 @@ func (s *sources) PutSourcePostgres(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePostgresPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostgresPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42933,7 +43412,7 @@ func (s *sources) PutSourcePostgres(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -42981,11 +43460,10 @@ func (s *sources) PutSourcePosthog(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePosthogPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePosthogPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -42994,7 +43472,7 @@ func (s *sources) PutSourcePosthog(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43042,11 +43520,10 @@ func (s *sources) PutSourcePostmarkapp(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePostmarkappPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePostmarkappPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43055,7 +43532,7 @@ func (s *sources) PutSourcePostmarkapp(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43103,11 +43580,10 @@ func (s *sources) PutSourcePrestashop(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePrestashopPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePrestashopPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43116,7 +43592,7 @@ func (s *sources) PutSourcePrestashop(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43164,11 +43640,10 @@ func (s *sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePunkAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePunkAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43177,7 +43652,7 @@ func (s *sources) PutSourcePunkAPI(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43225,11 +43700,10 @@ func (s *sources) PutSourcePypi(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourcePypiPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourcePypiPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43238,7 +43712,7 @@ func (s *sources) PutSourcePypi(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43286,11 +43760,10 @@ func (s *sources) PutSourceQualaroo(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceQualarooPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceQualarooPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43299,7 +43772,7 @@ func (s *sources) PutSourceQualaroo(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43347,11 +43820,10 @@ func (s *sources) PutSourceQuickbooks(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceQuickbooksPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceQuickbooksPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43360,7 +43832,7 @@ func (s *sources) PutSourceQuickbooks(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43408,11 +43880,10 @@ func (s *sources) PutSourceRailz(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRailzPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRailzPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43421,7 +43892,7 @@ func (s *sources) PutSourceRailz(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43469,11 +43940,10 @@ func (s *sources) PutSourceRecharge(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRechargePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRechargePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43482,7 +43952,7 @@ func (s *sources) PutSourceRecharge(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43530,11 +44000,10 @@ func (s *sources) PutSourceRecreation(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRecreationPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecreationPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43543,7 +44012,7 @@ func (s *sources) PutSourceRecreation(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43591,11 +44060,10 @@ func (s *sources) PutSourceRecruitee(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRecruiteePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecruiteePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43604,7 +44072,7 @@ func (s *sources) PutSourceRecruitee(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43652,11 +44120,10 @@ func (s *sources) PutSourceRecurly(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRecurlyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRecurlyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43665,7 +44132,7 @@ func (s *sources) PutSourceRecurly(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43713,11 +44180,10 @@ func (s *sources) PutSourceRedshift(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRedshiftPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRedshiftPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43726,7 +44192,7 @@ func (s *sources) PutSourceRedshift(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43774,11 +44240,10 @@ func (s *sources) PutSourceRetently(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRetentlyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRetentlyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43787,7 +44252,7 @@ func (s *sources) PutSourceRetently(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43835,11 +44300,10 @@ func (s *sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRkiCovidPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRkiCovidPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43848,7 +44312,7 @@ func (s *sources) PutSourceRkiCovid(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43896,11 +44360,10 @@ func (s *sources) PutSourceRss(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceRssPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceRssPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43909,7 +44372,7 @@ func (s *sources) PutSourceRss(ctx context.Context, request operations.PutSource
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -43957,11 +44420,10 @@ func (s *sources) PutSourceS3(ctx context.Context, request operations.PutSourceS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceS3PutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceS3PutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -43970,7 +44432,7 @@ func (s *sources) PutSourceS3(ctx context.Context, request operations.PutSourceS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44018,11 +44480,10 @@ func (s *sources) PutSourceSalesforce(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSalesforcePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesforcePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44031,7 +44492,7 @@ func (s *sources) PutSourceSalesforce(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44079,11 +44540,10 @@ func (s *sources) PutSourceSalesloft(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSalesloftPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSalesloftPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44092,7 +44552,7 @@ func (s *sources) PutSourceSalesloft(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44140,11 +44600,10 @@ func (s *sources) PutSourceSapFieldglass(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSapFieldglassPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSapFieldglassPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44153,7 +44612,7 @@ func (s *sources) PutSourceSapFieldglass(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44201,11 +44660,10 @@ func (s *sources) PutSourceSecoda(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSecodaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSecodaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44214,7 +44672,7 @@ func (s *sources) PutSourceSecoda(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44262,11 +44720,10 @@ func (s *sources) PutSourceSendgrid(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSendgridPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendgridPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44275,7 +44732,7 @@ func (s *sources) PutSourceSendgrid(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44323,11 +44780,10 @@ func (s *sources) PutSourceSendinblue(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSendinbluePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSendinbluePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44336,7 +44792,7 @@ func (s *sources) PutSourceSendinblue(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44384,11 +44840,10 @@ func (s *sources) PutSourceSenseforce(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSenseforcePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSenseforcePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44397,7 +44852,7 @@ func (s *sources) PutSourceSenseforce(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44445,11 +44900,10 @@ func (s *sources) PutSourceSentry(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSentryPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSentryPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44458,7 +44912,7 @@ func (s *sources) PutSourceSentry(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44506,11 +44960,10 @@ func (s *sources) PutSourceSftp(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSftpPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44519,7 +44972,7 @@ func (s *sources) PutSourceSftp(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44567,11 +45020,10 @@ func (s *sources) PutSourceSftpBulk(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSftpBulkPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSftpBulkPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44580,7 +45032,7 @@ func (s *sources) PutSourceSftpBulk(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44628,11 +45080,10 @@ func (s *sources) PutSourceShopify(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceShopifyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShopifyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44641,7 +45092,7 @@ func (s *sources) PutSourceShopify(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44689,11 +45140,10 @@ func (s *sources) PutSourceShortio(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceShortioPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceShortioPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44702,7 +45152,7 @@ func (s *sources) PutSourceShortio(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44750,11 +45200,10 @@ func (s *sources) PutSourceSlack(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSlackPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSlackPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44763,7 +45212,7 @@ func (s *sources) PutSourceSlack(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44811,11 +45260,10 @@ func (s *sources) PutSourceSmaily(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSmailyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmailyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44824,7 +45272,7 @@ func (s *sources) PutSourceSmaily(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44872,11 +45320,10 @@ func (s *sources) PutSourceSmartengage(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSmartengagePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartengagePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44885,7 +45332,7 @@ func (s *sources) PutSourceSmartengage(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44933,11 +45380,10 @@ func (s *sources) PutSourceSmartsheets(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSmartsheetsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSmartsheetsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -44946,7 +45392,7 @@ func (s *sources) PutSourceSmartsheets(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -44994,11 +45440,10 @@ func (s *sources) PutSourceSnapchatMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSnapchatMarketingPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnapchatMarketingPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45007,7 +45452,7 @@ func (s *sources) PutSourceSnapchatMarketing(ctx context.Context, request operat
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45055,11 +45500,10 @@ func (s *sources) PutSourceSnowflake(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSnowflakePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSnowflakePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45068,7 +45512,7 @@ func (s *sources) PutSourceSnowflake(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45116,11 +45560,10 @@ func (s *sources) PutSourceSonarCloud(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSonarCloudPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSonarCloudPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45129,7 +45572,7 @@ func (s *sources) PutSourceSonarCloud(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45177,11 +45620,10 @@ func (s *sources) PutSourceSpacexAPI(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSpacexAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSpacexAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45190,7 +45632,7 @@ func (s *sources) PutSourceSpacexAPI(ctx context.Context, request operations.Put
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45238,11 +45680,10 @@ func (s *sources) PutSourceSquare(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSquarePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSquarePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45251,7 +45692,7 @@ func (s *sources) PutSourceSquare(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45299,11 +45740,10 @@ func (s *sources) PutSourceStrava(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceStravaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStravaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45312,7 +45752,7 @@ func (s *sources) PutSourceStrava(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45360,11 +45800,10 @@ func (s *sources) PutSourceStripe(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceStripePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceStripePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45373,7 +45812,7 @@ func (s *sources) PutSourceStripe(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45421,11 +45860,10 @@ func (s *sources) PutSourceSurveySparrow(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSurveySparrowPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveySparrowPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45434,7 +45872,7 @@ func (s *sources) PutSourceSurveySparrow(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45482,11 +45920,10 @@ func (s *sources) PutSourceSurveymonkey(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceSurveymonkeyPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceSurveymonkeyPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45495,7 +45932,7 @@ func (s *sources) PutSourceSurveymonkey(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45543,11 +45980,10 @@ func (s *sources) PutSourceTempo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTempoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTempoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45556,7 +45992,7 @@ func (s *sources) PutSourceTempo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45604,11 +46040,10 @@ func (s *sources) PutSourceTheGuardianAPI(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTheGuardianAPIPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTheGuardianAPIPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45617,7 +46052,7 @@ func (s *sources) PutSourceTheGuardianAPI(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45665,11 +46100,10 @@ func (s *sources) PutSourceTiktokMarketing(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTiktokMarketingPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTiktokMarketingPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45678,7 +46112,7 @@ func (s *sources) PutSourceTiktokMarketing(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45726,11 +46160,10 @@ func (s *sources) PutSourceTodoist(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTodoistPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTodoistPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45739,7 +46172,7 @@ func (s *sources) PutSourceTodoist(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45787,11 +46220,10 @@ func (s *sources) PutSourceTrello(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTrelloPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTrelloPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45800,7 +46232,7 @@ func (s *sources) PutSourceTrello(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45848,11 +46280,10 @@ func (s *sources) PutSourceTrustpilot(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTrustpilotPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTrustpilotPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45861,7 +46292,7 @@ func (s *sources) PutSourceTrustpilot(ctx context.Context, request operations.Pu
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45909,11 +46340,10 @@ func (s *sources) PutSourceTvmazeSchedule(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTvmazeSchedulePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTvmazeSchedulePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45922,7 +46352,7 @@ func (s *sources) PutSourceTvmazeSchedule(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -45970,11 +46400,10 @@ func (s *sources) PutSourceTwilio(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTwilioPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTwilioPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -45983,7 +46412,7 @@ func (s *sources) PutSourceTwilio(ctx context.Context, request operations.PutSou
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46031,11 +46460,10 @@ func (s *sources) PutSourceTwilioTaskrouter(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTwilioTaskrouterPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTwilioTaskrouterPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46044,7 +46472,7 @@ func (s *sources) PutSourceTwilioTaskrouter(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46092,11 +46520,10 @@ func (s *sources) PutSourceTwitter(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTwitterPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTwitterPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46105,7 +46532,7 @@ func (s *sources) PutSourceTwitter(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46153,11 +46580,10 @@ func (s *sources) PutSourceTypeform(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceTypeformPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceTypeformPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46166,7 +46592,7 @@ func (s *sources) PutSourceTypeform(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46214,11 +46640,10 @@ func (s *sources) PutSourceUsCensus(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceUsCensusPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceUsCensusPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46227,7 +46652,7 @@ func (s *sources) PutSourceUsCensus(ctx context.Context, request operations.PutS
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46275,11 +46700,10 @@ func (s *sources) PutSourceVantage(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceVantagePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceVantagePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46288,7 +46712,7 @@ func (s *sources) PutSourceVantage(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46336,11 +46760,10 @@ func (s *sources) PutSourceWebflow(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceWebflowPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWebflowPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46349,7 +46772,7 @@ func (s *sources) PutSourceWebflow(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46397,11 +46820,10 @@ func (s *sources) PutSourceWhiskyHunter(ctx context.Context, request operations.
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceWhiskyHunterPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWhiskyHunterPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46410,7 +46832,7 @@ func (s *sources) PutSourceWhiskyHunter(ctx context.Context, request operations.
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46458,11 +46880,10 @@ func (s *sources) PutSourceWikipediaPageviews(ctx context.Context, request opera
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceWikipediaPageviewsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWikipediaPageviewsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46471,7 +46892,7 @@ func (s *sources) PutSourceWikipediaPageviews(ctx context.Context, request opera
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46519,11 +46940,10 @@ func (s *sources) PutSourceWoocommerce(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceWoocommercePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceWoocommercePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46532,7 +46952,7 @@ func (s *sources) PutSourceWoocommerce(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46580,11 +47000,10 @@ func (s *sources) PutSourceXero(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceXeroPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceXeroPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46593,7 +47012,7 @@ func (s *sources) PutSourceXero(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46641,11 +47060,10 @@ func (s *sources) PutSourceXkcd(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceXkcdPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceXkcdPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46654,7 +47072,7 @@ func (s *sources) PutSourceXkcd(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46702,11 +47120,10 @@ func (s *sources) PutSourceYandexMetrica(ctx context.Context, request operations
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceYandexMetricaPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYandexMetricaPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46715,7 +47132,7 @@ func (s *sources) PutSourceYandexMetrica(ctx context.Context, request operations
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46763,11 +47180,10 @@ func (s *sources) PutSourceYotpo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceYotpoPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYotpoPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46776,7 +47192,7 @@ func (s *sources) PutSourceYotpo(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46824,11 +47240,10 @@ func (s *sources) PutSourceYounium(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceYouniumPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYouniumPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46837,7 +47252,7 @@ func (s *sources) PutSourceYounium(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46885,11 +47300,10 @@ func (s *sources) PutSourceYoutubeAnalytics(ctx context.Context, request operati
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceYoutubeAnalyticsPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceYoutubeAnalyticsPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46898,7 +47312,7 @@ func (s *sources) PutSourceYoutubeAnalytics(ctx context.Context, request operati
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -46946,11 +47360,10 @@ func (s *sources) PutSourceZendeskChat(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZendeskChatPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskChatPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -46959,7 +47372,7 @@ func (s *sources) PutSourceZendeskChat(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47007,11 +47420,10 @@ func (s *sources) PutSourceZendeskSunshine(ctx context.Context, request operatio
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZendeskSunshinePutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskSunshinePutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47020,7 +47432,7 @@ func (s *sources) PutSourceZendeskSunshine(ctx context.Context, request operatio
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47068,11 +47480,10 @@ func (s *sources) PutSourceZendeskSupport(ctx context.Context, request operation
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZendeskSupportPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskSupportPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47081,7 +47492,7 @@ func (s *sources) PutSourceZendeskSupport(ctx context.Context, request operation
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47129,11 +47540,10 @@ func (s *sources) PutSourceZendeskTalk(ctx context.Context, request operations.P
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZendeskTalkPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZendeskTalkPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47142,7 +47552,7 @@ func (s *sources) PutSourceZendeskTalk(ctx context.Context, request operations.P
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47190,11 +47600,10 @@ func (s *sources) PutSourceZenloop(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZenloopPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZenloopPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47203,7 +47612,7 @@ func (s *sources) PutSourceZenloop(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47251,11 +47660,10 @@ func (s *sources) PutSourceZohoCrm(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZohoCrmPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZohoCrmPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47264,7 +47672,7 @@ func (s *sources) PutSourceZohoCrm(ctx context.Context, request operations.PutSo
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47312,11 +47720,10 @@ func (s *sources) PutSourceZoom(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZoomPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZoomPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47325,7 +47732,7 @@ func (s *sources) PutSourceZoom(ctx context.Context, request operations.PutSourc
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -47373,11 +47780,10 @@ func (s *sources) PutSourceZuora(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "SourceZuoraPutRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SourceZuoraPutRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
-
debugBody := bytes.NewBuffer([]byte{})
debugReader := io.TeeReader(bodyReader, debugBody)
@@ -47386,7 +47792,7 @@ func (s *sources) PutSourceZuora(ctx context.Context, request operations.PutSour
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
diff --git a/internal/sdk/streams.go b/internal/sdk/streams.go
old mode 100755
new mode 100644
index 4e561fda5..517f21f0f
--- a/internal/sdk/streams.go
+++ b/internal/sdk/streams.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -34,7 +35,7 @@ func (s *streams) GetStreamProperties(ctx context.Context, request operations.Ge
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -68,12 +69,14 @@ func (s *streams) GetStreamProperties(ctx context.Context, request operations.Ge
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.StreamPropertiesResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.StreamPropertiesResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.StreamPropertiesResponse = out
+ res.StreamPropertiesResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
diff --git a/internal/sdk/workspaces.go b/internal/sdk/workspaces.go
old mode 100755
new mode 100644
index 33fbae82d..a2ec6c9a6
--- a/internal/sdk/workspaces.go
+++ b/internal/sdk/workspaces.go
@@ -4,6 +4,7 @@ package sdk
import (
"airbyte/internal/sdk/pkg/models/operations"
+ "airbyte/internal/sdk/pkg/models/sdkerrors"
"airbyte/internal/sdk/pkg/models/shared"
"airbyte/internal/sdk/pkg/utils"
"bytes"
@@ -34,7 +35,7 @@ func (s *workspaces) CreateOrUpdateWorkspaceOAuthCredentials(ctx context.Context
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "WorkspaceOAuthCredentialsRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "WorkspaceOAuthCredentialsRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -50,7 +51,7 @@ func (s *workspaces) CreateOrUpdateWorkspaceOAuthCredentials(ctx context.Context
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -95,7 +96,7 @@ func (s *workspaces) CreateWorkspace(ctx context.Context, request shared.Workspa
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
url := strings.TrimSuffix(baseURL, "/") + "/workspaces"
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -111,7 +112,7 @@ func (s *workspaces) CreateWorkspace(ctx context.Context, request shared.Workspa
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -144,12 +145,14 @@ func (s *workspaces) CreateWorkspace(ctx context.Context, request shared.Workspa
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.WorkspaceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.WorkspaceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.WorkspaceResponse = out
+ res.WorkspaceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
@@ -172,7 +175,7 @@ func (s *workspaces) DeleteWorkspace(ctx context.Context, request operations.Del
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "*/*")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -222,7 +225,7 @@ func (s *workspaces) GetWorkspace(ctx context.Context, request operations.GetWor
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
client := s.sdkConfiguration.SecurityClient
@@ -252,12 +255,14 @@ func (s *workspaces) GetWorkspace(ctx context.Context, request operations.GetWor
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.WorkspaceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.WorkspaceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.WorkspaceResponse = out
+ res.WorkspaceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -277,7 +282,7 @@ func (s *workspaces) ListWorkspaces(ctx context.Context, request operations.List
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -311,12 +316,14 @@ func (s *workspaces) ListWorkspaces(ctx context.Context, request operations.List
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.WorkspacesResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.WorkspacesResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.WorkspacesResponse = out
+ res.WorkspacesResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
fallthrough
@@ -334,7 +341,7 @@ func (s *workspaces) UpdateWorkspace(ctx context.Context, request operations.Upd
return nil, fmt.Errorf("error generating URL: %w", err)
}
- bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "WorkspaceUpdateRequest", "json")
+ bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "WorkspaceUpdateRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, fmt.Errorf("error serializing request body: %w", err)
}
@@ -350,7 +357,7 @@ func (s *workspaces) UpdateWorkspace(ctx context.Context, request operations.Upd
return nil, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Accept", "application/json")
- req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion))
+ req.Header.Set("user-agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
@@ -383,12 +390,14 @@ func (s *workspaces) UpdateWorkspace(ctx context.Context, request operations.Upd
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
- var out *shared.WorkspaceResponse
- if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
- return res, err
+ var out shared.WorkspaceResponse
+ if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
+ return nil, err
}
- res.WorkspaceResponse = out
+ res.WorkspaceResponse = &out
+ default:
+ return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
diff --git a/internal/validators/DateValidator.go b/internal/validators/DateValidator.go
old mode 100755
new mode 100644
diff --git a/internal/validators/ExactlyOneChild.go b/internal/validators/ExactlyOneChild.go
old mode 100755
new mode 100644
diff --git a/internal/validators/JSONParseValidator.go b/internal/validators/JSONParseValidator.go
old mode 100755
new mode 100644
diff --git a/internal/validators/RFC3339Validator.go b/internal/validators/RFC3339Validator.go
old mode 100755
new mode 100644
index 42c90dc6d..ad3d71502
--- a/internal/validators/RFC3339Validator.go
+++ b/internal/validators/RFC3339Validator.go
@@ -4,15 +4,15 @@ package validators
import (
"context"
+ "time"
+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
- "time"
)
var _ validator.String = RFC3339TimeValidator{}
-type RFC3339TimeValidator struct {
-}
+type RFC3339TimeValidator struct{}
func (validator RFC3339TimeValidator) Description(ctx context.Context) string {
return "value must be a string in RFC3339 format"
@@ -28,7 +28,7 @@ func (validator RFC3339TimeValidator) ValidateString(ctx context.Context, req va
return
}
- if _, err := time.Parse(time.RFC3339, req.ConfigValue.ValueString()); err != nil {
+ if _, err := time.Parse(time.RFC3339Nano, req.ConfigValue.ValueString()); err != nil {
resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic(
req.Path,
validator.MarkdownDescription(ctx),
@@ -42,7 +42,7 @@ func (validator RFC3339TimeValidator) ValidateString(ctx context.Context, req va
// attribute value:
//
// - Is a String.
-// - Is in RFC3339 Format.
+// - Is in RFC3339Nano Format.
//
// Null (unconfigured) and unknown (known after apply) values are skipped.
func IsRFC3339() validator.String {
diff --git a/main.go b/main.go
old mode 100755
new mode 100644
diff --git a/terraform-registry-manifest.json b/terraform-registry-manifest.json
old mode 100755
new mode 100644
diff --git a/tools/tools.go b/tools/tools.go
old mode 100755
new mode 100644